• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[
2    {
3        "domain": "Inspector",
4        "types": [],
5        "commands": [
6        ],
7        "events": [
8            {
9                "name": "frontendReused"
10            },
11            {
12                "name": "bringToFront"
13            },
14            {
15                "name": "disconnectFromBackend"
16            },
17            {
18                "name": "reset"
19            },
20            {
21                "name": "showPanel",
22                "parameters": [
23                    { "name": "panel", "type": "string" }
24                ]
25            },
26            {
27                "name": "startUserInitiatedDebugging"
28            },
29            {
30                "name": "evaluateForTestInFrontend",
31                "parameters": [
32                    { "name": "testCallId", "type": "integer" },
33                    { "name": "script", "type": "string" }
34                ]
35            },
36            {
37                "name": "inspect",
38                "parameters": [
39                    { "name": "object", "$ref": "Runtime.RemoteObject" },
40                    { "name": "hints", "type": "object" }
41                ]
42            },
43            {
44                "name": "didCreateWorker",
45                "parameters": [
46                    { "name": "id", "type": "integer" },
47                    { "name": "url", "type": "string" },
48                    { "name": "isShared", "type": "boolean" }
49                ]
50            },
51            {
52                "name": "didDestroyWorker",
53                "parameters": [
54                    { "name": "id", "type": "integer" }
55                ]
56            }
57        ]
58    },
59    {
60        "domain": "Page",
61        "types": [],
62        "commands": [
63            {
64                "name": "addScriptToEvaluateOnLoad",
65                "parameters": [
66                    { "name": "scriptSource", "type": "string" }
67                ]
68            },
69            {
70                "name": "removeAllScriptsToEvaluateOnLoad"
71            },
72            {
73                "name": "reloadPage",
74                "parameters": [
75                    { "name": "ignoreCache", "type": "boolean", "optional": true }
76                ]
77            },
78            {
79                "name": "openInInspectedWindow",
80                "parameters": [
81                    { "name": "url", "type": "string" }
82                ]
83            },
84            {
85                "name": "setUserAgentOverride",
86                "parameters": [
87                    { "name": "userAgent", "type": "string" }
88                ]
89            },
90            {
91                "name": "getCookies",
92                "returns": [
93                    { "name": "cookies", "type": "array", "items": { "$ref": "Cookie"} },
94                    { "name": "cookiesString", "type": "string" }
95                ]
96            },
97            {
98                "name": "deleteCookie",
99                "parameters": [
100                    { "name": "cookieName", "type": "string" },
101                    { "name": "domain", "type": "string" }
102                ]
103            }
104        ],
105        "events": [
106            {
107                "name": "inspectedURLChanged",
108                "parameters": [
109                    { "name": "url", "type": "string" }
110                ]
111            },
112            {
113                "name": "domContentEventFired",
114                "parameters": [
115                    { "name": "timestamp", "type": "number" }
116                ]
117            },
118            {
119                "name": "loadEventFired",
120                "parameters": [
121                    { "name": "timestamp", "type": "number" }
122                ]
123            }
124        ]
125    },
126    {
127        "domain": "Runtime",
128        "description": "Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose type, string representation and unique identifier that can be used for further object interaction. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.",
129        "types": [
130            {
131                "id": "RemoteObject",
132                "type": "object",
133                "description": "Mirror object referencing original JavaScript object.",
134                "properties": [
135                    { "name": "description", "type": "string", "description": "String representation of the object." },
136                    { "name": "hasChildren", "type": "integer", "optional": true, "description": "True when this object can be queried for children." },
137                    { "name": "objectId", "type": "string", "optional": true, "description": "Unique object identifier (for non-primitive values)." },
138                    { "name": "type", "type": "string", "enum": ["object", "array", "function", "null", "node", "undefined", "string", "number", "boolean", "error", "regexp", "date"], "description": "Object type." }
139                ]
140            },
141            {
142                "id": "RemoteProperty",
143                "type": "object",
144                "description": "Mirror object property.",
145                "properties": [
146                    { "name": "name", "type": "string", "description": "Property name." },
147                    { "name": "value", "$ref": "RemoteObject", "description": "Property value." },
148                    { "name": "isGetter", "type": "string", "description": "True if this property is getter." }
149                ]
150            }
151        ],
152        "commands": [
153            {
154                "name": "evaluate",
155                "parameters": [
156                    { "name": "expression", "type": "string", "description": "Expression to evaluate." },
157                    { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." },
158                    { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Determines whether Command Line API should be available during the evaluation." }
159                ],
160                "returns": [
161                    { "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." }
162                ],
163                "description": "Evaluate expression on global object."
164            },
165            {
166                "name": "evaluateOn",
167                "parameters": [
168                    { "name": "objectId", "type": "string", "description": "Identifier of the object to evaluate expression on." },
169                    { "name": "expression", "type": "string", "description": "Expression to evaluate." }
170                ],
171                "returns": [
172                    { "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." }
173                ],
174                "description": "Evaluate expression on given object using it as <code>this</code>."
175            },
176            {
177                "name": "getProperties",
178                "parameters": [
179                    { "name": "objectId", "type": "string", "description": "Identifier of the object to return properties for." },
180                    { "name": "ignoreHasOwnProperty", "type": "boolean", "description": "If true, returns properties belonging to any element of the prototype chain." }
181                ],
182                "returns": [
183                    { "name": "result", "type": "array", "items": { "$ref": "RuntimeProperty"}, "description": "Object properties." }
184                ],
185                "description": "Returns properties of a given object."
186            },
187            {
188                "name": "setPropertyValue",
189                "parameters": [
190                    { "name": "objectId", "type": "string", "description": "Identifier of the object to set property on." },
191                    { "name": "propertyName", "type": "string", "description": "Property name to set value for." },
192                    { "name": "expression", "type": "string", "description": "Expression to evaluate." }
193                ],
194                "description": "Makes property with given name equal to the expression evaluation result."
195            },
196            {
197                "name": "releaseObject",
198                "parameters": [
199                    { "name": "objectId", "type": "string", "description": "Identifier of the object to release." }
200                ],
201                "description": "Releases remote object with given id."
202            },
203            {
204                "name": "releaseObjectGroup",
205                "parameters": [
206                    { "name": "objectGroup", "type": "string", "description": "Symbolic object group name." }
207                ],
208                "description": "Releases all remote objects that belong to a given group."
209            }
210        ]
211    },
212    {
213        "domain": "Console",
214        "description": "Console domain defines methods and events for interaction with the JavaScript console. One needs to enable this domain using <code>enable</code> function in order to start receiving the console messages.",
215        "types": [
216            {
217                "id": "ConsoleMessage",
218                "type": "object",
219                "description": "Console message.",
220                "properties": [
221                    { "name": "source", "type": "string", "enum": ["html", "wml", "xml", "javascript", "css", "other"], "description": "Message source." },
222                    { "name": "type", "type": "string", "enum": ["log", "other", "trace", "startGroup", "startGroupCollapsed", "endGroup", "assert", "uncaughtException", "networkError", "result"], "description": "Message type." },
223                    { "name": "level", "type": "string", "enum": ["tip", "log", "warning", "error", "debug"], "description": "Message severity." },
224                    { "name": "line", "type": "integer", "description": "JavaScript source line that created console message." },
225                    { "name": "url", "type": "string", "description": "JavaScript source url that created console message." },
226                    { "name": "repeatCount", "type": "integer", "optional": true, "description": "Repeat count for repeated messages." },
227                    { "name": "text", "type": "string", "description": "Message text." },
228                    { "name": "networkIdentifier", "type": "integer", "optional": true, "description": "Identifier of the network request associated with the console message." },
229                    { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "description": "Message parameters in case of the formatted message." },
230                    { "name": "stackTrace", "type": "array", "optional": true, "items": { "$ref": "CallFrame" }, "description": "Call frames for assert and error messages." }
231                ]
232            },
233            {
234                "id": "CallFrame",
235                "type": "object",
236                "description": "Stack entry for console errors and assertions.",
237                "properties": [
238                    { "name": "functionName", "type": "string", "description": "JavaScript function name." },
239                    { "name": "url", "type": "string", "description": "JavaScript source name / url." },
240                    { "name": "lineNumber", "type": "string", "description": "JavaScript source line number." },
241                    { "name": "columnNumber", "type": "string", "description": "JavaScript source column number." }
242                ]
243            }
244        ],
245        "commands": [
246            {
247                "name": "enable",
248                "returns": [
249                    { "name": "expiredMessagesCount", "type": "integer", "description": "Number of messages cleared due to message threashold overflow." }
250                ],
251                "description": "Enables console domain, sends all the messages collected so far to the client."
252            },
253            {
254                "name": "disable",
255                "description": "Disables console domain, prevents further console messages from being sent to the client."
256            },
257            {
258                "name": "clearConsoleMessages",
259                "description": "Clears collected console messages."
260            },
261            {
262                "name": "setMonitoringXHREnabled",
263                "parameters": [
264                    { "name": "enabled", "type": "boolean", "description": "Monitoring enabled state." }
265                ],
266                "description": "Toggles monitoring of XMLHttpRequest. If <code>true</code>, console will receive messages upon each XHR issued."
267            },
268            {
269                "name": "addInspectedNode",
270                "parameters": [
271                    { "name": "nodeId", "type": "integer", "description": "DOM node id to be accessible by means of $x command line API." }
272                ],
273                "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions)."
274            }
275        ],
276        "events": [
277            {
278                "name": "messageAdded",
279                "parameters": [
280                    { "name": "messageObj", "$ref": "ConsoleMessage", "description": "Console message that has been added." }
281                ],
282                "description": "Issued for each console message added."
283            },
284            {
285                "name": "messageRepeatCountUpdated",
286                "parameters": [
287                    { "name": "count", "type": "integer", "description": "New repeat count value." }
288                ],
289                "description": "In case of subsequent message being equal to the previous one, only repeat count is being updated."
290            },
291            {
292                "name": "messagesCleared",
293                "description": "Issued when console is cleared."
294            }
295        ]
296    },
297    {
298        "domain": "Network",
299        "description": "Network domain allows tracking network activities of the page. It exposes information about HTTP and WebSocket requests and responses, their headers, bodies, timing, etc. It also allows getting the tree of the Frames on the page along with information about their resources.",
300        "types": [
301            {
302                "id": "ResourceTiming",
303                "type": "object",
304                "description": "Timing information for the request.",
305                "properties": [
306                    { "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." },
307                    { "name": "proxyStart", "type": "number", "description": "Started resolving proxy." },
308                    { "name": "proxyEnd", "type": "number", "description": "Finished resolving proxy." },
309                    { "name": "dnsStart", "type": "number", "description": "Started DNS address resolve." },
310                    { "name": "dnsEnd", "type": "number", "description": "Finished DNS address resolve." },
311                    { "name": "connectStart", "type": "number", "description": "Started connecting to the remote host." },
312                    { "name": "connectEnd", "type": "number", "description": "Connected to the remote host." },
313                    { "name": "sslStart", "type": "number", "description": "Started SSL handshake." },
314                    { "name": "sslEnd", "type": "number", "description": "Finished SSL handshake." },
315                    { "name": "sendStart", "type": "number", "description": "Started sending request." },
316                    { "name": "sendEnd", "type": "number", "description": "Finished sending request." },
317                    { "name": "receiveHeadersEnd", "type": "number", "description": "Finished receiving response headers." }
318                ]
319            },
320            {
321                "id": "ResourceRequest",
322                "type": "object",
323                "description": "HTTP request data.",
324                "properties": [
325                    { "name": "url", "type": "string", "description": "Request URL." },
326                    { "name": "method", "type": "string", "description": "HTTP request method." },
327                    { "name": "headers", "type": "object", "description": "HTTP request headers." },
328                    { "name": "postData", "type": "string", "optional": true, "description": "HTTP POST request data." }
329                ]
330            },
331            {
332                "id": "ResourceResponse",
333                "type": "object",
334                "description": "HTTP response data.",
335                "properties": [
336                    { "name": "status", "type": "number", "description": "HTTP response status code." },
337                    { "name": "statusText", "type": "string", "description": "HTTP response status text." },
338                    { "name": "headers", "type": "object", "description": "HTTP response headers." },
339                    { "name": "headersText", "type": "string", "optional": true, "description": "HTTP response headers text." },
340                    { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." },
341                    { "name": "requestHeaders", "type": "object", "optional": true, "description": "Refined HTTP request headers that were actually transmitted over the network." },
342                    { "name": "requestHeadersText", "type": "string", "optional": true, "description": "HTTP request headers text." },
343                    { "name": "connectionReused", "type": "boolean", "description": "Specifies whether physical connection was actually reused for this request." },
344                    { "name": "connectionID", "type": "number", "description": "Physical connection id that was actually used for this request." },
345                    { "name": "fromDiskCache", "type": "boolean", "optional": true, "description": "Specifies that the resource was loaded from the disk cache." },
346                    { "name": "timing", "$ref": "ResourceTiming", "optional": true, "description": "Timing information for the given request." }
347                ]
348            },
349            {
350                "id": "ResourceType",
351                "type": "string",
352                "enum": ["Document", "Stylesheet", "Image", "Font", "Script", "XHR", "WebSocket", "Other"],
353                "description": "Resource type as it was perceived by the rendering enging."
354            },
355            {
356                "id": "CachedResource",
357                "type": "object",
358                "description": "Information about the cached resource.",
359                "properties": [
360                    { "name": "url", "type": "string", "description": "Resource URL." },
361                    { "name": "type", "$ref": "ResourceType", "description": "Type of this resource." },
362                    { "name": "response", "$ref": "ResourceResponse", "description": "Cached response data." },
363                    { "name": "bodySize", "type": "number", "description": "Cached response body size." }
364                ]
365            },
366            {
367                "id": "Frame",
368                "type": "object",
369                "description": "Information about the Frame on the page.",
370                "properties": [
371                    { "name": "id", "type": "string", "description": "Frame unique identifier." },
372                    { "name": "parentId", "type": "string", "description": "Parent frame identifier." },
373                    { "name": "loaderId", "type": "string", "description": "Identifier of the loader associated with this frame." },
374                    { "name": "name", "type": "string", "optional": true, "description": "Frame's name as specified in the tag." },
375                    { "name": "url", "type": "string", "description": "Frame document's URL." }
376                ]
377            },
378            {
379                "id": "FrameResourceTree",
380                "type": "object",
381                "description": "Information about the Frame hierarchy along with their cached resources.",
382                "properties": [
383                    { "name": "frame", "$ref": "Frame", "description": "Frame information for this tree item." },
384                    { "name": "childFrames", "type": "array", "optional": true, "items": { "$ref": "FrameResourceTree" }, "description": "Child frames." },
385                    { "name": "resources", "type": "array",
386                        "items": {
387                            "type": "object",
388                            "properties": [
389                                { "name": "url", "type": "string", "description": "Resource URL." },
390                                { "name": "type", "$ref": "ResourceType", "description": "Type of this resource." }
391                            ]
392                        },
393                        "description": "Information about frame resources."
394                    }
395                ]
396            }
397        ],
398        "commands": [
399            {
400                "name": "enable",
401                "description": "Enables network tracking, network events will now be delivered to the client."
402            },
403            {
404                "name": "disable",
405                "description": "Disables network tracking, prevents network events from being sent to the client."
406            },
407            {
408                "name": "getCachedResources",
409                "description": "Returns present frame / resource tree structure.",
410                "returns": [
411                    { "name": "frameTree", "$ref": "FrameResourceTree", "description": "Present frame / resource tree structure." }
412                ]
413            },
414            {
415                "name": "getResourceContent",
416                "description": "Returns content of the given resource.",
417                "parameters": [
418                    { "name": "frameId", "type": "string", "description": "Frame id to get resource for."  },
419                    { "name": "url", "type": "string", "description": "URL of the resource to get content for."  },
420                    { "name": "base64Encode", "type": "boolean", "optional": true, "description": "Requests that resource content is served as base64."  }
421                ],
422                "returns": [
423                    { "name": "content", "type": "string", "description": "Resource content." }
424                ]
425            },
426            {
427                "name": "setExtraHeaders",
428                "description": "Allows sending extra HTTP headers with the requests from this page.",
429                "parameters": [
430                    { "name": "headers", "type": "object", "description": "Map with extra HTTP headers." }
431                ]
432            }
433        ],
434        "events": [
435            {
436                "name": "domContentEventFired",
437                "parameters": [
438                    { "name": "time", "type": "number" }
439                ]
440            },
441            {
442                "name": "loadEventFired",
443                "parameters": [
444                    { "name": "time", "type": "number" }
445                ]
446            },
447            {
448                "name": "frameDetached",
449                "description": "Fired when frame has been detached from its parent.",
450                "parameters": [
451                    { "name": "frameId", "type": "string", "description": "Id of the frame that has been detached." }
452                ]
453            },
454            {
455                "name": "requestWillBeSent",
456                "description": "Fired when page is about to send HTTP request.",
457                "parameters": [
458                    { "name": "identifier", "type": "integer", "description": "Request identifier." },
459                    { "name": "frameId", "type": "string", "description": "Frame identifier." },
460                    { "name": "loaderId", "type": "string", "description": "Loader identifier." },
461                    { "name": "documentURL", "type": "string", "description": "URL of the document this resource is loaded for." },
462                    { "name": "request", "$ref": "ResourceRequest", "description": "Request data." },
463                    { "name": "timestamp", "type": "number", "description": "Timestamp." },
464                    { "name": "stackTrace", "type": "array", "items": { "$ref": "Console.CallFrame"}, "description": "JavaScript stack trace upon issuing this request." },
465                    { "name": "redirectResponse", "optional": true, "$ref": "ResourceResponse", "description": "Redirect response data." }
466                ]
467            },
468            {
469                "name": "resourceMarkedAsCached",
470                "description": "Fired when request is known to be served from disk cache.",
471                "parameters": [
472                    { "name": "identifier", "type": "integer", "description": "Request identifier." }
473                ]
474            },
475            {
476                "name": "responseReceived",
477                "description": "Fired when HTTP response is available.",
478                "parameters": [
479                    { "name": "identifier", "type": "integer", "description": "Request identifier." },
480                    { "name": "timestamp", "type": "number", "description": "Timestamp." },
481                    { "name": "type", "$ref": "ResourceType", "description": "Resource type." },
482                    { "name": "response", "$ref": "ResourceResponse", "description": "Response data." }
483                ]
484            },
485            {
486                "name": "dataReceived",
487                "description": "Fired when data chunk was received over the network.",
488                "parameters": [
489                    { "name": "identifier", "type": "integer", "description": "Request identifier." },
490                    { "name": "timestamp", "type": "number", "description": "Timestamp." },
491                    { "name": "dataLength", "type": "integer", "description": "Data chunk length." },
492                    { "name": "encodedDataLength", "type": "integer", "description": "Actual bytes received (might be less than dataLength for compressed encodings)." }
493                ]
494            },
495            {
496                "name": "loadingFinished",
497                "description": "Fired when HTTP request has finished loading.",
498                "parameters": [
499                    { "name": "identifier", "type": "integer", "description": "Request identifier." },
500                    { "name": "timestamp", "type": "number", "description": "Timestamp." }
501                ]
502            },
503            {
504                "name": "loadingFailed",
505                "description": "Fired when HTTP request has failed to load.",
506                "parameters": [
507                    { "name": "identifier", "type": "integer", "description": "Request identifier." },
508                    { "name": "timestamp", "type": "number", "description": "Timestamp." },
509                    { "name": "errorText", "type": "string", "description": "User friendly error message." },
510                    { "name": "canceled", "type": "boolean", "optional": true, "description": "True if loading was canceled." }
511                ]
512            },
513            {
514                "name": "resourceLoadedFromMemoryCache",
515                "description": "Fired when HTTP request has been served from memory cache.",
516                "parameters": [
517                    { "name": "frameId", "type": "string", "description": "Frame identifier." },
518                    { "name": "loaderId", "type": "string", "description": "Loader identifier." },
519                    { "name": "documentURL", "type": "string", "description": "URL of the document this resource is loaded for." },
520                    { "name": "timestamp", "type": "number", "description": "Timestamp." },
521                    { "name": "resource", "$ref": "CachedResource", "description": "Cached resource data." }
522                ]
523            },
524            {
525                "name": "initialContentSet",
526                "description": "Fired for XMLHttpRequests when their content becomes available.",
527                "parameters": [
528                    { "name": "identifier", "type": "integer", "description": "Request identifier." },
529                    { "name": "content", "type": "string", "description": "Resource content." },
530                    { "name": "type", "$ref": "ResourceType", "description": "Resource type." }
531                ]
532            },
533            {
534                "name": "frameNavigated",
535                "description": "Fired once navigation of the frame has completed. Frame is now associated with the new loader.",
536                "parameters": [
537                    { "name": "frame", "$ref": "Frame", "description": "Frame identifier." },
538                    { "name": "loaderId", "type": "string", "description": "Loader identifier." }
539                ]
540            },
541            {
542                "name": "webSocketWillSendHandshakeRequest",
543                "description": "Fired when WebSocket is about to initiate handshake.",
544                "parameters": [
545                    { "name": "identifier", "type": "integer", "description": "Request identifier." },
546                    { "name": "timestamp", "type": "number", "description": "Timestamp." },
547                    { "name": "request", "type": "object", "description": "WebSocket request data." }
548                ]
549            },
550            {
551                "name": "webSocketHandshakeResponseReceived",
552                "description": "Fired when WebSocket handshake response becomes available.",
553                "parameters": [
554                    { "name": "identifier", "type": "integer", "description": "Request identifier." },
555                    { "name": "timestamp", "type": "number", "description": "Timestamp." },
556                    { "name": "response", "type": "object", "description": "WebSocket response data." }
557                ]
558            },
559            {
560                "name": "webSocketCreated",
561                "description": "Fired upon WebSocket creation.",
562                "parameters": [
563                    { "name": "identifier", "type": "integer", "description": "Request identifier." },
564                    { "name": "url", "type": "string", "description": "WebSocket request URL." }
565                ]
566            },
567            {
568                "name": "webSocketClosed",
569                "description": "Fired when WebSocket is closed.",
570                "parameters": [
571                    { "name": "identifier", "type": "integer", "description": "Request identifier." },
572                    { "name": "timestamp", "type": "number", "description": "Timestamp." }
573                ]
574            }
575        ]
576    },
577    {
578        "domain": "Database",
579        "types": [],
580        "commands": [
581            {
582                "name": "enable",
583                "description": "Enables database tracking, database events will now be delivered to the client."
584            },
585            {
586                "name": "disable",
587                "description": "Disables database tracking, prevents database events from being sent to the client."
588            },
589            {
590                "name": "getDatabaseTableNames",
591                "parameters": [
592                    { "name": "databaseId", "type": "integer" }
593                ],
594                "returns": [
595                    { "name": "tableNames", "type": "array", "items": { "type": "string" } }
596                ]
597            },
598            {
599                "name": "executeSQL",
600                "parameters": [
601                    { "name": "databaseId", "type": "integer" },
602                    { "name": "query", "type": "string" }
603                ],
604                "returns": [
605                    { "name": "success", "type": "boolean" },
606                    { "name": "transactionId", "type": "integer" }
607                ]
608            }
609        ],
610        "events": [
611            {
612                "name": "addDatabase",
613                "parameters": [
614                    { "name": "database", "$ref": "DatabaseDatabase" }
615                ]
616            },
617            {
618                "name": "sqlTransactionSucceeded",
619                "parameters": [
620                    { "name": "transactionId", "type": "integer" },
621                    { "name": "columnNames", "type": "array", "items": { "type": "string" } },
622                    { "name": "values", "type": "array", "items": { "type": "string or number" }}
623                ]
624            },
625            {
626                "name": "sqlTransactionFailed",
627                "parameters": [
628                    { "name": "transactionId", "type": "integer" },
629                    { "name": "sqlError", "$ref": "DatabaseError" }
630                ]
631            }
632        ]
633    },
634    {
635        "domain": "DOMStorage",
636        "types": [],
637        "commands": [
638            {
639                "name": "getDOMStorageEntries",
640                "parameters": [
641                    { "name": "storageId", "type": "integer" }
642                ],
643                "returns": [
644                    { "name": "entries", "type": "array", "items": { "$ref": "DOMStorageEntry"} }
645                ]
646            },
647            {
648                "name": "setDOMStorageItem",
649                "parameters": [
650                    { "name": "storageId", "type": "integer" },
651                    { "name": "key", "type": "string" },
652                    { "name": "value", "type": "string" }
653                ],
654                "returns": [
655                    { "name": "success", "type": "boolean" }
656                ]
657            },
658            {
659                "name": "removeDOMStorageItem",
660                "parameters": [
661                    { "name": "storageId", "type": "integer" },
662                    { "name": "key", "type": "string" }
663                ],
664                "returns": [
665                    { "name": "success", "type": "boolean" }
666                ]
667            }
668        ],
669        "events": [
670            {
671                "name": "addDOMStorage",
672                "parameters": [
673                    { "name": "storage", "$ref": "DOMStorageStorage" }
674                ]
675            },
676            {
677                "name": "updateDOMStorage",
678                "parameters": [
679                    { "name": "storageId", "type": "integer" }
680                ]
681            }
682        ]
683    },
684    {
685        "domain": "ApplicationCache",
686        "types": [],
687        "commands": [
688            {
689                "name": "getApplicationCaches",
690                "returns": [
691                    { "name": "applicationCaches", "$ref": "AppCache" }
692                ]
693            }
694        ],
695        "events": [
696            {
697                "name": "updateApplicationCacheStatus",
698                "parameters": [
699                    { "name": "status", "type": "integer" }
700                ]
701            },
702            {
703                "name": "updateNetworkState",
704                "parameters": [
705                    { "name": "isNowOnline", "type": "boolean" }
706                ]
707            }
708        ]
709    },
710    {
711        "domain": "DOM",
712        "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, convert it into the JavaScript object, 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.",
713        "types": [
714            {
715                "id": "DOMNode",
716                "type": "object",
717                "properties": [
718                    { "name": "id", "type": "integer", "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." },
719                    { "name": "nodeType", "type": "integer", "description": "<code>Node</code>'s nodeType." },
720                    { "name": "nodeName", "type": "string", "description": "<code>Node</code>'s nodeName." },
721                    { "name": "localName", "type": "string", "description": "<code>Node</code>'s localName." },
722                    { "name": "nodeValue", "type": "string", "description": "<code>Node</code>'s nodeValue." },
723                    { "name": "childNodeCount", "type": "integer", "optional": true, "description": "Child count for <code>Container</code> nodes." },
724                    { "name": "children", "type": "array", "optional": true, "items": { "$ref": "DOMNode" }, "description": "Child nodes of this node when requested with children." },
725                    { "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>." },
726                    { "name": "documentURL", "type": "string", "optional": true, "description": "Document URL that <code>Document</code> or <code>FrameOwner</code> node points to." },
727                    { "name": "publicId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s publicId. // FIXME" },
728                    { "name": "systemId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s systemId. // FIXME" },
729                    { "name": "internalSubset", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s internalSubset. // FIXME" },
730                    { "name": "name", "type": "string", "optional": true, "description": "<code>Attr</code>'s name. // FIXME" },
731                    { "name": "value", "type": "string", "optional": true, "description": "<code>Attr</code>'s value. // FIXME" }
732                ],
733                "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
734            },
735            {
736                "id": "DOMEventListener",
737                "type": "object",
738                "properties": [
739                    { "name": "type", "type": "string", "description": "<code>EventListener</code>'s type." },
740                    { "name": "useCapture", "type": "boolean", "description": "<code>EventListener</code>'s useCapture." },
741                    { "name": "isAttribute", "type": "boolean", "description": "<code>EventListener</code>'s isAttribute." },
742                    { "name": "nodeId", "type": "integer", "description": "Target <code>DOMNode</code> id." },
743                    { "name": "listenerBody", "type": "string", "description": "Listener function body." },
744                    { "name": "sourceName", "type": "string", "optional": true, "description": "Handler location source name." },
745                    { "name": "lineNumber", "type": "number", "optional": true, "description": "Handler location line number." }
746                ],
747                "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
748            }
749        ],
750        "commands": [
751            {
752                "name": "getDocument",
753                "returns": [
754                    { "name": "root", "$ref": "DOMNode", "description": "Resulting node." }
755                ],
756                "description": "Returns the root DOM node to the caller."
757            },
758            {
759                "name": "getChildNodes",
760                "parameters": [
761                    { "name": "nodeId", "type": "integer", "description": "Id of the node to get children for." }
762                ],
763                "description": "Requests that children of the node with given id are returned to the caller in form of <code>setChildNodes</code> events."
764            },
765            {
766                "name": "querySelector",
767                "parameters": [
768                    { "name": "nodeId", "type": "integer", "description": "Id of the node to query upon." },
769                    { "name": "selectors", "type": "string", "description": "Selector string." }
770                ],
771                "returns": [
772                    { "name": "nodeId", "type": "integer", "description": "Query selector result." }
773                ],
774                "description": "Executes <code>querySelector</code> on a given node. Setting <code>documentWide</code> to true starts selecting from the document node."
775            },
776            {
777                "name": "querySelectorAll",
778                "parameters": [
779                    { "name": "nodeId", "type": "integer", "description": "Id of the node to query upon." },
780                    { "name": "selectors", "type": "string", "description": "Selector string." }
781                ],
782                "returns": [
783                    { "name": "nodeIds", "type": "array", "items": { "type": "integer" }, "description": "Query selector result." }
784                ],
785                "description": "Executes <code>querySelectorAll</code> on a given node. Setting <code>documentWide</code> to true starts selecting from the document node."
786            },
787            {
788                "name": "setNodeName",
789                "parameters": [
790                    { "name": "nodeId", "type": "integer", "description": "Id of the node to set name for." },
791                    { "name": "name", "type": "string", "description": "New node's name." }
792                ],
793                "returns": [
794                    { "name": "outNodeId", "type": "integer", "description": "New node's id." }
795                ],
796                "description": "Sets node name for a node with given id."
797            },
798            {
799                "name": "setNodeValue",
800                "parameters": [
801                    { "name": "nodeId", "type": "integer", "description": "Id of the node to set value for." },
802                    { "name": "value", "type": "string", "description": "New node's value." }
803                ],
804                "description": "Sets node value for a node with given id."
805            },
806            {
807                "name": "removeNode",
808                "parameters": [
809                    { "name": "nodeId", "type": "integer", "description": "Id of the node to remove." }
810                ],
811                "description": "Removes node with given id."
812            },
813            {
814                "name": "setAttribute",
815                "parameters": [
816                    { "name": "nodeId", "type": "integer", "description": "Id of the element to set attribute for." },
817                    { "name": "name", "type": "string", "description": "Attribute name." },
818                    { "name": "value", "type": "string", "description": "Attribute value." }
819                ],
820                "description": "Sets attribute for an element with given id."
821            },
822            {
823                "name": "removeAttribute",
824                "parameters": [
825                    { "name": "nodeId", "type": "integer", "description": "Id of the element to remove attribute from." },
826                    { "name": "name", "type": "string", "description": "Name of the attribute to remove." }
827                ],
828                "description": "Removes attribute with given name from an element with given id."
829            },
830            {
831                "name": "getEventListenersForNode",
832                "parameters": [
833                    { "name": "nodeId", "type": "integer", "description": "Id of the node to get listeners for." }
834                ],
835                "returns": [
836                    { "name": "listeners", "type": "array", "items": { "$ref": "DOMEventListener"}, "description": "Array of relevant listeners." }
837                ],
838                "description": "Returns event listeners relevant to the node."
839            },
840            {
841                "name": "copyNode",
842                "parameters": [
843                    { "name": "nodeId", "type": "integer", "description": "Id of the node to copy." }
844                ],
845                "description": "Copies node's HTML markup into the clipboard."
846            },
847            {
848                "name": "getOuterHTML",
849                "parameters": [
850                    { "name": "nodeId", "type": "integer", "description": "Id of the node to get markup for." }
851                ],
852                "returns": [
853                    { "name": "outerHTML", "type": "string", "description": "Outer HTML markup." }
854                ],
855                "description": "Returns node's HTML markup."
856            },
857            {
858                "name": "setOuterHTML",
859                "parameters": [
860                    { "name": "nodeId", "type": "integer", "description": "Id of the node to set markup for." },
861                    { "name": "outerHTML", "type": "string", "description": "Outer HTML markup to set." }
862                ],
863                "returns": [
864                    { "name": "newNodeId", "type": "integer", "description": "Setting outer HTML can change node's id." }
865                ],
866                "description": "Sets node HTML markup, returns new node id."
867            },
868            {
869                "name": "performSearch",
870                "parameters": [
871                    { "name": "query", "type": "string", "description": "Plain text or query selector or XPath search query." },
872                    { "name": "runSynchronously", "type": "boolean", "optional": true, "description": "When set to true, performing search synchronously (can block user interaction)." }
873                ],
874                "description": "Starts asynchronous search for a given string in the DOM tree. Use <code>cancelSearch</code> to stop given asynchronous search task."
875            },
876            {
877                "name": "cancelSearch",
878                "description": "Cancels asynchronous search started with <code>performSearch</code>."
879            },
880            {
881                "name": "pushNodeToFrontend",
882                "parameters": [
883                    { "name": "objectId", "type": "string", "description": "JavaScript object id to convert into node." }
884                ],
885                "returns": [
886                    { "name": "nodeId", "type": "integer", "description": "Node id for given object." }
887                ],
888                "description": "Requests that the node is sent to the caller given the JavaScript node object reference."
889            },
890            {
891                "name": "setSearchingForNode",
892                "parameters": [
893                    { "name": "enabled", "type": "boolean" }
894                ]
895            },
896            {
897                "name": "highlightDOMNode",
898                "parameters": [
899                    { "name": "nodeId", "type": "integer" }
900                ]
901            },
902            {
903                "name": "hideDOMNodeHighlight"
904            },
905            {
906                "name": "highlightFrame",
907                "parameters": [
908                    { "name": "frameId", "type": "string" }
909                ]
910            },
911            {
912                "name": "hideFrameHighlight"
913            },
914            {
915                "name": "pushNodeByPathToFrontend",
916                "parameters": [
917                    { "name": "path", "type": "string", "description": "Path to node in the proprietary format." }
918                ],
919                "returns": [
920                    { "name": "nodeId", "type": "integer", "description": "Id of the node for given path." }
921                ],
922                "description": "Requests that the node is sent to the caller given its path. // FIXME, use XPath"
923            },
924            {
925                "name": "resolveNode",
926                "parameters": [
927                    { "name": "nodeId", "type": "integer", "description": "Id of the node to resolve." }
928                ],
929                "returns": [
930                    { "name": "object", "$ref": "Runtime.RemoteObject", "description": "JavaScript object wrapper for given node." }
931                ],
932                "description": "Resolves JavaScript node object for given node id."
933            }
934        ],
935        "events": [
936            {
937                "name": "documentUpdated",
938                "description": "Fired when <code>Document</code> has been totally updated. Node ids are no longer valid."
939            },
940            {
941                "name": "setChildNodes",
942                "parameters": [
943                    { "name": "parentId", "type": "integer", "description": "Parent node id to populate with children." },
944                    { "name": "nodes", "type": "array", "items": { "$ref": "DOMNode"}, "description": "Child nodes array." }
945                ],
946                "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids."
947            },
948            {
949                "name": "attributesUpdated",
950                "parameters": [
951                    { "name": "id", "type": "integer", "description": "Id of the node that has changed." },
952                    { "name": "attributes", "type": "array", "items": { "$ref": "DOMAttribute"}, "description": "New attributes value." }
953                ],
954                "description": "Fired when <code>Element</code>'s attributes are updated."
955            },
956            {
957                "name": "characterDataModified",
958                "parameters": [
959                    { "name": "id", "type": "integer", "description": "Id of the node that has changed." },
960                    { "name": "newValue", "type": "string", "description": "New text value." }
961                ],
962                "description": "Mirrors <code>DOMCharacterDataModified</code> event."
963            },
964            {
965                "name": "childNodeCountUpdated",
966                "parameters": [
967                    { "name": "id", "type": "integer", "description": "Id of the node that has changed." },
968                    { "name": "newValue", "type": "integer", "description": "New node count." }
969                ],
970                "description": "Fired when <code>Container</code>'s child node count has changed."
971            },
972            {
973                "name": "childNodeInserted",
974                "parameters": [
975                    { "name": "parentId", "type": "integer", "description": "Id of the node that has changed." },
976                    { "name": "prevId", "type": "integer", "description": "If of the previous siblint." },
977                    { "name": "node", "$ref": "DOMNode", "description": "Inserted node data." }
978                ],
979                "description": "Mirrors <code>DOMNodeInserted</code> event."
980            },
981            {
982                "name": "childNodeRemoved",
983                "parameters": [
984                    { "name": "parentId", "type": "integer", "description": "Parent id." },
985                    { "name": "id", "type": "integer", "description": "Id of the node that has been removed." }
986                ],
987                "description": "Mirrors <code>DOMNodeRemoved</code> event."
988            },
989            {
990                "name": "searchResults",
991                "parameters": [
992                    { "name": "nodeIds", "type": "array", "items": { "type": "integer" }, "description": "Ids of the search result nodes." }
993                ],
994                "description": "Pushes search results initiated using <code>performSearch</code> to the client."
995            }
996        ]
997    },
998    {
999        "domain": "CSS",
1000        "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.",
1001        "types": [
1002            {
1003                "id": "CSSStyleId",
1004                "type": "object",
1005                "properties": [
1006                    { "name": "styleSheetId", "type": "string", "description": "Enclosing stylesheet identifier." },
1007                    { "name": "ordinal", "type": "integer", "description": "The style ordinal within the stylesheet." }
1008                ],
1009                "description": "This object identifies a CSS style in a unique way."
1010            },
1011            {
1012                "id": "CSSRuleId",
1013                "type": "object",
1014                "properties": [
1015                    { "name": "styleSheetId", "type": "string", "description": "Enclosing stylesheet identifier." },
1016                    { "name": "ordinal", "type": "integer", "description": "The rule ordinal within the stylesheet." }
1017                ],
1018                "description": "This object identifies a CSS rule in a unique way."
1019            },
1020            {
1021                "id": "CSSNodeStyles",
1022                "type": "object",
1023                "properties": [
1024                    { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "The node's inline style, if any." },
1025                    { "name": "computedStyle", "$ref": "CSSComputedStyle", "description": "The node's computed style." },
1026                    { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "CSS rules matching this node, from all applicable stylesheets." },
1027                    { "name": "styleAttributes", "type": "array", "items": { "$ref": "CSSStyleAttribute" }, "description": "Entries for style-related element attributes (e.g. width=20)."},
1028                    { "name": "pseudoElements", "type": "array", "items": { "$ref": "PseudoIdRules" }, "description": "Pseudo style rules for this node." },
1029                    { "name": "inherited", "type": "array", "items": { "$ref": "InheritedStyleEntry" }, "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root)." }
1030                ],
1031                "description": "A holder for all CSS styles applicable to a particular DOM node."
1032            },
1033            {
1034                "id": "PseudoIdRules",
1035                "type": "object",
1036                "properties": [
1037                    { "name": "pseudoId", "type": "integer", "description": "Pseudo style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstants.h</code>)."},
1038                    { "name": "rules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "CSS rules applicable to the pseudo style."}
1039                ],
1040                "description": "CSS rule collection for a single pseudo style."
1041            },
1042            {
1043                "id": "InheritedStyleEntry",
1044                "type": "object",
1045                "properties": [
1046                    { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "The ancestor node's inline style, if any, in the style inheritance chain." },
1047                    { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "CSS rules matching the ancestor node in the style inheritance chain." }
1048                ],
1049                "description": "CSS rule collection for a single pseudo style."
1050            },
1051            {
1052                "id": "CSSStyleAttribute",
1053                "type": "object",
1054                "properties": [
1055                    { "name": "name", "type": "string", "description": "DOM attribute name (e.g. \"width\")."},
1056                    { "name": "style", "$ref": "CSSStyle", "description": "CSS style generated by the respective DOM attribute."}
1057                ],
1058                "description": "CSS style information for a DOM style attribute."
1059            },
1060            {
1061                "id": "CSSStyleSheetHeader",
1062                "type": "object",
1063                "properties": [
1064                    { "name": "styleSheetId", "type": "string", "description": "The stylesheet identifier."},
1065                    { "name": "sourceURL", "type": "string", "description": "Stylesheet resource URL."},
1066                    { "name": "title", "type": "string", "description": "Stylesheet title."},
1067                    { "name": "disabled", "type": "boolean", "description": "Denotes whether the stylesheet is disabled."}
1068                ],
1069                "description": "CSS stylesheet metainformation."
1070            },
1071            {
1072                "id": "CSSStyleSheetBody",
1073                "type": "object",
1074                "properties": [
1075                    { "name": "styleSheetId", "type": "string", "description": "The stylesheet identifier."},
1076                    { "name": "rules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "Stylesheet resource URL."},
1077                    { "name": "text", "type": "string", "optional": true, "description": "Stylesheet resource contents (if available)."}
1078                ],
1079                "description": "CSS stylesheet contents."
1080            },
1081            {
1082                "id": "CSSRule",
1083                "type": "object",
1084                "properties": [
1085                    { "name": "ruleId", "$ref": "CSSRuleId", "description": "The CSS rule identifier."},
1086                    { "name": "selectorText", "type": "string", "description": "Rule selector."},
1087                    { "name": "sourceURL", "type": "string", "optional": true, "description": "Parent stylesheet resource URL (for regular rules)."},
1088                    { "name": "sourceLine", "type": "integer", "description": "Line ordinal of the rule selector start character in the resource."},
1089                    { "name": "origin", "type": "string", "enum": ["user", "user-agent", "inspector", ""], "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>), \"\" for regular stylesheets."},
1090                    { "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." },
1091                    { "name": "selectorRange", "$ref": "SourceRange", "optional": true, "description": "The rule selector range in the underlying resource (if available)." }
1092                ],
1093                "description": "CSS rule representation."
1094            },
1095            {
1096                "id": "SourceRange",
1097                "type": "object",
1098                "properties": [
1099                    { "name": "start", "type": "integer", "description": "Start of range (inclusive)."},
1100                    { "name": "end", "type": "integer", "description": "End of range (exclusive)."}
1101                ],
1102                "description": "Text range within a resource."
1103            },
1104            {
1105                "id": "CSSStyle",
1106                "type": "object",
1107                "properties": [
1108                    { "name": "styleId", "$ref": "CSSStyleId", "description": "The CSS style identifier."},
1109                    { "name": "cssProperties", "type": "array", "items": { "$ref": "CSSProperty" }, "description": "CSS properties in the style."},
1110                    { "name": "shorthandEntries", "type": "array", "items": { "$ref": "ShorthandEntry" }, "description": "Computed values for all shorthands found in the style." },
1111                    { "name": "cssText", "type": "string", "optional": true, "description": "Style declaration text (if available)."},
1112                    { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if available)." },
1113                    { "name": "width", "type": "integer", "description": "The effective \"width\" property value from this style." },
1114                    { "name": "height", "type": "integer", "description": "The effective \"height\" property value from this style." }
1115                ],
1116                "description": "CSS style representation."
1117            },
1118            {
1119                "id": "CSSProperty",
1120                "type": "object",
1121                "properties": [
1122                    { "name": "name", "type": "string", "description": "The property name." },
1123                    { "name": "value", "type": "string", "description": "The property value." },
1124                    { "name": "priority", "type": "string", "optional": true, "description": "The property priority (implies \"\" if absent)." },
1125                    { "name": "implicit", "type": "boolean", "optional": true, "description": "Whether the property is implicit (implies <code>false</code> if absent)." },
1126                    { "name": "parsedOk", "type": "boolean", "optional": true, "description": "Whether the property is understood by the browser (implies <code>true</code> if absent)." },
1127                    { "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." },
1128                    { "name": "shorthandName", "type": "string", "description": "The related shorthand property name (absent if this property is not a longhand)." },
1129                    { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." }
1130                ],
1131                "description": "CSS style effective visual dimensions and source offsets."
1132            }
1133        ],
1134        "commands": [
1135            {
1136                "name": "getStylesForNode",
1137                "parameters": [
1138                    { "name": "nodeId", "type": "integer" }
1139                ],
1140                "returns": [
1141                    { "name": "styles", "$ref": "CSSNodeStyles", "description": "All styles for the specified DOM node." }
1142                ],
1143                "description": "Returns all styles for a DOM node identified by <code>nodeId</code>."
1144            },
1145            {
1146                "name": "getComputedStyleForNode",
1147                "parameters": [
1148                    { "name": "nodeId", "type": "integer" }
1149                ],
1150                "returns": [
1151                    { "name": "style", "$ref": "CSSStyle", "description": "Computed style for the specified DOM node." }
1152                ],
1153                "description": "Returns the computed style for a DOM node identified by <code>nodeId</code>."
1154            },
1155            {
1156                "name": "getInlineStyleForNode",
1157                "parameters": [
1158                    { "name": "nodeId", "type": "integer" }
1159                ],
1160                "returns": [
1161                    { "name": "style", "$ref": "CSSStyle", "description": "Inline style for the specified DOM node." }
1162                ],
1163                "description": "Returns the inline style (if present) for a DOM node identified by <code>nodeId</code>."
1164            },
1165            {
1166                "name": "getAllStyleSheets",
1167                "returns": [
1168                    { "name": "headers", "type": "array", "items": { "$ref": "CSSStyleSheetHeader" }, "description": "Descriptor entries for all available stylesheets." }
1169                ],
1170                "description": "Returns metainfo entries for all known stylesheets."
1171            },
1172            {
1173                "name": "getStyleSheet",
1174                "parameters": [
1175                    { "name": "styleSheetId", "type": "string" }
1176                ],
1177                "returns": [
1178                    { "name": "styleSheet", "$ref": "CSSStyleSheetBody", "description": "Stylesheet contents for the specified <code>styleSheetId</code>." }
1179                ],
1180                "description": "Returns stylesheet data for the specified <code>styleSheetId</code>."
1181            },
1182            {
1183                "name": "getStyleSheetText",
1184                "parameters": [
1185                    { "name": "styleSheetId", "type": "string" }
1186                ],
1187                "returns": [
1188                    { "name": "text", "type": "string", "description": "The stylesheet text." }
1189                ],
1190                "description": "Returns the current textual content and the URL for a stylesheet."
1191            },
1192            {
1193                "name": "setStyleSheetText",
1194                "parameters": [
1195                    { "name": "styleSheetId", "type": "string" },
1196                    { "name": "text", "type": "string" }
1197                ],
1198                "description": "Sets the new stylesheet text, thereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet."
1199            },
1200            {
1201                "name": "setPropertyText",
1202                "parameters": [
1203                    { "name": "styleId", "$ref": "CSSStyleId" },
1204                    { "name": "propertyIndex", "type": "integer" },
1205                    { "name": "text", "type": "string" },
1206                    { "name": "overwrite", "type": "boolean" }
1207                ],
1208                "returns": [
1209                    { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the property text modification." }
1210                ],
1211                "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>."
1212            },
1213            {
1214                "name": "toggleProperty",
1215                "parameters": [
1216                    { "name": "styleId", "$ref": "CSSStyleId" },
1217                    { "name": "propertyIndex", "type": "integer" },
1218                    { "name": "disable", "type": "boolean" }
1219                ],
1220                "returns": [
1221                    { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the property toggling." }
1222                ],
1223                "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."
1224            },
1225            {
1226                "name": "setRuleSelector",
1227                "parameters": [
1228                    { "name": "ruleId", "$ref": "CSSRuleId" },
1229                    { "name": "selector", "type": "string" }
1230                ],
1231                "returns": [
1232                    { "name": "rule", "$ref": "CSSRule", "description": "The resulting rule after the selector modification." }
1233                ],
1234                "description": "Modifies the rule selector."
1235            },
1236            {
1237                "name": "addRule",
1238                "parameters": [
1239                    { "name": "contextNodeId", "type": "integer" },
1240                    { "name": "selector", "type": "string" }
1241                ],
1242                "returns": [
1243                    { "name": "rule", "$ref": "CSSRule", "description": "The newly created rule." }
1244                ],
1245                "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."
1246            },
1247            {
1248                "name": "getSupportedCSSProperties",
1249                "returns": [
1250                    { "name": "cssProperties", "type": "array", "items": { "type": "string" }, "description": "Supported property names." }
1251                ],
1252                "description": "Returns all supported CSS property names."
1253            }
1254        ]
1255    },
1256    {
1257        "domain": "Timeline",
1258        "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.",
1259        "types": [
1260            {
1261                "id": "TimelineRecord",
1262                "type": "object",
1263                "properties": [
1264                    { "name": "type", "type": "string", "description": "Event type." },
1265                    { "name": "data", "type": "object", "description": "Event data." },
1266                    { "name": "children", "type": "array", "optional": true, "items": { "$ref": "TimelineRecord" }, "description": "Nested records." }
1267                ],
1268                "description": "Timeline record contains information about the recorded activity."
1269            }
1270        ],
1271        "commands": [
1272            {
1273                "name": "start",
1274                "description": "Starts capturing instrumentation events."
1275            },
1276            {
1277                "name": "stop",
1278                "description": "Stops capturing instrumentation events."
1279            }
1280        ],
1281        "events": [
1282            {
1283                "name": "started",
1284                "description": "Fired when timeline has been started."
1285            },
1286            {
1287                "name": "stopped",
1288                "description": "Fired when timeline has been stopped."
1289            },
1290            {
1291                "name": "eventRecorded",
1292                "parameters": [
1293                    { "name": "record", "$ref": "TimelineRecord", "description": "Timeline record data." }
1294                ],
1295                "description": "Fired for every instrumentation event while timeline is started."
1296            }
1297        ]
1298    },
1299    {
1300        "domain": "Debugger",
1301        "description": "Debugger domain exposes JavaScript debugging functions. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.",
1302        "types": [
1303            {
1304                "id": "Location",
1305                "type": "object",
1306                "properties": [
1307                    { "name": "sourceID", "type": "string", "description": "Script identifier as reported by the <code>scriptParsed</code>" },
1308                    { "name": "lineNumber", "type": "integer", "description": "Line number in the script." },
1309                    { "name": "columnNumber", "type": "integer", "optional": true, "description": "Column number in the script." }
1310                ],
1311                "description": "Location in the source code."
1312            },
1313            {
1314                "id": "CallFrame",
1315                "type": "object",
1316                "properties": [
1317                    { "name": "id", "type": "string", "description": "Call frame identifier." },
1318                    { "name": "functionName", "type": "string", "description": "Name of the function called on this frame." },
1319                    { "name": "location", "$ref": "Location", "description": "Location in the source code." },
1320                    { "name": "scopeChain", "type": "array", "items": { "$ref": "Scope" }, "description": "Scope chain for given call frame." }
1321                ],
1322                "description": "Debugger call frame. Array of call frames form call stack."
1323            },
1324            {
1325                "id": "Scope",
1326                "type": "object",
1327                "properties": [
1328                    { "name": "type", "type": "string", "enum": ["global", "local", "with", "closure", "catch"], "description": "Scope type." },
1329                    { "name": "object", "$ref": "Runtime.RemoteObject", "description": "Object representing the scope." },
1330                    { "name": "this", "$ref": "Runtime.RemoteObject", "optional": true, "description": "<code>this</code> object for local scope." }
1331                ],
1332                "description": "Debugger call frame. Array of call frames form call stack."
1333            }
1334        ],
1335        "commands": [
1336            {
1337                "name": "enable",
1338                "description": "Enables debugger for given page."
1339            },
1340            {
1341                "name": "disable",
1342                "description": "Disables debugger for given page."
1343            },
1344            {
1345                "name": "setBreakpointsActive",
1346                "parameters": [
1347                    { "name": "active", "type": "boolean", "description": "New value for breakpoints active state." }
1348                ],
1349                "description": "Activates / deactivates all breakpoints on the page."
1350            },
1351            {
1352                "name": "setBreakpointByUrl",
1353                "parameters": [
1354                    { "name": "url", "type": "string", "description": "URL of the resource to set breakpoint on." },
1355                    { "name": "lineNumber", "type": "integer", "description": "Line number to set breakpoint at." },
1356                    { "name": "columnNumber", "type": "integer", "optional": true, "description": "Offset in the line to set breakpoint at." },
1357                    { "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." }
1358                ],
1359                "returns": [
1360                    { "name": "breakpointId", "type": "string", "description": "Id of the created breakpoint for further manipulations." },
1361                    { "name": "locations", "optional": true, "type": "array", "items": { "$ref": "Location"}, "description": "List of the locations this breakpoint resolved into." }
1362                ],
1363                "description": "Sets JavaScript breakpoint at a given location specified by URL. This breakpoint will survive page reload."
1364            },
1365            {
1366                "name": "setBreakpoint",
1367                "parameters": [
1368                    { "name": "location", "$ref": "Location", "description": "Location to set breakpoint in." },
1369                    { "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." }
1370                ],
1371                "returns": [
1372                    { "name": "breakpointId", "type": "string", "description": "Id of the created breakpoint for further manipulations." },
1373                    { "name": "actualLocation", "$ref": "Location", "description": "Location this breakpoint resolved into." }
1374                ],
1375                "description": "Sets JavaScript breakpoint at a given location."
1376            },
1377            {
1378                "name": "removeBreakpoint",
1379                "parameters": [
1380                    { "name": "breakpointId", "type": "string" }
1381                ],
1382                "description": "Removes JavaScript breakpoint."
1383            },
1384            {
1385                "name": "continueToLocation",
1386                "parameters": [
1387                    { "name": "location", "$ref": "Location", "description": "Location to continue to." }
1388                ],
1389                "description": "Continues execution until specific location is reached."
1390            },
1391            {
1392                "name": "stepOver",
1393                "description": "Steps over the statement."
1394            },
1395            {
1396                "name": "stepInto",
1397                "description": "Steps into the statement."
1398            },
1399            {
1400                "name": "stepOut",
1401                "description": "Steps out of the function."
1402            },
1403            {
1404                "name": "pause",
1405                "description": "Stops on the next JavaScript statement."
1406            },
1407            {
1408                "name": "resume",
1409                "description": "Resumes JavaScript execution."
1410            },
1411            {
1412                "name": "editScriptSource",
1413                "parameters": [
1414                    { "name": "sourceID", "type": "string", "description": "Id of the script to edit." },
1415                    { "name": "scriptSource", "type": "string", "description": "New content of the script." }
1416                ],
1417                "returns": [
1418                    { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref": "CallFrame"}, "description": "New stack trace in case editing has happened while VM was stopped." }
1419                ],
1420                "description": "Edits JavaScript script live."
1421            },
1422            {
1423                "name": "getScriptSource",
1424                "parameters": [
1425                    { "name": "sourceID", "type": "string", "description": "Id of the script to get source for." }
1426                ],
1427                "returns": [
1428                    { "name": "scriptSource", "type": "string", "description": "Script source." }
1429                ],
1430                "description": "Returns source for the script with given ID."
1431            },
1432            {
1433                "name": "setPauseOnExceptions",
1434                "parameters": [
1435                    { "name": "state", "type": "string", "enum": ["none", "uncaught", "all"], "description": "Pause on exceptions mode." }
1436                ],
1437                "description": "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions."
1438            },
1439            {
1440                "name": "evaluateOnCallFrame",
1441                "parameters": [
1442                    { "name": "callFrameId", "type": "string", "description": "Call frame identifier to evaluate on. This identifier is a part of backtrace reported by the <code>pausedScript</code>." },
1443                    { "name": "expression", "type": "string", "description": "Expression to evaluate." },
1444                    { "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>)." },
1445                    { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Specifies whether command line API should be available to the evaluated expression, defaults to false." }
1446                ],
1447                "returns": [
1448                    { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Object wrapper for the evaluation result." }
1449                ],
1450                "description": "Evaluates expression on a given call frame."
1451            }
1452        ],
1453        "events": [
1454            {
1455                "name": "debuggerWasEnabled",
1456                "description": "Fired when debugger gets enabled (deprecated)."
1457            },
1458            {
1459                "name": "debuggerWasDisabled",
1460                "description": "Fired when debugger gets disabled (deprecated)."
1461            },
1462            {
1463                "name": "scriptParsed",
1464                "parameters": [
1465                    { "name": "sourceID", "type": "string", "description": "Identifier of the script parsed." },
1466                    { "name": "url", "type": "string", "description": "URL of the script parsed (if any)." },
1467                    { "name": "lineOffset", "type": "integer", "description": "Line offset of the script within the resource with given URL (for script tags)." },
1468                    { "name": "columnOffset", "type": "integer", "description": "Column offset of the script within the resource with given URL." },
1469                    { "name": "length", "type": "integer", "description": "Length of the script" },
1470                    { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script." }
1471                ],
1472                "description": "Fired when virtual machine parses script. This even is also fired for all known scripts upon enabling debugger."
1473            },
1474            {
1475                "name": "scriptFailedToParse",
1476                "parameters": [
1477                    { "name": "url", "type": "string", "description": "URL of the script that failed to parse." },
1478                    { "name": "data", "type": "string", "description": "Source text of the script that failed to parse." },
1479                    { "name": "firstLine", "type": "integer", "description": "Line offset of the script within the resource." },
1480                    { "name": "errorLine", "type": "integer", "description": "Line with error." },
1481                    { "name": "errorMessage", "type": "string", "description": "Parse error message." }
1482                ],
1483                "description": "Fired when virtual machine fails to parse the script."
1484            },
1485            {
1486                "name": "breakpointResolved",
1487                "parameters": [
1488                    { "name": "breakpointId", "type": "string", "description": "Breakpoint unique identifier." },
1489                    { "name": "location", "$ref": "Location", "description": "Actual breakpoint location." }
1490                ],
1491                "description": "Fired when breakpoint is resolved to an actual script and location."
1492            },
1493            {
1494                "name": "paused",
1495                "parameters": [
1496                    {
1497                        "name": "details",
1498                        "type": "object",
1499                        "properties": [
1500                            { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." }
1501                        ],
1502                        "description": "Call stack information."
1503                    }
1504                ],
1505                "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria."
1506            },
1507            {
1508                "name": "resumed",
1509                "description": "Fired when the virtual machine resumed execution."
1510            }
1511        ]
1512    },
1513    {
1514        "domain": "BrowserDebugger",
1515        "description": "Browser 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.",
1516        "commands": [
1517            {
1518                "name": "setDOMBreakpoint",
1519                "parameters": [
1520                    { "name": "nodeId", "type": "integer", "description": "Identifier of the node to set breakpoint on." },
1521                    { "name": "type", "type": "integer", "description": "Type of the operation to stop upon." }
1522                ],
1523                "description": "Sets breakpoint on particular operation with DOM. "
1524            },
1525            {
1526                "name": "removeDOMBreakpoint",
1527                "parameters": [
1528                    { "name": "nodeId", "type": "integer", "description": "Identifier of the node to remove breakpoint from." },
1529                    { "name": "type", "type": "integer", "description": "Type of the breakpoint to remove." }
1530                ],
1531                "description": "Removes DOM breakpoint that was set using <code>setDOMBreakpoint</code>."
1532            },
1533            {
1534                "name": "setEventListenerBreakpoint",
1535                "parameters": [
1536                    { "name": "eventName", "type": "string", "description": "Event name to stop on (any DOM event will do)." }
1537                ],
1538                "description": "Sets breakpoint on particular DOM event."
1539            },
1540            {
1541                "name": "removeEventListenerBreakpoint",
1542                "parameters": [
1543                    { "name": "eventName", "type": "string", "description": "Event name." }
1544                ],
1545                "description": "Removes breakpoint on particular DOM event."
1546            },
1547            {
1548                "name": "setXHRBreakpoint",
1549                "parameters": [
1550                    { "name": "url", "type": "string", "description": "Resource URL substring. All XHRs having this substring in the URL will get stopped upon." }
1551                ],
1552                "description": "Sets breakpoint on XMLHttpRequest."
1553            },
1554            {
1555                "name": "removeXHRBreakpoint",
1556                "parameters": [
1557                    { "name": "url", "type": "string", "description": "Resource URL substring." }
1558                ],
1559                "description": "Removes breakpoint from XMLHttpRequest."
1560            }
1561        ]
1562    },
1563    {
1564        "domain": "Profiler",
1565        "types": [],
1566        "commands": [
1567            {
1568                "name": "enable"
1569            },
1570            {
1571                "name": "disable"
1572            },
1573            {
1574                "name": "isEnabled",
1575                "returns": [
1576                    { "name": "state", "type": "boolean" }
1577                ]
1578            },
1579            {
1580                "name": "start"
1581            },
1582            {
1583                "name": "stop"
1584            },
1585            {
1586                "name": "getProfileHeaders",
1587                "returns": [
1588                    { "name": "headers", "type": "array", "items": { "$ref": "ProfileHeader"} }
1589                ]
1590            },
1591            {
1592                "name": "getProfile",
1593                "parameters": [
1594                    { "name": "type", "type": "string" },
1595                    { "name": "uid", "type": "integer" }
1596                ],
1597                "returns": [
1598                    { "name": "profile", "$ref": "Profile" }
1599                ]
1600            },
1601            {
1602                "name": "removeProfile",
1603                "parameters": [
1604                    { "name": "type", "type": "string" },
1605                    { "name": "uid", "type": "integer" }
1606                ]
1607            },
1608            {
1609                "name": "clearProfiles"
1610            },
1611            {
1612                "name": "takeHeapSnapshot",
1613                "parameters": [
1614                    { "name": "detailed", "type": "boolean" }
1615                ]
1616            },
1617            {
1618                "name": "collectGarbage"
1619            }
1620        ],
1621        "events": [
1622            {
1623                "name": "profilerWasEnabled"
1624            },
1625            {
1626                "name": "profilerWasDisabled"
1627            },
1628            {
1629                "name": "addProfileHeader",
1630                "parameters": [
1631                    { "name": "header", "$ref": "ProfileHeader" }
1632                ]
1633            },
1634            {
1635                "name": "addHeapSnapshotChunk",
1636                "parameters": [
1637                    { "name": "uid", "type": "integer" },
1638                    { "name": "chunk", "type": "string" }
1639                ]
1640            },
1641            {
1642                "name": "finishHeapSnapshot",
1643                "parameters": [
1644                    { "name": "uid", "type": "integer" }
1645                ]
1646            },
1647            {
1648                "name": "setRecordingProfile",
1649                "parameters": [
1650                    { "name": "isProfiling", "type": "boolean" }
1651                ]
1652            },
1653            {
1654                "name": "resetProfiles"
1655            },
1656            {
1657                "name": "reportHeapSnapshotProgress",
1658                "parameters": [
1659                    { "name": "done", "type": "integer" },
1660                    { "name": "total", "type": "integer" }
1661                ]
1662            }
1663        ]
1664    }
1665]
1666