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