Web Inspector: introduce Page.captureScreenshot
[WebKit-https.git] / Source / WebCore / inspector / Inspector.json
1 {
2     "version": { "major": "1", "minor": "0" },
3     "domains": [{
4         "domain": "Inspector",
5         "hidden": true,
6         "types": [],
7         "commands": [
8             {
9                 "name": "enable",
10                 "description": "Enables inspector domain notifications."
11             },
12             {
13                 "name": "disable",
14                 "description": "Disables inspector domain notifications."
15             }
16         ],
17         "events": [
18             {
19                 "name": "evaluateForTestInFrontend",
20                 "parameters": [
21                     { "name": "testCallId", "type": "integer" },
22                     { "name": "script", "type": "string" }
23                 ]
24             },
25             {
26                 "name": "inspect",
27                 "parameters": [
28                     { "name": "object", "$ref": "Runtime.RemoteObject" },
29                     { "name": "hints", "type": "object" }
30                 ]
31             },
32             {
33                 "name": "detached",
34                 "description": "Fired when remote debugging connection is about to be terminated. Contains detach reason.",
35                 "parameters": [
36                     { "name": "reason", "type": "string", "description": "The reason why connection has been terminated." }
37                 ]
38             }
39         ]
40     },
41     {
42         "domain": "Memory",
43         "hidden": true,
44         "types": [
45             {
46                 "id": "NodeCount",
47                 "type": "object",
48                 "properties": [
49                     { "name": "nodeName", "type": "string" },
50                     { "name": "count", "type": "integer" }
51                 ],
52                 "description": "Number of nodes with given name."
53             },
54             {
55                 "id": "ListenerCount",
56                 "type": "object",
57                 "properties": [
58                     { "name": "type", "type": "string" },
59                     { "name": "count", "type": "integer" }
60                 ],
61                 "description": "Number of JS event listeners by event type."
62             },
63             {
64                 "id": "StringStatistics",
65                 "type": "object",
66                 "properties": [
67                     { "name": "dom", "type": "integer" },
68                     { "name": "js", "type": "integer" },
69                     { "name": "shared", "type": "integer" }
70                 ],
71                 "description": "Character data statistics for the page."
72             },
73             {
74                 "id": "DOMGroup",
75                 "type": "object",
76                 "properties": [
77                     { "name": "size", "type": "integer" },
78                     { "name": "title", "type": "string" },
79                     { "name": "documentURI", "type": "string", "optional": true },
80                     { "name": "nodeCount", "type": "array", "items": { "$ref": "NodeCount" }},
81                     { "name": "listenerCount", "type": "array", "items": { "$ref": "ListenerCount" }}
82                 ]
83             },
84             {
85                 "id": "MemoryBlock",
86                 "type": "object",
87                 "properties": [
88                     { "name": "size", "type": "number", "optional": true, "description": "Size of the block in bytes if available" },
89                     { "name": "name", "type": "string", "description": "Unique name used to identify the component that allocated this block" },
90                     { "name": "children", "type": "array", "optional": true, "items": { "$ref": "MemoryBlock" }}
91                 ]
92             }
93         ],
94         "commands": [
95             {
96                 "name": "getDOMNodeCount",
97                 "returns": [
98                     { "name": "domGroups", "type": "array", "items": { "$ref": "DOMGroup" }},
99                     { "name": "strings", "$ref": "StringStatistics" }
100                 ]
101             },
102             {
103                 "name": "getProcessMemoryDistribution",
104                 "parameters": [
105                     { "name": "reportGraph", "type": "boolean", "optional": true, "description": "Whether native memory graph should be reported in addition to aggregated statistics." }
106                 ],
107                 "returns": [
108                     { "name": "distribution", "$ref": "MemoryBlock", "description": "An object describing all memory allocated by the process"},
109                     { "name": "graph", "type": "object", "optional": true, "description": "Native memory graph."}
110                 ]
111             }
112         ]
113     },
114     {
115         "domain": "Page",
116         "description": "Actions and events related to the inspected page belong to the page domain.",
117         "types": [
118             {
119                 "id": "ResourceType",
120                 "type": "string",
121                 "enum": ["Document", "Stylesheet", "Image", "Font", "Script", "XHR", "WebSocket", "Other"],
122                 "description": "Resource type as it was perceived by the rendering engine."
123             },
124             {
125                 "id": "Frame",
126                 "type": "object",
127                 "description": "Information about the Frame on the page.",
128                 "properties": [
129                     { "name": "id", "type": "string", "description": "Frame unique identifier." },
130                     { "name": "parentId", "type": "string", "optional": true, "description": "Parent frame identifier." },
131                     { "name": "loaderId", "$ref": "Network.LoaderId", "description": "Identifier of the loader associated with this frame." },
132                     { "name": "name", "type": "string", "optional": true, "description": "Frame's name as specified in the tag." },
133                     { "name": "url", "type": "string", "description": "Frame document's URL." },
134                     { "name": "securityOrigin", "type": "string", "optional": true, "description": "Frame document's security origin." },
135                     { "name": "mimeType", "type": "string", "description": "Frame document's mimeType as determined by the browser." }
136                 ],
137                 "hidden": true
138             },
139             {
140                 "id": "FrameResourceTree",
141                 "type": "object",
142                 "description": "Information about the Frame hierarchy along with their cached resources.",
143                 "properties": [
144                     { "name": "frame", "$ref": "Frame", "description": "Frame information for this tree item." },
145                     { "name": "childFrames", "type": "array", "optional": true, "items": { "$ref": "FrameResourceTree" }, "description": "Child frames." },
146                     { "name": "resources", "type": "array",
147                         "items": {
148                             "type": "object",
149                             "properties": [
150                                 { "name": "url", "type": "string", "description": "Resource URL." },
151                                 { "name": "type", "$ref": "ResourceType", "description": "Type of this resource." },
152                                 { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." },
153                                 { "name": "failed", "type": "boolean", "optional": true, "description": "True if the resource failed to load." },
154                                 { "name": "canceled", "type": "boolean", "optional": true, "description": "True if the resource was canceled during loading." }
155                             ]
156                         },
157                         "description": "Information about frame resources."
158                     }
159                 ],
160                 "hidden": true
161             },
162             {
163                 "id": "SearchMatch",
164                 "type": "object",
165                 "description": "Search match for resource.",
166                 "properties": [
167                     { "name": "lineNumber", "type": "number", "description": "Line number in resource content." },
168                     { "name": "lineContent", "type": "string", "description": "Line with match content." }
169                 ],
170                 "hidden": true
171             },
172             {
173                 "id": "SearchResult",
174                 "type": "object",
175                 "description": "Search result for resource.",
176                 "properties": [
177                     { "name": "url", "type": "string", "description": "Resource URL." },
178                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Resource frame id." },
179                     { "name": "matchesCount", "type": "number", "description": "Number of matches in the resource content." }
180                 ],
181                 "hidden": true
182             },
183             {
184                 "id": "Cookie",
185                 "type": "object",
186                 "description": "Cookie object",
187                 "properties": [
188                     { "name": "name", "type": "string", "description": "Cookie name." },
189                     { "name": "value", "type": "string", "description": "Cookie value." },
190                     { "name": "domain", "type": "string", "description": "Cookie domain." },
191                     { "name": "path", "type": "string", "description": "Cookie path." },
192                     { "name": "expires", "type": "number", "description": "Cookie expires." },
193                     { "name": "size", "type": "integer", "description": "Cookie size." },
194                     { "name": "httpOnly", "type": "boolean", "description": "True if cookie is http-only." },
195                     { "name": "secure", "type": "boolean", "description": "True if cookie is secure." },
196                     { "name": "session", "type": "boolean", "description": "True in case of session cookie." }
197                 ],
198                 "hidden": true
199             },
200             {
201                 "id": "ScriptIdentifier",
202                 "type": "string",
203                 "description": "Unique script identifier.",
204                 "hidden": true
205             }
206         ],
207         "commands": [
208             {
209                 "name": "enable",
210                 "description": "Enables page domain notifications."
211             },
212             {
213                 "name": "disable",
214                 "description": "Disables page domain notifications."
215             },
216             {
217                 "name": "addScriptToEvaluateOnLoad",
218                 "parameters": [
219                     { "name": "scriptSource", "type": "string" }
220                 ],
221                 "returns": [
222                     { "name": "identifier", "$ref": "ScriptIdentifier", "description": "Identifier of the added script." }
223                 ],
224                 "hidden": true
225             },
226             {
227                 "name": "removeScriptToEvaluateOnLoad",
228                 "parameters": [
229                     { "name": "identifier", "$ref": "ScriptIdentifier" }
230                 ],
231                 "hidden": true
232             },
233             {
234                 "name": "reload",
235                 "parameters": [
236                     { "name": "ignoreCache", "type": "boolean", "optional": true, "description": "If true, browser cache is ignored (as if the user pressed Shift+refresh)." },
237                     { "name": "scriptToEvaluateOnLoad", "type": "string", "optional": true, "description": "If set, the script will be injected into all frames of the inspected page after reload." },
238                     { "name": "scriptPreprocessor", "type": "string", "optional": true, "description": "Script body that should evaluate to function that will preprocess all the scripts before their compilation.", "hidden": true }
239                 ],
240                 "description": "Reloads given page optionally ignoring the cache."
241             },
242             {
243                 "name": "navigate",
244                 "parameters": [
245                     { "name": "url", "type": "string", "description": "URL to navigate the page to." }
246                 ],
247                 "description": "Navigates current page to the given URL."
248             },
249             {
250                 "name": "getCookies",
251                 "returns": [
252                     { "name": "cookies", "type": "array", "items": { "$ref": "Cookie"}, "description": "Array of cookie objects." },
253                     { "name": "cookiesString", "type": "string", "description": "document.cookie string representation of the cookies." }
254                 ],
255                 "description": "Returns all browser cookies. Depending on the backend support, will either return detailed cookie information in the <code>cookie</code> field or string cookie representation using <code>cookieString</code>.",
256                 "hidden": true
257             },
258             {
259                 "name": "deleteCookie",
260                 "parameters": [
261                     { "name": "cookieName", "type": "string", "description": "Name of the cookie to remove." },
262                     { "name": "domain", "type": "string", "description": "Domain of the cookie to remove." }
263                 ],
264                 "description": "Deletes browser cookie with given name for the given domain.",
265                 "hidden": true
266             },
267             {
268                 "name": "getResourceTree",
269                 "description": "Returns present frame / resource tree structure.",
270                 "returns": [
271                     { "name": "frameTree", "$ref": "FrameResourceTree", "description": "Present frame / resource tree structure." }
272                 ],
273                 "hidden": true
274             },
275             {
276                 "name": "getResourceContent",
277                 "description": "Returns content of the given resource.",
278                 "parameters": [
279                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id to get resource for." },
280                     { "name": "url", "type": "string", "description": "URL of the resource to get content for." }
281                 ],
282                 "returns": [
283                     { "name": "content", "type": "string", "description": "Resource content." },
284                     { "name": "base64Encoded", "type": "boolean", "description": "True, if content was served as base64." }
285                 ],
286                 "hidden": true
287             },
288             {
289                 "name": "searchInResource",
290                 "description": "Searches for given string in resource content.",
291                 "parameters": [
292                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id for resource to search in." },
293                     { "name": "url", "type": "string", "description": "URL of the resource to search in." },
294                     { "name": "query", "type": "string", "description": "String to search for."  },
295                     { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." },
296                     { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." }
297                 ],
298                 "returns": [
299                     { "name": "result", "type": "array", "items": { "$ref": "SearchMatch" }, "description": "List of search matches." }
300                 ],
301                 "hidden": true
302             },
303             {
304                 "name": "searchInResources",
305                 "description": "Searches for given string in frame / resource tree structure.",
306                 "parameters": [
307                     { "name": "text", "type": "string", "description": "String to search for."  },
308                     { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." },
309                     { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." }
310                 ],
311                 "returns": [
312                     { "name": "result", "type": "array", "items": { "$ref": "SearchResult" }, "description": "List of search results." }
313                 ],
314                 "hidden": true
315             },
316             {
317                 "name": "setDocumentContent",
318                 "description": "Sets given markup as the document's HTML.",
319                 "parameters": [
320                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id to set HTML for." },
321                     { "name": "html", "type": "string", "description": "HTML content to set."  }
322                 ],
323                 "hidden": true
324             },
325             {
326                 "name": "canOverrideDeviceMetrics",
327                 "description": "Checks whether <code>setDeviceMetricsOverride</code> can be invoked.",
328                 "returns": [
329                     { "name": "result", "type": "boolean", "description": "If true, <code>setDeviceMetricsOverride</code> can safely be invoked on the agent." }
330                 ],
331                 "hidden": true
332             },
333             {
334                 "name": "setDeviceMetricsOverride",
335                 "description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results) and the font scale factor.",
336                 "parameters": [
337                     { "name": "width", "type": "integer", "description": "Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override." },
338                     { "name": "height", "type": "integer", "description": "Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override." },
339                     { "name": "fontScaleFactor", "type": "number", "description": "Overriding font scale factor value (must be positive). 1 disables the override." },
340                     { "name": "fitWindow", "type": "boolean", "description": "Whether a view that exceeds the available browser window area should be scaled down to fit." }
341                 ],
342                 "hidden": true
343             },
344             {
345                 "name": "setShowPaintRects",
346                 "description": "Requests that backend shows paint rectangles",
347                 "parameters": [
348                     { "name": "result", "type": "boolean", "description": "True for showing paint rectangles" }
349                 ],
350                 "hidden": true
351             },
352             {
353                 "name": "canShowFPSCounter",
354                 "description": "Tells if backend supports a FPS counter display",
355                 "returns": [
356                     { "name": "show", "type": "boolean", "description": "True if the FPS count can be shown" }
357                 ],
358                 "hidden": true
359             },
360             {
361                 "name": "setShowFPSCounter",
362                 "description": "Requests that backend shows the FPS counter",
363                 "parameters": [
364                     { "name": "show", "type": "boolean", "description": "True for showing the FPS counter" }
365                 ],
366                 "hidden": true
367             },
368             {
369                 "name": "getScriptExecutionStatus",
370                 "description": "Determines if scripts can be executed in the page.",
371                 "returns": [
372                     { "name": "result", "type": "string", "enum": ["allowed", "disabled", "forbidden"], "description": "Script execution status: \"allowed\" if scripts can be executed, \"disabled\" if script execution has been disabled through page settings, \"forbidden\" if script execution for the given page is not possible for other reasons." }
373                 ]
374             },
375             {
376                 "name": "setScriptExecutionDisabled",
377                 "description": "Switches script execution in the page.",
378                 "parameters": [
379                     { "name": "value", "type": "boolean", "description": "Whether script execution should be disabled in the page." }
380                 ]
381             },
382             {
383                 "name": "setGeolocationOverride",
384                 "description": "Overrides the Geolocation Position or Error.",
385                 "parameters": [
386                     { "name": "latitude", "type": "number", "optional": true, "description": "Mock longitude"},
387                     { "name": "longitude", "type": "number", "optional": true, "description": "Mock latitude"},
388                     { "name": "accuracy", "type": "number", "optional": true, "description": "Mock accuracy"}
389                 ],
390                 "hidden": true
391             },
392             {
393                 "name": "clearGeolocationOverride",
394                 "description": "Clears the overriden Geolocation Position and Error.",
395                 "hidden": true
396             },
397             {
398                 "name": "canOverrideGeolocation",
399                 "description": "Checks if Geolocation can be overridden.",
400                 "returns": [
401                     { "name": "result", "type": "boolean", "description": "True if browser can ovrride Geolocation." }
402                 ],
403                 "hidden": true
404             },
405             {
406                 "name": "setDeviceOrientationOverride",
407                 "description": "Overrides the Device Orientation.",
408                 "parameters": [
409                     { "name": "alpha", "type": "number", "description": "Mock alpha"},
410                     { "name": "beta", "type": "number", "description": "Mock beta"},
411                     { "name": "gamma", "type": "number", "description": "Mock gamma"}
412                 ],
413                 "hidden": true
414             },
415             {
416                 "name": "clearDeviceOrientationOverride",
417                 "description": "Clears the overridden Device Orientation.",
418                 "hidden": true
419             },
420             {
421                 "name": "canOverrideDeviceOrientation",
422                 "description": "Check the backend if Web Inspector can override the device orientation.",
423                 "returns": [
424                     { "name": "result", "type": "boolean", "description": "If true, <code>setDeviceOrientationOverride</code> can safely be invoked on the agent." }
425                 ],
426                 "hidden": true
427             },
428             {
429                 "name": "setTouchEmulationEnabled",
430                 "parameters": [
431                     { "name": "enabled", "type": "boolean", "description": "Whether the touch event emulation should be enabled." }
432                 ],
433                 "description": "Toggles mouse event-based touch event emulation.",
434                 "hidden": true
435             },
436             {
437                 "name": "setEmulatedMedia",
438                 "parameters": [
439                     { "name": "media", "type": "string", "description": "Media type to emulate. Empty string disables the override." }
440                 ],
441                 "description": "Emulates the given media for CSS media queries.",
442                 "hidden": true
443             },
444             {
445                 "name": "getCompositingBordersVisible",
446                 "description": "Indicates the visibility of compositing borders.",
447                 "returns": [
448                     { "name": "result", "type": "boolean", "description": "If true, compositing borders are visible." }
449                 ],
450                 "hidden": true
451             },
452             {
453                 "name": "setCompositingBordersVisible",
454                 "description": "Controls the visibility of compositing borders.",
455                 "parameters": [
456                     { "name": "visible", "type": "boolean", "description": "True for showing compositing borders." }
457                 ],
458                 "hidden": true
459             },
460             {
461                 "name": "captureScreenshot",
462                 "description": "Capture page screenshot.",
463                 "returns": [
464                     { "name": "data", "type": "string", "description": "Base64-encoded image data (PNG)." }
465                 ],
466                 "hidden": true
467             }
468         ],
469         "events": [
470             {
471                 "name": "domContentEventFired",
472                 "parameters": [
473                     { "name": "timestamp", "type": "number" }
474                 ]
475             },
476             {
477                 "name": "loadEventFired",
478                 "parameters": [
479                     { "name": "timestamp", "type": "number" }
480                 ]
481             },
482             {
483                 "name": "frameNavigated",
484                 "description": "Fired once navigation of the frame has completed. Frame is now associated with the new loader.",
485                 "parameters": [
486                     { "name": "frame", "$ref": "Frame", "description": "Frame object." }
487                 ],
488                 "hidden": true
489             },
490             {
491                 "name": "frameDetached",
492                 "description": "Fired when frame has been detached from its parent.",
493                 "parameters": [
494                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has been detached." }
495                 ],
496                 "hidden": true
497             }
498         ]
499     },
500     {
501         "domain": "Runtime",
502         "description": "Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.",
503         "types": [
504             {
505                 "id": "RemoteObjectId",
506                 "type": "string",
507                 "description": "Unique object identifier."
508             },
509             {
510                 "id": "RemoteObject",
511                 "type": "object",
512                 "description": "Mirror object referencing original JavaScript object.",
513                 "properties": [
514                     { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean"], "description": "Object type." },
515                     { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date"], "description": "Object subtype hint. Specified for <code>object</code> type values only." },
516                     { "name": "className", "type": "string", "optional": true, "description": "Object class (constructor) name. Specified for <code>object</code> type values only." },
517                     { "name": "value", "type": "any", "optional": true, "description": "Remote object value (in case of primitive values or JSON values if it was requested)." },
518                     { "name": "description", "type": "string", "optional": true, "description": "String representation of the object." },
519                     { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Unique object identifier (for non-primitive values)." },
520                     { "name": "preview", "$ref": "ObjectPreview", "optional": true, "description": "Preview containsing abbreviated property values.", "hidden": true }
521                 ]
522             },
523             {
524                 "id": "ObjectPreview",
525                 "type": "object",
526                 "hidden": true,
527                 "description": "Object containing abbreviated remote object value.",
528                 "properties": [
529                     { "name": "lossless", "type": "boolean", "description": "Determines whether preview is lossless (contains all information of the original object)." },
530                     { "name": "overflow", "type": "boolean", "description": "True iff some of the properties of the original did not fit." },
531                     { "name": "properties", "type": "array", "items": { "$ref": "PropertyPreview" }, "description": "List of the properties." }
532                 ]
533             },
534             {
535                 "id": "PropertyPreview",
536                 "type": "object",
537                 "hidden": true,
538                 "properties": [
539                     { "name": "name", "type": "string", "description": "Property name." },
540                         { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean"], "description": "Object type." },
541                         { "name": "value", "type": "string", "optional": true, "description": "User-friendly property value string." },
542                         { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date"], "description": "Object subtype hint. Specified for <code>object</code> type values only." }
543                 ]
544             },
545             {
546                 "id": "PropertyDescriptor",
547                 "type": "object",
548                 "description": "Object property descriptor.",
549                 "properties": [
550                     { "name": "name", "type": "string", "description": "Property name." },
551                     { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." },
552                     { "name": "writable", "type": "boolean", "optional": true, "description": "True if the value associated with the property may be changed (data descriptors only)." },
553                     { "name": "get", "$ref": "RemoteObject", "optional": true, "description": "A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only)." },
554                     { "name": "set", "$ref": "RemoteObject", "optional": true, "description": "A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only)." },
555                     { "name": "configurable", "type": "boolean", "description": "True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object." },
556                     { "name": "enumerable", "type": "boolean", "description": "True if this property shows up during enumeration of the properties on the corresponding object." },
557                     { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
558                     { "name": "isOwn", "optional": true, "type": "boolean", "description": "True if the property is owned for the object." }
559
560                 ]
561             },
562             {
563                 "id": "InternalPropertyDescriptor",
564                 "type": "object",
565                 "description": "Object internal property descriptor. This property isn't normally visible in JavaScript code.",
566                 "properties": [
567                     { "name": "name", "type": "string", "description": "Conventional property name." },
568                     { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." }
569                 ]
570             },
571             {
572                 "id": "CallArgument",
573                 "type": "object",
574                 "description": "Represents function call argument. Either remote object id <code>objectId</code> or primitive <code>value</code> or neither of (for undefined) them should be specified.",
575                 "properties": [
576                     { "name": "value", "type": "any", "optional": true, "description": "Primitive value." },
577                     { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Remote object handle." }
578                 ]
579             },
580             {
581                 "id": "ExecutionContextId",
582                 "type": "integer",
583                 "description": "Id of an execution context.",
584                 "hidden": true
585             },
586             {
587                 "id": "ExecutionContextDescription",
588                 "type": "object",
589                 "description": "Description of an isolated world.",
590                 "properties": [
591                     { "name": "id", "$ref": "ExecutionContextId", "description": "Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed." },
592                     { "name": "isPageContext", "type": "boolean", "description": "True if this is a context where inpspected web page scripts run. False if it is a content script isolated context." },
593                     { "name": "name", "type": "string", "description": "Human readable name describing given context." },
594                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the owning frame." }
595                 ],
596                 "hidden": true
597             }
598
599         ],
600         "commands": [
601             {
602                 "name": "evaluate",
603                 "parameters": [
604                     { "name": "expression", "type": "string", "description": "Expression to evaluate." },
605                     { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." },
606                     { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Determines whether Command Line API should be available during the evaluation.", "hidden": true },
607                     { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true },
608                     { "name": "contextId", "$ref": "Runtime.ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perform evaluation. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page.", "hidden": true },
609                     { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." },
610                     { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." }
611                 ],
612                 "returns": [
613                     { "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." },
614                     { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }
615                 ],
616                 "description": "Evaluates expression on global object."
617             },
618             {
619                 "name": "callFunctionOn",
620                 "parameters": [
621                     { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to call function on." },
622                     { "name": "functionDeclaration", "type": "string", "description": "Declaration of the function to call." },
623                     { "name": "arguments", "type": "array", "items": { "$ref": "CallArgument", "description": "Call argument." }, "optional": true, "description": "Call arguments. All call arguments must belong to the same JavaScript world as the target object." },
624                     { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether function call should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true },
625                     { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object which should be sent by value." },
626                     { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." }
627                 ],
628                 "returns": [
629                     { "name": "result", "$ref": "RemoteObject", "description": "Call result." },
630                     { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }
631                 ],
632                 "description": "Calls function with given declaration on the given object. Object group of the result is inherited from the target object."
633             },
634             {
635                 "name": "getProperties",
636                 "parameters": [
637                     { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to return properties for." },
638                     { "name": "ownProperties", "optional": true, "type": "boolean", "description": "If true, returns properties belonging only to the element itself, not to its prototype chain." }
639                 ],
640                 "returns": [
641                     { "name": "result", "type": "array", "items": { "$ref": "PropertyDescriptor"}, "description": "Object properties." },
642                     { "name": "internalProperties", "optional": true, "type": "array", "items": { "$ref": "InternalPropertyDescriptor"}, "description": "Internal object properties." }
643                 ],
644                 "description": "Returns properties of a given object. Object group of the result is inherited from the target object."
645             },
646             {
647                 "name": "releaseObject",
648                 "parameters": [
649                     { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to release." }
650                 ],
651                 "description": "Releases remote object with given id."
652             },
653             {
654                 "name": "releaseObjectGroup",
655                 "parameters": [
656                     { "name": "objectGroup", "type": "string", "description": "Symbolic object group name." }
657                 ],
658                 "description": "Releases all remote objects that belong to a given group."
659             },
660             {
661                 "name": "run",
662                 "hidden": true,
663                 "description": "Tells inspected instance(worker or page) that it can run in case it was started paused."
664             },
665             {
666                 "name": "enable",
667                 "hidden": true,
668                 "description": "Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context."
669             },
670             {
671                 "name": "disable",
672                 "hidden": true,
673                 "description": "Disables reporting of execution contexts creation."
674             }
675         ],
676         "events": [
677             {
678                 "name": "executionContextCreated",
679                 "parameters": [
680                     { "name": "context", "$ref": "ExecutionContextDescription", "description": "A newly created execution contex." }
681                 ],
682                 "hidden": true,
683                 "description": "Issued when new execution context is created."
684             }
685         ]
686     },
687     {
688         "domain": "Console",
689         "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.",
690         "types": [
691             {
692                 "id": "ConsoleMessage",
693                 "type": "object",
694                 "description": "Console message.",
695                 "properties": [
696                     { "name": "source", "type": "string", "enum": ["html", "wml", "xml", "javascript", "network", "console-api", "other"], "description": "Message source." },
697                     { "name": "level", "type": "string", "enum": ["tip", "log", "warning", "error", "debug"], "description": "Message severity." },
698                     { "name": "text", "type": "string", "description": "Message text." },
699                     { "name": "type", "type": "string", "optional": true, "enum": ["log", "dir", "dirxml", "trace", "clear", "startGroup", "startGroupCollapsed", "endGroup", "assert", "timing"], "description": "Console message type." },
700                     { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." },
701                     { "name": "line", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message." },
702                     { "name": "repeatCount", "type": "integer", "optional": true, "description": "Repeat count for repeated messages." },
703                     { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters in case of the formatted message." },
704                     { "name": "stackTrace", "$ref": "StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages." },
705                     { "name": "networkRequestId", "$ref": "Network.RequestId", "optional": true, "description": "Identifier of the network request associated with this message." }
706                 ]
707             },
708             {
709                 "id": "CallFrame",
710                 "type": "object",
711                 "description": "Stack entry for console errors and assertions.",
712                 "properties": [
713                     { "name": "functionName", "type": "string", "description": "JavaScript function name." },
714                     { "name": "url", "type": "string", "description": "JavaScript script name or url." },
715                     { "name": "lineNumber", "type": "integer", "description": "JavaScript script line number." },
716                     { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number." }
717                 ]
718             },
719             {
720                 "id": "StackTrace",
721                 "type": "array",
722                 "items": { "$ref": "CallFrame" },
723                 "description": "Call frames for assertions or error messages."
724             }
725         ],
726         "commands": [
727             {
728                 "name": "enable",
729                 "description": "Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification." 
730             },
731             {
732                 "name": "disable",
733                 "description": "Disables console domain, prevents further console messages from being reported to the client." 
734             },
735             {
736                 "name": "clearMessages",
737                 "description": "Clears console messages collected in the browser." 
738             },
739             {
740                 "name": "setMonitoringXHREnabled",
741                 "parameters": [
742                     { "name": "enabled", "type": "boolean", "description": "Monitoring enabled state." }
743                 ],
744                 "description": "Toggles monitoring of XMLHttpRequest. If <code>true</code>, console will receive messages upon each XHR issued.", 
745                 "hidden": true
746             },
747             {
748                 "name": "addInspectedNode",
749                 "parameters": [
750                     { "name": "nodeId", "$ref": "DOM.NodeId", "description": "DOM node id to be accessible by means of $x command line API." }
751                 ],
752                 "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).",
753                 "hidden": true
754             },
755             {
756                 "name": "addInspectedHeapObject",
757                 "parameters": [
758                     { "name": "heapObjectId", "type": "integer" }
759                 ]
760             }
761         ],
762         "events": [
763             {
764                 "name": "messageAdded",
765                 "parameters": [
766                     { "name": "message", "$ref": "ConsoleMessage", "description": "Console message that has been added." }
767                 ],
768                 "description": "Issued when new console message is added."
769             },
770             {
771                 "name": "messageRepeatCountUpdated",
772                 "parameters": [
773                     { "name": "count", "type": "integer", "description": "New repeat count value." }
774                 ],
775                 "description": "Issued when subsequent message(s) are equal to the previous one(s)."
776             },
777             {
778                 "name": "messagesCleared",
779                 "description": "Issued when console is cleared. This happens either upon <code>clearMessages</code> command or after page navigation."
780             }
781         ]
782     },
783     {
784         "domain": "Network",
785         "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.",
786         "types": [
787             {
788                 "id": "LoaderId",
789                 "type": "string",
790                 "description": "Unique loader identifier."
791             },
792             {
793                 "id": "FrameId",
794                 "type": "string",
795                 "description": "Unique frame identifier.",
796                 "hidden": true
797             },
798             {
799                 "id": "RequestId",
800                 "type": "string",
801                 "description": "Unique request identifier."
802             },
803             {
804                 "id": "Timestamp",
805                 "type": "number",
806                 "description": "Number of seconds since epoch."
807             },
808             {
809                 "id": "Headers",
810                 "type": "object",
811                 "description": "Request / response headers as keys / values of JSON object."
812             },
813             {
814                 "id": "ResourceTiming",
815                 "type": "object",
816                 "description": "Timing information for the request.",
817                 "properties": [
818                     { "name": "requestTime", "type": "number", "description": "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime." },
819                     { "name": "proxyStart", "type": "number", "description": "Started resolving proxy." },
820                     { "name": "proxyEnd", "type": "number", "description": "Finished resolving proxy." },
821                     { "name": "dnsStart", "type": "number", "description": "Started DNS address resolve." },
822                     { "name": "dnsEnd", "type": "number", "description": "Finished DNS address resolve." },
823                     { "name": "connectStart", "type": "number", "description": "Started connecting to the remote host." },
824                     { "name": "connectEnd", "type": "number", "description": "Connected to the remote host." },
825                     { "name": "sslStart", "type": "number", "description": "Started SSL handshake." },
826                     { "name": "sslEnd", "type": "number", "description": "Finished SSL handshake." },
827                     { "name": "sendStart", "type": "number", "description": "Started sending request." },
828                     { "name": "sendEnd", "type": "number", "description": "Finished sending request." },
829                     { "name": "receiveHeadersEnd", "type": "number", "description": "Finished receiving response headers." }
830                 ]
831             },
832             {
833                 "id": "Request",
834                 "type": "object",
835                 "description": "HTTP request data.",
836                 "properties": [
837                     { "name": "url", "type": "string", "description": "Request URL." },
838                     { "name": "method", "type": "string", "description": "HTTP request method." },
839                     { "name": "headers", "$ref": "Headers", "description": "HTTP request headers." },
840                     { "name": "postData", "type": "string", "optional": true, "description": "HTTP POST request data." }
841                 ]
842             },
843             {
844                 "id": "Response",
845                 "type": "object",
846                 "description": "HTTP response data.",
847                 "properties": [
848                     { "name": "url", "type": "string", "description": "Response URL. This URL can be different from CachedResource.url in case of redirect." },
849                     { "name": "status", "type": "number", "description": "HTTP response status code." },
850                     { "name": "statusText", "type": "string", "description": "HTTP response status text." },
851                     { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." },
852                     { "name": "headersText", "type": "string", "optional": true, "description": "HTTP response headers text." },
853                     { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." },
854                     { "name": "requestHeaders", "$ref": "Headers", "optional": true, "description": "Refined HTTP request headers that were actually transmitted over the network." },
855                     { "name": "requestHeadersText", "type": "string", "optional": true, "description": "HTTP request headers text." },
856                     { "name": "connectionReused", "type": "boolean", "description": "Specifies whether physical connection was actually reused for this request." },
857                     { "name": "connectionId", "type": "number", "description": "Physical connection id that was actually used for this request." },
858                     { "name": "fromDiskCache", "type": "boolean", "optional": true, "description": "Specifies that the request was served from the disk cache." },
859                     { "name": "timing", "$ref": "ResourceTiming", "optional": true, "description": "Timing information for the given request." }
860                 ]
861             },
862             {
863                 "id": "WebSocketRequest",
864                 "type": "object",
865                 "description": "WebSocket request data.",
866                 "hidden": true,
867                 "properties": [
868                     { "name": "requestKey3", "type": "string", "description": "HTTP response status text." },
869                     { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." }
870                 ]
871             },
872             {
873                 "id": "WebSocketResponse",
874                 "type": "object",
875                 "description": "WebSocket response data.",
876                 "hidden": true,
877                 "properties": [
878                     { "name": "status", "type": "number", "description": "HTTP response status code." },
879                     { "name": "statusText", "type": "string", "description": "HTTP response status text." },
880                     { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." },
881                     { "name": "challengeResponse", "type": "string", "description": "Challenge response." }
882                 ]
883             },
884             {
885                 "id": "WebSocketFrame",
886                 "type": "object",
887                 "description": "WebSocket frame data.",
888                 "hidden": true,
889                 "properties": [
890                     { "name": "opcode", "type": "number", "description": "WebSocket frame opcode." },
891                     { "name": "mask", "type": "boolean", "description": "WebSocke frame mask." },
892                     { "name": "payloadData", "type": "string", "description": "WebSocke frame payload data." }
893                 ]
894             },
895             {
896                 "id": "CachedResource",
897                 "type": "object",
898                 "description": "Information about the cached resource.",
899                 "properties": [
900                     { "name": "url", "type": "string", "description": "Resource URL. This is the url of the original network request." },
901                     { "name": "type", "$ref": "Page.ResourceType", "description": "Type of this resource." },
902                     { "name": "response", "$ref": "Response", "optional": true, "description": "Cached response data." },
903                     { "name": "bodySize", "type": "number", "description": "Cached response body size." }
904                 ]
905             },
906             {
907                 "id": "Initiator",
908                 "type": "object",
909                 "description": "Information about the request initiator.",
910                 "properties": [
911                     { "name": "type", "type": "string", "enum": ["parser", "script", "other"], "description": "Type of this initiator." },
912                     { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "Initiator JavaScript stack trace, set for Script only." },
913                     { "name": "url", "type": "string", "optional": true, "description": "Initiator URL, set for Parser type only." },
914                     { "name": "lineNumber", "type": "number", "optional": true, "description": "Initiator line number, set for Parser type only." }
915                 ]
916             }
917         ],
918         "commands": [
919             {
920                 "name": "enable",
921                 "description": "Enables network tracking, network events will now be delivered to the client."
922             },
923             {
924                 "name": "disable",
925                 "description": "Disables network tracking, prevents network events from being sent to the client."
926             },
927             {
928                 "name": "setUserAgentOverride",
929                 "description": "Allows overriding user agent with the given string.",
930                 "parameters": [
931                     { "name": "userAgent", "type": "string", "description": "User agent to use." }
932                 ]
933             },
934             {
935                 "name": "setExtraHTTPHeaders",
936                 "description": "Specifies whether to always send extra HTTP headers with the requests from this page.",
937                 "parameters": [
938                     { "name": "headers", "$ref": "Headers", "description": "Map with extra HTTP headers." }
939                 ]
940             },
941             {
942                 "name": "getResponseBody",
943                 "description": "Returns content served for the given request.",
944                 "parameters": [
945                     { "name": "requestId", "$ref": "RequestId", "description": "Identifier of the network request to get content for." }
946                 ],
947                 "returns": [
948                     { "name": "body", "type": "string", "description": "Response body." },
949                     { "name": "base64Encoded", "type": "boolean", "description": "True, if content was sent as base64." }
950                 ]
951             },
952             {
953                 "name": "replayXHR",
954                 "description": "This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.",
955                 "parameters": [
956                     { "name": "requestId", "$ref": "RequestId", "description": "Identifier of XHR to replay." }
957                 ],
958                 "hidden": true
959             },
960             {
961                 "name": "canClearBrowserCache",
962                 "description": "Tells whether clearing browser cache is supported.",
963                 "returns": [
964                     { "name": "result", "type": "boolean", "description": "True if browser cache can be cleared." }
965                 ]
966             },
967             {
968                 "name": "clearBrowserCache",
969                 "description": "Clears browser cache."
970             },
971             {
972                 "name": "canClearBrowserCookies",
973                 "description": "Tells whether clearing browser cookies is supported.",
974                 "returns": [
975                     { "name": "result", "type": "boolean", "description": "True if browser cookies can be cleared." }
976                 ]
977             },
978             {
979                 "name": "clearBrowserCookies",
980                 "description": "Clears browser cookies."
981             },
982             {
983                 "name": "setCacheDisabled",
984                 "parameters": [
985                     { "name": "cacheDisabled", "type": "boolean", "description": "Cache disabled state." }
986                 ],
987                 "description": "Toggles ignoring cache for each request. If <code>true</code>, cache will not be used." 
988             }
989         ],
990         "events": [
991             {
992                 "name": "requestWillBeSent",
993                 "description": "Fired when page is about to send HTTP request.",
994                 "parameters": [
995                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
996                     { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier.", "hidden": true },
997                     { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
998                     { "name": "documentURL", "type": "string", "description": "URL of the document this request is loaded for." },
999                     { "name": "request", "$ref": "Request", "description": "Request data." },
1000                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1001                     { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." },
1002                     { "name": "redirectResponse", "optional": true, "$ref": "Response", "description": "Redirect response data." }
1003                 ]
1004             },
1005             {
1006                 "name": "requestServedFromCache",
1007                 "description": "Fired if request ended up loading from cache.",
1008                 "parameters": [
1009                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }
1010                 ]
1011             },
1012             {
1013                 "name": "responseReceived",
1014                 "description": "Fired when HTTP response is available.",
1015                 "parameters": [
1016                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1017                     { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier.", "hidden": true },
1018                     { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
1019                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1020                     { "name": "type", "$ref": "Page.ResourceType", "description": "Resource type." },
1021                     { "name": "response", "$ref": "Response", "description": "Response data." }
1022                 ]
1023             },
1024             {
1025                 "name": "dataReceived",
1026                 "description": "Fired when data chunk was received over the network.",
1027                 "parameters": [
1028                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1029                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1030                     { "name": "dataLength", "type": "integer", "description": "Data chunk length." },
1031                     { "name": "encodedDataLength", "type": "integer", "description": "Actual bytes received (might be less than dataLength for compressed encodings)." }
1032                 ]
1033             },
1034             {
1035                 "name": "loadingFinished",
1036                 "description": "Fired when HTTP request has finished loading.",
1037                 "parameters": [
1038                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1039                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }
1040                 ]
1041             },
1042             {
1043                 "name": "loadingFailed",
1044                 "description": "Fired when HTTP request has failed to load.",
1045                 "parameters": [
1046                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1047                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1048                     { "name": "errorText", "type": "string", "description": "User friendly error message." },
1049                     { "name": "canceled", "type": "boolean", "optional": true, "description": "True if loading was canceled." }
1050                 ]
1051             },
1052             {
1053                 "name": "requestServedFromMemoryCache",
1054                 "description": "Fired when HTTP request has been served from memory cache.",
1055                 "parameters": [
1056                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1057                     { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier.", "hidden": true },
1058                     { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
1059                     { "name": "documentURL", "type": "string", "description": "URL of the document this request is loaded for." },
1060                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1061                     { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." },
1062                     { "name": "resource", "$ref": "CachedResource", "description": "Cached resource data." }
1063                 ]
1064             },
1065             {
1066                 "name": "webSocketWillSendHandshakeRequest",
1067                 "description": "Fired when WebSocket is about to initiate handshake.",
1068                 "parameters": [
1069                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1070                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1071                     { "name": "request", "$ref": "WebSocketRequest", "description": "WebSocket request data." }
1072                 ],
1073                 "hidden": true
1074             },
1075             {
1076                 "name": "webSocketHandshakeResponseReceived",
1077                 "description": "Fired when WebSocket handshake response becomes available.",
1078                 "parameters": [
1079                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1080                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1081                     { "name": "response", "$ref": "WebSocketResponse", "description": "WebSocket response data." }
1082                 ],
1083                 "hidden": true
1084             },
1085             {
1086                 "name": "webSocketCreated",
1087                 "description": "Fired upon WebSocket creation.",
1088                 "parameters": [
1089                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1090                     { "name": "url", "type": "string", "description": "WebSocket request URL." }
1091                 ],
1092                 "hidden": true
1093             },
1094             {
1095                 "name": "webSocketClosed",
1096                 "description": "Fired when WebSocket is closed.",
1097                 "parameters": [
1098                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1099                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }
1100                 ],
1101                 "hidden": true
1102             },
1103             {
1104                 "name": "webSocketFrameReceived",
1105                 "description": "Fired when WebSocket frame is received.",
1106                 "parameters": [
1107                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1108                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1109                     { "name": "response", "$ref": "WebSocketFrame", "description": "WebSocket response data." }
1110                 ],
1111                 "hidden": true
1112             },
1113             {
1114                 "name": "webSocketFrameError",
1115                 "description": "Fired when WebSocket frame error occurs.",
1116                 "parameters": [
1117                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1118                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1119                     { "name": "errorMessage", "type": "string", "description": "WebSocket frame error message." }
1120                 ],
1121                 "hidden": true
1122             },
1123             {
1124                 "name": "webSocketFrameSent",
1125                 "description": "Fired when WebSocket frame is sent.",
1126                 "parameters": [
1127                     { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
1128                     { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
1129                     { "name": "response", "$ref": "WebSocketFrame", "description": "WebSocket response data." }
1130                 ],
1131                 "hidden": true
1132             }
1133         ]
1134     },
1135     {
1136         "domain": "Database",
1137         "hidden": true,
1138         "types": [
1139             {
1140                 "id": "DatabaseId",
1141                 "type": "string",
1142                 "description": "Unique identifier of Database object.",
1143                 "hidden": true
1144             },
1145             {
1146                 "id": "Database",
1147                 "type": "object",
1148                 "description": "Database object.",
1149                 "hidden": true,
1150                 "properties": [
1151                     { "name": "id", "$ref": "DatabaseId", "description": "Database ID." },
1152                     { "name": "domain", "type": "string", "description": "Database domain." },
1153                     { "name": "name", "type": "string", "description": "Database name." },
1154                     { "name": "version", "type": "string", "description": "Database version." }
1155                 ]
1156             },
1157             {
1158                 "id": "Error",
1159                 "type": "object",
1160                 "description": "Database error.",
1161                 "properties": [
1162                     { "name": "message", "type": "string", "description": "Error message." },
1163                     { "name": "code", "type": "integer", "description": "Error code." }
1164                 ]
1165             }
1166         ],
1167         "commands": [
1168             {
1169                 "name": "enable",
1170                 "description": "Enables database tracking, database events will now be delivered to the client."
1171             },
1172             {
1173                 "name": "disable",
1174                 "description": "Disables database tracking, prevents database events from being sent to the client."
1175             },
1176             {
1177                 "name": "getDatabaseTableNames",
1178                 "parameters": [
1179                     { "name": "databaseId", "$ref": "DatabaseId" }
1180                 ],
1181                 "returns": [
1182                     { "name": "tableNames", "type": "array", "items": { "type": "string" } }
1183                 ]
1184             },
1185             {
1186                 "name": "executeSQL",
1187                 "async": true,
1188                 "parameters": [
1189                     { "name": "databaseId", "$ref": "DatabaseId" },
1190                     { "name": "query", "type": "string" }
1191                 ],
1192                 "returns": [
1193                     { "name": "columnNames", "type": "array", "optional": true, "items": { "type": "string" } },
1194                     { "name": "values", "type": "array", "optional": true, "items": { "type": "any" }},
1195                     { "name": "sqlError", "$ref": "Error", "optional": true }
1196                 ]
1197             }
1198         ],
1199         "events": [
1200             {
1201                 "name": "addDatabase",
1202                 "parameters": [
1203                     { "name": "database", "$ref": "Database" }
1204                 ]
1205             }
1206         ]
1207     },
1208     {
1209         "domain": "IndexedDB",
1210         "hidden": true,
1211         "types": [
1212             {
1213                 "id": "SecurityOriginWithDatabaseNames",
1214                 "type": "object",
1215                 "description": "Security origin with database names.",
1216                 "properties": [
1217                     { "name": "securityOrigin", "type": "string", "description": "Security origin." },
1218                     { "name": "databaseNames", "type": "array", "items": { "type": "string" }, "description": "Database names for this origin." }
1219                 ]
1220             },
1221             {
1222                 "id": "DatabaseWithObjectStores",
1223                 "type": "object",
1224                 "description": "Database with an array of object stores.",
1225                 "properties": [
1226                     { "name": "name", "type": "string", "description": "Database name." },
1227                     { "name": "version", "type": "string", "description": "Deprecated string database version." },
1228                     { "name": "intVersion", "type": "integer", "description": "Integer database version." },
1229                     { "name": "objectStores", "type": "array", "items": { "$ref": "ObjectStore" }, "description": "Object stores in this database." }
1230                 ]
1231             },
1232             {
1233                 "id": "ObjectStore",
1234                 "type": "object",
1235                 "description": "Object store.",
1236                 "properties": [
1237                     { "name": "name", "type": "string", "description": "Object store name." },
1238                     { "name": "keyPath", "$ref": "KeyPath", "description": "Object store key path." },
1239                     { "name": "autoIncrement", "type": "boolean", "description": "If true, object store has auto increment flag set." },
1240                     { "name": "indexes", "type": "array", "items": { "$ref": "ObjectStoreIndex" }, "description": "Indexes in this object store." }
1241                 ]
1242             },
1243             {
1244                 "id": "ObjectStoreIndex",
1245                 "type": "object",
1246                 "description": "Object store index.",
1247                 "properties": [
1248                     { "name": "name", "type": "string", "description": "Index name." },
1249                     { "name": "keyPath", "$ref": "KeyPath", "description": "Index key path." },
1250                     { "name": "unique", "type": "boolean", "description": "If true, index is unique." },
1251                     { "name": "multiEntry", "type": "boolean", "description": "If true, index allows multiple entries for a key." }
1252                 ]
1253             },
1254             {
1255                 "id": "Key",
1256                 "type": "object",
1257                 "description": "Key.",
1258                 "properties": [
1259                     { "name": "type", "type": "string", "enum": ["number", "string", "date", "array"], "description": "Key type." },
1260                     { "name": "number", "type": "number", "optional": true, "description": "Number value." },
1261                     { "name": "string", "type": "string", "optional": true, "description": "String value." },
1262                     { "name": "date", "type": "number", "optional": true, "description": "Date value." },
1263                     { "name": "array", "type": "array", "optional": true, "items": { "$ref": "Key" }, "description": "Array value." }
1264                 ]
1265             },
1266             {
1267                 "id": "KeyRange",
1268                 "type": "object",
1269                 "description": "Key range.",
1270                 "properties": [
1271                     { "name": "lower", "$ref": "Key", "optional": true, "description": "Lower bound." },
1272                     { "name": "upper", "$ref": "Key", "optional": true, "description": "Upper bound." },
1273                     { "name": "lowerOpen", "type": "boolean", "description": "If true lower bound is open." },
1274                     { "name": "upperOpen", "type": "boolean", "description": "If true upper bound is open." }
1275                 ]
1276             },
1277             {
1278                 "id": "DataEntry",
1279                 "type": "object",
1280                 "description": "Data entry.",
1281                 "properties": [
1282                     { "name": "key", "$ref": "Runtime.RemoteObject", "description": "Key." },
1283                     { "name": "primaryKey", "$ref": "Runtime.RemoteObject", "description": "Primary key." },
1284                     { "name": "value", "$ref": "Runtime.RemoteObject", "description": "Value." }
1285                 ]
1286             },
1287             {
1288                 "id": "KeyPath",
1289                 "type": "object",
1290                 "description": "Key path.",
1291                 "properties": [
1292                     { "name": "type", "type": "string", "enum": ["null", "string", "array"], "description": "Key path type." },
1293                     { "name": "string", "type": "string", "optional": true, "description": "String value." },
1294                     { "name": "array", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Array value." }
1295                 ]
1296             }
1297         ],
1298         "commands": [
1299             {
1300                 "name": "enable",
1301                 "description": "Enables events from backend."
1302             },
1303             {
1304                 "name": "disable",
1305                 "description": "Disables events from backend."
1306             },
1307             {
1308                 "name": "requestDatabaseNamesForFrame",
1309                 "async": true,
1310                 "parameters": [
1311                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id." }
1312                 ],
1313                 "returns": [
1314                     { "name": "securityOriginWithDatabaseNames", "$ref": "SecurityOriginWithDatabaseNames", "description": "Frame with database names." }
1315                 ],
1316                 "description": "Requests database names for given frame's security origin."
1317             },
1318             {
1319                 "name": "requestDatabase",
1320                 "async": true,
1321                 "parameters": [
1322                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id." },
1323                     { "name": "databaseName", "type": "string", "description": "Database name." }
1324                 ],
1325                 "returns": [
1326                     { "name": "databaseWithObjectStores", "$ref": "DatabaseWithObjectStores", "description": "Database with an array of object stores." }
1327                 ],
1328                 "description": "Requests database with given name in given frame."
1329             },
1330             {
1331                 "name": "requestData",
1332                 "async": true,
1333                 "parameters": [
1334                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id." },
1335                     { "name": "databaseName", "type": "string", "description": "Database name." },
1336                     { "name": "objectStoreName", "type": "string", "description": "Object store name." },
1337                     { "name": "indexName", "type": "string", "description": "Index name, empty string for object store data requests." },
1338                     { "name": "skipCount", "type": "integer", "description": "Number of records to skip." },
1339                     { "name": "pageSize", "type": "integer", "description": "Number of records to fetch." },
1340                     { "name": "keyRange", "$ref": "KeyRange", "optional": true, "description": "Key range." }
1341                 ],
1342                 "returns": [
1343                     { "name": "objectStoreDataEntries", "type": "array", "items": { "$ref": "DataEntry" }, "description": "Array of object store data entries." },
1344                     { "name": "hasMore", "type": "boolean", "description": "If true, there are more entries to fetch in the given range." }
1345                 ],
1346                 "description": "Requests data from object store or index."
1347             }
1348         ]
1349     },
1350     {
1351         "domain": "DOMStorage",
1352         "hidden": true,
1353         "types": [
1354             {
1355                 "id": "StorageId",
1356                 "type": "string",
1357                 "description": "Unique identifier of DOM storage entry.",
1358                 "hidden": true
1359             },
1360             {
1361                 "id": "Entry",
1362                 "type": "object",
1363                 "description": "DOM Storage entry.",
1364                 "hidden": true,
1365                 "properties": [
1366                     { "name": "origin", "type": "string", "description": "Document origin." },
1367                     { "name": "isLocalStorage", "type": "boolean", "description": "True for local storage." },
1368                     { "name": "id", "$ref": "StorageId", "description": "Entry id for further reference." }
1369                 ]
1370             },
1371             {
1372                 "id": "Item",
1373                 "type": "array",
1374                 "description": "DOM Storage item.",
1375                 "hidden": true,
1376                 "items": { "type": "string" }
1377             }
1378         ],
1379         "commands": [
1380             {
1381                 "name": "enable",
1382                 "description": "Enables storage tracking, storage events will now be delivered to the client."
1383             },
1384             {
1385                 "name": "disable",
1386                 "description": "Disables storage tracking, prevents storage events from being sent to the client."
1387             },
1388             {
1389                 "name": "getDOMStorageEntries",
1390                 "parameters": [
1391                     { "name": "storageId", "$ref": "StorageId" }
1392                 ],
1393                 "returns": [
1394                     { "name": "entries", "type": "array", "items": { "$ref": "Item" } }
1395                 ]
1396             },
1397             {
1398                 "name": "setDOMStorageItem",
1399                 "parameters": [
1400                     { "name": "storageId", "$ref": "StorageId" },
1401                     { "name": "key", "type": "string" },
1402                     { "name": "value", "type": "string" }
1403                 ],
1404                 "returns": [
1405                     { "name": "success", "type": "boolean" }
1406                 ]
1407             },
1408             {
1409                 "name": "removeDOMStorageItem",
1410                 "parameters": [
1411                     { "name": "storageId", "$ref": "StorageId" },
1412                     { "name": "key", "type": "string" }
1413                 ],
1414                 "returns": [
1415                     { "name": "success", "type": "boolean" }
1416                 ]
1417             }
1418         ],
1419         "events": [
1420             {
1421                 "name": "addDOMStorage",
1422                 "parameters": [
1423                     { "name": "storage", "$ref": "Entry" }
1424                 ]
1425             },
1426             {
1427                 "name": "domStorageUpdated",
1428                 "parameters": [
1429                     { "name": "storageId",  "$ref": "StorageId" }
1430                 ]
1431             }
1432         ]
1433     },
1434     {
1435         "domain": "ApplicationCache",
1436         "hidden": true,
1437         "types": [
1438             {
1439                 "id": "ApplicationCacheResource",
1440                 "type": "object",
1441                 "description": "Detailed application cache resource information.",
1442                 "properties": [
1443                     { "name": "url", "type": "string", "description": "Resource url." },
1444                     { "name": "size", "type": "integer", "description": "Resource size." },
1445                     { "name": "type", "type": "string", "description": "Resource type." }
1446                 ]
1447             },
1448             {
1449                 "id": "ApplicationCache",
1450                 "type": "object",
1451                 "description": "Detailed application cache information.",
1452                 "properties": [
1453                     { "name": "manifestURL", "type": "string", "description": "Manifest URL." },
1454                     { "name": "size", "type": "number", "description": "Application cache size." },
1455                     { "name": "creationTime", "type": "number", "description": "Application cache creation time." },
1456                     { "name": "updateTime", "type": "number", "description": "Application cache update time." },
1457                     { "name": "resources", "type": "array", "items": { "$ref": "ApplicationCacheResource" }, "description": "Application cache resources." }
1458                 ]
1459             },
1460             {
1461                 "id": "FrameWithManifest",
1462                 "type": "object",
1463                 "description": "Frame identifier - manifest URL pair.",
1464                 "properties": [
1465                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame identifier." },
1466                     { "name": "manifestURL", "type": "string", "description": "Manifest URL." },
1467                     { "name": "status", "type": "integer", "description": "Application cache status." }
1468                 ]
1469             }
1470         ],
1471         "commands": [
1472             {
1473                 "name": "getFramesWithManifests",
1474                 "returns": [
1475                     { "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." }
1476                 ],
1477                 "description": "Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache."
1478             },
1479             {
1480                 "name": "enable",
1481                 "description": "Enables application cache domain notifications."
1482             },
1483             {
1484                 "name": "getManifestForFrame",
1485                 "parameters": [
1486                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose manifest is retrieved." }
1487                 ],
1488                 "returns": [
1489                     { "name": "manifestURL", "type": "string", "description": "Manifest URL for document in the given frame." }
1490                 ],
1491                 "description": "Returns manifest URL for document in the given frame."
1492             },
1493             {
1494                 "name": "getApplicationCacheForFrame",
1495                 "parameters": [
1496                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose application cache is retrieved." }
1497                 ],
1498                 "returns": [
1499                     { "name": "applicationCache", "$ref": "ApplicationCache", "description": "Relevant application cache data for the document in given frame." }
1500                 ],
1501                 "description": "Returns relevant application cache data for the document in given frame."
1502             }
1503         ],
1504         "events": [
1505             {
1506                 "name": "applicationCacheStatusUpdated",
1507                 "parameters": [
1508                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose application cache updated status." },
1509                     { "name": "manifestURL", "type": "string", "description": "Manifest URL." },
1510                     { "name": "status", "type": "integer", "description": "Updated application cache status." }
1511                 ]
1512             },
1513             {
1514                 "name": "networkStateUpdated",
1515                 "parameters": [
1516                     { "name": "isNowOnline", "type": "boolean" }
1517                 ]
1518             }
1519         ]
1520     },
1521     {
1522         "domain": "FileSystem",
1523         "hidden": true,
1524         "types": [
1525             {
1526                 "id": "Entry",
1527                 "type": "object",
1528                 "properties": [
1529                     { "name": "url", "type": "string", "description": "filesystem: URL for the entry." },
1530                     { "name": "name", "type": "string", "description": "The name of the file or directory." },
1531                     { "name": "isDirectory", "type": "boolean", "description": "True if the entry is a directory." },
1532                     { "name": "mimeType", "type": "string", "optional": true, "description": "MIME type of the entry, available for a file only." },
1533                     { "name": "resourceType", "$ref": "Page.ResourceType", "optional": true, "description": "ResourceType of the entry, available for a file only." },
1534                     { "name": "isTextFile", "type": "boolean", "optional": true, "description": "True if the entry is a text file." }
1535                 ],
1536                 "description": "Represents a browser side file or directory."
1537             },
1538             {
1539                 "id": "Metadata",
1540                 "type": "object",
1541                 "properties": [
1542                     { "name": "modificationTime", "type": "number", "description": "Modification time." },
1543                     { "name": "size", "type": "number", "description": "File size. This field is always zero for directories." }
1544                 ],
1545                 "description": "Represents metadata of a file or entry."
1546             }
1547         ],
1548         "commands": [
1549             {
1550                 "name": "enable",
1551                 "description": "Enables events from backend."
1552             },
1553             {
1554                 "name": "disable",
1555                 "description": "Disables events from backend."
1556             },
1557             {
1558                 "name": "requestFileSystemRoot",
1559                 "async": true,
1560                 "parameters": [
1561                     { "name": "origin", "type": "string", "description": "Security origin of requesting FileSystem. One of frames in current page needs to have this security origin." },
1562                     { "name": "type", "type": "string", "enum": ["temporary", "persistent"], "description": "FileSystem type of requesting FileSystem." }
1563                 ],
1564                 "returns": [
1565                     { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
1566                     { "name": "root", "$ref": "Entry", "optional": true, "description": "Contains root of the requested FileSystem if the command completed successfully." }
1567                 ],
1568                 "description": "Returns root directory of the FileSystem, if exists."
1569             },
1570             {
1571                 "name": "requestDirectoryContent",
1572                 "async": true,
1573                 "parameters": [
1574                     { "name": "url", "type": "string", "description": "URL of the directory that the frontend is requesting to read from." }
1575                 ],
1576                 "returns": [
1577                     { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
1578                     { "name": "entries", "type": "array", "items": { "$ref": "Entry" }, "optional": true, "description": "Contains all entries on directory if the command completed successfully." }
1579                 ],
1580                 "description": "Returns content of the directory."
1581             },
1582             {
1583                 "name": "requestMetadata",
1584                 "async": true,
1585                 "parameters": [
1586                     { "name": "url", "type": "string", "description": "URL of the entry that the frontend is requesting to get metadata from." }
1587                 ],
1588                 "returns": [
1589                     { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
1590                     { "name": "metadata", "$ref": "Metadata", "optional": true, "description": "Contains metadata of the entry if the command completed successfully." }
1591                 ],
1592                 "description": "Returns metadata of the entry."
1593             },
1594             {
1595                 "name": "requestFileContent",
1596                 "async": true,
1597                 "parameters": [
1598                     { "name": "url", "type": "string", "description": "URL of the file that the frontend is requesting to read from." },
1599                     { "name": "readAsText", "type": "boolean", "description": "True if the content should be read as text, otherwise the result will be returned as base64 encoded text." },
1600                     { "name": "start", "type": "integer", "optional": true, "description": "Specifies the start of range to read." },
1601                     { "name": "end", "type": "integer", "optional": true, "description": "Specifies the end of range to read exclusively." },
1602                     { "name": "charset", "type": "string", "optional": true, "description": "Overrides charset of the content when content is served as text." }
1603                 ],
1604                 "returns": [
1605                     { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
1606                     { "name": "content", "type": "string", "optional": true, "description": "Content of the file." },
1607                     { "name": "charset", "type": "string", "optional": true, "description": "Charset of the content if it is served as text." }
1608                 ],
1609                 "description": "Returns content of the file. Result should be sliced into [start, end)."
1610             },
1611             {
1612                 "name": "deleteEntry",
1613                 "async": true,
1614                 "parameters": [
1615                     { "name": "url", "type": "string", "description": "URL of the entry to delete." }
1616                 ],
1617                 "returns": [
1618                     { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise errorCode is set to FileError::ErrorCode value." }
1619                 ],
1620                 "description": "Deletes specified entry. If the entry is a directory, the agent deletes children recursively."
1621             }
1622         ]
1623     },
1624     {
1625         "domain": "DOM",
1626         "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>",
1627         "types": [
1628             {
1629                 "id": "NodeId",
1630                 "type": "integer",
1631                 "description": "Unique DOM node identifier."
1632             },
1633             {
1634                 "id": "Node",
1635                 "type": "object",
1636                 "properties": [
1637                     { "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." },
1638                     { "name": "nodeType", "type": "integer", "description": "<code>Node</code>'s nodeType." },
1639                     { "name": "nodeName", "type": "string", "description": "<code>Node</code>'s nodeName." },
1640                     { "name": "localName", "type": "string", "description": "<code>Node</code>'s localName." },
1641                     { "name": "nodeValue", "type": "string", "description": "<code>Node</code>'s nodeValue." },
1642                     { "name": "childNodeCount", "type": "integer", "optional": true, "description": "Child count for <code>Container</code> nodes." },
1643                     { "name": "children", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Child nodes of this node when requested with children." },
1644                     { "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>." },
1645                     { "name": "documentURL", "type": "string", "optional": true, "description": "Document URL that <code>Document</code> or <code>FrameOwner</code> node points to." },
1646                     { "name": "baseURL", "type": "string", "optional": true, "description": "Base URL that <code>Document</code> or <code>FrameOwner</code> node uses for URL completion." },
1647                     { "name": "publicId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s publicId." },
1648                     { "name": "systemId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s systemId." },
1649                     { "name": "internalSubset", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s internalSubset." },
1650                     { "name": "xmlVersion", "type": "string", "optional": true, "description": "<code>Document</code>'s XML version in case of XML documents." },
1651                     { "name": "name", "type": "string", "optional": true, "description": "<code>Attr</code>'s name." },
1652                     { "name": "value", "type": "string", "optional": true, "description": "<code>Attr</code>'s value." },
1653                     { "name": "frameId", "$ref": "Network.FrameId", "optional": true, "description": "Frame ID for frame owner elements." },
1654                     { "name": "contentDocument", "$ref": "Node", "optional": true, "description": "Content document for frame owner elements." },
1655                     { "name": "shadowRoots", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Shadow root list for given element host." }
1656                 ],
1657                 "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
1658             },
1659             {
1660                 "id": "EventListener",
1661                 "type": "object",
1662                 "hidden": true,
1663                 "properties": [
1664                     { "name": "type", "type": "string", "description": "<code>EventListener</code>'s type." },
1665                     { "name": "useCapture", "type": "boolean", "description": "<code>EventListener</code>'s useCapture." },
1666                     { "name": "isAttribute", "type": "boolean", "description": "<code>EventListener</code>'s isAttribute." },
1667                     { "name": "nodeId", "$ref": "NodeId", "description": "Target <code>DOMNode</code> id." },
1668                     { "name": "handlerBody", "type": "string", "description": "Event handler function body." },
1669                     { "name": "location", "$ref": "Debugger.Location", "optional": true, "description": "Handler code location." },
1670                     { "name": "sourceName", "type": "string", "optional": true, "description": "Source script URL." }
1671                 ],
1672                 "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
1673             },
1674             {
1675                 "id": "RGBA",
1676                 "type": "object",
1677                 "properties": [
1678                     { "name": "r", "type": "integer", "description": "The red component, in the [0-255] range." },
1679                     { "name": "g", "type": "integer", "description": "The green component, in the [0-255] range." },
1680                     { "name": "b", "type": "integer", "description": "The blue component, in the [0-255] range." },
1681                     { "name": "a", "type": "number", "optional": true, "description": "The alpha component, in the [0-1] range (default: 1)." }
1682                 ],
1683                 "description": "A structure holding an RGBA color."
1684             },
1685             {
1686                 "id": "HighlightConfig",
1687                 "type": "object",
1688                 "properties": [
1689                     { "name": "showInfo", "type": "boolean", "optional": true, "description": "Whether the node info tooltip should be shown (default: false)." },
1690                     { "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." },
1691                     { "name": "paddingColor", "$ref": "RGBA", "optional": true, "description": "The padding highlight fill color (default: transparent)." },
1692                     { "name": "borderColor", "$ref": "RGBA", "optional": true, "description": "The border highlight fill color (default: transparent)." },
1693                     { "name": "marginColor", "$ref": "RGBA", "optional": true, "description": "The margin highlight fill color (default: transparent)." }
1694                 ],
1695                 "description": "Configuration data for the highlighting of page elements."
1696             }
1697         ],
1698         "commands": [
1699             {
1700                 "name": "getDocument",
1701                 "returns": [
1702                     { "name": "root", "$ref": "Node", "description": "Resulting node." }
1703                 ],
1704                 "description": "Returns the root DOM node to the caller."
1705             },
1706             {
1707                 "name": "requestChildNodes",
1708                 "parameters": [
1709                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get children for." }
1710                 ],
1711                 "description": "Requests that children of the node with given id are returned to the caller in form of <code>setChildNodes</code> events."
1712             },
1713             {
1714                 "name": "querySelector",
1715                 "parameters": [
1716                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." },
1717                     { "name": "selector", "type": "string", "description": "Selector string." }
1718                 ],
1719                 "returns": [
1720                     { "name": "nodeId", "$ref": "NodeId", "description": "Query selector result." }
1721                 ],
1722                 "description": "Executes <code>querySelector</code> on a given node."
1723             },
1724             {
1725                 "name": "querySelectorAll",
1726                 "parameters": [
1727                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." },
1728                     { "name": "selector", "type": "string", "description": "Selector string." }
1729                 ],
1730                 "returns": [
1731                     { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Query selector result." }
1732                 ],
1733                 "description": "Executes <code>querySelectorAll</code> on a given node."
1734             },
1735             {
1736                 "name": "setNodeName",
1737                 "parameters": [
1738                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set name for." },
1739                     { "name": "name", "type": "string", "description": "New node's name." }
1740                 ],
1741                 "returns": [
1742                     { "name": "nodeId", "$ref": "NodeId", "description": "New node's id." }
1743                 ],
1744                 "description": "Sets node name for a node with given id."
1745             },
1746             {
1747                 "name": "setNodeValue",
1748                 "parameters": [
1749                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set value for." },
1750                     { "name": "value", "type": "string", "description": "New node's value." }
1751                 ],
1752                 "description": "Sets node value for a node with given id."
1753             },
1754             {
1755                 "name": "removeNode",
1756                 "parameters": [
1757                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to remove." }
1758                 ],
1759                 "description": "Removes node with given id."
1760             },
1761             {
1762                 "name": "setAttributeValue",
1763                 "parameters": [
1764                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attribute for." },
1765                     { "name": "name", "type": "string", "description": "Attribute name." },
1766                     { "name": "value", "type": "string", "description": "Attribute value." }
1767                 ],
1768                 "description": "Sets attribute for an element with given id."
1769             },
1770             {
1771                 "name": "setAttributesAsText",
1772                 "parameters": [
1773                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attributes for." },
1774                     { "name": "text", "type": "string", "description": "Text with a number of attributes. Will parse this text using HTML parser." },
1775                     { "name": "name", "type": "string", "optional": true, "description": "Attribute name to replace with new attributes derived from text in case text parsed successfully." }
1776                 ],
1777                 "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."
1778             },
1779             {
1780                 "name": "removeAttribute",
1781                 "parameters": [
1782                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to remove attribute from." },
1783                     { "name": "name", "type": "string", "description": "Name of the attribute to remove." }
1784                 ],
1785                 "description": "Removes attribute with given name from an element with given id."
1786             },
1787             {
1788                 "name": "getEventListenersForNode",
1789                 "parameters": [
1790                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get listeners for." }
1791                 ],
1792                 "returns": [
1793                     { "name": "listeners", "type": "array", "items": { "$ref": "EventListener"}, "description": "Array of relevant listeners." }
1794                 ],
1795                 "description": "Returns event listeners relevant to the node.",
1796                 "hidden": true
1797             },
1798             {
1799                 "name": "getOuterHTML",
1800                 "parameters": [
1801                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get markup for." }
1802                 ],
1803                 "returns": [
1804                     { "name": "outerHTML", "type": "string", "description": "Outer HTML markup." }
1805                 ],
1806                 "description": "Returns node's HTML markup."
1807             },
1808             {
1809                 "name": "setOuterHTML",
1810                 "parameters": [
1811                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set markup for." },
1812                     { "name": "outerHTML", "type": "string", "description": "Outer HTML markup to set." }
1813                 ],
1814                 "description": "Sets node HTML markup, returns new node id."
1815             },
1816             {
1817                 "name": "performSearch",
1818                 "parameters": [
1819                     { "name": "query", "type": "string", "description": "Plain text or query selector or XPath search query." }
1820                 ],
1821                 "returns": [
1822                     { "name": "searchId", "type": "string", "description": "Unique search session identifier." },
1823                     { "name": "resultCount", "type": "integer", "description": "Number of search results." }
1824                 ],
1825                 "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.",
1826                 "hidden": true
1827             },
1828             {
1829                 "name": "getSearchResults",
1830                 "parameters": [
1831                     { "name": "searchId", "type": "string", "description": "Unique search session identifier." },
1832                     { "name": "fromIndex", "type": "integer", "description": "Start index of the search result to be returned." },
1833                     { "name": "toIndex", "type": "integer", "description": "End index of the search result to be returned." }
1834                 ],
1835                 "returns": [
1836                     { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the search result nodes." }
1837                 ],
1838                 "description": "Returns search results from given <code>fromIndex</code> to given <code>toIndex</code> from the sarch with the given identifier.",
1839                 "hidden": true
1840             },
1841             {
1842                 "name": "discardSearchResults",
1843                 "parameters": [
1844                     { "name": "searchId", "type": "string", "description": "Unique search session identifier." }
1845                 ],
1846                 "description": "Discards search results from the session with the given id. <code>getSearchResults</code> should no longer be called for that search.",
1847                 "hidden": true
1848             },
1849             {
1850                 "name": "requestNode",
1851                 "parameters": [
1852                     { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "JavaScript object id to convert into node." }
1853                 ],
1854                 "returns": [
1855                     { "name": "nodeId", "$ref": "NodeId", "description": "Node id for given object." }
1856                 ],
1857                 "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."
1858             },
1859             {
1860                 "name": "setInspectModeEnabled",
1861                 "hidden": true,
1862                 "parameters": [
1863                     { "name": "enabled", "type": "boolean", "description": "True to enable inspection mode, false to disable it." },
1864                     { "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>." }
1865                 ],
1866                 "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspect' command upon element selection."
1867             },
1868             {
1869                 "name": "highlightRect",
1870                 "parameters": [
1871                     { "name": "x", "type": "integer", "description": "X coordinate" },
1872                     { "name": "y", "type": "integer", "description": "Y coordinate" },
1873                     { "name": "width", "type": "integer", "description": "Rectangle width" },
1874                     { "name": "height", "type": "integer", "description": "Rectangle height" },
1875                     { "name": "color", "$ref": "RGBA", "optional": true, "description": "The highlight fill color (default: transparent)." },
1876                     { "name": "outlineColor", "$ref": "RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." }
1877                 ],
1878                 "description": "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport."
1879             },
1880             {
1881                 "name": "highlightNode",
1882                 "parameters": [
1883                     { "name": "highlightConfig", "$ref": "HighlightConfig",  "description": "A descriptor for the highlight appearance." },
1884                     { "name": "nodeId", "$ref": "NodeId", "optional": true, "description": "Identifier of the node to highlight." },
1885                     { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "optional": true, "description": "JavaScript object id of the node to be highlighted." }
1886                 ],
1887                 "description": "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified."
1888             },
1889             {
1890                 "name": "hideHighlight",
1891                 "description": "Hides DOM node highlight."
1892             },
1893             {
1894                 "name": "highlightFrame",
1895                 "parameters": [
1896                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame to highlight." },
1897                     { "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." },
1898                     { "name": "contentOutlineColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight outline color (default: transparent)." }
1899                 ],
1900                 "description": "Highlights owner element of the frame with given id.",
1901                 "hidden": true
1902             },
1903             {
1904                 "name": "pushNodeByPathToFrontend",
1905                 "parameters": [
1906                     { "name": "path", "type": "string", "description": "Path to node in the proprietary format." }
1907                 ],
1908                 "returns": [
1909                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node for given path." }
1910                 ],
1911                 "description": "Requests that the node is sent to the caller given its path. // FIXME, use XPath",
1912                 "hidden": true
1913             },
1914             {
1915                 "name": "resolveNode",
1916                 "parameters": [
1917                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to resolve." },
1918                     { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }
1919                 ],
1920                 "returns": [
1921                     { "name": "object", "$ref": "Runtime.RemoteObject", "description": "JavaScript object wrapper for given node." }
1922                 ],
1923                 "description": "Resolves JavaScript node object for given node id."
1924             },
1925             {
1926                 "name": "getAttributes",
1927                 "parameters": [
1928                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to retrieve attibutes for." }
1929                 ],
1930                 "returns": [
1931                     { "name": "attributes", "type": "array", "items": { "type": "string" }, "description": "An interleaved array of node attribute names and values." }
1932                 ],
1933                 "description": "Returns attributes for the specified node."
1934             },
1935             {
1936                 "name": "moveTo",
1937                 "parameters": [
1938                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to drop." },
1939                     { "name": "targetNodeId", "$ref": "NodeId", "description": "Id of the element to drop into." },
1940                     { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional": true, "description": "Drop node before given one." }
1941                 ],
1942                 "returns": [
1943                     { "name": "nodeId", "$ref": "NodeId", "description": "New id of the moved node." }
1944                 ],
1945                 "description": "Moves node into the new container, places it before the given anchor."
1946             },
1947             {
1948                 "name": "undo",
1949                 "description": "Undoes the last performed action.",
1950                 "hidden": true
1951             },
1952             {
1953                 "name": "redo",
1954                 "description": "Re-does the last undone action.",
1955                 "hidden": true
1956             },
1957             {
1958                 "name": "markUndoableState",
1959                 "description": "Marks last undoable state.",
1960                 "hidden": true
1961             },
1962             {
1963                 "name": "focus",
1964                 "parameters": [
1965                     { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Id of the node to focus." }
1966                 ],
1967                 "description": "Focuses the given element.",
1968                 "hidden": true
1969             }
1970         ],
1971         "events": [
1972             {
1973                 "name": "documentUpdated",
1974                 "description": "Fired when <code>Document</code> has been totally updated. Node ids are no longer valid."
1975             },
1976             {
1977                 "name": "setChildNodes",
1978                 "parameters": [
1979                     { "name": "parentId", "$ref": "NodeId", "description": "Parent node id to populate with children." },
1980                     { "name": "nodes", "type": "array", "items": { "$ref": "Node"}, "description": "Child nodes array." }
1981                 ],
1982                 "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids."
1983             },
1984             {
1985                 "name": "attributeModified",
1986                 "parameters": [
1987                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
1988                     { "name": "name", "type": "string", "description": "Attribute name." },
1989                     { "name": "value", "type": "string", "description": "Attribute value." }
1990                 ],
1991                 "description": "Fired when <code>Element</code>'s attribute is modified."
1992             },
1993             {
1994                 "name": "attributeRemoved",
1995                 "parameters": [
1996                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
1997                     { "name": "name", "type": "string", "description": "A ttribute name." }
1998                 ],
1999                 "description": "Fired when <code>Element</code>'s attribute is removed."
2000             },
2001             {
2002                 "name": "inlineStyleInvalidated",
2003                 "parameters": [
2004                     { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the nodes for which the inline styles have been invalidated." }
2005                 ],
2006                 "description": "Fired when <code>Element</code>'s inline style is modified via a CSS property modification.",
2007                 "hidden": true
2008             },
2009             {
2010                 "name": "characterDataModified",
2011                 "parameters": [
2012                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
2013                     { "name": "characterData", "type": "string", "description": "New text value." }
2014                 ],
2015                 "description": "Mirrors <code>DOMCharacterDataModified</code> event."
2016             },
2017             {
2018                 "name": "childNodeCountUpdated",
2019                 "parameters": [
2020                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
2021                     { "name": "childNodeCount", "type": "integer", "description": "New node count." }
2022                 ],
2023                 "description": "Fired when <code>Container</code>'s child node count has changed."
2024             },
2025             {
2026                 "name": "childNodeInserted",
2027                 "parameters": [
2028                     { "name": "parentNodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
2029                     { "name": "previousNodeId", "$ref": "NodeId", "description": "If of the previous siblint." },
2030                     { "name": "node", "$ref": "Node", "description": "Inserted node data." }
2031                 ],
2032                 "description": "Mirrors <code>DOMNodeInserted</code> event."
2033             },
2034             {
2035                 "name": "childNodeRemoved",
2036                 "parameters": [
2037                     { "name": "parentNodeId", "$ref": "NodeId", "description": "Parent id." },
2038                     { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has been removed." }
2039                 ],
2040                 "description": "Mirrors <code>DOMNodeRemoved</code> event."
2041             },
2042             {
2043                 "name": "shadowRootPushed",
2044                 "parameters": [
2045                     { "name": "hostId", "$ref": "NodeId", "description": "Host element id." },
2046                     { "name": "root", "$ref": "Node", "description": "Shadow root." }
2047                 ],
2048                 "description": "Called when shadow root is pushed into the element.",
2049                 "hidden": true
2050             },
2051             {
2052                 "name": "shadowRootPopped",
2053                 "parameters": [
2054                     { "name": "hostId", "$ref": "NodeId", "description": "Host element id." },
2055                     { "name": "rootId", "$ref": "NodeId", "description": "Shadow root id." }
2056                 ],
2057                 "description": "Called when shadow root is popped from the element.",
2058                 "hidden": true
2059             }
2060         ]
2061     },
2062     {
2063         "domain": "CSS",
2064         "hidden": true,
2065         "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.",
2066         "types": [
2067             {
2068                 "id": "StyleSheetId",
2069                 "type": "string"
2070             },
2071             {
2072                 "id": "CSSStyleId",
2073                 "type": "object",
2074                 "properties": [
2075                     { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Enclosing stylesheet identifier." },
2076                     { "name": "ordinal", "type": "integer", "description": "The style ordinal within the stylesheet." }
2077                 ],
2078                 "description": "This object identifies a CSS style in a unique way."
2079             },
2080             {
2081                 "id": "StyleSheetOrigin",
2082                 "type": "string",
2083                 "enum": ["user", "user-agent", "inspector", "regular"],
2084                 "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."
2085             },
2086             {
2087                 "id": "CSSRuleId",
2088                 "type": "object",
2089                 "properties": [
2090                     { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Enclosing stylesheet identifier." },
2091                     { "name": "ordinal", "type": "integer", "description": "The rule ordinal within the stylesheet." }
2092                 ],
2093                 "description": "This object identifies a CSS rule in a unique way."
2094             },
2095             {
2096                 "id": "PseudoIdMatches",
2097                 "type": "object",
2098                 "properties": [
2099                     { "name": "pseudoId", "type": "integer", "description": "Pseudo style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstants.h</code>)."},
2100                     { "name": "matches", "type": "array", "items": { "$ref": "RuleMatch" }, "description": "Matches of CSS rules applicable to the pseudo style."}
2101                 ],
2102                 "description": "CSS rule collection for a single pseudo style."
2103             },
2104             {
2105                 "id": "InheritedStyleEntry",
2106                 "type": "object",
2107                 "properties": [
2108                     { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "The ancestor node's inline style, if any, in the style inheritance chain." },
2109                     { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "RuleMatch" }, "description": "Matches of CSS rules matching the ancestor node in the style inheritance chain." }
2110                 ],
2111                 "description": "CSS rule collection for a single pseudo style."
2112             },
2113             {
2114                 "id": "RuleMatch",
2115                 "type": "object",
2116                 "properties": [
2117                     { "name": "rule", "$ref": "CSSRule", "description": "CSS rule in the match." },
2118                     { "name": "matchingSelectors", "type": "array", "items": { "type": "integer" }, "description": "Matching selector indices in the rule's selectorList selectors (0-based)." }
2119                 ],
2120                 "description": "Match data for a CSS rule."
2121             },
2122             {
2123                 "id": "SelectorList",
2124                 "type": "object",
2125                 "properties": [
2126                     { "name": "selectors", "type": "array", "items": { "type": "string" }, "description": "Selectors in the list." },
2127                     { "name": "text", "type": "string", "description": "Rule selector text." },
2128                     { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Rule selector range in the underlying resource (if available)." }
2129                 ],
2130                 "description": "Selector list data."
2131             },
2132             {
2133                 "id": "CSSStyleAttribute",
2134                 "type": "object",
2135                 "properties": [
2136                     { "name": "name", "type": "string", "description": "DOM attribute name (e.g. \"width\")."},
2137                     { "name": "style", "$ref": "CSSStyle", "description": "CSS style generated by the respective DOM attribute."}
2138                 ],
2139                 "description": "CSS style information for a DOM style attribute."
2140             },
2141             {
2142                 "id": "CSSStyleSheetHeader",
2143                 "type": "object",
2144                 "properties": [
2145                     { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The stylesheet identifier."},
2146                     { "name": "frameId", "$ref": "Network.FrameId", "description": "Owner frame identifier."},
2147                     { "name": "sourceURL", "type": "string", "description": "Stylesheet resource URL."},
2148                     { "name": "origin", "$ref": "StyleSheetOrigin", "description": "Stylesheet origin."},
2149                     { "name": "title", "type": "string", "description": "Stylesheet title."},
2150                     { "name": "disabled", "type": "boolean", "description": "Denotes whether the stylesheet is disabled."}
2151                 ],
2152                 "description": "CSS stylesheet metainformation."
2153             },
2154             {
2155                 "id": "CSSStyleSheetBody",
2156                 "type": "object",
2157                 "properties": [
2158                     { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The stylesheet identifier."},
2159                     { "name": "rules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "Stylesheet resource URL."},
2160                     { "name": "text", "type": "string", "optional": true, "description": "Stylesheet resource contents (if available)."}
2161                 ],
2162                 "description": "CSS stylesheet contents."
2163             },
2164             {
2165                 "id": "CSSRule",
2166                 "type": "object",
2167                 "properties": [
2168                     { "name": "ruleId", "$ref": "CSSRuleId", "optional": true, "description": "The CSS rule identifier (absent for user agent stylesheet and user-specified stylesheet rules)."},
2169                     { "name": "selectorList", "$ref": "SelectorList", "description": "Rule selector data." },
2170                     { "name": "sourceURL", "type": "string", "optional": true, "description": "Parent stylesheet resource URL (for regular rules)."},
2171                     { "name": "sourceLine", "type": "integer", "description": "Line ordinal of the rule selector start character in the resource."},
2172                     { "name": "origin", "$ref": "StyleSheetOrigin", "description": "Parent stylesheet's origin."},
2173                     { "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." },
2174                     { "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." }
2175                 ],
2176                 "description": "CSS rule representation."
2177             },
2178             {
2179                 "id": "SourceRange",
2180                 "type": "object",
2181                 "properties": [
2182                     { "name": "start", "type": "integer", "description": "Start of range (inclusive)."},
2183                     { "name": "end", "type": "integer", "description": "End of range (exclusive)."}
2184                 ],
2185                 "description": "Text range within a resource."
2186             },
2187             {
2188                 "id": "ShorthandEntry",
2189                 "type": "object",
2190                 "properties": [
2191                     { "name": "name", "type": "string", "description": "Shorthand name." },
2192                     { "name": "value", "type": "string", "description": "Shorthand value." }
2193                 ]
2194             },
2195             {
2196                 "id": "CSSPropertyInfo",
2197                 "type": "object",
2198                 "properties": [
2199                     { "name": "name", "type": "string", "description": "Property name." },
2200                     { "name": "longhands", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Longhand property names." }
2201                 ]
2202             },
2203             {
2204                 "id": "CSSComputedStyleProperty",
2205                 "type": "object",
2206                 "properties": [
2207                     { "name": "name", "type": "string", "description": "Computed style property name." },
2208                     { "name": "value", "type": "string", "description": "Computed style property value." }
2209                 ]
2210             },
2211             {
2212                 "id": "CSSStyle",
2213                 "type": "object",
2214                 "properties": [
2215                     { "name": "styleId", "$ref": "CSSStyleId", "optional": true, "description": "The CSS style identifier (absent for attribute styles)." },
2216                     { "name": "cssProperties", "type": "array", "items": { "$ref": "CSSProperty" }, "description": "CSS properties in the style." },
2217                     { "name": "shorthandEntries", "type": "array", "items": { "$ref": "ShorthandEntry" }, "description": "Computed values for all shorthands found in the style." },
2218                     { "name": "cssText", "type": "string", "optional": true, "description": "Style declaration text (if available)." },
2219                     { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if available)." },
2220                     { "name": "width", "type": "string", "optional": true, "description": "The effective \"width\" property value from this style." },
2221                     { "name": "height", "type": "string", "optional": true, "description": "The effective \"height\" property value from this style." }
2222                 ],
2223                 "description": "CSS style representation."
2224             },
2225             {
2226                 "id": "CSSProperty",
2227                 "type": "object",
2228                 "properties": [
2229                     { "name": "name", "type": "string", "description": "The property name." },
2230                     { "name": "value", "type": "string", "description": "The property value." },
2231                     { "name": "priority", "type": "string", "optional": true, "description": "The property priority (implies \"\" if absent)." },
2232                     { "name": "implicit", "type": "boolean", "optional": true, "description": "Whether the property is implicit (implies <code>false</code> if absent)." },
2233                     { "name": "text", "type": "string", "optional": true, "description": "The full property text as specified in the style." },
2234                     { "name": "parsedOk", "type": "boolean", "optional": true, "description": "Whether the property is understood by the browser (implies <code>true</code> if absent)." },
2235                     { "name": "status", "type": "string", "enum": ["active", "inactive", "disabled", "style"], "optional": true, "description": "The property status: \"active\" (implied if absent) 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\" if the property is reported by the browser rather than by the CSS source parser." },
2236                     { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." }
2237                 ],
2238                 "description": "CSS style effective visual dimensions and source offsets."
2239             },
2240             {
2241                 "id": "CSSMedia",
2242                 "type": "object",
2243                 "properties": [
2244                     { "name": "text", "type": "string", "description": "Media query text." },
2245                     { "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." },
2246                     { "name": "sourceURL", "type": "string", "optional": true, "description": "URL of the document containing the media query description." },
2247                     { "name": "sourceLine", "type": "integer", "optional": true, "description": "Line in the document containing the media query (not defined for the \"stylesheet\" source)." }
2248                 ],
2249                 "description": "CSS media query descriptor."
2250             },
2251             {
2252                 "id": "SelectorProfileEntry",
2253                 "type": "object",
2254                 "properties": [
2255                     { "name": "selector", "type": "string", "description": "CSS selector of the corresponding rule." },
2256                     { "name": "url", "type": "string", "description": "URL of the resource containing the corresponding rule." },
2257                     { "name": "lineNumber", "type": "integer", "description": "Selector line number in the resource for the corresponding rule." },
2258                     { "name": "time", "type": "number", "description": "Total time this rule handling contributed to the browser running time during profiling (in milliseconds.)" },
2259                     { "name": "hitCount", "type": "integer", "description": "Number of times this rule was considered a candidate for matching against DOM elements." },
2260                     { "name": "matchCount", "type": "integer", "description": "Number of times this rule actually matched a DOM element." }
2261                 ],
2262                 "description": "CSS selector profile entry."
2263             },
2264             {
2265                 "id": "SelectorProfile",
2266                 "type": "object",
2267                 "properties": [
2268                     { "name": "totalTime", "type": "number", "description": "Total processing time for all selectors in the profile (in milliseconds.)" },
2269                     { "name": "data", "type": "array", "items": { "$ref": "SelectorProfileEntry" }, "description": "CSS selector profile entries." }
2270                 ]
2271             },
2272             {
2273                 "id": "Region",
2274                 "type": "object",
2275                 "properties": [
2276                     { "name": "regionOverset", "type": "string", "enum": ["overset", "fit", "empty"], "description": "The \"overset\" attribute of a Named Flow." },
2277                     { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The corresponding DOM node id." }
2278                 ],
2279                 "description": "This object represents a region that flows from a Named Flow.",
2280                 "hidden": true
2281             },
2282             {
2283                 "id": "NamedFlow",
2284                 "type": "object",
2285                 "properties": [
2286                     { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." },
2287                     { "name": "name", "type": "string", "description": "Named Flow identifier." },
2288                     { "name": "overset", "type": "boolean", "description": "The \"overset\" attribute of a Named Flow." },
2289                     { "name": "content", "type": "array", "items": { "$ref": "DOM.NodeId" }, "description": "An array of nodes that flow into the Named Flow." },
2290                     { "name": "regions", "type": "array", "items": { "$ref": "Region" }, "description": "An array of regions associated with the Named Flow." }
2291                 ],
2292                 "description": "This object represents a Named Flow.",
2293                 "hidden": true
2294             }
2295         ],
2296         "commands": [
2297             {
2298                 "name": "enable",
2299                 "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."
2300             },
2301             {
2302                 "name": "disable",
2303                 "description": "Disables the CSS agent for the given page."
2304             },
2305             {
2306                 "name": "getMatchedStylesForNode",
2307                 "parameters": [
2308                     { "name": "nodeId", "$ref": "DOM.NodeId" },
2309                     { "name": "includePseudo", "type": "boolean", "optional": true, "description": "Whether to include pseudo styles (default: true)." },
2310                     { "name": "includeInherited", "type": "boolean", "optional": true, "description": "Whether to include inherited styles (default: true)." }
2311                 ],
2312                 "returns": [
2313                     { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "RuleMatch" }, "optional": true, "description": "CSS rules matching this node, from all applicable stylesheets." },
2314                     { "name": "pseudoElements", "type": "array", "items": { "$ref": "PseudoIdMatches" }, "optional": true, "description": "Pseudo style matches for this node." },
2315                     { "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)." }
2316                 ],
2317                 "description": "Returns requested styles for a DOM node identified by <code>nodeId</code>."
2318             },
2319             {
2320                 "name": "getInlineStylesForNode",
2321                 "parameters": [
2322                     { "name": "nodeId", "$ref": "DOM.NodeId" }
2323                 ],
2324                 "returns": [
2325                     { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "Inline style for the specified DOM node." },
2326                     { "name": "attributesStyle", "$ref": "CSSStyle", "optional": true, "description": "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."}
2327                 ],
2328                 "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>."
2329             },
2330             {
2331                 "name": "getComputedStyleForNode",
2332                 "parameters": [
2333                     { "name": "nodeId", "$ref": "DOM.NodeId" }
2334                 ],
2335                 "returns": [
2336                     { "name": "computedStyle", "type": "array", "items": { "$ref": "CSSComputedStyleProperty" }, "description": "Computed style for the specified DOM node." }
2337                 ],
2338                 "description": "Returns the computed style for a DOM node identified by <code>nodeId</code>."
2339             },
2340             {
2341                 "name": "getAllStyleSheets",
2342                 "returns": [
2343                     { "name": "headers", "type": "array", "items": { "$ref": "CSSStyleSheetHeader" }, "description": "Descriptor entries for all available stylesheets." }
2344                 ],
2345                 "description": "Returns metainfo entries for all known stylesheets."
2346             },
2347             {
2348                 "name": "getStyleSheet",
2349                 "parameters": [
2350                     { "name": "styleSheetId", "$ref": "StyleSheetId" }
2351                 ],
2352                 "returns": [
2353                     { "name": "styleSheet", "$ref": "CSSStyleSheetBody", "description": "Stylesheet contents for the specified <code>styleSheetId</code>." }
2354                 ],
2355                 "description": "Returns stylesheet data for the specified <code>styleSheetId</code>."
2356             },
2357             {
2358                 "name": "getStyleSheetText",
2359                 "parameters": [
2360                     { "name": "styleSheetId", "$ref": "StyleSheetId" }
2361                 ],
2362                 "returns": [
2363                     { "name": "text", "type": "string", "description": "The stylesheet text." }
2364                 ],
2365                 "description": "Returns the current textual content and the URL for a stylesheet."
2366             },
2367             {
2368                 "name": "setStyleSheetText",
2369                 "parameters": [
2370                     { "name": "styleSheetId", "$ref": "StyleSheetId" },
2371                     { "name": "text", "type": "string" }
2372                 ],
2373                 "description": "Sets the new stylesheet text, thereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet."
2374             },
2375             {
2376                 "name": "setPropertyText",
2377                 "parameters": [
2378                     { "name": "styleId", "$ref": "CSSStyleId" },
2379                     { "name": "propertyIndex", "type": "integer" },
2380                     { "name": "text", "type": "string" },
2381                     { "name": "overwrite", "type": "boolean" }
2382                 ],
2383                 "returns": [
2384                     { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the property text modification." }
2385                 ],
2386                 "description": "Sets the new <code>text</code> for a property in the respective style, at offset <code>propertyIndex</code>. If <code>overwrite</code> is <code>true</code>, a property at the given offset is overwritten, otherwise inserted. <code>text</code> entirely replaces the property <code>name: value</code>."
2387             },
2388             {
2389                 "name": "toggleProperty",
2390                 "parameters": [
2391                     { "name": "styleId", "$ref": "CSSStyleId" },
2392                     { "name": "propertyIndex", "type": "integer" },
2393                     { "name": "disable", "type": "boolean" }
2394                 ],
2395                 "returns": [
2396                     { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the property toggling." }
2397                 ],
2398                 "description": "Toggles the property in the respective style, at offset <code>propertyIndex</code>. The <code>disable</code> parameter denotes whether the property should be disabled (i.e. removed from the style declaration). If <code>disable == false</code>, the property gets put back into its original place in the style declaration."
2399             },
2400             {
2401                 "name": "setRuleSelector",
2402                 "parameters": [
2403                     { "name": "ruleId", "$ref": "CSSRuleId" },
2404                     { "name": "selector", "type": "string" }
2405                 ],
2406                 "returns": [
2407                     { "name": "rule", "$ref": "CSSRule", "description": "The resulting rule after the selector modification." }
2408                 ],
2409                 "description": "Modifies the rule selector."
2410             },
2411             {
2412                 "name": "addRule",
2413                 "parameters": [
2414                     { "name": "contextNodeId", "$ref": "DOM.NodeId" },
2415                     { "name": "selector", "type": "string" }
2416                 ],
2417                 "returns": [
2418                     { "name": "rule", "$ref": "CSSRule", "description": "The newly created rule." }
2419                 ],
2420                 "description": "Creates a new empty rule with the given <code>selector</code> in a special \"inspector\" stylesheet in the owner document of the context node."
2421             },
2422             {
2423                 "name": "getSupportedCSSProperties",
2424                 "returns": [
2425                     { "name": "cssProperties", "type": "array", "items": { "$ref": "CSSPropertyInfo" }, "description": "Supported property metainfo." }
2426                 ],
2427                 "description": "Returns all supported CSS property names."
2428             },
2429             {
2430                 "name": "forcePseudoState",
2431                 "parameters": [
2432                     { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The element id for which to force the pseudo state." },
2433                     { "name": "forcedPseudoClasses", "type": "array", "items": { "type": "string", "enum": ["active", "focus", "hover", "visited"] }, "description": "Element pseudo classes to force when computing the element's style." }
2434                 ],
2435                 "description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser."
2436             },
2437             {
2438                 "name": "startSelectorProfiler"
2439             },
2440             {
2441                 "name": "stopSelectorProfiler",
2442                 "returns": [
2443                     { "name": "profile", "$ref": "SelectorProfile" }
2444                 ]
2445             },
2446             {
2447                 "name": "getNamedFlowCollection",
2448                 "parameters": [
2449                     { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id for which to get the Named Flow Collection." }
2450                 ],
2451                 "returns": [
2452                     { "name": "namedFlows", "type": "array", "items": { "$ref": "NamedFlow" }, "description": "An array containing the Named Flows in the document." }
2453                 ],
2454                 "description": "Returns the Named Flows from the document.",
2455                 "hidden": true
2456             }
2457         ],
2458         "events": [
2459             {
2460                 "name": "mediaQueryResultChanged",
2461                 "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."
2462             },
2463             {
2464                 "name": "styleSheetChanged",
2465                 "parameters": [
2466                     { "name": "styleSheetId", "$ref": "StyleSheetId" }
2467                 ],
2468                 "description": "Fired whenever a stylesheet is changed as a result of the client operation."
2469             },
2470             {
2471                 "name": "namedFlowCreated",
2472                 "parameters": [
2473                     { "name": "namedFlow", "$ref": "NamedFlow", "description": "The new Named Flow." }
2474                 ],
2475                 "description": "Fires when a Named Flow is created.",
2476                 "hidden": true
2477             },
2478             {
2479                 "name": "namedFlowRemoved",
2480                 "parameters": [
2481                     { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." },
2482                     { "name": "flowName", "type": "string", "description": "Identifier of the removed Named Flow." }
2483                 ],
2484                 "description": "Fires when a Named Flow is removed: has no associated content nodes and regions.",
2485                 "hidden": true
2486             },
2487             {
2488                 "name": "regionLayoutUpdated",
2489                 "parameters": [
2490                     { "name": "namedFlow", "$ref": "NamedFlow", "description": "The Named Flow whose layout may have changed." }
2491                 ],
2492                 "description": "Fires when a Named Flow's layout may have changed.",
2493                 "hidden": true
2494             }
2495         ]
2496     },
2497     {
2498         "domain": "Timeline",
2499         "description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.",
2500         "types": [
2501             {
2502                 "id": "TimelineEvent",
2503                 "type": "object",
2504                 "properties": [
2505                     { "name": "type", "type": "string", "description": "Event type." },
2506                     { "name": "data", "type": "object", "description": "Event data." },
2507                     { "name": "children", "type": "array", "optional": true, "items": { "$ref": "TimelineEvent" }, "description": "Nested records." }
2508                 ],
2509                 "description": "Timeline record contains information about the recorded activity."
2510             }
2511         ],
2512         "commands": [
2513             {
2514                 "name": "start",
2515                 "parameters": [
2516                     { "name": "maxCallStackDepth", "optional": true, "type": "integer", "description": "Samples JavaScript stack traces up to <code>maxCallStackDepth</code>, defaults to 5." }
2517                 ],
2518                 "description": "Starts capturing instrumentation events."
2519             },
2520             {
2521                 "name": "stop",
2522                 "description": "Stops capturing instrumentation events."
2523             },
2524             {
2525                 "name": "setIncludeMemoryDetails",