Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: sky/engine/core/inspector/protocol.json

Issue 723773002: Bring back ScriptDebugServer and associated machinery (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/inspector/generate-inspector-protocol-version ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 {
2 "version": { "major": "1", "minor": "1" },
3 "domains": [{
4 "domain": "Inspector",
5 "hidden": true,
6 "types": [],
7 "commands": [
8 {
9 "name": "enable",
10 "description": "Enables inspector domain notifications."
11 },
12 {
13 "name": "disable",
14 "description": "Disables inspector domain notifications."
15 },
16 {
17 "name": "reset",
18 "description": "Resets all domains."
19 }
20 ],
21 "events": [
22 {
23 "name": "evaluateForTestInFrontend",
24 "parameters": [
25 { "name": "testCallId", "type": "integer" },
26 { "name": "script", "type": "string" }
27 ]
28 },
29 {
30 "name": "inspect",
31 "parameters": [
32 { "name": "object", "$ref": "Runtime.RemoteObject" },
33 { "name": "hints", "type": "object" }
34 ]
35 },
36 {
37 "name": "detached",
38 "description": "Fired when remote debugging connection is about to be terminated. Contains detach reason.",
39 "parameters": [
40 { "name": "reason", "type": "string", "description": "The re ason why connection has been terminated." }
41 ],
42 "handlers": ["browser"]
43 },
44 {
45 "name": "targetCrashed",
46 "description": "Fired when debugging target has crashed",
47 "handlers": ["browser"]
48 }
49 ]
50 },
51 {
52 "domain": "Memory",
53 "hidden": true,
54 "commands": [
55 {
56 "name": "getDOMCounters",
57 "returns": [
58 { "name": "documents", "type": "integer" },
59 { "name": "nodes", "type": "integer" },
60 { "name": "jsEventListeners", "type": "integer" }
61 ]
62 }
63 ]
64 },
65 {
66 "domain": "Page",
67 "description": "Actions and events related to the inspected page belong to the page domain.",
68 "types": [
69 {
70 "id": "ResourceType",
71 "type": "string",
72 "enum": ["Document", "Stylesheet", "Image", "Media", "Font", "Sc ript", "TextTrack", "XHR", "WebSocket", "Other"],
73 "description": "Resource type as it was perceived by the renderi ng engine."
74 },
75 {
76 "id": "FrameId",
77 "type": "string",
78 "description": "Unique frame identifier."
79 },
80 {
81 "id": "Frame",
82 "type": "object",
83 "description": "Information about the Frame on the page.",
84 "properties": [
85 { "name": "id", "type": "string", "description": "Frame uniq ue identifier." },
86 { "name": "parentId", "type": "string", "optional": true, "d escription": "Parent frame identifier." },
87 { "name": "loaderId", "$ref": "Network.LoaderId", "descripti on": "Identifier of the loader associated with this frame." },
88 { "name": "name", "type": "string", "optional": true, "descr iption": "Frame's name as specified in the tag." },
89 { "name": "url", "type": "string", "description": "Frame doc ument's URL." },
90 { "name": "securityOrigin", "type": "string", "description": "Frame document's security origin." },
91 { "name": "mimeType", "type": "string", "description": "Fram e document's mimeType as determined by the browser." }
92 ]
93 },
94 {
95 "id": "FrameResourceTree",
96 "type": "object",
97 "description": "Information about the Frame hierarchy along with their cached resources.",
98 "properties": [
99 { "name": "frame", "$ref": "Frame", "description": "Frame in formation for this tree item." },
100 { "name": "childFrames", "type": "array", "optional": true, "items": { "$ref": "FrameResourceTree" }, "description": "Child frames." },
101 { "name": "resources", "type": "array",
102 "items": {
103 "type": "object",
104 "properties": [
105 { "name": "url", "type": "string", "description" : "Resource URL." },
106 { "name": "type", "$ref": "ResourceType", "descr iption": "Type of this resource." },
107 { "name": "mimeType", "type": "string", "descrip tion": "Resource mimeType as determined by the browser." },
108 { "name": "failed", "type": "boolean", "optional ": true, "description": "True if the resource failed to load." },
109 { "name": "canceled", "type": "boolean", "option al": true, "description": "True if the resource was canceled during loading." }
110 ]
111 },
112 "description": "Information about frame resources."
113 }
114 ],
115 "hidden": true
116 },
117 {
118 "id": "SearchMatch",
119 "type": "object",
120 "description": "Search match for resource.",
121 "properties": [
122 { "name": "lineNumber", "type": "number", "description": "Li ne number in resource content." },
123 { "name": "lineContent", "type": "string", "description": "L ine with match content." }
124 ],
125 "hidden": true
126 },
127 {
128 "id": "Cookie",
129 "type": "object",
130 "description": "Cookie object",
131 "properties": [
132 { "name": "name", "type": "string", "description": "Cookie n ame." },
133 { "name": "value", "type": "string", "description": "Cookie value." },
134 { "name": "domain", "type": "string", "description": "Cookie domain." },
135 { "name": "path", "type": "string", "description": "Cookie p ath." },
136 { "name": "expires", "type": "number", "description": "Cooki e expires." },
137 { "name": "size", "type": "integer", "description": "Cookie size." },
138 { "name": "httpOnly", "type": "boolean", "description": "Tru e if cookie is http-only." },
139 { "name": "secure", "type": "boolean", "description": "True if cookie is secure." },
140 { "name": "session", "type": "boolean", "description": "True in case of session cookie." }
141 ],
142 "hidden": true
143 },
144 {
145 "id": "ScriptIdentifier",
146 "type": "string",
147 "description": "Unique script identifier.",
148 "hidden": true
149 },
150 {
151 "id": "NavigationEntry",
152 "type": "object",
153 "description": "Navigation history entry.",
154 "properties": [
155 { "name": "id", "type": "integer", "description": "Unique id o f the navigation history entry." },
156 { "name": "url", "type": "string", "description": "URL of the navigation history entry." },
157 { "name": "title", "type": "string", "description": "Title of the navigation history entry." }
158 ],
159 "hidden": true
160 },
161 {
162 "id": "Quota",
163 "type": "object",
164 "description": "Quota information",
165 "properties": [
166 { "name": "temporary", "type": "number", "description": "Quo ta for temporary storage shared among all security origins" },
167 { "name": "persistent", "type": "number", "description": "Qu ota for persistent storage for the security origin." }
168 ],
169 "hidden": true
170 },
171 {
172 "id": "Usage",
173 "type": "object",
174 "description": "Usage information",
175 "properties": [
176 { "name": "temporary", "type": "array", "items": { "$ref": " Page.UsageItem" }, "description": "Temporary storage usage." },
177 { "name": "persistent", "type": "array", "items": { "$ref": "Page.UsageItem" }, "description": "Persistent storage usage." },
178 { "name": "syncable", "type": "array", "items": { "$ref": "P age.UsageItem" }, "description": "Syncable storage." }
179 ],
180 "hidden": true
181 },
182 {
183 "id": "UsageItem",
184 "type": "object",
185 "description": "Usage information for a client and storage type" ,
186 "properties": [
187 { "name": "id", "type": "string", "enum": ["filesystem", "da tabase", "appcache", "indexeddatabase"], "description": "Item id." },
188 { "name": "value", "type": "number", "description": "Item us age value." }
189 ],
190 "hidden": true
191 },
192 {
193 "id": "Viewport",
194 "type": "object",
195 "description": "Visible page viewport",
196 "properties": [
197 { "name": "scrollX", "type": "number", "description": "X scr oll offset in CSS pixels." },
198 { "name": "scrollY", "type": "number", "description": "Y scr oll offset in CSS pixels." },
199 { "name": "contentsWidth", "type": "number", "description": "Contents width in CSS pixels." },
200 { "name": "contentsHeight", "type": "number", "description": "Contents height in CSS pixels." },
201 { "name": "pageScaleFactor", "type": "number", "description" : "Page scale factor." },
202 { "name": "minimumPageScaleFactor", "type": "number", "descr iption": "Minimum page scale factor." },
203 { "name": "maximumPageScaleFactor", "type": "number", "descr iption": "Maximum page scale factor." }
204 ],
205 "hidden": true
206 },
207 {
208 "id": "ScreencastFrameMetadata",
209 "type": "object",
210 "description": "Screencast frame metadata",
211 "properties": [
212 { "name": "deviceScaleFactor", "type": "number", "hidden": t rue, "description": "Device scale factor." },
213 { "name": "viewport", "$ref": "DOM.Rect", "hidden": true, "d escription": "Viewport in CSS pixels." },
214 { "name": "offsetTop", "type": "number", "hidden": true, "op tional": true, "description": "Top offset in DIP." },
215 { "name": "offsetBottom", "type": "number", "hidden": true, "optional": true, "description": "Bottom offset in DIP." },
216 { "name": "pageScaleFactor", "type": "number", "hidden": tru e, "description": "Page scale factor." },
217 { "name": "pageScaleFactorMin", "type": "number", "hidden": true, "description": "Page scale factor min." },
218 { "name": "pageScaleFactorMax", "type": "number", "hidden": true, "description": "Page scale factor max." },
219 { "name": "deviceWidth", "type": "number", "hidden": true, " description": "Device screen width in DIP." },
220 { "name": "deviceHeight", "type": "number", "hidden": true, "description": "Device screen height in DIP." },
221 { "name": "scrollOffsetX", "type": "number", "hidden": true, "description": "Position of horizontal scroll in CSS pixels." },
222 { "name": "scrollOffsetY", "type": "number", "hidden": true, "description": "Position of vertical scroll in CSS pixels." }
223 ],
224 "hidden": true
225 }
226 ],
227 "commands": [
228 {
229 "name": "enable",
230 "description": "Enables page domain notifications.",
231 "handlers": ["browser", "renderer"]
232 },
233 {
234 "name": "disable",
235 "description": "Disables page domain notifications.",
236 "handlers": ["browser", "renderer"]
237 },
238 {
239 "name": "addScriptToEvaluateOnLoad",
240 "parameters": [
241 { "name": "scriptSource", "type": "string" }
242 ],
243 "returns": [
244 { "name": "identifier", "$ref": "ScriptIdentifier", "descrip tion": "Identifier of the added script." }
245 ],
246 "hidden": true
247 },
248 {
249 "name": "removeScriptToEvaluateOnLoad",
250 "parameters": [
251 { "name": "identifier", "$ref": "ScriptIdentifier" }
252 ],
253 "hidden": true
254 },
255 {
256 "name": "reload",
257 "parameters": [
258 { "name": "ignoreCache", "type": "boolean", "optional": true , "description": "If true, browser cache is ignored (as if the user pressed Shif t+refresh)." },
259 { "name": "scriptToEvaluateOnLoad", "type": "string", "optio nal": true, "description": "If set, the script will be injected into all frames of the inspected page after reload." },
260 { "name": "scriptPreprocessor", "type": "string", "optional" : true, "description": "Script body that should evaluate to function that will p reprocess all the scripts before their compilation.", "hidden": true }
261 ],
262 "description": "Reloads given page optionally ignoring the cache .",
263 "handlers": ["browser", "renderer"]
264 },
265 {
266 "name": "navigate",
267 "parameters": [
268 { "name": "url", "type": "string", "description": "URL to na vigate the page to." }
269 ],
270 "returns": [
271 { "name": "frameId", "$ref": "FrameId", "hidden": true, "des cription": "Frame id that will be navigated." }
272 ],
273 "description": "Navigates current page to the given URL.",
274 "handlers": ["browser", "renderer"]
275 },
276 {
277 "name": "getNavigationHistory",
278 "parameters": [],
279 "returns": [
280 { "name": "currentIndex", "type": "integer", "description": "Ind ex of the current navigation history entry." },
281 { "name": "entries", "type": "array", "items": { "$ref": "Naviga tionEntry" }, "description": "Array of navigation history entries." }
282 ],
283 "description": "Returns navigation history for the current page.",
284 "hidden": true,
285 "handlers": ["browser"]
286 },
287 {
288 "name": "navigateToHistoryEntry",
289 "parameters": [
290 { "name": "entryId", "type": "integer", "description": "Unique id of the entry to navigate to." }
291 ],
292 "description": "Navigates current page to the given history entry. ",
293 "hidden": true,
294 "handlers": ["browser"]
295 },
296 {
297 "name": "getCookies",
298 "returns": [
299 { "name": "cookies", "type": "array", "items": { "$ref": "Co okie" }, "description": "Array of cookie objects." }
300 ],
301 "description": "Returns all browser cookies. Depending on the ba ckend support, will return detailed cookie information in the <code>cookies</cod e> field.",
302 "hidden": true
303 },
304 {
305 "name": "deleteCookie",
306 "parameters": [
307 { "name": "cookieName", "type": "string", "description": "Na me of the cookie to remove." },
308 { "name": "url", "type": "string", "description": "URL to ma tch cooke domain and path." }
309 ],
310 "description": "Deletes browser cookie with given name, domain a nd path.",
311 "hidden": true
312 },
313 {
314 "name": "getResourceTree",
315 "description": "Returns present frame / resource tree structure. ",
316 "returns": [
317 { "name": "frameTree", "$ref": "FrameResourceTree", "descrip tion": "Present frame / resource tree structure." }
318 ],
319 "hidden": true
320 },
321 {
322 "name": "getResourceContent",
323 "async": true,
324 "description": "Returns content of the given resource.",
325 "parameters": [
326 { "name": "frameId", "$ref": "FrameId", "description": "Fram e id to get resource for." },
327 { "name": "url", "type": "string", "description": "URL of th e resource to get content for." }
328 ],
329 "returns": [
330 { "name": "content", "type": "string", "description": "Resou rce content." },
331 { "name": "base64Encoded", "type": "boolean", "description": "True, if content was served as base64." }
332 ],
333 "hidden": true
334 },
335 {
336 "name": "searchInResource",
337 "description": "Searches for given string in resource content.",
338 "parameters": [
339 { "name": "frameId", "$ref": "FrameId", "description": "Fram e id for resource to search in." },
340 { "name": "url", "type": "string", "description": "URL of th e resource to search in." },
341 { "name": "query", "type": "string", "description": "String to search for." },
342 { "name": "caseSensitive", "type": "boolean", "optional": tr ue, "description": "If true, search is case sensitive." },
343 { "name": "isRegex", "type": "boolean", "optional": true, "d escription": "If true, treats string parameter as regex." }
344 ],
345 "returns": [
346 { "name": "result", "type": "array", "items": { "$ref": "Sea rchMatch" }, "description": "List of search matches." }
347 ],
348 "hidden": true
349 },
350 {
351 "name": "setDocumentContent",
352 "description": "Sets given markup as the document's HTML.",
353 "parameters": [
354 { "name": "frameId", "$ref": "FrameId", "description": "Fram e id to set HTML for." },
355 { "name": "html", "type": "string", "description": "HTML con tent to set." }
356 ],
357 "hidden": true
358 },
359 {
360 "name": "setDeviceMetricsOverride",
361 "description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeig ht, and \"device-width\"/\"device-height\"-related CSS media query results).",
362 "parameters": [
363 { "name": "width", "type": "integer", "description": "Overri ding width value in pixels (minimum 0, maximum 10000000). 0 disables the overrid e." },
364 { "name": "height", "type": "integer", "description": "Overr iding height value in pixels (minimum 0, maximum 10000000). 0 disables the overr ide." },
365 { "name": "deviceScaleFactor", "type": "number", "descriptio n": "Overriding device scale factor value. 0 disables the override." },
366 { "name": "mobile", "type": "boolean", "description": "Wheth er to emulate mobile device. This includes viewport meta tag, overlay scrollbars , text autosizing and more." },
367 { "name": "fitWindow", "type": "boolean", "description": "Wh ether a view that exceeds the available browser window area should be scaled dow n to fit." },
368 { "name": "scale", "type": "number", "optional": true, "desc ription": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." },
369 { "name": "offsetX", "type": "number", "optional": true, "de scription": "X offset to shift resulting view image by. Ignored in |fitWindow| m ode." },
370 { "name": "offsetY", "type": "number", "optional": true, "de scription": "Y offset to shift resulting view image by. Ignored in |fitWindow| m ode." }
371 ],
372 "hidden": true
373 },
374 {
375 "name": "clearDeviceMetricsOverride",
376 "description": "Clears the overriden device metrics.",
377 "hidden": true
378 },
379 {
380 "name": "resetScrollAndPageScaleFactor",
381 "description": "Requests that scroll offsets and page scale fact or are reset to initial values.",
382 "hidden": true
383 },
384 {
385 "name": "setPageScaleFactor",
386 "description": "Sets a specified page scale factor.",
387 "parameters": [
388 { "name": "pageScaleFactor", "type": "number", "description" : "Page scale factor." }
389 ],
390 "hidden": true
391 },
392 {
393 "name": "setShowPaintRects",
394 "description": "Requests that backend shows paint rectangles",
395 "parameters": [
396 { "name": "result", "type": "boolean", "description": "True for showing paint rectangles" }
397 ],
398 "hidden": true
399 },
400 {
401 "name": "setShowDebugBorders",
402 "description": "Requests that backend shows debug borders on lay ers",
403 "parameters": [
404 { "name": "show", "type": "boolean", "description": "True fo r showing debug borders" }
405 ],
406 "hidden": true
407 },
408 {
409 "name": "setShowFPSCounter",
410 "description": "Requests that backend shows the FPS counter",
411 "parameters": [
412 { "name": "show", "type": "boolean", "description": "True fo r showing the FPS counter" }
413 ],
414 "hidden": true
415 },
416 {
417 "name": "setContinuousPaintingEnabled",
418 "description": "Requests that backend enables continuous paintin g",
419 "parameters": [
420 { "name": "enabled", "type": "boolean", "description": "True for enabling cointinuous painting" }
421 ],
422 "hidden": true
423 },
424 {
425 "name": "setShowScrollBottleneckRects",
426 "description": "Requests that backend shows scroll bottleneck re cts",
427 "parameters": [
428 { "name": "show", "type": "boolean", "description": "True fo r showing scroll bottleneck rects" }
429 ],
430 "hidden": true
431 },
432 {
433 "name": "getScriptExecutionStatus",
434 "description": "Determines if scripts can be executed in the pag e.",
435 "returns": [
436 { "name": "result", "type": "string", "enum": ["allowed", "d isabled", "forbidden"], "description": "Script execution status: \"allowed\" if scripts can be executed, \"disabled\" if script execution has been disabled thro ugh page settings, \"forbidden\" if script execution for the given page is not p ossible for other reasons." }
437 ],
438 "hidden": true
439 },
440 {
441 "name": "setScriptExecutionDisabled",
442 "description": "Switches script execution in the page.",
443 "parameters": [
444 { "name": "value", "type": "boolean", "description": "Whethe r script execution should be disabled in the page." }
445 ],
446 "hidden": true
447 },
448 {
449 "name": "setGeolocationOverride",
450 "description": "Overrides the Geolocation Position or Error.",
451 "parameters": [
452 { "name": "latitude", "type": "number", "optional": true, "d escription": "Mock latitude"},
453 { "name": "longitude", "type": "number", "optional": true, " description": "Mock longitude"},
454 { "name": "accuracy", "type": "number", "optional": true, "d escription": "Mock accuracy"}
455 ],
456 "redirect": "Geolocation"
457 },
458 {
459 "name": "clearGeolocationOverride",
460 "description": "Clears the overriden Geolocation Position and Er ror.",
461 "redirect": "Geolocation"
462 },
463 {
464 "name": "setDeviceOrientationOverride",
465 "description": "Overrides the Device Orientation.",
466 "parameters": [
467 { "name": "alpha", "type": "number", "description": "Mock al pha"},
468 { "name": "beta", "type": "number", "description": "Mock bet a"},
469 { "name": "gamma", "type": "number", "description": "Mock ga mma"}
470 ],
471 "redirect": "DeviceOrientation",
472 "hidden": true
473 },
474 {
475 "name": "clearDeviceOrientationOverride",
476 "description": "Clears the overridden Device Orientation.",
477 "redirect": "DeviceOrientation",
478 "hidden": true
479 },
480 {
481 "name": "setTouchEmulationEnabled",
482 "parameters": [
483 { "name": "enabled", "type": "boolean", "description": "Whet her the touch event emulation should be enabled." }
484 ],
485 "description": "Toggles mouse event-based touch event emulation. ",
486 "hidden": true,
487 "handlers": ["browser", "renderer"]
488 },
489 {
490 "name": "setEmulatedMedia",
491 "parameters": [
492 { "name": "media", "type": "string", "description": "Media t ype to emulate. Empty string disables the override." }
493 ],
494 "description": "Emulates the given media for CSS media queries." ,
495 "hidden": true
496 },
497 {
498 "name": "captureScreenshot",
499 "description": "Capture page screenshot.",
500 "parameters": [],
501 "returns": [
502 { "name": "data", "type": "string", "description": "Base64-e ncoded image data (PNG)." }
503 ],
504 "hidden": true,
505 "handlers": ["browser"]
506 },
507 {
508 "name": "canScreencast",
509 "description": "Tells whether screencast is supported.",
510 "returns": [
511 { "name": "result", "type": "boolean", "description": "True if screencast is supported." }
512 ],
513 "hidden": true,
514 "handlers": ["browser"]
515 },
516 {
517 "name": "canEmulate",
518 "description": "Tells whether emulation is supported.",
519 "returns": [
520 { "name": "result", "type": "boolean", "description": "True if emulation is supported." }
521 ],
522 "hidden": true,
523 "handlers": ["browser"]
524 },
525 {
526 "name": "startScreencast",
527 "description": "Starts sending each frame using the <code>screen castFrame</code> event.",
528 "parameters": [
529 { "name": "format", "type": "string", "optional": true, "enu m": ["jpeg", "png"], "description": "Image compression format." },
530 { "name": "quality", "type": "integer", "optional": true, "d escription": "Compression quality from range [0..100]." },
531 { "name": "maxWidth", "type": "integer", "optional": true, " description": "Maximum screenshot width." },
532 { "name": "maxHeight", "type": "integer", "optional": true, "description": "Maximum screenshot height." }
533 ],
534 "hidden": true,
535 "handlers": ["browser"]
536 },
537 {
538 "name": "stopScreencast",
539 "description": "Stops sending each frame in the <code>screencast Frame</code>.",
540 "hidden": true,
541 "handlers": ["browser"]
542 },
543 {
544 "name": "handleJavaScriptDialog",
545 "description": "Accepts or dismisses a JavaScript initiated dial og (alert, confirm, prompt, or onbeforeunload).",
546 "parameters": [
547 { "name": "accept", "type": "boolean", "description": "Wheth er to accept or dismiss the dialog." },
548 { "name": "promptText", "type": "string", "optional": true, "description": "The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog." }
549 ],
550 "hidden": true,
551 "handlers": ["browser"]
552 },
553 {
554 "name": "setShowViewportSizeOnResize",
555 "description": "Paints viewport size upon main frame resize.",
556 "parameters": [
557 { "name": "show", "type": "boolean", "description": "Whether to paint size or not." },
558 { "name": "showGrid", "type": "boolean", "optional": true, " description": "Whether to paint grid as well." }
559 ],
560 "hidden": true
561 },
562 {
563 "name": "queryUsageAndQuota",
564 "parameters": [
565 { "name": "securityOrigin", "type": "string", "description": "Security origin quota and usage requested for" }
566 ],
567 "returns": [
568 { "name": "quota", "$ref": "Quota", "description": "Quota fo r requested security origin." },
569 { "name": "usage", "$ref": "Usage", "description": "Current usage for requested security origin." }
570 ],
571 "description": "Queries more detailed quota and usage data than Storage API provides.",
572 "hidden": true,
573 "handlers": ["browser"]
574 },
575 {
576 "name": "setColorPickerEnabled",
577 "parameters": [
578 { "name": "enabled", "type": "boolean", "description": "Show s / hides color picker" }
579 ],
580 "description": "Shows / hides color picker",
581 "hidden": true,
582 "handlers": ["browser"]
583 }
584 ],
585 "events": [
586 {
587 "name": "domContentEventFired",
588 "parameters": [
589 { "name": "timestamp", "type": "number" }
590 ]
591 },
592 {
593 "name": "loadEventFired",
594 "parameters": [
595 { "name": "timestamp", "type": "number" }
596 ]
597 },
598 {
599 "name": "frameAttached",
600 "description": "Fired when frame has been attached to its parent .",
601 "parameters": [
602 { "name": "frameId", "$ref": "FrameId", "description": "Id o f the frame that has been attached." },
603 { "name": "parentFrameId", "$ref": "FrameId", "description": "Parent frame identifier." }
604 ]
605 },
606 {
607 "name": "frameNavigated",
608 "description": "Fired once navigation of the frame has completed . Frame is now associated with the new loader.",
609 "parameters": [
610 { "name": "frame", "$ref": "Frame", "description": "Frame ob ject." }
611 ]
612 },
613 {
614 "name": "frameDetached",
615 "description": "Fired when frame has been detached from its pare nt.",
616 "parameters": [
617 { "name": "frameId", "$ref": "FrameId", "description": "Id o f the frame that has been detached." }
618 ]
619 },
620 {
621 "name": "frameStartedLoading",
622 "description": "Fired when frame has started loading.",
623 "parameters": [
624 { "name": "frameId", "$ref": "FrameId", "description": "Id o f the frame that has started loading." }
625 ],
626 "hidden": true
627 },
628 {
629 "name": "frameStoppedLoading",
630 "description": "Fired when frame has stopped loading.",
631 "parameters": [
632 { "name": "frameId", "$ref": "FrameId", "description": "Id o f the frame that has stopped loading." }
633 ],
634 "hidden": true
635 },
636 {
637 "name": "frameScheduledNavigation",
638 "description": "Fired when frame schedules a potential navigatio n.",
639 "parameters": [
640 { "name": "frameId", "$ref": "FrameId", "description": "Id o f the frame that has scheduled a navigation." },
641 { "name": "delay", "type": "number", "description": "Delay ( in seconds) until the navigation is scheduled to begin. The navigation is not gu aranteed to start." }
642 ],
643 "hidden": true
644 },
645 {
646 "name": "frameClearedScheduledNavigation",
647 "description": "Fired when frame no longer has a scheduled navig ation.",
648 "parameters": [
649 { "name": "frameId", "$ref": "FrameId", "description": "Id o f the frame that has cleared its scheduled navigation." }
650 ],
651 "hidden": true
652 },
653 {
654 "name": "frameResized",
655 "hidden": true
656 },
657 {
658 "name": "javascriptDialogOpening",
659 "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.",
660 "parameters": [
661 { "name": "message", "type": "string", "description": "Messa ge that will be displayed by the dialog." }
662 ],
663 "hidden": true
664 },
665 {
666 "name": "javascriptDialogClosed",
667 "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.",
668 "hidden": true
669 },
670 {
671 "name": "scriptsEnabled",
672 "description": "Fired when the JavaScript is enabled/disabled on the page",
673 "parameters": [
674 { "name": "isEnabled", "type": "boolean", "description": "Wh ether script execution is enabled or disabled on the page." }
675 ],
676 "hidden": true
677 },
678 {
679 "name": "screencastFrame",
680 "description": "Compressed image data requested by the <code>sta rtScreencast</code>.",
681 "parameters": [
682 { "name": "data", "type": "string", "description": "Base64-e ncoded compressed image." },
683 { "name": "metadata", "$ref": "ScreencastFrameMetadata", "de scription": "Screencast frame metadata"}
684 ],
685 "hidden": true,
686 "handlers": ["browser"]
687 },
688 {
689 "name": "screencastVisibilityChanged",
690 "description": "Fired when the page with currently enabled scree ncast was shown or hidden </code>.",
691 "parameters": [
692 { "name": "visible", "type": "boolean", "description": "True if the page is visible." }
693 ],
694 "hidden": true,
695 "handlers": ["browser"]
696 },
697 {
698 "name": "viewportChanged",
699 "description": "Fired when a visible page viewport has changed." ,
700 "parameters": [
701 { "name": "viewport", "$ref": "Viewport", "description": "Vi ewport description." }
702 ],
703 "hidden": true
704 },
705 {
706 "name": "colorPicked",
707 "description": "Fired when a color has been picked.",
708 "parameters": [
709 { "name": "color", "$ref": "DOM.RGBA", "description": "RGBA of the picked color." }
710 ],
711 "hidden": true,
712 "handlers": ["browser"]
713 },
714 {
715 "name": "interstitialShown",
716 "description": "Fired when interstitial page was shown",
717 "hidden": true,
718 "handlers": ["browser"]
719 },
720 {
721 "name": "interstitialHidden",
722 "description": "Fired when interstitial page was hidden",
723 "hidden": true,
724 "handlers": ["browser"]
725 }
726 ]
727 },
728 {
729 "domain": "Runtime",
730 "description": "Runtime domain exposes JavaScript runtime by means of re mote evaluation and mirror objects. Evaluation results are returned as mirror ob ject that expose object type, string representation and unique identifier that c an be used for further object reference. Original objects are maintained in memo ry unless they are either explicitly released or are released along with the oth er objects in their object group.",
731 "types": [
732 {
733 "id": "RemoteObjectId",
734 "type": "string",
735 "description": "Unique object identifier."
736 },
737 {
738 "id": "RemoteObject",
739 "type": "object",
740 "description": "Mirror object referencing original JavaScript ob ject.",
741 "properties": [
742 { "name": "type", "type": "string", "enum": ["object", "func tion", "undefined", "string", "number", "boolean", "symbol"], "description": "Ob ject type." },
743 { "name": "subtype", "type": "string", "optional": true, "en um": ["array", "null", "node", "regexp", "date", "map", "set"], "description": " Object subtype hint. Specified for <code>object</code> type values only." },
744 { "name": "className", "type": "string", "optional": true, " description": "Object class (constructor) name. Specified for <code>object</code > type values only." },
745 { "name": "value", "type": "any", "optional": true, "descrip tion": "Remote object value in case of primitive values or JSON values (if it wa s requested), or description string if the value can not be JSON-stringified (li ke NaN, Infinity, -Infinity, -0)." },
746 { "name": "description", "type": "string", "optional": true, "description": "String representation of the object." },
747 { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Unique object identifier (for non-primitive values)." },
748 { "name": "preview", "$ref": "ObjectPreview", "optional": tr ue, "description": "Preview containing abbreviated property values.", "hidden": true }
749 ]
750 },
751 {
752 "id": "ObjectPreview",
753 "type": "object",
754 "hidden": true,
755 "description": "Object containing abbreviated remote object valu e.",
756 "properties": [
757 { "name": "lossless", "type": "boolean", "description": "Det ermines whether preview is lossless (contains all information of the original ob ject)." },
758 { "name": "overflow", "type": "boolean", "description": "Tru e iff some of the properties of the original did not fit." },
759 { "name": "properties", "type": "array", "items": { "$ref": "PropertyPreview" }, "description": "List of the properties." }
760 ]
761 },
762 {
763 "id": "PropertyPreview",
764 "type": "object",
765 "hidden": true,
766 "properties": [
767 { "name": "name", "type": "string", "description": "Property name." },
768 { "name": "type", "type": "string", "enum": ["object", "func tion", "undefined", "string", "number", "boolean", "symbol", "accessor"], "descr iption": "Object type. Accessor means that the property itself is an accessor pr operty." },
769 { "name": "value", "type": "string", "optional": true, "desc ription": "User-friendly property value string." },
770 { "name": "valuePreview", "$ref": "ObjectPreview", "optional ": true, "description": "Nested value preview." },
771 { "name": "subtype", "type": "string", "optional": true, "en um": ["array", "null", "node", "regexp", "date", "map", "set"], "description": " Object subtype hint. Specified for <code>object</code> type values only." }
772 ]
773 },
774 {
775 "id": "PropertyDescriptor",
776 "type": "object",
777 "description": "Object property descriptor.",
778 "properties": [
779 { "name": "name", "type": "string", "description": "Property name or symbol description." },
780 { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." },
781 { "name": "writable", "type": "boolean", "optional": true, " description": "True if the value associated with the property may be changed (da ta descriptors only)." },
782 { "name": "get", "$ref": "RemoteObject", "optional": true, " description": "A function which serves as a getter for the property, or <code>un defined</code> if there is no getter (accessor descriptors only)." },
783 { "name": "set", "$ref": "RemoteObject", "optional": true, " description": "A function which serves as a setter for the property, or <code>un defined</code> if there is no setter (accessor descriptors only)." },
784 { "name": "configurable", "type": "boolean", "description": "True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object." },
785 { "name": "enumerable", "type": "boolean", "description": "T rue if this property shows up during enumeration of the properties on the corres ponding object." },
786 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
787 { "name": "isOwn", "optional": true, "type": "boolean", "des cription": "True if the property is owned for the object.", "hidden": true },
788 { "name": "symbol", "$ref": "RemoteObject", "optional": true , "description": "Property symbol object, if the property is of the <code>symbol </code> type.", "hidden": true }
789 ]
790 },
791 {
792 "id": "InternalPropertyDescriptor",
793 "type": "object",
794 "description": "Object internal property descriptor. This proper ty isn't normally visible in JavaScript code.",
795 "properties": [
796 { "name": "name", "type": "string", "description": "Conventi onal property name." },
797 { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." }
798 ],
799 "hidden": true
800 },
801 {
802 "id": "CallArgument",
803 "type": "object",
804 "description": "Represents function call argument. Either remote object id <code>objectId</code> or primitive <code>value</code> or neither of ( for undefined) them should be specified.",
805 "properties": [
806 { "name": "value", "type": "any", "optional": true, "descrip tion": "Primitive value, or description string if the value can not be JSON-stri ngified (like NaN, Infinity, -Infinity, -0)." },
807 { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Remote object handle." },
808 { "name": "type", "optional": true, "hidden": true, "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boole an", "symbol"], "description": "Object type." }
809 ]
810 },
811 {
812 "id": "ExecutionContextId",
813 "type": "integer",
814 "description": "Id of an execution context."
815 },
816 {
817 "id": "ExecutionContextDescription",
818 "type": "object",
819 "description": "Description of an isolated world.",
820 "properties": [
821 { "name": "id", "$ref": "ExecutionContextId", "description": "Unique id of the execution context. It can be used to specify in which executi on context script evaluation should be performed." },
822 { "name": "isPageContext", "type": "boolean", "description": "True if this is a context where inpspected web page scripts run. False if it i s a content script isolated context.", "hidden": true },
823 { "name": "origin", "type": "string", "description": "Execut ion context origin.", "hidden": true},
824 { "name": "name", "type": "string", "description": "Human re adable name describing given context.", "hidden": true},
825 { "name": "frameId", "$ref": "Page.FrameId", "description": "Id of the owning frame." }
826 ]
827 }
828
829 ],
830 "commands": [
831 {
832 "name": "evaluate",
833 "parameters": [
834 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." },
835 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." },
836 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "hidden": true },
837 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether evaluation should s top on exceptions and mute console. Overrides setPauseOnException state.", "hidd en": true },
838 { "name": "contextId", "$ref": "Runtime.ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perfor m evaluation. Each content script lives in an isolated context and this paramete r may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page." },
839 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object that shou ld be sent by value." },
840 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." }
841 ],
842 "returns": [
843 { "name": "result", "$ref": "RemoteObject", "description": " Evaluation result." },
844 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
845 { "name": "exceptionDetails", "$ref": "Debugger.ExceptionDet ails", "optional": true, "hidden": true, "description": "Exception details."}
846 ],
847 "description": "Evaluates expression on global object."
848 },
849 {
850 "name": "callFunctionOn",
851 "parameters": [
852 { "name": "objectId", "$ref": "RemoteObjectId", "description ": "Identifier of the object to call function on." },
853 { "name": "functionDeclaration", "type": "string", "descript ion": "Declaration of the function to call." },
854 { "name": "arguments", "type": "array", "items": { "$ref": " CallArgument", "description": "Call argument." }, "optional": true, "description ": "Call arguments. All call arguments must belong to the same JavaScript world as the target object." },
855 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether function call shoul d stop on exceptions and mute console. Overrides setPauseOnException state.", "h idden": true },
856 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object which sho uld be sent by value." },
857 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." }
858 ],
859 "returns": [
860 { "name": "result", "$ref": "RemoteObject", "description": " Call result." },
861 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }
862 ],
863 "description": "Calls function with given declaration on the giv en object. Object group of the result is inherited from the target object."
864 },
865 {
866 "name": "getProperties",
867 "parameters": [
868 { "name": "objectId", "$ref": "RemoteObjectId", "description ": "Identifier of the object to return properties for." },
869 { "name": "ownProperties", "optional": true, "type": "boolea n", "description": "If true, returns properties belonging only to the element it self, not to its prototype chain." },
870 { "name": "accessorPropertiesOnly", "optional": true, "type" : "boolean", "description": "If true, returns accessor properties (with getter/s etter) only; internal properties are not returned either.", "hidden": true }
871 ],
872 "returns": [
873 { "name": "result", "type": "array", "items": { "$ref": "Pro pertyDescriptor" }, "description": "Object properties." },
874 { "name": "internalProperties", "optional": true, "type": "a rray", "items": { "$ref": "InternalPropertyDescriptor" }, "description": "Intern al object properties (only of the element itself).", "hidden": true }
875 ],
876 "description": "Returns properties of a given object. Object gro up of the result is inherited from the target object."
877 },
878 {
879 "name": "releaseObject",
880 "parameters": [
881 { "name": "objectId", "$ref": "RemoteObjectId", "description ": "Identifier of the object to release." }
882 ],
883 "description": "Releases remote object with given id."
884 },
885 {
886 "name": "releaseObjectGroup",
887 "parameters": [
888 { "name": "objectGroup", "type": "string", "description": "S ymbolic object group name." }
889 ],
890 "description": "Releases all remote objects that belong to a giv en group."
891 },
892 {
893 "name": "run",
894 "hidden": true,
895 "description": "Tells inspected instance(worker or page) that it can run in case it was started paused."
896 },
897 {
898 "name": "enable",
899 "description": "Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context. "
900 },
901 {
902 "name": "disable",
903 "hidden": true,
904 "description": "Disables reporting of execution contexts creatio n."
905 },
906 {
907 "name": "isRunRequired",
908 "returns": [
909 { "name": "result", "type": "boolean", "description": "True if the Runtime is in paused on start state." }
910 ],
911 "hidden": true
912 }
913 ],
914 "events": [
915 {
916 "name": "executionContextCreated",
917 "parameters": [
918 { "name": "context", "$ref": "ExecutionContextDescription", "description": "A newly created execution contex." }
919 ],
920 "description": "Issued when new execution context is created."
921 },
922 {
923 "name": "executionContextDestroyed",
924 "parameters": [
925 { "name": "executionContextId", "$ref": "ExecutionContextId" , "description": "Id of the destroyed context" }
926 ],
927 "description": "Issued when execution context is destroyed."
928 },
929 {
930 "name": "executionContextsCleared",
931 "description": "Issued when all executionContexts were cleared i n browser"
932 }
933 ]
934 },
935 {
936 "domain": "Console",
937 "description": "Console domain defines methods and events for interactio n with the JavaScript console. Console collects messages created by means of the <a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console A PI</a>. One needs to enable this domain using <code>enable</code> command in ord er to start receiving the console messages. Browser collects messages issued whi le console domain is not enabled as well and reports them using <code>messageAdd ed</code> notification upon enabling.",
938 "types": [
939 {
940 "id": "Timestamp",
941 "type": "number",
942 "description": "Number of seconds since epoch.",
943 "hidden": true
944 },
945 {
946 "id": "ConsoleMessage",
947 "type": "object",
948 "description": "Console message.",
949 "properties": [
950 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "css", "se curity", "other", "deprecation"], "description": "Message source." },
951 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug", "info"], "description": "Message severity." },
952 { "name": "text", "type": "string", "description": "Message text." },
953 { "name": "type", "type": "string", "optional": true, "enum" : ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC ollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Conso le message type." },
954 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Script ID of the message origin." },
955 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." },
956 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." },
957 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." },
958 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Repeat count for repeated messages." },
959 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i n case of the formatted message." },
960 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr ue, "description": "JavaScript stack trace for assertions and error messages." } ,
961 { "name": "asyncStackTrace", "$ref": "AsyncStackTrace", "opt ional": true, "description": "Asynchronous JavaScript stack trace that preceded this message, if available.", "hidden": true },
962 { "name": "networkRequestId", "$ref": "Network.RequestId", " optional": true, "description": "Identifier of the network request associated wi th this message." },
963 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp, when this message was fired.", "hidden": true },
964 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Identifier of the context where this message was created", "hidden": true }
965 ]
966 },
967 {
968 "id": "CallFrame",
969 "type": "object",
970 "description": "Stack entry for console errors and assertions.",
971 "properties": [
972 { "name": "functionName", "type": "string", "description": " JavaScript function name." },
973 { "name": "scriptId", "type": "string", "description": "Java Script script id." },
974 { "name": "url", "type": "string", "description": "JavaScrip t script name or url." },
975 { "name": "lineNumber", "type": "integer", "description": "J avaScript script line number." },
976 { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number." }
977 ]
978 },
979 {
980 "id": "StackTrace",
981 "type": "array",
982 "items": { "$ref": "CallFrame" },
983 "description": "Call frames for assertions or error messages."
984 },
985 {
986 "id": "AsyncStackTrace",
987 "type": "object",
988 "properties": [
989 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call frames of the stack trace." },
990 { "name": "description", "type": "string", "optional": true, "description": "String label of this stack trace. For async traces this may be a name of the function that initiated the async call." },
991 { "name": "asyncStackTrace", "$ref": "AsyncStackTrace", "opt ional": true, "description": "Next asynchronous stack trace, if any." }
992 ],
993 "description": "Asynchronous JavaScript call stack.",
994 "hidden": true
995 }
996 ],
997 "commands": [
998 {
999 "name": "enable",
1000 "description": "Enables console domain, sends the messages colle cted so far to the client by means of the <code>messageAdded</code> notification ."
1001 },
1002 {
1003 "name": "disable",
1004 "description": "Disables console domain, prevents further consol e messages from being reported to the client."
1005 },
1006 {
1007 "name": "clearMessages",
1008 "description": "Clears console messages collected in the browser ."
1009 },
1010 {
1011 "name": "setMonitoringXHREnabled",
1012 "parameters": [
1013 { "name": "enabled", "type": "boolean", "description": "Moni toring enabled state." }
1014 ],
1015 "description": "Toggles monitoring of XMLHttpRequest. If <code>t rue</code>, console will receive messages upon each XHR issued.",
1016 "hidden": true
1017 },
1018 {
1019 "name": "addInspectedNode",
1020 "parameters": [
1021 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "DO M node id to be accessible by means of $x command line API." }
1022 ],
1023 "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).",
1024 "hidden": true
1025 },
1026 {
1027 "name": "addInspectedHeapObject",
1028 "parameters": [
1029 { "name": "heapObjectId", "type": "integer" }
1030 ],
1031 "hidden": true
1032 },
1033 {
1034 "name": "setTracingBasedTimeline",
1035 "parameters": [
1036 { "name": "enabled", "type": "boolean", "description": "Swit ch console.timeline to tracing based." }
1037 ],
1038 "hidden": true
1039 }
1040 ],
1041 "events": [
1042 {
1043 "name": "messageAdded",
1044 "parameters": [
1045 { "name": "message", "$ref": "ConsoleMessage", "description" : "Console message that has been added." }
1046 ],
1047 "description": "Issued when new console message is added."
1048 },
1049 {
1050 "name": "messageRepeatCountUpdated",
1051 "parameters": [
1052 { "name": "count", "type": "integer", "description": "New re peat count value." },
1053 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp of most recent message in batch.", "hidden": true }
1054 ],
1055 "description": "Is not issued. Will be gone in the future versio ns of the protocol.",
1056 "deprecated": true
1057 },
1058 {
1059 "name": "messagesCleared",
1060 "description": "Issued when console is cleared. This happens eit her upon <code>clearMessages</code> command or after page navigation."
1061 }
1062 ]
1063 },
1064 {
1065 "domain": "Network",
1066 "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and resp onses, their headers, bodies, timing, etc.",
1067 "types": [
1068 {
1069 "id": "LoaderId",
1070 "type": "string",
1071 "description": "Unique loader identifier."
1072 },
1073 {
1074 "id": "RequestId",
1075 "type": "string",
1076 "description": "Unique request identifier."
1077 },
1078 {
1079 "id": "Timestamp",
1080 "type": "number",
1081 "description": "Number of seconds since epoch."
1082 },
1083 {
1084 "id": "Headers",
1085 "type": "object",
1086 "description": "Request / response headers as keys / values of J SON object."
1087 },
1088 {
1089 "id": "ResourceTiming",
1090 "type": "object",
1091 "description": "Timing information for the request.",
1092 "properties": [
1093 { "name": "requestTime", "type": "number", "description": "T iming's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime." },
1094 { "name": "proxyStart", "type": "number", "description": "St arted resolving proxy." },
1095 { "name": "proxyEnd", "type": "number", "description": "Fini shed resolving proxy." },
1096 { "name": "dnsStart", "type": "number", "description": "Star ted DNS address resolve." },
1097 { "name": "dnsEnd", "type": "number", "description": "Finish ed DNS address resolve." },
1098 { "name": "connectStart", "type": "number", "description": " Started connecting to the remote host." },
1099 { "name": "connectEnd", "type": "number", "description": "Co nnected to the remote host." },
1100 { "name": "sslStart", "type": "number", "description": "Star ted SSL handshake." },
1101 { "name": "sslEnd", "type": "number", "description": "Finish ed SSL handshake." },
1102 { "name": "sendStart", "type": "number", "description": "Sta rted sending request." },
1103 { "name": "sendEnd", "type": "number", "description": "Finis hed sending request." },
1104 { "name": "receiveHeadersEnd", "type": "number", "descriptio n": "Finished receiving response headers." }
1105 ]
1106 },
1107 {
1108 "id": "Request",
1109 "type": "object",
1110 "description": "HTTP request data.",
1111 "properties": [
1112 { "name": "url", "type": "string", "description": "Request U RL." },
1113 { "name": "method", "type": "string", "description": "HTTP r equest method." },
1114 { "name": "headers", "$ref": "Headers", "description": "HTTP request headers." },
1115 { "name": "postData", "type": "string", "optional": true, "d escription": "HTTP POST request data." }
1116 ]
1117 },
1118 {
1119 "id": "Response",
1120 "type": "object",
1121 "description": "HTTP response data.",
1122 "properties": [
1123 { "name": "url", "type": "string", "description": "Response URL. This URL can be different from CachedResource.url in case of redirect." },
1124 { "name": "status", "type": "number", "description": "HTTP r esponse status code." },
1125 { "name": "statusText", "type": "string", "description": "HT TP response status text." },
1126 { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." },
1127 { "name": "headersText", "type": "string", "optional": true, "description": "HTTP response headers text." },
1128 { "name": "mimeType", "type": "string", "description": "Reso urce mimeType as determined by the browser." },
1129 { "name": "requestHeaders", "$ref": "Headers", "optional": t rue, "description": "Refined HTTP request headers that were actually transmitted over the network." },
1130 { "name": "requestHeadersText", "type": "string", "optional" : true, "description": "HTTP request headers text." },
1131 { "name": "connectionReused", "type": "boolean", "descriptio n": "Specifies whether physical connection was actually reused for this request. " },
1132 { "name": "connectionId", "type": "number", "description": " Physical connection id that was actually used for this request." },
1133 { "name": "remoteIPAddress", "type": "string", "optional": t rue, "hidden": true, "description": "Remote IP address." },
1134 { "name": "remotePort", "type": "integer", "optional": true, "hidden": true, "description": "Remote port."},
1135 { "name": "fromDiskCache", "type": "boolean", "optional": tr ue, "description": "Specifies that the request was served from the disk cache." },
1136 { "name": "fromServiceWorker", "type": "boolean", "optional" : true, "description": "Specifies that the request was served from the ServiceWo rker." },
1137 { "name": "encodedDataLength", "type": "number", "optional": false, "description": "Total number of bytes received for this request so far." },
1138 { "name": "timing", "$ref": "ResourceTiming", "optional": tr ue, "description": "Timing information for the given request." }
1139 ]
1140 },
1141 {
1142 "id": "WebSocketRequest",
1143 "type": "object",
1144 "description": "WebSocket request data.",
1145 "hidden": true,
1146 "properties": [
1147 { "name": "headers", "$ref": "Headers", "description": "HTTP request headers." }
1148 ]
1149 },
1150 {
1151 "id": "WebSocketResponse",
1152 "type": "object",
1153 "description": "WebSocket response data.",
1154 "hidden": true,
1155 "properties": [
1156 { "name": "status", "type": "number", "description": "HTTP r esponse status code." },
1157 { "name": "statusText", "type": "string", "description": "HT TP response status text." },
1158 { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." },
1159 { "name": "headersText", "type": "string", "optional": true, "description": "HTTP response headers text." },
1160 { "name": "requestHeaders", "$ref": "Headers", "optional": t rue, "description": "HTTP request headers." },
1161 { "name": "requestHeadersText", "type": "string", "optional" : true, "description": "HTTP request headers text." }
1162 ]
1163 },
1164 {
1165 "id": "WebSocketFrame",
1166 "type": "object",
1167 "description": "WebSocket frame data.",
1168 "hidden": true,
1169 "properties": [
1170 { "name": "opcode", "type": "number", "description": "WebSoc ket frame opcode." },
1171 { "name": "mask", "type": "boolean", "description": "WebSock e frame mask." },
1172 { "name": "payloadData", "type": "string", "description": "W ebSocke frame payload data." }
1173 ]
1174 },
1175 {
1176 "id": "CachedResource",
1177 "type": "object",
1178 "description": "Information about the cached resource.",
1179 "properties": [
1180 { "name": "url", "type": "string", "description": "Resource URL. This is the url of the original network request." },
1181 { "name": "type", "$ref": "Page.ResourceType", "description" : "Type of this resource." },
1182 { "name": "response", "$ref": "Response", "optional": true, "description": "Cached response data." },
1183 { "name": "bodySize", "type": "number", "description": "Cach ed response body size." }
1184 ]
1185 },
1186 {
1187 "id": "Initiator",
1188 "type": "object",
1189 "description": "Information about the request initiator.",
1190 "properties": [
1191 { "name": "type", "type": "string", "enum": ["parser", "scri pt", "other"], "description": "Type of this initiator." },
1192 { "name": "stackTrace", "$ref": "Console.StackTrace", "optio nal": true, "description": "Initiator JavaScript stack trace, set for Script onl y." },
1193 { "name": "url", "type": "string", "optional": true, "descri ption": "Initiator URL, set for Parser type only." },
1194 { "name": "lineNumber", "type": "number", "optional": true, "description": "Initiator line number, set for Parser type only." },
1195 { "name": "asyncStackTrace", "$ref": "Console.AsyncStackTrac e", "optional": true, "description": "Initiator asynchronous JavaScript stack tr ace, if available.", "hidden": true }
1196 ]
1197 }
1198 ],
1199 "commands": [
1200 {
1201 "name": "enable",
1202 "description": "Enables network tracking, network events will no w be delivered to the client."
1203 },
1204 {
1205 "name": "disable",
1206 "description": "Disables network tracking, prevents network even ts from being sent to the client."
1207 },
1208 {
1209 "name": "setUserAgentOverride",
1210 "description": "Allows overriding user agent with the given stri ng.",
1211 "parameters": [
1212 { "name": "userAgent", "type": "string", "description": "Use r agent to use." }
1213 ]
1214 },
1215 {
1216 "name": "setExtraHTTPHeaders",
1217 "description": "Specifies whether to always send extra HTTP head ers with the requests from this page.",
1218 "parameters": [
1219 { "name": "headers", "$ref": "Headers", "description": "Map with extra HTTP headers." }
1220 ]
1221 },
1222 {
1223 "name": "getResponseBody",
1224 "description": "Returns content served for the given request.",
1225 "parameters": [
1226 { "name": "requestId", "$ref": "RequestId", "description": " Identifier of the network request to get content for." }
1227 ],
1228 "returns": [
1229 { "name": "body", "type": "string", "description": "Response body." },
1230 { "name": "base64Encoded", "type": "boolean", "description": "True, if content was sent as base64." }
1231 ]
1232 },
1233 {
1234 "name": "replayXHR",
1235 "description": "This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: met hod, url, async, request body, extra headers, withCredentials attribute, user, p assword.",
1236 "parameters": [
1237 { "name": "requestId", "$ref": "RequestId", "description": " Identifier of XHR to replay." }
1238 ],
1239 "hidden": true
1240 },
1241 {
1242 "name": "canClearBrowserCache",
1243 "description": "Tells whether clearing browser cache is supporte d.",
1244 "returns": [
1245 { "name": "result", "type": "boolean", "description": "True if browser cache can be cleared." }
1246 ]
1247 },
1248 {
1249 "name": "clearBrowserCache",
1250 "description": "Clears browser cache.",
1251 "handlers": ["browser"]
1252 },
1253 {
1254 "name": "canClearBrowserCookies",
1255 "description": "Tells whether clearing browser cookies is suppor ted.",
1256 "returns": [
1257 { "name": "result", "type": "boolean", "description": "True if browser cookies can be cleared." }
1258 ]
1259 },
1260 {
1261 "name": "clearBrowserCookies",
1262 "description": "Clears browser cookies.",
1263 "handlers": ["browser"]
1264 },
1265 {
1266 "name": "canEmulateNetworkConditions",
1267 "description": "Tells whether emulation of network conditions is supported.",
1268 "returns": [
1269 { "name": "result", "type": "boolean", "description": "True if emulation of network conditions is supported." }
1270 ],
1271 "hidden": true,
1272 "handlers": ["browser"]
1273 },
1274 {
1275 "name": "emulateNetworkConditions",
1276 "description": "Activates emulation of network conditions.",
1277 "parameters": [
1278 { "name": "offline", "type": "boolean", "description": "True to emulate internet disconnection." },
1279 { "name": "latency", "type": "number", "description": "Addit ional latency (ms)." },
1280 { "name": "downloadThroughput", "type": "number", "descripti on": "Maximal aggregated download throughput." },
1281 { "name": "uploadThroughput", "type": "number", "description ": "Maximal aggregated upload throughput." }
1282 ],
1283 "hidden": true,
1284 "handlers": ["browser", "renderer"]
1285 },
1286 {
1287 "name": "setCacheDisabled",
1288 "parameters": [
1289 { "name": "cacheDisabled", "type": "boolean", "description": "Cache disabled state." }
1290 ],
1291 "description": "Toggles ignoring cache for each request. If <cod e>true</code>, cache will not be used."
1292 },
1293 {
1294 "name": "loadResourceForFrontend",
1295 "async": true,
1296 "parameters": [
1297 { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame to load the resource from." },
1298 { "name": "url", "type": "string", "description": "URL of th e resource to load." },
1299 { "name": "requestHeaders", "$ref": "Network.Headers", "opti onal": true, "description": "Request headers." }
1300 ],
1301 "returns": [
1302 { "name": "statusCode", "type": "number", "description": "HT TP status code." },
1303 { "name": "responseHeaders", "$ref": "Network.Headers", "des cription": "Response headers." },
1304 { "name": "content", "type": "string", "description": "Resou rce content." }
1305 ],
1306 "description": "Loads a resource in the context of a frame on th e inspected page without cross origin checks.",
1307 "hidden": true
1308 }
1309 ],
1310 "events": [
1311 {
1312 "name": "requestWillBeSent",
1313 "description": "Fired when page is about to send HTTP request.",
1314 "parameters": [
1315 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." },
1316 { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier.", "hidden": true },
1317 { "name": "loaderId", "$ref": "LoaderId", "description": "Lo ader identifier." },
1318 { "name": "documentURL", "type": "string", "description": "U RL of the document this request is loaded for." },
1319 { "name": "request", "$ref": "Request", "description": "Requ est data." },
1320 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." },
1321 { "name": "initiator", "$ref": "Initiator", "description": " Request initiator." },
1322 { "name": "redirectResponse", "optional": true, "$ref": "Res ponse", "description": "Redirect response data." }
1323 ]
1324 },
1325 {
1326 "name": "requestServedFromCache",
1327 "description": "Fired if request ended up loading from cache.",
1328 "parameters": [
1329 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." }
1330 ]
1331 },
1332 {
1333 "name": "responseReceived",
1334 "description": "Fired when HTTP response is available.",
1335 "parameters": [
1336 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." },
1337 { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier.", "hidden": true },
1338 { "name": "loaderId", "$ref": "LoaderId", "description": "Lo ader identifier." },
1339 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." },
1340 { "name": "type", "$ref": "Page.ResourceType", "description" : "Resource type." },
1341 { "name": "response", "$ref": "Response", "description": "Re sponse data." }
1342 ]
1343 },
1344 {
1345 "name": "dataReceived",
1346 "description": "Fired when data chunk was received over the netw ork.",
1347 "parameters": [
1348 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." },
1349 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." },
1350 { "name": "dataLength", "type": "integer", "description": "D ata chunk length." },
1351 { "name": "encodedDataLength", "type": "integer", "descripti on": "Actual bytes received (might be less than dataLength for compressed encodi ngs)." }
1352 ]
1353 },
1354 {
1355 "name": "loadingFinished",
1356 "description": "Fired when HTTP request has finished loading.",
1357 "parameters": [
1358 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." },
1359 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." },
1360 { "name": "encodedDataLength", "type": "number", "descriptio n": "Total number of bytes received for this request." }
1361 ]
1362 },
1363 {
1364 "name": "loadingFailed",
1365 "description": "Fired when HTTP request has failed to load.",
1366 "parameters": [
1367 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." },
1368 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." },
1369 { "name": "type", "$ref": "Page.ResourceType", "description" : "Resource type." },
1370 { "name": "errorText", "type": "string", "description": "Use r friendly error message." },
1371 { "name": "canceled", "type": "boolean", "optional": true, " description": "True if loading was canceled." }
1372 ]
1373 },
1374 {
1375 "name": "webSocketWillSendHandshakeRequest",
1376 "description": "Fired when WebSocket is about to initiate handsh ake.",
1377 "parameters": [
1378 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." },
1379 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." },
1380 { "name": "request", "$ref": "WebSocketRequest", "descriptio n": "WebSocket request data." }
1381 ],
1382 "hidden": true
1383 },
1384 {
1385 "name": "webSocketHandshakeResponseReceived",
1386 "description": "Fired when WebSocket handshake response becomes available.",
1387 "parameters": [
1388 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." },
1389 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." },
1390 { "name": "response", "$ref": "WebSocketResponse", "descript ion": "WebSocket response data." }
1391 ],
1392 "hidden": true
1393 },
1394 {
1395 "name": "webSocketCreated",
1396 "description": "Fired upon WebSocket creation.",
1397 "parameters": [
1398 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." },
1399 { "name": "url", "type": "string", "description": "WebSocket request URL." }
1400 ],
1401 "hidden": true
1402 },
1403 {
1404 "name": "webSocketClosed",
1405 "description": "Fired when WebSocket is closed.",
1406 "parameters": [
1407 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." },
1408 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." }
1409 ],
1410 "hidden": true
1411 },
1412 {
1413 "name": "webSocketFrameReceived",
1414 "description": "Fired when WebSocket frame is received.",
1415 "parameters": [
1416 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." },
1417 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." },
1418 { "name": "response", "$ref": "WebSocketFrame", "description ": "WebSocket response data." }
1419 ],
1420 "hidden": true
1421 },
1422 {
1423 "name": "webSocketFrameError",
1424 "description": "Fired when WebSocket frame error occurs.",
1425 "parameters": [
1426 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." },
1427 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." },
1428 { "name": "errorMessage", "type": "string", "description": " WebSocket frame error message." }
1429 ],
1430 "hidden": true
1431 },
1432 {
1433 "name": "webSocketFrameSent",
1434 "description": "Fired when WebSocket frame is sent.",
1435 "parameters": [
1436 { "name": "requestId", "$ref": "RequestId", "description": " Request identifier." },
1437 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp." },
1438 { "name": "response", "$ref": "WebSocketFrame", "description ": "WebSocket response data." }
1439 ],
1440 "hidden": true
1441 }
1442 ]
1443 },
1444 {
1445 "domain": "Database",
1446 "hidden": true,
1447 "types": [
1448 {
1449 "id": "DatabaseId",
1450 "type": "string",
1451 "description": "Unique identifier of Database object.",
1452 "hidden": true
1453 },
1454 {
1455 "id": "Database",
1456 "type": "object",
1457 "description": "Database object.",
1458 "hidden": true,
1459 "properties": [
1460 { "name": "id", "$ref": "DatabaseId", "description": "Databa se ID." },
1461 { "name": "domain", "type": "string", "description": "Databa se domain." },
1462 { "name": "name", "type": "string", "description": "Database name." },
1463 { "name": "version", "type": "string", "description": "Datab ase version." }
1464 ]
1465 },
1466 {
1467 "id": "Error",
1468 "type": "object",
1469 "description": "Database error.",
1470 "properties": [
1471 { "name": "message", "type": "string", "description": "Error message." },
1472 { "name": "code", "type": "integer", "description": "Error c ode." }
1473 ]
1474 }
1475 ],
1476 "commands": [
1477 {
1478 "name": "enable",
1479 "description": "Enables database tracking, database events will now be delivered to the client."
1480 },
1481 {
1482 "name": "disable",
1483 "description": "Disables database tracking, prevents database ev ents from being sent to the client."
1484 },
1485 {
1486 "name": "getDatabaseTableNames",
1487 "parameters": [
1488 { "name": "databaseId", "$ref": "DatabaseId" }
1489 ],
1490 "returns": [
1491 { "name": "tableNames", "type": "array", "items": { "type": "string" } }
1492 ]
1493 },
1494 {
1495 "name": "executeSQL",
1496 "async": true,
1497 "parameters": [
1498 { "name": "databaseId", "$ref": "DatabaseId" },
1499 { "name": "query", "type": "string" }
1500 ],
1501 "returns": [
1502 { "name": "columnNames", "type": "array", "optional": true, "items": { "type": "string" } },
1503 { "name": "values", "type": "array", "optional": true, "item s": { "type": "any" }},
1504 { "name": "sqlError", "$ref": "Error", "optional": true }
1505 ]
1506 }
1507 ],
1508 "events": [
1509 {
1510 "name": "addDatabase",
1511 "parameters": [
1512 { "name": "database", "$ref": "Database" }
1513 ]
1514 }
1515 ]
1516 },
1517 {
1518 "domain": "IndexedDB",
1519 "hidden": true,
1520 "types": [
1521 {
1522 "id": "DatabaseWithObjectStores",
1523 "type": "object",
1524 "description": "Database with an array of object stores.",
1525 "properties": [
1526 { "name": "name", "type": "string", "description": "Database name." },
1527 { "name": "version", "type": "string", "description": "Depre cated string database version." },
1528 { "name": "intVersion", "type": "integer", "description": "I nteger database version." },
1529 { "name": "objectStores", "type": "array", "items": { "$ref" : "ObjectStore" }, "description": "Object stores in this database." }
1530 ]
1531 },
1532 {
1533 "id": "ObjectStore",
1534 "type": "object",
1535 "description": "Object store.",
1536 "properties": [
1537 { "name": "name", "type": "string", "description": "Object s tore name." },
1538 { "name": "keyPath", "$ref": "KeyPath", "description": "Obje ct store key path." },
1539 { "name": "autoIncrement", "type": "boolean", "description": "If true, object store has auto increment flag set." },
1540 { "name": "indexes", "type": "array", "items": { "$ref": "Ob jectStoreIndex" }, "description": "Indexes in this object store." }
1541 ]
1542 },
1543 {
1544 "id": "ObjectStoreIndex",
1545 "type": "object",
1546 "description": "Object store index.",
1547 "properties": [
1548 { "name": "name", "type": "string", "description": "Index na me." },
1549 { "name": "keyPath", "$ref": "KeyPath", "description": "Inde x key path." },
1550 { "name": "unique", "type": "boolean", "description": "If tr ue, index is unique." },
1551 { "name": "multiEntry", "type": "boolean", "description": "I f true, index allows multiple entries for a key." }
1552 ]
1553 },
1554 {
1555 "id": "Key",
1556 "type": "object",
1557 "description": "Key.",
1558 "properties": [
1559 { "name": "type", "type": "string", "enum": ["number", "stri ng", "date", "array"], "description": "Key type." },
1560 { "name": "number", "type": "number", "optional": true, "des cription": "Number value." },
1561 { "name": "string", "type": "string", "optional": true, "des cription": "String value." },
1562 { "name": "date", "type": "number", "optional": true, "descr iption": "Date value." },
1563 { "name": "array", "type": "array", "optional": true, "items ": { "$ref": "Key" }, "description": "Array value." }
1564 ]
1565 },
1566 {
1567 "id": "KeyRange",
1568 "type": "object",
1569 "description": "Key range.",
1570 "properties": [
1571 { "name": "lower", "$ref": "Key", "optional": true, "descrip tion": "Lower bound." },
1572 { "name": "upper", "$ref": "Key", "optional": true, "descrip tion": "Upper bound." },
1573 { "name": "lowerOpen", "type": "boolean", "description": "If true lower bound is open." },
1574 { "name": "upperOpen", "type": "boolean", "description": "If true upper bound is open." }
1575 ]
1576 },
1577 {
1578 "id": "DataEntry",
1579 "type": "object",
1580 "description": "Data entry.",
1581 "properties": [
1582 { "name": "key", "type": "string", "description": "JSON-stri ngified key object." },
1583 { "name": "primaryKey", "type": "string", "description": "JS ON-stringified primary key object." },
1584 { "name": "value", "type": "string", "description": "JSON-st ringified value object." }
1585 ]
1586 },
1587 {
1588 "id": "KeyPath",
1589 "type": "object",
1590 "description": "Key path.",
1591 "properties": [
1592 { "name": "type", "type": "string", "enum": ["null", "string ", "array"], "description": "Key path type." },
1593 { "name": "string", "type": "string", "optional": true, "des cription": "String value." },
1594 { "name": "array", "type": "array", "optional": true, "items ": { "type": "string" }, "description": "Array value." }
1595 ]
1596 }
1597 ],
1598 "commands": [
1599 {
1600 "name": "enable",
1601 "description": "Enables events from backend."
1602 },
1603 {
1604 "name": "disable",
1605 "description": "Disables events from backend."
1606 },
1607 {
1608 "name": "requestDatabaseNames",
1609 "async": true,
1610 "parameters": [
1611 { "name": "securityOrigin", "type": "string", "description": "Security origin." }
1612 ],
1613 "returns": [
1614 { "name": "databaseNames", "type": "array", "items": { "type ": "string" }, "description": "Database names for origin." }
1615 ],
1616 "description": "Requests database names for given security origi n."
1617 },
1618 {
1619 "name": "requestDatabase",
1620 "async": true,
1621 "parameters": [
1622 { "name": "securityOrigin", "type": "string", "description": "Security origin." },
1623 { "name": "databaseName", "type": "string", "description": " Database name." }
1624 ],
1625 "returns": [
1626 { "name": "databaseWithObjectStores", "$ref": "DatabaseWithO bjectStores", "description": "Database with an array of object stores." }
1627 ],
1628 "description": "Requests database with given name in given frame ."
1629 },
1630 {
1631 "name": "requestData",
1632 "async": true,
1633 "parameters": [
1634 { "name": "securityOrigin", "type": "string", "description": "Security origin." },
1635 { "name": "databaseName", "type": "string", "description": " Database name." },
1636 { "name": "objectStoreName", "type": "string", "description" : "Object store name." },
1637 { "name": "indexName", "type": "string", "description": "Ind ex name, empty string for object store data requests." },
1638 { "name": "skipCount", "type": "integer", "description": "Nu mber of records to skip." },
1639 { "name": "pageSize", "type": "integer", "description": "Num ber of records to fetch." },
1640 { "name": "keyRange", "$ref": "KeyRange", "optional": true, "description": "Key range." }
1641 ],
1642 "returns": [
1643 { "name": "objectStoreDataEntries", "type": "array", "items" : { "$ref": "DataEntry" }, "description": "Array of object store data entries." },
1644 { "name": "hasMore", "type": "boolean", "description": "If t rue, there are more entries to fetch in the given range." }
1645 ],
1646 "description": "Requests data from object store or index."
1647 },
1648 {
1649 "name": "clearObjectStore",
1650 "async": true,
1651 "parameters": [
1652 { "name": "securityOrigin", "type": "string", "description": "Security origin." },
1653 { "name": "databaseName", "type": "string", "description": " Database name." },
1654 { "name": "objectStoreName", "type": "string", "description" : "Object store name." }
1655 ],
1656 "returns": [
1657 ],
1658 "description": "Clears all entries from an object store."
1659 }
1660 ]
1661 },
1662 {
1663 "domain": "DOMStorage",
1664 "hidden": true,
1665 "description": "Query and modify DOM storage.",
1666 "types": [
1667 {
1668 "id": "StorageId",
1669 "type": "object",
1670 "description": "DOM Storage identifier.",
1671 "hidden": true,
1672 "properties": [
1673 { "name": "securityOrigin", "type": "string", "description": "Security origin for the storage." },
1674 { "name": "isLocalStorage", "type": "boolean", "description" : "Whether the storage is local storage (not session storage)." }
1675 ]
1676 },
1677 {
1678 "id": "Item",
1679 "type": "array",
1680 "description": "DOM Storage item.",
1681 "hidden": true,
1682 "items": { "type": "string" }
1683 }
1684 ],
1685 "commands": [
1686 {
1687 "name": "enable",
1688 "description": "Enables storage tracking, storage events will no w be delivered to the client."
1689 },
1690 {
1691 "name": "disable",
1692 "description": "Disables storage tracking, prevents storage even ts from being sent to the client."
1693 },
1694 {
1695 "name": "getDOMStorageItems",
1696 "parameters": [
1697 { "name": "storageId", "$ref": "StorageId" }
1698 ],
1699 "returns": [
1700 { "name": "entries", "type": "array", "items": { "$ref": "It em" } }
1701 ]
1702 },
1703 {
1704 "name": "setDOMStorageItem",
1705 "parameters": [
1706 { "name": "storageId", "$ref": "StorageId" },
1707 { "name": "key", "type": "string" },
1708 { "name": "value", "type": "string" }
1709 ]
1710 },
1711 {
1712 "name": "removeDOMStorageItem",
1713 "parameters": [
1714 { "name": "storageId", "$ref": "StorageId" },
1715 { "name": "key", "type": "string" }
1716 ]
1717 }
1718 ],
1719 "events": [
1720 {
1721 "name": "domStorageItemsCleared",
1722 "parameters": [
1723 { "name": "storageId", "$ref": "StorageId" }
1724 ]
1725 },
1726 {
1727 "name": "domStorageItemRemoved",
1728 "parameters": [
1729 { "name": "storageId", "$ref": "StorageId" },
1730 { "name": "key", "type": "string" }
1731 ]
1732 },
1733 {
1734 "name": "domStorageItemAdded",
1735 "parameters": [
1736 { "name": "storageId", "$ref": "StorageId" },
1737 { "name": "key", "type": "string" },
1738 { "name": "newValue", "type": "string" }
1739 ]
1740 },
1741 {
1742 "name": "domStorageItemUpdated",
1743 "parameters": [
1744 { "name": "storageId", "$ref": "StorageId" },
1745 { "name": "key", "type": "string" },
1746 { "name": "oldValue", "type": "string" },
1747 { "name": "newValue", "type": "string" }
1748 ]
1749 }
1750 ]
1751 },
1752 {
1753 "domain": "ApplicationCache",
1754 "hidden": true,
1755 "types": [
1756 {
1757 "id": "ApplicationCacheResource",
1758 "type": "object",
1759 "description": "Detailed application cache resource information. ",
1760 "properties": [
1761 { "name": "url", "type": "string", "description": "Resource url." },
1762 { "name": "size", "type": "integer", "description": "Resourc e size." },
1763 { "name": "type", "type": "string", "description": "Resource type." }
1764 ]
1765 },
1766 {
1767 "id": "ApplicationCache",
1768 "type": "object",
1769 "description": "Detailed application cache information.",
1770 "properties": [
1771 { "name": "manifestURL", "type": "string", "description": "M anifest URL." },
1772 { "name": "size", "type": "number", "description": "Applicat ion cache size." },
1773 { "name": "creationTime", "type": "number", "description": " Application cache creation time." },
1774 { "name": "updateTime", "type": "number", "description": "Ap plication cache update time." },
1775 { "name": "resources", "type": "array", "items": { "$ref": " ApplicationCacheResource" }, "description": "Application cache resources." }
1776 ]
1777 },
1778 {
1779 "id": "FrameWithManifest",
1780 "type": "object",
1781 "description": "Frame identifier - manifest URL pair.",
1782 "properties": [
1783 { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier." },
1784 { "name": "manifestURL", "type": "string", "description": "M anifest URL." },
1785 { "name": "status", "type": "integer", "description": "Appli cation cache status." }
1786 ]
1787 }
1788 ],
1789 "commands": [
1790 {
1791 "name": "getFramesWithManifests",
1792 "returns": [
1793 { "name": "frameIds", "type": "array", "items": { "$ref": "F rameWithManifest" }, "description": "Array of frame identifiers with manifest ur ls for each frame containing a document associated with some application cache." }
1794 ],
1795 "description": "Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cach e."
1796 },
1797 {
1798 "name": "enable",
1799 "description": "Enables application cache domain notifications."
1800 },
1801 {
1802 "name": "getManifestForFrame",
1803 "parameters": [
1804 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame containing document whose manifest is retrieved." }
1805 ],
1806 "returns": [
1807 { "name": "manifestURL", "type": "string", "description": "M anifest URL for document in the given frame." }
1808 ],
1809 "description": "Returns manifest URL for document in the given f rame."
1810 },
1811 {
1812 "name": "getApplicationCacheForFrame",
1813 "parameters": [
1814 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame containing document whose application cache is retrieve d." }
1815 ],
1816 "returns": [
1817 { "name": "applicationCache", "$ref": "ApplicationCache", "d escription": "Relevant application cache data for the document in given frame." }
1818 ],
1819 "description": "Returns relevant application cache data for the document in given frame."
1820 }
1821 ],
1822 "events": [
1823 {
1824 "name": "applicationCacheStatusUpdated",
1825 "parameters": [
1826 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame containing document whose application cache updated sta tus." },
1827 { "name": "manifestURL", "type": "string", "description": "M anifest URL." },
1828 { "name": "status", "type": "integer", "description": "Updat ed application cache status." }
1829 ]
1830 },
1831 {
1832 "name": "networkStateUpdated",
1833 "parameters": [
1834 { "name": "isNowOnline", "type": "boolean" }
1835 ]
1836 }
1837 ]
1838 },
1839 {
1840 "domain": "FileSystem",
1841 "hidden": true,
1842 "types": [
1843 {
1844 "id": "Entry",
1845 "type": "object",
1846 "properties": [
1847 { "name": "url", "type": "string", "description": "filesyste m: URL for the entry." },
1848 { "name": "name", "type": "string", "description": "The name of the file or directory." },
1849 { "name": "isDirectory", "type": "boolean", "description": " True if the entry is a directory." },
1850 { "name": "mimeType", "type": "string", "optional": true, "d escription": "MIME type of the entry, available for a file only." },
1851 { "name": "resourceType", "$ref": "Page.ResourceType", "opti onal": true, "description": "ResourceType of the entry, available for a file onl y." },
1852 { "name": "isTextFile", "type": "boolean", "optional": true, "description": "True if the entry is a text file." }
1853 ],
1854 "description": "Represents a browser side file or directory."
1855 },
1856 {
1857 "id": "Metadata",
1858 "type": "object",
1859 "properties": [
1860 { "name": "modificationTime", "type": "number", "description ": "Modification time." },
1861 { "name": "size", "type": "number", "description": "File siz e. This field is always zero for directories." }
1862 ],
1863 "description": "Represents metadata of a file or entry."
1864 }
1865 ],
1866 "commands": [
1867 {
1868 "name": "enable",
1869 "description": "Enables events from backend."
1870 },
1871 {
1872 "name": "disable",
1873 "description": "Disables events from backend."
1874 },
1875 {
1876 "name": "requestFileSystemRoot",
1877 "async": true,
1878 "parameters": [
1879 { "name": "origin", "type": "string", "description": "Securi ty origin of requesting FileSystem. One of frames in current page needs to have this security origin." },
1880 { "name": "type", "type": "string", "enum": ["temporary", "p ersistent"], "description": "FileSystem type of requesting FileSystem." }
1881 ],
1882 "returns": [
1883 { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
1884 { "name": "root", "$ref": "Entry", "optional": true, "descri ption": "Contains root of the requested FileSystem if the command completed succ essfully." }
1885 ],
1886 "description": "Returns root directory of the FileSystem, if exi sts."
1887 },
1888 {
1889 "name": "requestDirectoryContent",
1890 "async": true,
1891 "parameters": [
1892 { "name": "url", "type": "string", "description": "URL of th e directory that the frontend is requesting to read from." }
1893 ],
1894 "returns": [
1895 { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
1896 { "name": "entries", "type": "array", "items": { "$ref": "En try" }, "optional": true, "description": "Contains all entries on directory if t he command completed successfully." }
1897 ],
1898 "description": "Returns content of the directory."
1899 },
1900 {
1901 "name": "requestMetadata",
1902 "async": true,
1903 "parameters": [
1904 { "name": "url", "type": "string", "description": "URL of th e entry that the frontend is requesting to get metadata from." }
1905 ],
1906 "returns": [
1907 { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
1908 { "name": "metadata", "$ref": "Metadata", "optional": true, "description": "Contains metadata of the entry if the command completed successf ully." }
1909 ],
1910 "description": "Returns metadata of the entry."
1911 },
1912 {
1913 "name": "requestFileContent",
1914 "async": true,
1915 "parameters": [
1916 { "name": "url", "type": "string", "description": "URL of th e file that the frontend is requesting to read from." },
1917 { "name": "readAsText", "type": "boolean", "description": "T rue if the content should be read as text, otherwise the result will be returned as base64 encoded text." },
1918 { "name": "start", "type": "integer", "optional": true, "des cription": "Specifies the start of range to read." },
1919 { "name": "end", "type": "integer", "optional": true, "descr iption": "Specifies the end of range to read exclusively." },
1920 { "name": "charset", "type": "string", "optional": true, "de scription": "Overrides charset of the content when content is served as text." }
1921 ],
1922 "returns": [
1923 { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." },
1924 { "name": "content", "type": "string", "optional": true, "de scription": "Content of the file." },
1925 { "name": "charset", "type": "string", "optional": true, "de scription": "Charset of the content if it is served as text." }
1926 ],
1927 "description": "Returns content of the file. Result should be sl iced into [start, end)."
1928 },
1929 {
1930 "name": "deleteEntry",
1931 "async": true,
1932 "parameters": [
1933 { "name": "url", "type": "string", "description": "URL of th e entry to delete." }
1934 ],
1935 "returns": [
1936 { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise errorCode is set to FileError::ErrorCode value." }
1937 ],
1938 "description": "Deletes specified entry. If the entry is a direc tory, the agent deletes children recursively."
1939 }
1940 ]
1941 },
1942 {
1943 "domain": "DOM",
1944 "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <co de>id</code> can be used to get additional information on the Node, resolve it i nto the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It i s client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corres ponding document elements as their child nodes.</p>",
1945 "types": [
1946 {
1947 "id": "NodeId",
1948 "type": "integer",
1949 "description": "Unique DOM node identifier."
1950 },
1951 {
1952 "id": "BackendNodeId",
1953 "type": "integer",
1954 "description": "Unique DOM node identifier used to reference a n ode that may not have been pushed to the front-end.",
1955 "hidden": true
1956 },
1957 {
1958 "id": "PseudoType",
1959 "type": "string",
1960 "enum": ["before", "after"],
1961 "description": "Pseudo element type."
1962 },
1963 {
1964 "id": "ShadowRootType",
1965 "type": "string",
1966 "enum": ["user-agent", "author"],
1967 "description": "Shadow root type."
1968 },
1969 {
1970 "id": "Node",
1971 "type": "object",
1972 "properties": [
1973 { "name": "nodeId", "$ref": "NodeId", "description": "Node i dentifier 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 clie nt." },
1974 { "name": "nodeType", "type": "integer", "description": "<co de>Node</code>'s nodeType." },
1975 { "name": "nodeName", "type": "string", "description": "<cod e>Node</code>'s nodeName." },
1976 { "name": "localName", "type": "string", "description": "<co de>Node</code>'s localName." },
1977 { "name": "nodeValue", "type": "string", "description": "<co de>Node</code>'s nodeValue." },
1978 { "name": "childNodeCount", "type": "integer", "optional": t rue, "description": "Child count for <code>Container</code> nodes." },
1979 { "name": "children", "type": "array", "optional": true, "it ems": { "$ref": "Node" }, "description": "Child nodes of this node when requeste d with children." },
1980 { "name": "attributes", "type": "array", "optional": true, " items": { "type": "string" }, "description": "Attributes of the <code>Element</c ode> node in the form of flat array <code>[name1, value1, name2, value2]</code>. " },
1981 { "name": "documentURL", "type": "string", "optional": true, "description": "Document URL that <code>Document</code> or <code>FrameOwner</co de> node points to." },
1982 { "name": "baseURL", "type": "string", "optional": true, "de scription": "Base URL that <code>Document</code> or <code>FrameOwner</code> node uses for URL completion.", "hidden": true },
1983 { "name": "publicId", "type": "string", "optional": true, "d escription": "<code>DocumentType</code>'s publicId." },
1984 { "name": "systemId", "type": "string", "optional": true, "d escription": "<code>DocumentType</code>'s systemId." },
1985 { "name": "internalSubset", "type": "string", "optional": tr ue, "description": "<code>DocumentType</code>'s internalSubset." },
1986 { "name": "xmlVersion", "type": "string", "optional": true, "description": "<code>Document</code>'s XML version in case of XML documents." } ,
1987 { "name": "name", "type": "string", "optional": true, "descr iption": "<code>Attr</code>'s name." },
1988 { "name": "value", "type": "string", "optional": true, "desc ription": "<code>Attr</code>'s value." },
1989 { "name": "pseudoType", "$ref": "PseudoType", "optional": tr ue, "description": "Pseudo element type for this node." },
1990 { "name": "shadowRootType", "$ref": "ShadowRootType", "optio nal": true, "description": "Shadow root type." },
1991 { "name": "frameId", "$ref": "Page.FrameId", "optional": tru e, "description": "Frame ID for frame owner elements.", "hidden": true },
1992 { "name": "contentDocument", "$ref": "Node", "optional": tru e, "description": "Content document for frame owner elements." },
1993 { "name": "shadowRoots", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Shadow root list for given element host.", "hidden": true },
1994 { "name": "templateContent", "$ref": "Node", "optional": tru e, "description": "Content document fragment for template elements.", "hidden": true },
1995 { "name": "pseudoElements", "type": "array", "items": { "$re f": "Node" }, "optional": true, "description": "Pseudo elements associated with this node.", "hidden": true },
1996 { "name": "importedDocument", "$ref": "Node", "optional": tr ue, "description": "Import document for the HTMLImport links." }
1997 ],
1998 "description": "DOM interaction is implemented in terms of mirro r objects that represent the actual DOM nodes. DOMNode is a base node mirror typ e."
1999 },
2000 {
2001 "id": "EventListener",
2002 "type": "object",
2003 "hidden": true,
2004 "properties": [
2005 { "name": "type", "type": "string", "description": "<code>Ev entListener</code>'s type." },
2006 { "name": "useCapture", "type": "boolean", "description": "< code>EventListener</code>'s useCapture." },
2007 { "name": "isAttribute", "type": "boolean", "description": " <code>EventListener</code>'s isAttribute." },
2008 { "name": "nodeId", "$ref": "NodeId", "description": "Target <code>DOMNode</code> id." },
2009 { "name": "handlerBody", "type": "string", "description": "E vent handler function body." },
2010 { "name": "location", "$ref": "Debugger.Location", "descript ion": "Handler code location." },
2011 { "name": "sourceName", "type": "string", "optional": true, "description": "Source script URL." },
2012 { "name": "handler", "$ref": "Runtime.RemoteObject", "option al": true, "description": "Event handler function value." }
2013 ],
2014 "description": "DOM interaction is implemented in terms of mirro r objects that represent the actual DOM nodes. DOMNode is a base node mirror typ e."
2015 },
2016 {
2017 "id": "RGBA",
2018 "type": "object",
2019 "properties": [
2020 { "name": "r", "type": "integer", "description": "The red co mponent, in the [0-255] range." },
2021 { "name": "g", "type": "integer", "description": "The green component, in the [0-255] range." },
2022 { "name": "b", "type": "integer", "description": "The blue c omponent, in the [0-255] range." },
2023 { "name": "a", "type": "number", "optional": true, "descript ion": "The alpha component, in the [0-1] range (default: 1)." }
2024 ],
2025 "description": "A structure holding an RGBA color."
2026 },
2027 {
2028 "id": "Quad",
2029 "type": "array",
2030 "items": { "type": "number" },
2031 "minItems": 8,
2032 "maxItems": 8,
2033 "description": "An array of quad vertices, x immediately followe d by y for each point, points clock-wise.",
2034 "hidden": true
2035 },
2036 {
2037 "id": "BoxModel",
2038 "type": "object",
2039 "hidden": true,
2040 "properties": [
2041 { "name": "content", "$ref": "Quad", "description": "Content box" },
2042 { "name": "padding", "$ref": "Quad", "description": "Padding box" },
2043 { "name": "border", "$ref": "Quad", "description": "Border b ox" },
2044 { "name": "margin", "$ref": "Quad", "description": "Margin b ox" },
2045 { "name": "width", "type": "integer", "description": "Node w idth" },
2046 { "name": "height", "type": "integer", "description": "Node height" },
2047 { "name": "shapeOutside", "$ref": "ShapeOutsideInfo", "optio nal": true, "description": "Shape outside coordinates" }
2048 ],
2049 "description": "Box model."
2050 },
2051 {
2052 "id": "ShapeOutsideInfo",
2053 "type": "object",
2054 "hidden": true,
2055 "properties": [
2056 { "name": "bounds", "$ref": "Quad", "description": "Shape bo unds" },
2057 { "name": "shape", "type": "array", "items": { "type": "any" }, "description": "Shape coordinate details" },
2058 { "name": "marginShape", "type": "array", "items": { "type": "any"}, "description": "Margin shape bounds" }
2059 ],
2060 "description": "CSS Shape Outside details."
2061 },
2062 {
2063 "id": "Rect",
2064 "type": "object",
2065 "hidden": true,
2066 "properties": [
2067 { "name": "x", "type": "number", "description": "X coordinat e" },
2068 { "name": "y", "type": "number", "description": "Y coordinat e" },
2069 { "name": "width", "type": "number", "description": "Rectang le width" },
2070 { "name": "height", "type": "number", "description": "Rectan gle height" }
2071 ],
2072 "description": "Rectangle."
2073 },
2074 {
2075 "id": "HighlightConfig",
2076 "type": "object",
2077 "properties": [
2078 { "name": "showInfo", "type": "boolean", "optional": true, " description": "Whether the node info tooltip should be shown (default: false)." },
2079 { "name": "showRulers", "type": "boolean", "optional": true, "description": "Whether the rulers should be shown (default: false)." },
2080 { "name": "showExtensionLines", "type": "boolean", "optional ": true, "description": "Whether the extension lines from node to the rulers sho uld be shown (default: false)." },
2081 { "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." },
2082 { "name": "paddingColor", "$ref": "RGBA", "optional": true, "description": "The padding highlight fill color (default: transparent)." },
2083 { "name": "borderColor", "$ref": "RGBA", "optional": true, " description": "The border highlight fill color (default: transparent)." },
2084 { "name": "marginColor", "$ref": "RGBA", "optional": true, " description": "The margin highlight fill color (default: transparent)." },
2085 { "name": "eventTargetColor", "$ref": "RGBA", "optional": tr ue, "hidden": true, "description": "The event target element highlight fill colo r (default: transparent)." },
2086 { "name": "shapeColor", "$ref": "RGBA", "optional": true, "h idden": true, "description": "The shape outside fill color (default: transparent )." },
2087 { "name": "shapeMarginColor", "$ref": "RGBA", "optional": tr ue, "hidden": true, "description": "The shape margin fill color (default: transp arent)." }
2088 ],
2089 "description": "Configuration data for the highlighting of page elements."
2090 }
2091 ],
2092 "commands": [
2093 {
2094 "name": "enable",
2095 "description": "Enables DOM agent for the given page."
2096 },
2097 {
2098 "name": "disable",
2099 "description": "Disables DOM agent for the given page."
2100 },
2101 {
2102 "name": "getDocument",
2103 "returns": [
2104 { "name": "root", "$ref": "Node", "description": "Resulting node." }
2105 ],
2106 "description": "Returns the root DOM node to the caller."
2107 },
2108 {
2109 "name": "requestChildNodes",
2110 "parameters": [
2111 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get children for." },
2112 { "name": "depth", "type": "integer", "optional": true, "des cription": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", "hidden ": true }
2113 ],
2114 "description": "Requests that children of the node with given id are returned to the caller in form of <code>setChildNodes</code> events where n ot only immediate children are retrieved, but all children down to the specified depth."
2115 },
2116 {
2117 "name": "querySelector",
2118 "parameters": [
2119 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." },
2120 { "name": "selector", "type": "string", "description": "Sele ctor string." }
2121 ],
2122 "returns": [
2123 { "name": "nodeId", "$ref": "NodeId", "description": "Query selector result." }
2124 ],
2125 "description": "Executes <code>querySelector</code> on a given n ode."
2126 },
2127 {
2128 "name": "querySelectorAll",
2129 "parameters": [
2130 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." },
2131 { "name": "selector", "type": "string", "description": "Sele ctor string." }
2132 ],
2133 "returns": [
2134 { "name": "nodeIds", "type": "array", "items": { "$ref": "No deId" }, "description": "Query selector result." }
2135 ],
2136 "description": "Executes <code>querySelectorAll</code> on a give n node."
2137 },
2138 {
2139 "name": "setNodeName",
2140 "parameters": [
2141 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set name for." },
2142 { "name": "name", "type": "string", "description": "New node 's name." }
2143 ],
2144 "returns": [
2145 { "name": "nodeId", "$ref": "NodeId", "description": "New no de's id." }
2146 ],
2147 "description": "Sets node name for a node with given id."
2148 },
2149 {
2150 "name": "setNodeValue",
2151 "parameters": [
2152 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set value for." },
2153 { "name": "value", "type": "string", "description": "New nod e's value." }
2154 ],
2155 "description": "Sets node value for a node with given id."
2156 },
2157 {
2158 "name": "removeNode",
2159 "parameters": [
2160 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to remove." }
2161 ],
2162 "description": "Removes node with given id."
2163 },
2164 {
2165 "name": "setAttributeValue",
2166 "parameters": [
2167 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attribute for." },
2168 { "name": "name", "type": "string", "description": "Attribut e name." },
2169 { "name": "value", "type": "string", "description": "Attribu te value." }
2170 ],
2171 "description": "Sets attribute for an element with given id."
2172 },
2173 {
2174 "name": "setAttributesAsText",
2175 "parameters": [
2176 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attributes for." },
2177 { "name": "text", "type": "string", "description": "Text wit h a number of attributes. Will parse this text using HTML parser." },
2178 { "name": "name", "type": "string", "optional": true, "descr iption": "Attribute name to replace with new attributes derived from text in cas e text parsed successfully." }
2179 ],
2180 "description": "Sets attributes on element with given id. This m ethod is useful when user edits some existing attribute value and types in sever al attribute name/value pairs."
2181 },
2182 {
2183 "name": "removeAttribute",
2184 "parameters": [
2185 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to remove attribute from." },
2186 { "name": "name", "type": "string", "description": "Name of the attribute to remove." }
2187 ],
2188 "description": "Removes attribute with given name from an elemen t with given id."
2189 },
2190 {
2191 "name": "getEventListenersForNode",
2192 "parameters": [
2193 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get listeners for." },
2194 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name for handler value. Handler value is not ret urned without this parameter specified." }
2195 ],
2196 "returns": [
2197 { "name": "listeners", "type": "array", "items": { "$ref": " EventListener" }, "description": "Array of relevant listeners." }
2198 ],
2199 "description": "Returns event listeners relevant to the node.",
2200 "hidden": true
2201 },
2202 {
2203 "name": "getOuterHTML",
2204 "parameters": [
2205 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get markup for." }
2206 ],
2207 "returns": [
2208 { "name": "outerHTML", "type": "string", "description": "Out er HTML markup." }
2209 ],
2210 "description": "Returns node's HTML markup."
2211 },
2212 {
2213 "name": "setOuterHTML",
2214 "parameters": [
2215 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set markup for." },
2216 { "name": "outerHTML", "type": "string", "description": "Out er HTML markup to set." }
2217 ],
2218 "description": "Sets node HTML markup, returns new node id."
2219 },
2220 {
2221 "name": "performSearch",
2222 "parameters": [
2223 { "name": "query", "type": "string", "description": "Plain t ext or query selector or XPath search query." },
2224 { "name": "includeUserAgentShadowDOM", "type": "boolean", "o ptional": true, "description": "True to search in user agent shadow DOM.", "hidd en": true }
2225 ],
2226 "returns": [
2227 { "name": "searchId", "type": "string", "description": "Uniq ue search session identifier." },
2228 { "name": "resultCount", "type": "integer", "description": " Number of search results." }
2229 ],
2230 "description": "Searches for a given string in the DOM tree. Use <code>getSearchResults</code> to access search results or <code>cancelSearch</c ode> to end this search session.",
2231 "hidden": true
2232 },
2233 {
2234 "name": "getSearchResults",
2235 "parameters": [
2236 { "name": "searchId", "type": "string", "description": "Uniq ue search session identifier." },
2237 { "name": "fromIndex", "type": "integer", "description": "St art index of the search result to be returned." },
2238 { "name": "toIndex", "type": "integer", "description": "End index of the search result to be returned." }
2239 ],
2240 "returns": [
2241 { "name": "nodeIds", "type": "array", "items": { "$ref": "No deId" }, "description": "Ids of the search result nodes." }
2242 ],
2243 "description": "Returns search results from given <code>fromInde x</code> to given <code>toIndex</code> from the sarch with the given identifier. ",
2244 "hidden": true
2245 },
2246 {
2247 "name": "discardSearchResults",
2248 "parameters": [
2249 { "name": "searchId", "type": "string", "description": "Uniq ue search session identifier." }
2250 ],
2251 "description": "Discards search results from the session with th e given id. <code>getSearchResults</code> should no longer be called for that se arch.",
2252 "hidden": true
2253 },
2254 {
2255 "name": "requestNode",
2256 "parameters": [
2257 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "des cription": "JavaScript object id to convert into node." }
2258 ],
2259 "returns": [
2260 { "name": "nodeId", "$ref": "NodeId", "description": "Node i d for given object." }
2261 ],
2262 "description": "Requests that the node is sent to the caller giv en the JavaScript node object reference. All nodes that form the path from the n ode to the root are also sent to the client as a series of <code>setChildNodes</ code> notifications."
2263 },
2264 {
2265 "name": "setInspectModeEnabled",
2266 "hidden": true,
2267 "parameters": [
2268 { "name": "enabled", "type": "boolean", "description": "True to enable inspection mode, false to disable it." },
2269 { "name": "inspectUAShadowDOM", "type": "boolean", "optional ": true, "description": "True to enable inspection mode for user agent shadow DO M." },
2270 { "name": "highlightConfig", "$ref": "HighlightConfig", "opt ional": true, "description": "A descriptor for the highlight appearance of hover ed-over nodes. May be omitted if <code>enabled == false</code>." }
2271 ],
2272 "description": "Enters the 'inspect' mode. In this mode, element s that user is hovering over are highlighted. Backend then generates 'inspectNod eRequested' event upon element selection."
2273 },
2274 {
2275 "name": "highlightRect",
2276 "parameters": [
2277 { "name": "x", "type": "integer", "description": "X coordina te" },
2278 { "name": "y", "type": "integer", "description": "Y coordina te" },
2279 { "name": "width", "type": "integer", "description": "Rectan gle width" },
2280 { "name": "height", "type": "integer", "description": "Recta ngle height" },
2281 { "name": "color", "$ref": "RGBA", "optional": true, "descri ption": "The highlight fill color (default: transparent)." },
2282 { "name": "outlineColor", "$ref": "RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." }
2283 ],
2284 "description": "Highlights given rectangle. Coordinates are abso lute with respect to the main frame viewport."
2285 },
2286 {
2287 "name": "highlightQuad",
2288 "parameters": [
2289 { "name": "quad", "$ref": "Quad", "description": "Quad to hi ghlight" },
2290 { "name": "color", "$ref": "RGBA", "optional": true, "descri ption": "The highlight fill color (default: transparent)." },
2291 { "name": "outlineColor", "$ref": "RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." }
2292 ],
2293 "description": "Highlights given quad. Coordinates are absolute with respect to the main frame viewport.",
2294 "hidden": true
2295 },
2296 {
2297 "name": "highlightNode",
2298 "parameters": [
2299 { "name": "highlightConfig", "$ref": "HighlightConfig", "de scription": "A descriptor for the highlight appearance." },
2300 { "name": "nodeId", "$ref": "NodeId", "optional": true, "des cription": "Identifier of the node to highlight." },
2301 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "opt ional": true, "description": "JavaScript object id of the node to be highlighted .", "hidden": true }
2302 ],
2303 "description": "Highlights DOM node with given id or with the gi ven JavaScript object wrapper. Either nodeId or objectId must be specified."
2304 },
2305 {
2306 "name": "hideHighlight",
2307 "description": "Hides DOM node highlight."
2308 },
2309 {
2310 "name": "highlightFrame",
2311 "parameters": [
2312 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame to highlight." },
2313 { "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." },
2314 { "name": "contentOutlineColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight outline color (default: transpa rent)." }
2315 ],
2316 "description": "Highlights owner element of the frame with given id.",
2317 "hidden": true
2318 },
2319 {
2320 "name": "pushNodeByPathToFrontend",
2321 "parameters": [
2322 { "name": "path", "type": "string", "description": "Path to node in the proprietary format." }
2323 ],
2324 "returns": [
2325 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node for given path." }
2326 ],
2327 "description": "Requests that the node is sent to the caller giv en its path. // FIXME, use XPath",
2328 "hidden": true
2329 },
2330 {
2331 "name": "pushNodesByBackendIdsToFrontend",
2332 "parameters": [
2333 { "name": "backendNodeIds", "type": "array", "items": {"$ref ": "BackendNodeId"}, "description": "The array of backend node ids." }
2334 ],
2335 "returns": [
2336 { "name": "nodeIds", "type": "array", "items": {"$ref": "Nod eId"}, "description": "The array of ids of pushed nodes that correspond to the b ackend ids specified in backendNodeIds." }
2337 ],
2338 "description": "Requests that a batch of nodes is sent to the ca ller given their backend node ids.",
2339 "hidden": true
2340 },
2341 {
2342 "name": "resolveNode",
2343 "parameters": [
2344 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to resolve." },
2345 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }
2346 ],
2347 "returns": [
2348 { "name": "object", "$ref": "Runtime.RemoteObject", "descrip tion": "JavaScript object wrapper for given node." }
2349 ],
2350 "description": "Resolves JavaScript node object for given node i d."
2351 },
2352 {
2353 "name": "getAttributes",
2354 "parameters": [
2355 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to retrieve attibutes for." }
2356 ],
2357 "returns": [
2358 { "name": "attributes", "type": "array", "items": { "type": "string" }, "description": "An interleaved array of node attribute names and val ues." }
2359 ],
2360 "description": "Returns attributes for the specified node."
2361 },
2362 {
2363 "name": "copyTo",
2364 "parameters": [
2365 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to copy." },
2366 { "name": "targetNodeId", "$ref": "NodeId", "description": " Id of the element to drop the copy into." },
2367 { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional" : true, "description": "Drop the copy before this node (if absent, the copy beco mes the last child of <code>targetNodeId</code>)." }
2368 ],
2369 "returns": [
2370 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node clone." }
2371 ],
2372 "description": "Creates a deep copy of the specified node and pl aces it into the target container before the given anchor.",
2373 "hidden": true
2374 },
2375 {
2376 "name": "moveTo",
2377 "parameters": [
2378 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to move." },
2379 { "name": "targetNodeId", "$ref": "NodeId", "description": " Id of the element to drop the moved node into." },
2380 { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional" : true, "description": "Drop node before this one (if absent, the moved node bec omes the last child of <code>targetNodeId</code>)." }
2381 ],
2382 "returns": [
2383 { "name": "nodeId", "$ref": "NodeId", "description": "New id of the moved node." }
2384 ],
2385 "description": "Moves node into the new container, places it bef ore the given anchor."
2386 },
2387 {
2388 "name": "undo",
2389 "description": "Undoes the last performed action.",
2390 "hidden": true
2391 },
2392 {
2393 "name": "redo",
2394 "description": "Re-does the last undone action.",
2395 "hidden": true
2396 },
2397 {
2398 "name": "markUndoableState",
2399 "description": "Marks last undoable state.",
2400 "hidden": true
2401 },
2402 {
2403 "name": "focus",
2404 "parameters": [
2405 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to focus." }
2406 ],
2407 "description": "Focuses the given element.",
2408 "hidden": true
2409 },
2410 {
2411 "name": "setFileInputFiles",
2412 "parameters": [
2413 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the file input node to set files for." },
2414 { "name": "files", "type": "array", "items": { "type": "stri ng" }, "description": "Array of file paths to set." }
2415 ],
2416 "description": "Sets files for the given file input element.",
2417 "hidden": true,
2418 "handlers": ["browser", "renderer"]
2419 },
2420 {
2421 "name": "getBoxModel",
2422 "parameters": [
2423 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get box model for." }
2424 ],
2425 "returns": [
2426 { "name": "model", "$ref": "BoxModel", "description": "Box m odel for the node." }
2427 ],
2428 "description": "Returns boxes for the currently selected nodes." ,
2429 "hidden": true
2430 },
2431 {
2432 "name": "getNodeForLocation",
2433 "parameters": [
2434 { "name": "x", "type": "integer", "description": "X coordina te." },
2435 { "name": "y", "type": "integer", "description": "Y coordina te." }
2436 ],
2437 "returns": [
2438 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node at given coordinates." }
2439 ],
2440 "description": "Returns node id at given location.",
2441 "hidden": true
2442 },
2443 {
2444 "name": "getRelayoutBoundary",
2445 "parameters": [
2446 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node." }
2447 ],
2448 "returns": [
2449 { "name": "nodeId", "$ref": "NodeId", "description": "Relayo ut boundary node id for the given node." }
2450 ],
2451 "description": "Returns the id of the nearest ancestor that is a relayout boundary.",
2452 "hidden": true
2453 }
2454 ],
2455 "events": [
2456 {
2457 "name": "documentUpdated",
2458 "description": "Fired when <code>Document</code> has been totall y updated. Node ids are no longer valid."
2459 },
2460 {
2461 "name": "inspectNodeRequested",
2462 "parameters": [
2463 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to inspect." }
2464 ],
2465 "description": "Fired when the node should be inspected. This ha ppens after call to <code>setInspectModeEnabled</code>.",
2466 "hidden" : true
2467 },
2468 {
2469 "name": "setChildNodes",
2470 "parameters": [
2471 { "name": "parentId", "$ref": "NodeId", "description": "Pare nt node id to populate with children." },
2472 { "name": "nodes", "type": "array", "items": { "$ref": "Node " }, "description": "Child nodes array." }
2473 ],
2474 "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node i ds."
2475 },
2476 {
2477 "name": "attributeModified",
2478 "parameters": [
2479 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
2480 { "name": "name", "type": "string", "description": "Attribut e name." },
2481 { "name": "value", "type": "string", "description": "Attribu te value." }
2482 ],
2483 "description": "Fired when <code>Element</code>'s attribute is m odified."
2484 },
2485 {
2486 "name": "attributeRemoved",
2487 "parameters": [
2488 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
2489 { "name": "name", "type": "string", "description": "A ttribu te name." }
2490 ],
2491 "description": "Fired when <code>Element</code>'s attribute is r emoved."
2492 },
2493 {
2494 "name": "inlineStyleInvalidated",
2495 "parameters": [
2496 { "name": "nodeIds", "type": "array", "items": { "$ref": "No deId" }, "description": "Ids of the nodes for which the inline styles have been invalidated." }
2497 ],
2498 "description": "Fired when <code>Element</code>'s inline style i s modified via a CSS property modification.",
2499 "hidden": true
2500 },
2501 {
2502 "name": "characterDataModified",
2503 "parameters": [
2504 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
2505 { "name": "characterData", "type": "string", "description": "New text value." }
2506 ],
2507 "description": "Mirrors <code>DOMCharacterDataModified</code> ev ent."
2508 },
2509 {
2510 "name": "childNodeCountUpdated",
2511 "parameters": [
2512 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." },
2513 { "name": "childNodeCount", "type": "integer", "description" : "New node count." }
2514 ],
2515 "description": "Fired when <code>Container</code>'s child node c ount has changed."
2516 },
2517 {
2518 "name": "childNodeInserted",
2519 "parameters": [
2520 { "name": "parentNodeId", "$ref": "NodeId", "description": " Id of the node that has changed." },
2521 { "name": "previousNodeId", "$ref": "NodeId", "description": "If of the previous siblint." },
2522 { "name": "node", "$ref": "Node", "description": "Inserted n ode data." }
2523 ],
2524 "description": "Mirrors <code>DOMNodeInserted</code> event."
2525 },
2526 {
2527 "name": "childNodeRemoved",
2528 "parameters": [
2529 { "name": "parentNodeId", "$ref": "NodeId", "description": " Parent id." },
2530 { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has been removed." }
2531 ],
2532 "description": "Mirrors <code>DOMNodeRemoved</code> event."
2533 },
2534 {
2535 "name": "shadowRootPushed",
2536 "parameters": [
2537 { "name": "hostId", "$ref": "NodeId", "description": "Host e lement id." },
2538 { "name": "root", "$ref": "Node", "description": "Shadow roo t." }
2539 ],
2540 "description": "Called when shadow root is pushed into the eleme nt.",
2541 "hidden": true
2542 },
2543 {
2544 "name": "shadowRootPopped",
2545 "parameters": [
2546 { "name": "hostId", "$ref": "NodeId", "description": "Host e lement id." },
2547 { "name": "rootId", "$ref": "NodeId", "description": "Shadow root id." }
2548 ],
2549 "description": "Called when shadow root is popped from the eleme nt.",
2550 "hidden": true
2551 },
2552 {
2553 "name": "pseudoElementAdded",
2554 "parameters": [
2555 { "name": "parentId", "$ref": "NodeId", "description": "Pseu do element's parent element id." },
2556 { "name": "pseudoElement", "$ref": "Node", "description": "T he added pseudo element." }
2557 ],
2558 "description": "Called when a pseudo element is added to an elem ent.",
2559 "hidden": true
2560 },
2561 {
2562 "name": "pseudoElementRemoved",
2563 "parameters": [
2564 { "name": "parentId", "$ref": "NodeId", "description": "Pseu do element's parent element id." },
2565 { "name": "pseudoElementId", "$ref": "NodeId", "description" : "The removed pseudo element id." }
2566 ],
2567 "description": "Called when a pseudo element is removed from an element.",
2568 "hidden": true
2569 }
2570 ]
2571 },
2572 {
2573 "domain": "CSS",
2574 "hidden": true,
2575 "description": "This domain exposes CSS read/write operations. All CSS o bjects (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). A client can also discover all the existing stylesheets with the <code>getAllStyleSheets()</code> method (or keeping track o f the <code>styleSheetAdded</code>/<code>styleSheetRemoved</code> events) and su bsequently load the required stylesheet contents using the <code>getStyleSheet[T ext]()</code> methods.",
2576 "types": [
2577 {
2578 "id": "StyleSheetId",
2579 "type": "string"
2580 },
2581 {
2582 "id": "StyleSheetOrigin",
2583 "type": "string",
2584 "enum": ["user", "user-agent", "inspector", "regular"],
2585 "description": "Stylesheet type: \"user\" for user stylesheets, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding the \"via inspector\" rules), \"regular\" for regular stylesheets."
2586 },
2587 {
2588 "id": "PseudoIdMatches",
2589 "type": "object",
2590 "properties": [
2591 { "name": "pseudoId", "type": "integer", "description": "Pse udo style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstan ts.h</code>)."},
2592 { "name": "matches", "type": "array", "items": { "$ref": "Ru leMatch" }, "description": "Matches of CSS rules applicable to the pseudo style. "}
2593 ],
2594 "description": "CSS rule collection for a single pseudo style."
2595 },
2596 {
2597 "id": "InheritedStyleEntry",
2598 "type": "object",
2599 "properties": [
2600 { "name": "inlineStyle", "$ref": "CSSStyle", "optional": tru e, "description": "The ancestor node's inline style, if any, in the style inheri tance chain." },
2601 { "name": "matchedCSSRules", "type": "array", "items": { "$r ef": "RuleMatch" }, "description": "Matches of CSS rules matching the ancestor n ode in the style inheritance chain." }
2602 ],
2603 "description": "Inherited CSS rule collection from ancestor node ."
2604 },
2605 {
2606 "id": "RuleMatch",
2607 "type": "object",
2608 "properties": [
2609 { "name": "rule", "$ref": "CSSRule", "description": "CSS rul e in the match." },
2610 { "name": "matchingSelectors", "type": "array", "items": { " type": "integer" }, "description": "Matching selector indices in the rule's sele ctorList selectors (0-based)." }
2611 ],
2612 "description": "Match data for a CSS rule."
2613 },
2614 {
2615 "id": "Selector",
2616 "type": "object",
2617 "properties": [
2618 { "name": "value", "type": "string", "description": "Selecto r text." },
2619 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Selector range in the underlying resource (if available)." }
2620 ],
2621 "description": "Data for a simple selector (these are delimited by commas in a selector list)."
2622 },
2623 {
2624 "id": "SelectorList",
2625 "type": "object",
2626 "properties": [
2627 { "name": "selectors", "type": "array", "items": { "$ref": " Selector" }, "description": "Selectors in the list." },
2628 { "name": "text", "type": "string", "description": "Rule sel ector text." }
2629 ],
2630 "description": "Selector list data."
2631 },
2632 {
2633 "id": "CSSStyleSheetHeader",
2634 "type": "object",
2635 "properties": [
2636 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "The stylesheet identifier."},
2637 { "name": "frameId", "$ref": "Page.FrameId", "description": "Owner frame identifier."},
2638 { "name": "sourceURL", "type": "string", "description": "Sty lesheet resource URL."},
2639 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with the stylesheet (if any)." },
2640 { "name": "origin", "$ref": "StyleSheetOrigin", "description ": "Stylesheet origin."},
2641 { "name": "title", "type": "string", "description": "Stylesh eet title."},
2642 { "name": "disabled", "type": "boolean", "description": "Den otes whether the stylesheet is disabled."},
2643 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "Whether the sourceURL field value comes from the sourceURL co mment." },
2644 { "name": "isInline", "type": "boolean", "description": "Whe ther this stylesheet is created for STYLE tag by parser. This flag is not set fo r document.written STYLE tags." },
2645 { "name": "startLine", "type": "number", "description": "Lin e offset of the stylesheet within the resource (zero based)." },
2646 { "name": "startColumn", "type": "number", "description": "C olumn offset of the stylesheet within the resource (zero based)." }
2647 ],
2648 "description": "CSS stylesheet metainformation."
2649 },
2650 {
2651 "id": "CSSRule",
2652 "type": "object",
2653 "properties": [
2654 { "name": "styleSheetId", "$ref": "StyleSheetId", "optional" : true, "description": "The css style sheet identifier (absent for user agent st ylesheet and user-specified stylesheet rules) this rule came from." },
2655 { "name": "selectorList", "$ref": "SelectorList", "descripti on": "Rule selector data." },
2656 { "name": "origin", "$ref": "StyleSheetOrigin", "description ": "Parent stylesheet's origin."},
2657 { "name": "style", "$ref": "CSSStyle", "description": "Assoc iated style declaration." },
2658 { "name": "media", "type": "array", "items": { "$ref": "CSSM edia" }, "optional": true, "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards." }
2659 ],
2660 "description": "CSS rule representation."
2661 },
2662 {
2663 "id": "SourceRange",
2664 "type": "object",
2665 "properties": [
2666 { "name": "startLine", "type": "integer", "description": "St art line of range." },
2667 { "name": "startColumn", "type": "integer", "description": " Start column of range (inclusive)." },
2668 { "name": "endLine", "type": "integer", "description": "End line of range" },
2669 { "name": "endColumn", "type": "integer", "description": "En d column of range (exclusive)." }
2670 ],
2671 "description": "Text range within a resource. All numbers are ze ro-based."
2672 },
2673 {
2674 "id": "ShorthandEntry",
2675 "type": "object",
2676 "properties": [
2677 { "name": "name", "type": "string", "description": "Shorthan d name." },
2678 { "name": "value", "type": "string", "description": "Shortha nd value." }
2679 ]
2680 },
2681 {
2682 "id": "CSSComputedStyleProperty",
2683 "type": "object",
2684 "properties": [
2685 { "name": "name", "type": "string", "description": "Computed style property name." },
2686 { "name": "value", "type": "string", "description": "Compute d style property value." }
2687 ]
2688 },
2689 {
2690 "id": "CSSStyle",
2691 "type": "object",
2692 "properties": [
2693 { "name": "styleSheetId", "$ref": "StyleSheetId", "optional" : true, "description": "The css style sheet identifier (absent for user agent st ylesheet and user-specified stylesheet rules) this rule came from." },
2694 { "name": "cssProperties", "type": "array", "items": { "$ref ": "CSSProperty" }, "description": "CSS properties in the style." },
2695 { "name": "shorthandEntries", "type": "array", "items": { "$ ref": "ShorthandEntry" }, "description": "Computed values for all shorthands fou nd in the style." },
2696 { "name": "cssText", "type": "string", "optional": true, "de scription": "Style declaration text (if available)." },
2697 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if availabl e)." }
2698 ],
2699 "description": "CSS style representation."
2700 },
2701 {
2702 "id": "CSSProperty",
2703 "type": "object",
2704 "properties": [
2705 { "name": "name", "type": "string", "description": "The prop erty name." },
2706 { "name": "value", "type": "string", "description": "The pro perty value." },
2707 { "name": "important", "type": "boolean", "optional": true, "description": "Whether the property has \"!important\" annotation (implies <cod e>false</code> if absent)." },
2708 { "name": "implicit", "type": "boolean", "optional": true, " description": "Whether the property is implicit (implies <code>false</code> if a bsent)." },
2709 { "name": "text", "type": "string", "optional": true, "descr iption": "The full property text as specified in the style." },
2710 { "name": "parsedOk", "type": "boolean", "optional": true, " description": "Whether the property is understood by the browser (implies <code> true</code> if absent)." },
2711 { "name": "disabled", "type": "boolean", "optional": true, " description": "Whether the property is disabled by the user (present for source- based properties only)." },
2712 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." }
2713 ],
2714 "description": "CSS property declaration data."
2715 },
2716 {
2717 "id": "CSSMedia",
2718 "type": "object",
2719 "properties": [
2720 { "name": "text", "type": "string", "description": "Media qu ery text." },
2721 { "name": "source", "type": "string", "enum": ["mediaRule", "importRule", "linkedSheet", "inlineSheet"], "description": "Source of the media query: \"mediaRule\" if specified by a @media rule, \"importRule\" if specified by an @import rule, \"linkedSheet\" if specified by a \"media\" attribute in a linked stylesheet's LINK tag, \"inlineSheet\" if specified by a \"media\" attrib ute in an inline stylesheet's STYLE tag." },
2722 { "name": "sourceURL", "type": "string", "optional": true, " description": "URL of the document containing the media query description." },
2723 { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The associated rule (@media or @import) header range in the encl osing stylesheet (if available)." },
2724 { "name": "parentStyleSheetId", "$ref": "StyleSheetId", "opt ional": true, "description": "Identifier of the stylesheet containing this objec t (if exists)." },
2725 { "name": "mediaList", "type": "array", "items": { "$ref": " MediaQuery" }, "optional": true, "hidden": true, "description": "Array of media queries." }
2726 ],
2727 "description": "CSS media rule descriptor."
2728 },
2729 {
2730 "id": "MediaQuery",
2731 "type": "object",
2732 "properties": [
2733 { "name": "expressions", "type": "array", "items": { "$ref": "MediaQueryExpression" }, "description": "Array of media query expressions." },
2734 { "name": "active", "type": "boolean", "description": "Wheth er the media query condition is satisfied." }
2735 ],
2736 "description": "Media query descriptor.",
2737 "hidden": true
2738 },
2739 {
2740 "id": "MediaQueryExpression",
2741 "type": "object",
2742 "properties": [
2743 { "name": "value", "type": "number", "description": "Media q uery expression value."},
2744 { "name": "unit", "type": "string", "description": "Media qu ery expression units."},
2745 { "name": "feature", "type": "string", "description": "Media query expression feature."},
2746 { "name": "computedLength", "type": "number", "optional": tr ue, "description": "Computed length of media query expression (if applicable)."}
2747 ],
2748 "description": "Media query expression descriptor.",
2749 "hidden": true
2750 },
2751 {
2752 "id": "PlatformFontUsage",
2753 "type": "object",
2754 "properties": [
2755 { "name": "familyName", "type": "string", "description": "Fo nt's family name reported by platform."},
2756 { "name": "glyphCount", "type": "number", "description": "Am ount of glyphs that were rendered with this font."}
2757 ],
2758 "description": "Information about amount of glyphs that were ren dered with given font.",
2759 "hidden": true
2760 }
2761 ],
2762 "commands": [
2763 {
2764 "name": "enable",
2765 "async": true,
2766 "description": "Enables the CSS agent for the given page. Client s should not assume that the CSS agent has been enabled until the result of this command is received."
2767 },
2768 {
2769 "name": "disable",
2770 "description": "Disables the CSS agent for the given page."
2771 },
2772 {
2773 "name": "getMatchedStylesForNode",
2774 "parameters": [
2775 { "name": "nodeId", "$ref": "DOM.NodeId" },
2776 { "name": "excludePseudo", "type": "boolean", "optional": tr ue, "description": "Whether to exclude pseudo styles (default: false)." },
2777 { "name": "excludeInherited", "type": "boolean", "optional": true, "description": "Whether to exclude inherited styles (default: false)." }
2778 ],
2779 "returns": [
2780 { "name": "matchedCSSRules", "type": "array", "items": { "$r ef": "RuleMatch" }, "optional": true, "description": "CSS rules matching this no de, from all applicable stylesheets." },
2781 { "name": "pseudoElements", "type": "array", "items": { "$re f": "PseudoIdMatches" }, "optional": true, "description": "Pseudo style matches for this node." },
2782 { "name": "inherited", "type": "array", "items": { "$ref": " InheritedStyleEntry" }, "optional": true, "description": "A chain of inherited s tyles (from the immediate node parent up to the DOM tree root)." }
2783 ],
2784 "description": "Returns requested styles for a DOM node identifi ed by <code>nodeId</code>."
2785 },
2786 {
2787 "name": "getInlineStylesForNode",
2788 "parameters": [
2789 { "name": "nodeId", "$ref": "DOM.NodeId" }
2790 ],
2791 "returns": [
2792 { "name": "inlineStyle", "$ref": "CSSStyle", "optional": tru e, "description": "Inline style for the specified DOM node." },
2793 { "name": "attributesStyle", "$ref": "CSSStyle", "optional": true, "description": "Attribute-defined element style (e.g. resulting from \"wi dth=20 height=100%\")."}
2794 ],
2795 "description": "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM attributes) for a DOM node id entified by <code>nodeId</code>."
2796 },
2797 {
2798 "name": "getComputedStyleForNode",
2799 "parameters": [
2800 { "name": "nodeId", "$ref": "DOM.NodeId" }
2801 ],
2802 "returns": [
2803 { "name": "computedStyle", "type": "array", "items": { "$ref ": "CSSComputedStyleProperty" }, "description": "Computed style for the specifie d DOM node." }
2804 ],
2805 "description": "Returns the computed style for a DOM node identi fied by <code>nodeId</code>."
2806 },
2807 {
2808 "name": "getPlatformFontsForNode",
2809 "parameters": [
2810 { "name": "nodeId", "$ref": "DOM.NodeId" }
2811 ],
2812 "returns": [
2813 { "name": "cssFamilyName", "type": "string", "description": "Font family name which is determined by computed style." },
2814 { "name": "fonts", "type": "array", "items": { "$ref": "Plat formFontUsage" }, "description": "Usage statistics for every employed platform f ont." }
2815 ],
2816 "description": "Requests information about platform fonts which we used to render child TextNodes in the given node.",
2817 "hidden": true
2818 },
2819 {
2820 "name": "getStyleSheetText",
2821 "parameters": [
2822 { "name": "styleSheetId", "$ref": "StyleSheetId" }
2823 ],
2824 "returns": [
2825 { "name": "text", "type": "string", "description": "The styl esheet text." }
2826 ],
2827 "description": "Returns the current textual content and the URL for a stylesheet."
2828 },
2829 {
2830 "name": "setStyleSheetText",
2831 "parameters": [
2832 { "name": "styleSheetId", "$ref": "StyleSheetId" },
2833 { "name": "text", "type": "string" }
2834 ],
2835 "description": "Sets the new stylesheet text."
2836 },
2837 {
2838 "name": "setPropertyText",
2839 "parameters": [
2840 { "name": "styleSheetId", "$ref": "StyleSheetId" },
2841 { "name": "range", "$ref": "SourceRange", "description": "Ei ther a source range of the property to be edited or an empty range representing a position for the property insertion." },
2842 { "name": "text", "type": "string" }
2843 ],
2844 "returns": [
2845 { "name": "style", "$ref": "CSSStyle", "description": "The r esulting style after the property text modification." }
2846 ],
2847 "description": "Either replaces a property identified by <code>s tyleSheetId</code> and <code>range</code> with <code>text</code> or inserts a ne w property <code>text</code> at the position identified by an empty <code>range< /code>."
2848 },
2849 {
2850 "name": "setRuleSelector",
2851 "parameters": [
2852 { "name": "styleSheetId", "$ref": "StyleSheetId" },
2853 { "name": "range", "$ref": "SourceRange" },
2854 { "name": "selector", "type": "string" }
2855 ],
2856 "returns": [
2857 { "name": "rule", "$ref": "CSSRule", "description": "The res ulting rule after the selector modification." }
2858 ],
2859 "description": "Modifies the rule selector."
2860 },
2861 {
2862 "name": "createStyleSheet",
2863 "parameters": [
2864 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame where \"via-inspector\" stylesheet should be created."}
2865 ],
2866 "returns": [
2867 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the created \"via-inspector\" stylesheet." }
2868 ],
2869 "description": "Creates a new special \"via-inspector\" styleshe et in the frame with given <code>frameId</code>."
2870 },
2871 {
2872 "name": "addRule",
2873 "parameters": [
2874 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "The css style sheet identifier where a new rule should be inserted." },
2875 { "name": "ruleText", "type": "string", "description": "The text of a new rule." },
2876 { "name": "location", "$ref": "SourceRange", "description": "Text position of a new rule in the target style sheet." }
2877 ],
2878 "returns": [
2879 { "name": "rule", "$ref": "CSSRule", "description": "The new ly created rule." }
2880 ],
2881 "description": "Inserts a new rule with the given <code>ruleText </code> in a stylesheet with given <code>styleSheetId</code>, at the position sp ecified by <code>location</code>."
2882 },
2883 {
2884 "name": "forcePseudoState",
2885 "parameters": [
2886 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Th e element id for which to force the pseudo state." },
2887 { "name": "forcedPseudoClasses", "type": "array", "items": { "type": "string", "enum": ["active", "focus", "hover", "visited"] }, "descripti on": "Element pseudo classes to force when computing the element's style." }
2888 ],
2889 "description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser."
2890 },
2891 {
2892 "name": "getMediaQueries",
2893 "returns": [
2894 { "name": "medias", "type": "array", "items": { "$ref": "CSS Media" } }
2895 ],
2896 "description": "Returns all media queries parsed by the renderin g engine.",
2897 "hidden": true
2898 }
2899 ],
2900 "events": [
2901 {
2902 "name": "mediaQueryResultChanged",
2903 "description": "Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation co nsiders only viewport-dependent media features."
2904 },
2905 {
2906 "name": "styleSheetChanged",
2907 "parameters": [
2908 { "name": "styleSheetId", "$ref": "StyleSheetId" }
2909 ],
2910 "description": "Fired whenever a stylesheet is changed as a resu lt of the client operation."
2911 },
2912 {
2913 "name": "styleSheetAdded",
2914 "parameters": [
2915 { "name": "header", "$ref": "CSSStyleSheetHeader", "descript ion": "Added stylesheet metainfo." }
2916 ],
2917 "description": "Fired whenever an active document stylesheet is added."
2918 },
2919 {
2920 "name": "styleSheetRemoved",
2921 "parameters": [
2922 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the removed stylesheet." }
2923 ],
2924 "description": "Fired whenever an active document stylesheet is removed."
2925 }
2926 ]
2927 },
2928 {
2929 "domain": "Timeline",
2930 "description": "Timeline provides its clients with instrumentation recor ds that are generated during the page runtime. Timeline instrumentation can be s tarted and stopped using corresponding commands. While timeline is started, it i s generating timeline event records.",
2931 "types": [
2932 {
2933 "id": "Counters",
2934 "type": "object",
2935 "properties": [
2936 { "name": "documents", "type": "integer", "optional": true } ,
2937 { "name": "nodes", "type": "integer", "optional": true },
2938 { "name": "jsEventListeners", "type": "integer", "optional": true },
2939 { "name": "jsHeapSizeUsed", "type": "number", "optional": tr ue, "description": "Currently used size of JS heap." },
2940 { "name": "gpuMemoryUsedKB", "type": "number", "optional": t rue, "description": "Current GPU memory usage in kilobytes." },
2941 { "name": "gpuMemoryLimitKB", "type": "number", "optional": true, "description": "Current GPU memory limit in kilobytes." }
2942 ],
2943 "description": "Current values of counters.",
2944 "hidden": true
2945 },
2946 {
2947 "id": "TimelineEvent",
2948 "type": "object",
2949 "properties": [
2950 { "name": "type", "type": "string", "description": "Event ty pe." },
2951 { "name": "data", "type": "object", "description": "Event da ta." },
2952 { "name": "startTime", "type": "number", "description": "Sta rt time." },
2953 { "name": "endTime", "type": "number", "optional": true, "de scription": "End time." },
2954 { "name": "children", "type": "array", "optional": true, "it ems": { "$ref": "TimelineEvent" }, "description": "Nested records." },
2955 { "name": "thread", "type": "string", "optional": true, "hid den": true, "description": "If present, identifies the thread that produced the event." },
2956 { "name": "stackTrace", "$ref": "Console.StackTrace", "optio nal": true, "hidden": true, "description": "Stack trace." },
2957 { "name": "frameId", "type": "string", "optional": true, "hi dden": true, "description": "Unique identifier of the frame within the page that the event relates to." }
2958 ],
2959 "description": "Timeline record contains information about the r ecorded activity."
2960 }
2961 ],
2962 "commands": [
2963 {
2964 "name": "enable",
2965 "description": "Enables timeline. After this call, timeline can be started from within the page (for example upon console.timeline)."
2966 },
2967 {
2968 "name": "disable",
2969 "description": "Disables timeline."
2970 },
2971 {
2972 "name": "start",
2973 "parameters": [
2974 { "name": "maxCallStackDepth", "optional": true, "type": "in teger", "description": "Samples JavaScript stack traces up to <code>maxCallStack Depth</code>, defaults to 5." },
2975 { "name": "bufferEvents", "optional": true, "type": "boolean ", "hidden": true, "description": "Whether instrumentation events should be buff ered and returned upon <code>stop</code> call." },
2976 { "name": "liveEvents", "optional": true, "type": "string", "hidden": true, "description": "Coma separated event types to issue although buf ferEvents is set."},
2977 { "name": "includeCounters", "optional": true, "type": "bool ean", "hidden": true, "description": "Whether counters data should be included i nto timeline events." },
2978 { "name": "includeGPUEvents", "optional": true, "type": "boo lean", "hidden": true, "description": "Whether events from GPU process should be collected." }
2979 ],
2980 "description": "Starts capturing instrumentation events."
2981 },
2982 {
2983 "name": "stop",
2984 "description": "Stops capturing instrumentation events."
2985 }
2986 ],
2987 "events": [
2988 {
2989 "name": "eventRecorded",
2990 "parameters": [
2991 { "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." }
2992 ],
2993 "description": "Fired for every instrumentation event while time line is started."
2994 },
2995 {
2996 "name": "progress",
2997 "parameters": [
2998 { "name": "count", "type": "number" }
2999 ],
3000 "hidden": true
3001 },
3002 {
3003 "name": "started",
3004 "parameters": [
3005 { "name": "consoleTimeline", "type": "boolean", "optional": true, "description": "If specified, identifies that timeline was started using c onsole.timeline() call." }
3006 ],
3007 "description": "Fired when timeline is started.",
3008 "hidden": true
3009 },
3010 {
3011 "name": "stopped",
3012 "parameters": [
3013 { "name": "consoleTimeline", "type": "boolean", "optional": true, "description": "If specified, identifies that timeline was started using c onsole.timeline() call." },
3014 { "name": "events", "type": "array", "items": { "$ref": "Tim elineEvent" }, "optional": true, "hidden": true, "description": "Timeline event record data." }
3015 ],
3016 "description": "Fired when timeline is stopped.",
3017 "hidden": true
3018 }
3019 ]
3020 },
3021 {
3022 "domain": "Debugger",
3023 "description": "Debugger domain exposes JavaScript debugging capabilitie s. It allows setting and removing breakpoints, stepping through execution, explo ring stack traces, etc.",
3024 "types": [
3025 {
3026 "id": "BreakpointId",
3027 "type": "string",
3028 "description": "Breakpoint identifier."
3029 },
3030 {
3031 "id": "ScriptId",
3032 "type": "string",
3033 "description": "Unique script identifier."
3034 },
3035 {
3036 "id": "CallFrameId",
3037 "type": "string",
3038 "description": "Call frame identifier."
3039 },
3040 {
3041 "id": "Location",
3042 "type": "object",
3043 "properties": [
3044 { "name": "scriptId", "$ref": "ScriptId", "description": "Sc ript identifier as reported in the <code>Debugger.scriptParsed</code>." },
3045 { "name": "lineNumber", "type": "integer", "description": "L ine number in the script (0-based)." },
3046 { "name": "columnNumber", "type": "integer", "optional": tru e, "description": "Column number in the script (0-based)." }
3047 ],
3048 "description": "Location in the source code."
3049 },
3050 {
3051 "id": "FunctionDetails",
3052 "hidden": true,
3053 "type": "object",
3054 "properties": [
3055 { "name": "location", "$ref": "Location", "description": "Lo cation of the function." },
3056 { "name": "functionName", "type": "string", "description": " Name of the function." },
3057 { "name": "scopeChain", "type": "array", "optional": true, " items": { "$ref": "Scope" }, "description": "Scope chain for this closure." }
3058 ],
3059 "description": "Information about the function."
3060 },
3061 {
3062 "id": "CollectionEntry",
3063 "hidden": true,
3064 "type": "object",
3065 "properties": [
3066 { "name": "key", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Entry key of a map-like collection, otherwise not provide d." },
3067 { "name": "value", "$ref": "Runtime.RemoteObject", "descript ion": "Entry value." }
3068 ],
3069 "description": "Collection entry."
3070 },
3071 {
3072 "id": "CallFrame",
3073 "type": "object",
3074 "properties": [
3075 { "name": "callFrameId", "$ref": "CallFrameId", "description ": "Call frame identifier. This identifier is only valid while the virtual machi ne is paused." },
3076 { "name": "functionName", "type": "string", "description": " Name of the JavaScript function called on this call frame." },
3077 { "name": "location", "$ref": "Location", "description": "Lo cation in the source code." },
3078 { "name": "scopeChain", "type": "array", "items": { "$ref": "Scope" }, "description": "Scope chain for this call frame." },
3079 { "name": "this", "$ref": "Runtime.RemoteObject", "descripti on": "<code>this</code> object for this call frame." },
3080 { "name": "returnValue", "$ref": "Runtime.RemoteObject", "op tional": true, "hidden": true, "description": "The value being returned, if the function is at return point." }
3081 ],
3082 "description": "JavaScript call frame. Array of call frames form the call stack."
3083 },
3084 {
3085 "id": "StackTrace",
3086 "type": "object",
3087 "properties": [
3088 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call frames of the stack trace." },
3089 { "name": "description", "type": "string", "optional": true, "description": "String label of this stack trace. For async traces this may be a name of the function that initiated the async call." },
3090 { "name": "asyncStackTrace", "$ref": "StackTrace", "optional ": true, "description": "Async stack trace, if any." }
3091 ],
3092 "description": "JavaScript call stack, including async stack tra ces.",
3093 "hidden": true
3094 },
3095 {
3096 "id": "Scope",
3097 "type": "object",
3098 "properties": [
3099 { "name": "type", "type": "string", "enum": ["global", "loca l", "with", "closure", "catch"], "description": "Scope type." },
3100 { "name": "object", "$ref": "Runtime.RemoteObject", "descrip tion": "Object representing the scope. For <code>global</code> and <code>with</c ode> scopes it represents the actual object; for the rest of the scopes, it is a rtificial transient object enumerating scope variables as its properties." }
3101 ],
3102 "description": "Scope description."
3103 },
3104 {
3105 "id": "ExceptionDetails",
3106 "type": "object",
3107 "description": "Detailed information on exception (or error) tha t was thrown during script compilation or execution.",
3108 "properties": [
3109 { "name": "text", "type": "string", "description": "Exceptio n text." },
3110 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." },
3111 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." },
3112 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." },
3113 { "name": "stackTrace", "$ref": "Console.StackTrace", "optio nal": true, "description": "JavaScript stack trace for assertions and error mess ages." }
3114 ]
3115 },
3116 {
3117 "id": "SetScriptSourceError",
3118 "type": "object",
3119 "properties": [
3120 { "name": "compileError", "optional": true, "type": "object" , "properties":
3121 [
3122 { "name": "message", "type": "string", "description" : "Compiler error message" },
3123 { "name": "lineNumber", "type": "integer", "descript ion": "Compile error line number (1-based)" },
3124 { "name": "columnNumber", "type": "integer", "descri ption": "Compile error column number (1-based)" }
3125 ]
3126 }
3127 ],
3128 "description": "Error data for setScriptSource command. compileE rror is a case type for uncompilable script source error.",
3129 "hidden": true
3130 }
3131 ],
3132 "commands": [
3133 {
3134 "name": "enable",
3135 "description": "Enables debugger for the given page. Clients sho uld not assume that the debugging has been enabled until the result for this com mand is received."
3136 },
3137 {
3138 "name": "disable",
3139 "description": "Disables debugger for given page."
3140 },
3141 {
3142 "name": "setBreakpointsActive",
3143 "parameters": [
3144 { "name": "active", "type": "boolean", "description": "New v alue for breakpoints active state." }
3145 ],
3146 "description": "Activates / deactivates all breakpoints on the p age."
3147 },
3148 {
3149 "name": "setSkipAllPauses",
3150 "hidden": true,
3151 "parameters": [
3152 { "name": "skipped", "type": "boolean", "description": "New value for skip pauses state." },
3153 { "name": "untilReload", "type": "boolean", "optional": true , "description": "Whether page reload should set skipped to false." }
3154 ],
3155 "description": "Makes page not interrupt on any pauses (breakpoi nt, exception, dom exception etc)."
3156 },
3157 {
3158 "name": "setBreakpointByUrl",
3159 "parameters": [
3160 { "name": "lineNumber", "type": "integer", "description": "L ine number to set breakpoint at." },
3161 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the resources to set breakpoint on." },
3162 { "name": "urlRegex", "type": "string", "optional": true, "d escription": "Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified." },
3163 { "name": "columnNumber", "type": "integer", "optional": tru e, "description": "Offset in the line to set breakpoint at." },
3164 { "name": "condition", "type": "string", "optional": true, " description": "Expression to use as a breakpoint condition. When specified, debu gger will only stop on the breakpoint if this expression evaluates to true." },
3165 { "name": "isAntibreakpoint", "type": "boolean", "optional": true, "hidden": true, "description": "Creates pseudo-breakpoint that prevents d ebugger from pausing on exception at this location." }
3166 ],
3167 "returns": [
3168 { "name": "breakpointId", "$ref": "BreakpointId", "descripti on": "Id of the created breakpoint for further reference." },
3169 { "name": "locations", "type": "array", "items": { "$ref": " Location" }, "description": "List of the locations this breakpoint resolved into upon addition." }
3170 ],
3171 "description": "Sets JavaScript breakpoint at given location spe cified either by URL or URL regex. Once this command is issued, all existing par sed scripts will have breakpoints resolved and returned in <code>locations</code > property. Further matching script parsing will result in subsequent <code>brea kpointResolved</code> events issued. This logical breakpoint will survive page r eloads."
3172 },
3173 {
3174 "name": "setBreakpoint",
3175 "parameters": [
3176 { "name": "location", "$ref": "Location", "description": "Lo cation to set breakpoint in." },
3177 { "name": "condition", "type": "string", "optional": true, " description": "Expression to use as a breakpoint condition. When specified, debu gger will only stop on the breakpoint if this expression evaluates to true." }
3178 ],
3179 "returns": [
3180 { "name": "breakpointId", "$ref": "BreakpointId", "descripti on": "Id of the created breakpoint for further reference." },
3181 { "name": "actualLocation", "$ref": "Location", "description ": "Location this breakpoint resolved into." }
3182 ],
3183 "description": "Sets JavaScript breakpoint at a given location."
3184 },
3185 {
3186 "name": "removeBreakpoint",
3187 "parameters": [
3188 { "name": "breakpointId", "$ref": "BreakpointId" }
3189 ],
3190 "description": "Removes JavaScript breakpoint."
3191 },
3192 {
3193 "name": "continueToLocation",
3194 "parameters": [
3195 { "name": "location", "$ref": "Location", "description": "Lo cation to continue to." },
3196 { "name": "interstatementLocation", "type": "boolean", "opti onal": true, "hidden": true, "description": "Allows breakpoints at the intemedia te positions inside statements." }
3197 ],
3198 "description": "Continues execution until specific location is r eached."
3199 },
3200 {
3201 "name": "stepOver",
3202 "description": "Steps over the statement."
3203 },
3204 {
3205 "name": "stepInto",
3206 "description": "Steps into the function call."
3207 },
3208 {
3209 "name": "stepOut",
3210 "description": "Steps out of the function call."
3211 },
3212 {
3213 "name": "pause",
3214 "description": "Stops on the next JavaScript statement."
3215 },
3216 {
3217 "name": "resume",
3218 "description": "Resumes JavaScript execution."
3219 },
3220 {
3221 "name": "searchInContent",
3222 "parameters": [
3223 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to search in." },
3224 { "name": "query", "type": "string", "description": "String to search for." },
3225 { "name": "caseSensitive", "type": "boolean", "optional": tr ue, "description": "If true, search is case sensitive." },
3226 { "name": "isRegex", "type": "boolean", "optional": true, "d escription": "If true, treats string parameter as regex." }
3227 ],
3228 "returns": [
3229 { "name": "result", "type": "array", "items": { "$ref": "Pag e.SearchMatch" }, "description": "List of search matches." }
3230 ],
3231 "description": "Searches for given string in script content."
3232 },
3233 {
3234 "name": "canSetScriptSource",
3235 "returns": [
3236 { "name": "result", "type": "boolean", "description": "True if <code>setScriptSource</code> is supported." }
3237 ],
3238 "description": "Always returns true."
3239 },
3240 {
3241 "name": "setScriptSource",
3242 "parameters": [
3243 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to edit." },
3244 { "name": "scriptSource", "type": "string", "description": " New content of the script." },
3245 { "name": "preview", "type": "boolean", "optional": true, "d escription": " If true the change will not actually be applied. Preview mode may be used to get result description without actually modifying the code.", "hidde n": true }
3246 ],
3247 "returns": [
3248 { "name": "callFrames", "type": "array", "optional": true, " items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing has happened while VM was stopped." },
3249 { "name": "result", "type": "object", "optional": true, "des cription": "VM-specific description of the changes applied.", "hidden": true },
3250 { "name": "asyncStackTrace", "$ref": "StackTrace", "optional ": true, "description": "Async stack trace, if any.", "hidden": true }
3251 ],
3252 "error": {
3253 "$ref": "SetScriptSourceError"
3254 },
3255 "description": "Edits JavaScript source live."
3256 },
3257 {
3258 "name": "restartFrame",
3259 "parameters": [
3260 { "name": "callFrameId", "$ref": "CallFrameId", "description ": "Call frame identifier to evaluate on." }
3261 ],
3262 "returns": [
3263 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "New stack trace." },
3264 { "name": "result", "type": "object", "description": "VM-spe cific description." },
3265 { "name": "asyncStackTrace", "$ref": "StackTrace", "optional ": true, "description": "Async stack trace, if any." }
3266 ],
3267 "hidden": true,
3268 "description": "Restarts particular call frame from the beginnin g."
3269 },
3270 {
3271 "name": "getScriptSource",
3272 "parameters": [
3273 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to get source for." }
3274 ],
3275 "returns": [
3276 { "name": "scriptSource", "type": "string", "description": " Script source." }
3277 ],
3278 "description": "Returns source for the script with given id."
3279 },
3280 {
3281 "name": "getFunctionDetails",
3282 "hidden": true,
3283 "parameters": [
3284 { "name": "functionId", "$ref": "Runtime.RemoteObjectId", "d escription": "Id of the function to get location for." }
3285 ],
3286 "returns": [
3287 { "name": "details", "$ref": "FunctionDetails", "description ": "Information about the function." }
3288 ],
3289 "description": "Returns detailed information on given function."
3290 },
3291 {
3292 "name": "getCollectionEntries",
3293 "hidden": true,
3294 "parameters": [
3295 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "des cription": "Id of the collection to get entries for." }
3296 ],
3297 "returns": [
3298 { "name": "entries", "type": "array", "items": { "$ref": "Co llectionEntry" }, "description": "Array of collection entries." }
3299 ],
3300 "description": "Returns entries of given collection."
3301 },
3302 {
3303 "name": "setPauseOnExceptions",
3304 "parameters": [
3305 { "name": "state", "type": "string", "enum": ["none", "uncau ght", "all"], "description": "Pause on exceptions mode." }
3306 ],
3307 "description": "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>."
3308 },
3309 {
3310 "name": "evaluateOnCallFrame",
3311 "parameters": [
3312 { "name": "callFrameId", "$ref": "CallFrameId", "description ": "Call frame identifier to evaluate on." },
3313 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." },
3314 { "name": "objectGroup", "type": "string", "optional": true, "description": "String object group name to put result into (allows rapid relea sing resulting object handles using <code>releaseObjectGroup</code>)." },
3315 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Specifies whether command line API should be availab le to the evaluated expression, defaults to false.", "hidden": true },
3316 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether evaluation should s top on exceptions and mute console. Overrides setPauseOnException state.", "hidd en": true },
3317 { "name": "returnByValue", "type": "boolean", "optional": tr ue, "description": "Whether the result is expected to be a JSON object that shou ld be sent by value." },
3318 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." }
3319 ],
3320 "returns": [
3321 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip tion": "Object wrapper for the evaluation result." },
3322 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
3323 { "name": "exceptionDetails", "$ref": "Debugger.ExceptionDet ails", "optional": true, "hidden": true, "description": "Exception details."}
3324 ],
3325 "description": "Evaluates expression on a given call frame."
3326 },
3327 {
3328 "name": "compileScript",
3329 "hidden": true,
3330 "parameters": [
3331 { "name": "expression", "type": "string", "description": "Ex pression to compile." },
3332 { "name": "sourceURL", "type": "string", "description": "Sou rce url to be set for the script." },
3333 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omi tted or 0 the evaluation will be performed in the context of the inspected page. " }
3334 ],
3335 "returns": [
3336 { "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." },
3337 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details."}
3338 ],
3339 "description": "Compiles expression."
3340 },
3341 {
3342 "name": "runScript",
3343 "hidden": true,
3344 "parameters": [
3345 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to run." },
3346 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omi tted or 0 the evaluation will be performed in the context of the inspected page. " },
3347 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." },
3348 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether script run should s top on exceptions and mute console. Overrides setPauseOnException state." }
3349 ],
3350 "returns": [
3351 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip tion": "Run result." },
3352 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details."}
3353 ],
3354 "description": "Runs script with given id in a given context."
3355 },
3356 {
3357 "name": "setOverlayMessage",
3358 "parameters": [
3359 { "name": "message", "type": "string", "optional": true, "de scription": "Overlay message to display when paused in debugger." }
3360 ],
3361 "hidden": true,
3362 "description": "Sets overlay message."
3363 },
3364 {
3365 "name": "setVariableValue",
3366 "parameters": [
3367 { "name": "scopeNumber", "type": "integer", "description": " 0-based number of scope as was listed in scope chain. Only 'local', 'closure' an d 'catch' scope types are allowed. Other scopes could be manipulated manually." },
3368 { "name": "variableName", "type": "string", "description": " Variable name." },
3369 { "name": "newValue", "$ref": "Runtime.CallArgument", "descr iption": "New variable value." },
3370 { "name": "callFrameId", "$ref": "CallFrameId", "optional": true, "description": "Id of callframe that holds variable." },
3371 { "name": "functionObjectId", "$ref": "Runtime.RemoteObjectI d", "optional": true, "description": "Object id of closure (function) that holds variable." }
3372 ],
3373 "hidden": true,
3374 "description": "Changes value of variable in a callframe or a cl osure. Either callframe or function must be specified. Object-based scopes are n ot supported and must be mutated manually."
3375 },
3376 {
3377 "name": "getStepInPositions",
3378 "parameters": [
3379 { "name": "callFrameId", "$ref": "CallFrameId", "description ": "Id of a call frame where the current statement should be analized" }
3380 ],
3381 "returns": [
3382 { "name": "stepInPositions", "type": "array", "items": { "$r ef": "Location" }, "optional": true, "description": "experimental" }
3383 ],
3384 "hidden": true,
3385 "description": "Lists all positions where step-in is possible fo r a current statement in a specified call frame"
3386 },
3387 {
3388 "name": "getBacktrace",
3389 "returns": [
3390 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." },
3391 { "name": "asyncStackTrace", "$ref": "StackTrace", "optional ": true, "description": "Async stack trace, if any." }
3392 ],
3393 "hidden": true,
3394 "description": "Returns call stack including variables changed s ince VM was paused. VM must be paused."
3395 },
3396 {
3397 "name": "skipStackFrames",
3398 "parameters": [
3399 { "name": "script", "optional": true, "type": "string", "des cription": "Regular expression defining the scripts to ignore while stepping." }
3400 ],
3401 "hidden": true,
3402 "description": "Makes backend skip steps in the sources with nam es matching given pattern. VM will try leave blacklisted scripts by performing ' step in' several times, finally resorting to 'step out' if unsuccessful."
3403 },
3404 {
3405 "name": "setAsyncCallStackDepth",
3406 "parameters": [
3407 { "name": "maxDepth", "type": "integer", "description": "Max imum depth of async call stacks. Setting to <code>0</code> will effectively disa ble collecting async call stacks (default)." }
3408 ],
3409 "hidden": true,
3410 "description": "Enables or disables async call stacks tracking."
3411 }
3412 ],
3413 "events": [
3414 {
3415 "name": "globalObjectCleared",
3416 "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload."
3417 },
3418 {
3419 "name": "scriptParsed",
3420 "parameters": [
3421 { "name": "scriptId", "$ref": "ScriptId", "description": "Id entifier of the script parsed." },
3422 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." },
3423 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } ,
3424 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." },
3425 { "name": "endLine", "type": "integer", "description": "Last line of the script." },
3426 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." },
3427 { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script. " },
3428 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." },
3429 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "hidden": true }
3430 ],
3431 "description": "Fired when virtual machine parses script. This e vent is also fired for all known and uncollected scripts upon enabling debugger. "
3432 },
3433 {
3434 "name": "scriptFailedToParse",
3435 "parameters": [
3436 { "name": "scriptId", "$ref": "ScriptId", "description": "Id entifier of the script parsed." },
3437 { "name": "url", "type": "string", "description": "URL or na me of the script parsed (if any)." },
3438 { "name": "startLine", "type": "integer", "description": "Li ne offset of the script within the resource with given URL (for script tags)." } ,
3439 { "name": "startColumn", "type": "integer", "description": " Column offset of the script within the resource with given URL." },
3440 { "name": "endLine", "type": "integer", "description": "Last line of the script." },
3441 { "name": "endColumn", "type": "integer", "description": "Le ngth of the last line of the script." },
3442 { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script. " },
3443 { "name": "sourceMapURL", "type": "string", "optional": true , "description": "URL of source map associated with script (if any)." },
3444 { "name": "hasSourceURL", "type": "boolean", "optional": tru e, "description": "True, if this script has sourceURL.", "hidden": true }
3445 ],
3446 "description": "Fired when virtual machine fails to parse the sc ript."
3447 },
3448 {
3449 "name": "breakpointResolved",
3450 "parameters": [
3451 { "name": "breakpointId", "$ref": "BreakpointId", "descripti on": "Breakpoint unique identifier." },
3452 { "name": "location", "$ref": "Location", "description": "Ac tual breakpoint location." }
3453 ],
3454 "description": "Fired when breakpoint is resolved to an actual s cript and location."
3455 },
3456 {
3457 "name": "paused",
3458 "parameters": [
3459 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." },
3460 { "name": "reason", "type": "string", "enum": [ "XHR", "DOM" , "EventListener", "exception", "assert", "CSPViolation", "debugCommand", "other " ], "description": "Pause reason." },
3461 { "name": "data", "type": "object", "optional": true, "descr iption": "Object containing break-specific auxiliary properties." },
3462 { "name": "hitBreakpoints", "type": "array", "optional": tru e, "items": { "type": "string" }, "description": "Hit breakpoints IDs", "hidden" : true },
3463 { "name": "asyncStackTrace", "$ref": "StackTrace", "optional ": true, "description": "Async stack trace, if any.", "hidden": true }
3464 ],
3465 "description": "Fired when the virtual machine stopped on breakp oint or exception or any other stop criteria."
3466 },
3467 {
3468 "name": "resumed",
3469 "description": "Fired when the virtual machine resumed execution ."
3470 }
3471 ]
3472 },
3473 {
3474 "domain": "DOMDebugger",
3475 "description": "DOM debugging allows setting breakpoints on particular D OM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.",
3476 "types": [
3477 {
3478 "id": "DOMBreakpointType",
3479 "type": "string",
3480 "enum": ["subtree-modified", "attribute-modified", "node-removed "],
3481 "description": "DOM breakpoint type."
3482 }
3483 ],
3484 "commands": [
3485 {
3486 "name": "setDOMBreakpoint",
3487 "parameters": [
3488 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Id entifier of the node to set breakpoint on." },
3489 { "name": "type", "$ref": "DOMBreakpointType", "description" : "Type of the operation to stop upon." }
3490 ],
3491 "description": "Sets breakpoint on particular operation with DOM ."
3492 },
3493 {
3494 "name": "removeDOMBreakpoint",
3495 "parameters": [
3496 { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Id entifier of the node to remove breakpoint from." },
3497 { "name": "type", "$ref": "DOMBreakpointType", "description" : "Type of the breakpoint to remove." }
3498 ],
3499 "description": "Removes DOM breakpoint that was set using <code> setDOMBreakpoint</code>."
3500 },
3501 {
3502 "name": "setEventListenerBreakpoint",
3503 "parameters": [
3504 { "name": "eventName", "type": "string", "description": "DOM Event name to stop on (any DOM event will do)." },
3505 { "name": "targetName", "type": "string", "optional": true, "description": "EventTarget interface name to stop on. If equal to <code>\"*\"</ code> or not provided, will stop on any EventTarget.", "hidden": true }
3506 ],
3507 "description": "Sets breakpoint on particular DOM event."
3508 },
3509 {
3510 "name": "removeEventListenerBreakpoint",
3511 "parameters": [
3512 { "name": "eventName", "type": "string", "description": "Eve nt name." },
3513 { "name": "targetName", "type": "string", "optional": true, "description": "EventTarget interface name.", "hidden": true }
3514 ],
3515 "description": "Removes breakpoint on particular DOM event."
3516 },
3517 {
3518 "name": "setInstrumentationBreakpoint",
3519 "parameters": [
3520 { "name": "eventName", "type": "string", "description": "Ins trumentation name to stop on." }
3521 ],
3522 "description": "Sets breakpoint on particular native event.",
3523 "hidden": true
3524 },
3525 {
3526 "name": "removeInstrumentationBreakpoint",
3527 "parameters": [
3528 { "name": "eventName", "type": "string", "description": "Ins trumentation name to stop on." }
3529 ],
3530 "description": "Removes breakpoint on particular native event.",
3531 "hidden": true
3532 },
3533 {
3534 "name": "setXHRBreakpoint",
3535 "parameters": [
3536 { "name": "url", "type": "string", "description": "Resource URL substring. All XHRs having this substring in the URL will get stopped upon." }
3537 ],
3538 "description": "Sets breakpoint on XMLHttpRequest."
3539 },
3540 {
3541 "name": "removeXHRBreakpoint",
3542 "parameters": [
3543 { "name": "url", "type": "string", "description": "Resource URL substring." }
3544 ],
3545 "description": "Removes breakpoint from XMLHttpRequest."
3546 }
3547 ]
3548 },
3549 {
3550 "domain": "Profiler",
3551 "hidden": true,
3552 "types": [
3553 {
3554 "id": "CPUProfileNode",
3555 "type": "object",
3556 "description": "CPU Profile node. Holds callsite information, ex ecution statistics and child nodes.",
3557 "properties": [
3558 { "name": "functionName", "type": "string", "description": " Function name." },
3559 { "name": "scriptId", "$ref": "Debugger.ScriptId", "descript ion": "Script identifier." },
3560 { "name": "url", "type": "string", "description": "URL." },
3561 { "name": "lineNumber", "type": "integer", "description": "1 -based line number of the function start position." },
3562 { "name": "columnNumber", "type": "integer", "description": "1-based column number of the function start position." },
3563 { "name": "hitCount", "type": "integer", "description": "Num ber of samples where this node was on top of the call stack." },
3564 { "name": "callUID", "type": "number", "description": "Call UID." },
3565 { "name": "children", "type": "array", "items": { "$ref": "C PUProfileNode" }, "description": "Child nodes." },
3566 { "name": "deoptReason", "type": "string", "description": "T he reason of being not optimized. The function may be deoptimized or marked as d on't optimize."},
3567 { "name": "id", "type": "integer", "description": "Unique id of the node." }
3568 ]
3569 },
3570 {
3571 "id": "CPUProfile",
3572 "type": "object",
3573 "description": "Profile.",
3574 "properties": [
3575 { "name": "head", "$ref": "CPUProfileNode" },
3576 { "name": "startTime", "type": "number", "description": "Pro filing start time in seconds." },
3577 { "name": "endTime", "type": "number", "description": "Profi ling end time in seconds." },
3578 { "name": "samples", "optional": true, "type": "array", "ite ms": { "type": "integer" }, "description": "Ids of samples top nodes." },
3579 { "name": "timestamps", "optional": true, "type": "array", " items": { "type": "number" }, "description": "Timestamps of the samples in micro seconds." }
3580 ]
3581 }
3582 ],
3583 "commands": [
3584 {
3585 "name": "enable"
3586 },
3587 {
3588 "name": "disable"
3589 },
3590 {
3591 "name": "setSamplingInterval",
3592 "parameters": [
3593 { "name": "interval", "type": "integer", "description": "New sampling interval in microseconds." }
3594 ],
3595 "description": "Changes CPU profiler sampling interval. Must be called before CPU profiles recording started."
3596 },
3597 {
3598 "name": "start"
3599 },
3600 {
3601 "name": "stop",
3602 "returns": [
3603 { "name": "profile", "$ref": "CPUProfile", "description": "R ecorded profile." }
3604 ]
3605 }
3606 ],
3607 "events": [
3608 {
3609 "name": "consoleProfileStarted",
3610 "parameters": [
3611 { "name": "id", "type": "string" },
3612 { "name": "location", "$ref": "Debugger.Location", "descript ion": "Location of console.profile()." },
3613 { "name": "title", "type": "string", "optional": true, "desc ription": "Profile title passed as argument to console.profile()." }
3614
3615 ],
3616 "description": "Sent when new profile recodring is started using console.profile() call."
3617 },
3618 {
3619 "name": "consoleProfileFinished",
3620 "parameters": [
3621 { "name": "id", "type": "string" },
3622 { "name": "location", "$ref": "Debugger.Location", "descript ion": "Location of console.profileEnd()." },
3623 { "name": "profile", "$ref": "CPUProfile" },
3624 { "name": "title", "type": "string", "optional": true, "desc ription": "Profile title passed as argunet to console.profile()." }
3625 ]
3626 }
3627 ]
3628 },
3629 {
3630 "domain": "HeapProfiler",
3631 "hidden": true,
3632 "types": [
3633 {
3634 "id": "HeapSnapshotObjectId",
3635 "type": "string",
3636 "description": "Heap snapshot object id."
3637 }
3638 ],
3639 "commands": [
3640 {
3641 "name": "enable"
3642 },
3643 {
3644 "name": "disable"
3645 },
3646 {
3647 "name": "startTrackingHeapObjects",
3648 "parameters": [
3649 { "name": "trackAllocations", "type": "boolean", "optional": true }
3650 ]
3651 },
3652 {
3653 "name": "stopTrackingHeapObjects",
3654 "parameters": [
3655 { "name": "reportProgress", "type": "boolean", "optional": t rue, "description": "If true 'reportHeapSnapshotProgress' events will be generat ed while snapshot is being taken when the tracking is stopped." }
3656 ]
3657
3658 },
3659 {
3660 "name": "takeHeapSnapshot",
3661 "parameters": [
3662 { "name": "reportProgress", "type": "boolean", "optional": t rue, "description": "If true 'reportHeapSnapshotProgress' events will be generat ed while snapshot is being taken." }
3663 ]
3664 },
3665 {
3666 "name": "collectGarbage"
3667 },
3668 {
3669 "name": "getObjectByHeapObjectId",
3670 "parameters": [
3671 { "name": "objectId", "$ref": "HeapSnapshotObjectId" },
3672 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }
3673 ],
3674 "returns": [
3675 { "name": "result", "$ref": "Runtime.RemoteObject", "descrip tion": "Evaluation result." }
3676 ]
3677 },
3678 {
3679 "name": "getHeapObjectId",
3680 "parameters": [
3681 { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "des cription": "Identifier of the object to get heap object id for." }
3682 ],
3683 "returns": [
3684 { "name": "heapSnapshotObjectId", "$ref": "HeapSnapshotObjec tId", "description": "Id of the heap snapshot object corresponding to the passed remote object id." }
3685 ]
3686 }
3687 ],
3688 "events": [
3689 {
3690 "name": "addHeapSnapshotChunk",
3691 "parameters": [
3692 { "name": "chunk", "type": "string" }
3693 ]
3694 },
3695 {
3696 "name": "resetProfiles"
3697 },
3698 {
3699 "name": "reportHeapSnapshotProgress",
3700 "parameters": [
3701 { "name": "done", "type": "integer" },
3702 { "name": "total", "type": "integer" },
3703 { "name": "finished", "type": "boolean", "optional": true }
3704 ]
3705 },
3706 {
3707 "name": "lastSeenObjectId",
3708 "description": "If heap objects tracking has been started then b ackend regulary sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more hea pStatsUpdate events will be sent before a new lastSeenObjectId event.",
3709 "parameters": [
3710 { "name": "lastSeenObjectId", "type": "integer" },
3711 { "name": "timestamp", "type": "number" }
3712 ]
3713 },
3714 {
3715 "name": "heapStatsUpdate",
3716 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments",
3717 "parameters": [
3718 { "name": "statsUpdate", "type": "array", "items": { "type": "integer" }, "description": "An array of triplets. Each triplet describes a fra gment. The first integer is the fragment index, the second integer is a total co unt of objects for the fragment, the third integer is a total size of the object s for the fragment."}
3719 ]
3720 }
3721 ]
3722 },
3723 {
3724 "domain": "Worker",
3725 "hidden": true,
3726 "types": [],
3727 "commands": [
3728 {
3729 "name": "enable"
3730 },
3731 {
3732 "name": "disable"
3733 },
3734 {
3735 "name": "sendMessageToWorker",
3736 "parameters": [
3737 { "name": "workerId", "type": "integer" },
3738 { "name": "message", "type": "object" }
3739 ]
3740 },
3741 {
3742 "name": "canInspectWorkers",
3743 "description": "Tells whether browser supports workers inspectio n.",
3744 "returns": [
3745 { "name": "result", "type": "boolean", "description": "True if browser has workers support." }
3746 ]
3747 },
3748 {
3749 "name": "connectToWorker",
3750 "parameters": [
3751 { "name": "workerId", "type": "integer" }
3752 ]
3753 },
3754 {
3755 "name": "disconnectFromWorker",
3756 "parameters": [
3757 { "name": "workerId", "type": "integer" }
3758 ],
3759 "handlers": ["browser", "renderer"]
3760 },
3761 {
3762 "name": "setAutoconnectToWorkers",
3763 "parameters": [
3764 { "name": "value", "type": "boolean" }
3765 ]
3766 }
3767 ],
3768 "events": [
3769 {
3770 "name": "workerCreated",
3771 "parameters": [
3772 { "name": "workerId", "type": "integer" },
3773 { "name": "url", "type": "string" },
3774 { "name": "inspectorConnected", "type": "boolean" }
3775 ]
3776 },
3777 {
3778 "name": "workerTerminated",
3779 "parameters": [
3780 { "name": "workerId", "type": "integer" }
3781 ]
3782 },
3783 {
3784 "name": "dispatchMessageFromWorker",
3785 "parameters": [
3786 { "name": "workerId", "type": "integer" },
3787 { "name": "message", "type": "object" }
3788 ]
3789 },
3790 {
3791 "name": "disconnectedFromWorker",
3792 "handlers": ["browser"]
3793 }
3794 ]
3795 },
3796 {
3797 "domain": "Canvas",
3798 "hidden": true,
3799 "types": [
3800 {
3801 "id": "ResourceId",
3802 "type": "string",
3803 "description": "Unique resource identifier."
3804 },
3805 {
3806 "id": "ResourceStateDescriptor",
3807 "type": "object",
3808 "description": "Resource state descriptor.",
3809 "properties": [
3810 { "name": "name", "type": "string", "description": "State na me." },
3811 { "name": "enumValueForName", "type": "string", "optional": true, "description": "String representation of the enum value, if <code>name</co de> stands for an enum." },
3812 { "name": "value", "$ref": "CallArgument", "optional": true, "description": "The value associated with the particular state." },
3813 { "name": "values", "type": "array", "items": { "$ref": "Res ourceStateDescriptor" }, "optional": true, "description": "Array of values assoc iated with the particular state. Either <code>value</code> or <code>values</code > will be specified." },
3814 { "name": "isArray", "type": "boolean", "optional": true, "d escription": "True iff the given <code>values</code> items stand for an array ra ther than a list of grouped states." }
3815 ]
3816 },
3817 {
3818 "id": "ResourceState",
3819 "type": "object",
3820 "description": "Resource state.",
3821 "properties": [
3822 { "name": "id", "$ref": "ResourceId" },
3823 { "name": "traceLogId", "$ref": "TraceLogId" },
3824 { "name": "descriptors", "type": "array", "items": { "$ref": "ResourceStateDescriptor" }, "optional": true, "description": "Describes curren t <code>Resource</code> state." },
3825 { "name": "imageURL", "type": "string", "optional": true, "d escription": "Screenshot image data URL." }
3826 ]
3827 },
3828 {
3829 "id": "CallArgument",
3830 "type": "object",
3831 "properties": [
3832 { "name": "description", "type": "string", "description": "S tring representation of the object." },
3833 { "name": "enumName", "type": "string", "optional": true, "d escription": "Enum name, if any, that stands for the value (for example, a WebGL enum name)." },
3834 { "name": "resourceId", "$ref": "ResourceId", "optional": tr ue, "description": "Resource identifier. Specified for <code>Resource</code> obj ects only." },
3835 { "name": "type", "type": "string", "optional": true, "enum" : ["object", "function", "undefined", "string", "number", "boolean"], "descripti on": "Object type. Specified for non <code>Resource</code> objects only." },
3836 { "name": "subtype", "type": "string", "optional": true, "en um": ["array", "null", "node", "regexp", "date", "map", "set"], "description": " Object subtype hint. Specified for <code>object</code> type values only." },
3837 { "name": "remoteObject", "$ref": "Runtime.RemoteObject", "o ptional": true, "description": "The <code>RemoteObject</code>, if requested." }
3838 ]
3839 },
3840 {
3841 "id": "Call",
3842 "type": "object",
3843 "properties": [
3844 { "name": "contextId", "$ref": "ResourceId" },
3845 { "name": "functionName", "type": "string", "optional": true },
3846 { "name": "arguments", "type": "array", "items": { "$ref": " CallArgument" }, "optional": true },
3847 { "name": "result", "$ref": "CallArgument", "optional": true },
3848 { "name": "isDrawingCall", "type": "boolean", "optional": tr ue },
3849 { "name": "isFrameEndCall", "type": "boolean", "optional": t rue },
3850 { "name": "property", "type": "string", "optional": true },
3851 { "name": "value", "$ref": "CallArgument", "optional": true },
3852 { "name": "sourceURL", "type": "string", "optional": true },
3853 { "name": "lineNumber", "type": "integer", "optional": true },
3854 { "name": "columnNumber", "type": "integer", "optional": tru e }
3855 ]
3856 },
3857 {
3858 "id": "TraceLogId",
3859 "type": "string",
3860 "description": "Unique trace log identifier."
3861 },
3862 {
3863 "id": "TraceLog",
3864 "type": "object",
3865 "properties": [
3866 { "name": "id", "$ref": "TraceLogId" },
3867 { "name": "calls", "type": "array", "items": { "$ref": "Call " } },
3868 { "name": "contexts", "type": "array", "items": { "$ref": "C allArgument" } },
3869 { "name": "startOffset", "type": "integer" },
3870 { "name": "alive", "type": "boolean" },
3871 { "name": "totalAvailableCalls", "type": "number" }
3872 ]
3873 }
3874 ],
3875 "commands": [
3876 {
3877 "name": "enable",
3878 "description": "Enables Canvas inspection."
3879 },
3880 {
3881 "name": "disable",
3882 "description": "Disables Canvas inspection."
3883 },
3884 {
3885 "name": "dropTraceLog",
3886 "parameters": [
3887 { "name": "traceLogId", "$ref": "TraceLogId" }
3888 ]
3889 },
3890 {
3891 "name": "hasUninstrumentedCanvases",
3892 "returns": [
3893 { "name": "result", "type": "boolean" }
3894 ],
3895 "description": "Checks if there is any uninstrumented canvas in the inspected page."
3896 },
3897 {
3898 "name": "captureFrame",
3899 "parameters": [
3900 { "name": "frameId", "$ref": "Page.FrameId", "optional": tru e, "description": "Identifier of the frame containing document whose canvases ar e to be captured. If omitted, main frame is assumed." }
3901 ],
3902 "returns": [
3903 { "name": "traceLogId", "$ref": "TraceLogId", "description": "Identifier of the trace log containing captured canvas calls." }
3904 ],
3905 "description": "Starts (or continues) a canvas frame capturing w hich will be stopped automatically after the next frame is prepared."
3906 },
3907 {
3908 "name": "startCapturing",
3909 "parameters": [
3910 { "name": "frameId", "$ref": "Page.FrameId", "optional": tru e, "description": "Identifier of the frame containing document whose canvases ar e to be captured. If omitted, main frame is assumed." }
3911 ],
3912 "returns": [
3913 { "name": "traceLogId", "$ref": "TraceLogId", "description": "Identifier of the trace log containing captured canvas calls." }
3914 ],
3915 "description": "Starts (or continues) consecutive canvas frames capturing. The capturing is stopped by the corresponding stopCapturing command."
3916 },
3917 {
3918 "name": "stopCapturing",
3919 "parameters": [
3920 { "name": "traceLogId", "$ref": "TraceLogId" }
3921 ]
3922 },
3923 {
3924 "name": "getTraceLog",
3925 "parameters": [
3926 { "name": "traceLogId", "$ref": "TraceLogId" },
3927 { "name": "startOffset", "type": "integer", "optional": true },
3928 { "name": "maxLength", "type": "integer", "optional": true }
3929 ],
3930 "returns": [
3931 { "name": "traceLog", "$ref": "TraceLog" }
3932 ]
3933 },
3934 {
3935 "name": "replayTraceLog",
3936 "parameters": [
3937 { "name": "traceLogId", "$ref": "TraceLogId" },
3938 { "name": "stepNo", "type": "integer", "description": "Last call index in the trace log to replay (zero based)." }
3939 ],
3940 "returns": [
3941 { "name": "resourceState", "$ref": "ResourceState" },
3942 { "name": "replayTime", "type": "number", "description": "Re play time (in milliseconds)." }
3943 ]
3944 },
3945 {
3946 "name": "getResourceState",
3947 "parameters": [
3948 { "name": "traceLogId", "$ref": "TraceLogId" },
3949 { "name": "resourceId", "$ref": "ResourceId" }
3950 ],
3951 "returns": [
3952 { "name": "resourceState", "$ref": "ResourceState" }
3953 ]
3954 },
3955 {
3956 "name": "evaluateTraceLogCallArgument",
3957 "parameters": [
3958 { "name": "traceLogId", "$ref": "TraceLogId" },
3959 { "name": "callIndex", "type": "integer", "description": "In dex of the call to evaluate on (zero based)." },
3960 { "name": "argumentIndex", "type": "integer", "description": "Index of the argument to evaluate (zero based). Provide <code>-1</code> to eva luate call result." },
3961 { "name": "objectGroup", "type": "string", "optional": true, "description": "String object group name to put result into (allows rapid relea sing resulting object handles using <code>Runtime.releaseObjectGroup</code>)." }
3962 ],
3963 "returns": [
3964 { "name": "result", "$ref": "Runtime.RemoteObject", "optiona l": true, "description": "Object wrapper for the evaluation result." },
3965 { "name": "resourceState", "$ref": "ResourceState", "optiona l": true, "description": "State of the <code>Resource</code> object." }
3966 ],
3967 "description": "Evaluates a given trace call argument or its res ult."
3968 }
3969 ],
3970 "events": [
3971 {
3972 "name": "contextCreated",
3973 "parameters": [
3974 { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame containing a canvas with a context." }
3975 ],
3976 "description": "Fired when a canvas context has been created in the given frame. The context may not be instrumented (see hasUninstrumentedCanva ses command)."
3977 },
3978 {
3979 "name": "traceLogsRemoved",
3980 "parameters": [
3981 { "name": "frameId", "$ref": "Page.FrameId", "optional": tru e, "description": "If given, trace logs from the given frame were removed." },
3982 { "name": "traceLogId", "$ref": "TraceLogId", "optional": tr ue, "description": "If given, trace log with the given ID was removed." }
3983 ],
3984 "description": "Fired when a set of trace logs were removed from the backend. If no parameters are given, all trace logs were removed."
3985 }
3986 ]
3987 },
3988 {
3989 "domain": "Input",
3990 "types": [
3991 {
3992 "id": "TouchPoint",
3993 "type": "object",
3994 "hidden": true,
3995 "properties": [
3996 { "name": "state", "type": "string", "enum": ["touchPressed" , "touchReleased", "touchMoved", "touchStationary", "touchCancelled"], "descript ion": "State of the touch point." },
3997 { "name": "x", "type": "integer", "description": "X coordina te of the event relative to the main frame's viewport."},
3998 { "name": "y", "type": "integer", "description": "Y coordina te of the event relative to the main frame's viewport. 0 refers to the top of th e viewport and Y increases as it proceeds towards the bottom of the viewport."},
3999 { "name": "radiusX", "type": "integer", "optional": true, "d escription": "X radius of the touch area (default: 1)."},
4000 { "name": "radiusY", "type": "integer", "optional": true, "d escription": "Y radius of the touch area (default: 1)."},
4001 { "name": "rotationAngle", "type": "number", "optional": tru e, "description": "Rotation angle (default: 0.0)."},
4002 { "name": "force", "type": "number", "optional": true, "desc ription": "Force (default: 1.0)."},
4003 { "name": "id", "type": "number", "optional": true, "descrip tion": "Identifier used to track touch sources between events, must be unique wi thin an event."}
4004 ]
4005 }
4006 ],
4007 "commands": [
4008 {
4009 "name": "dispatchKeyEvent",
4010 "parameters": [
4011 { "name": "type", "type": "string", "enum": ["keyDown", "key Up", "rawKeyDown", "char"], "description": "Type of the key event." },
4012 { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Met a/Command=4, Shift=8 (default: 0)." },
4013 { "name": "timestamp", "type": "number", "optional": true, " description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time)." },
4014 { "name": "text", "type": "string", "optional": true, "descr iption": "Text as generated by processing a virtual key code with a keyboard lay out. Not needed for for <code>keyUp</code> and <code>rawKeyDown</code> events (d efault: \"\")" },
4015 { "name": "unmodifiedText", "type": "string", "optional": tr ue, "description": "Text that would have been generated by the keyboard if no mo difiers were pressed (except for shift). Useful for shortcut (accelerator) key h andling (default: \"\")." },
4016 { "name": "keyIdentifier", "type": "string", "optional": tru e, "description": "Unique key identifier (e.g., 'U+0041') (default: \"\")." },
4017 { "name": "windowsVirtualKeyCode", "type": "integer", "optio nal": true, "description": "Windows virtual key code (default: 0)." },
4018 { "name": "nativeVirtualKeyCode", "type": "integer", "option al": true, "description": "Native virtual key code (default: 0)." },
4019 { "name": "autoRepeat", "type": "boolean", "optional": true, "description": "Whether the event was generated from auto repeat (default: fals e)." },
4020 { "name": "isKeypad", "type": "boolean", "optional": true, " description": "Whether the event was generated from the keypad (default: false). " },
4021 { "name": "isSystemKey", "type": "boolean", "optional": true , "description": "Whether the event was a system key event (default: false)." }
4022 ],
4023 "description": "Dispatches a key event to the page."
4024 },
4025 {
4026 "name": "dispatchMouseEvent",
4027 "parameters": [
4028 { "name": "type", "type": "string", "enum": ["mousePressed", "mouseReleased", "mouseMoved"], "description": "Type of the mouse event." },
4029 { "name": "x", "type": "integer", "description": "X coordina te of the event relative to the main frame's viewport."},
4030 { "name": "y", "type": "integer", "description": "Y coordina te of the event relative to the main frame's viewport. 0 refers to the top of th e viewport and Y increases as it proceeds towards the bottom of the viewport."},
4031 { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Met a/Command=4, Shift=8 (default: 0)." },
4032 { "name": "timestamp", "type": "number", "optional": true, " description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time)." },
4033 { "name": "button", "type": "string", "enum": ["none", "left ", "middle", "right"], "optional": true, "description": "Mouse button (default: \"none\")." },
4034 { "name": "clickCount", "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." }
4035 ],
4036 "description": "Dispatches a mouse event to the page.",
4037 "handlers": ["renderer"]
4038 },
4039 {
4040 "name": "dispatchTouchEvent",
4041 "hidden": true,
4042 "parameters": [
4043 { "name": "type", "type": "string", "enum": ["touchStart", " touchEnd", "touchMove"], "description": "Type of the touch event." },
4044 { "name": "touchPoints", "type": "array", "items": { "$ref": "TouchPoint" }, "description": "Touch points." },
4045 { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Met a/Command=4, Shift=8 (default: 0)." },
4046 { "name": "timestamp", "type": "number", "optional": true, " description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time)." }
4047 ],
4048 "description": "Dispatches a touch event to the page."
4049 },
4050 {
4051 "name": "emulateTouchFromMouseEvent",
4052 "hidden": true,
4053 "parameters": [
4054 { "name": "type", "type": "string", "enum": ["mousePressed", "mouseReleased", "mouseMoved", "mouseWheel"], "description": "Type of the mouse event." },
4055 { "name": "x", "type": "integer", "description": "X coordina te of the mouse pointer in DIP."},
4056 { "name": "y", "type": "integer", "description": "Y coordina te of the mouse pointer in DIP."},
4057 { "name": "deltaX", "type": "number", "optional": true, "des cription": "X delta in DIP for mouse wheel event (default: 0)."},
4058 { "name": "deltaY", "type": "number", "optional": true, "des cription": "Y delta in DIP for mouse wheel event (default: 0)."},
4059 { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Met a/Command=4, Shift=8 (default: 0)." },
4060 { "name": "timestamp", "type": "number", "optional": true, " description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time)." },
4061 { "name": "button", "type": "string", "enum": ["none", "left ", "middle", "right"], "optional": true, "description": "Mouse button (default: \"none\")." },
4062 { "name": "clickCount", "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." }
4063 ],
4064 "description": "Emulates touch event from the mouse event parame ters.",
4065 "handlers": ["browser"]
4066 }
4067 ],
4068 "events": []
4069 },
4070 {
4071 "domain": "LayerTree",
4072 "hidden": true,
4073 "types": [
4074 {
4075 "id": "LayerId",
4076 "type": "string",
4077 "description": "Unique RenderLayer identifier."
4078 },
4079 {
4080 "id": "SnapshotId",
4081 "type": "string",
4082 "description": "Unique snapshot identifier."
4083 },
4084 {
4085 "id": "ScrollRect",
4086 "type": "object",
4087 "description": "Rectangle where scrolling happens on the main th read.",
4088 "properties": [
4089 { "name": "rect", "$ref": "DOM.Rect", "description": "Rectan gle itself." },
4090 { "name": "type", "type": "string", "enum": ["RepaintsOnScro ll", "TouchEventHandler", "WheelEventHandler"], "description": "Reason for recta ngle to force scrolling on the main thread" }
4091 ]
4092 },
4093 {
4094 "id": "Layer",
4095 "type": "object",
4096 "description": "Information about a compositing layer.",
4097 "properties": [
4098 { "name": "layerId", "$ref": "LayerId", "description": "The unique id for this layer." },
4099 { "name": "parentLayerId", "$ref": "LayerId", "optional": tr ue, "description": "The id of parent (not present for root)." },
4100 { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "opt ional": true, "description": "The backend id for the node associated with this l ayer." },
4101 { "name": "offsetX", "type": "number", "description": "Offse t from parent layer, X coordinate." },
4102 { "name": "offsetY", "type": "number", "description": "Offse t from parent layer, Y coordinate." },
4103 { "name": "width", "type": "number", "description": "Layer w idth." },
4104 { "name": "height", "type": "number", "description": "Layer height." },
4105 { "name": "transform", "type": "array", "items": { "type": " number" }, "minItems": 16, "maxItems": 16, "optional": true, "description": "Tra nsformation matrix for layer, default is identity matrix" },
4106 { "name": "anchorX", "type": "number", "optional": true, "de scription": "Transform anchor point X, absent if no transform specified" },
4107 { "name": "anchorY", "type": "number", "optional": true, "de scription": "Transform anchor point Y, absent if no transform specified" },
4108 { "name": "anchorZ", "type": "number", "optional": true, "de scription": "Transform anchor point Z, absent if no transform specified" },
4109 { "name": "paintCount", "type": "integer", "description": "I ndicates how many time this layer has painted." },
4110 { "name": "invisible", "type": "boolean", "optional": true, "description": "Set if layer is not visible." },
4111 { "name": "scrollRects", "type": "array", "items": { "$ref": "ScrollRect"}, "optional": true, "description": "Rectangles scrolling on main t hread only."}
4112 ]
4113 },
4114 {
4115 "id": "PaintProfile",
4116 "type": "array",
4117 "description": "Array of timings, one per paint step.",
4118 "items": {
4119 "type": "number",
4120 "description": "A time in seconds since the end of previous step (for the first step, time since painting started)"
4121 }
4122 }
4123 ],
4124 "commands": [
4125 {
4126 "name": "enable",
4127 "description": "Enables compositing tree inspection."
4128 },
4129 {
4130 "name": "disable",
4131 "description": "Disables compositing tree inspection."
4132 },
4133 {
4134 "name": "compositingReasons",
4135 "parameters": [
4136 { "name": "layerId", "$ref": "LayerId", "description": "The id of the layer for which we want to get the reasons it was composited." }
4137 ],
4138 "description": "Provides the reasons why the given layer was com posited.",
4139 "returns": [
4140 { "name": "compositingReasons", "type": "array", "items": { "type": "string" }, "description": "A list of strings specifying reasons for the given layer to become composited." }
4141 ]
4142 },
4143 {
4144 "name": "makeSnapshot",
4145 "parameters": [
4146 { "name": "layerId", "$ref": "LayerId", "description": "The id of the layer." }
4147 ],
4148 "description": "Returns the layer snapshot identifier.",
4149 "returns": [
4150 { "name": "snapshotId", "$ref": "SnapshotId", "description": "The id of the layer snapshot." }
4151 ]
4152 },
4153 {
4154 "name": "loadSnapshot",
4155 "parameters": [
4156 { "name": "data", "type": "string", "description": "Base64-e ncoded snapshot data." }
4157 ],
4158 "description": "Returns the snapshot identifier.",
4159 "returns": [
4160 { "name": "snapshotId", "$ref": "SnapshotId", "description": "The id of the snapshot." }
4161 ]
4162 },
4163 {
4164 "name": "releaseSnapshot",
4165 "parameters": [
4166 { "name": "snapshotId", "$ref": "SnapshotId", "description": "The id of the layer snapshot." }
4167 ],
4168 "description": "Releases layer snapshot captured by the back-end ."
4169 },
4170 {
4171 "name": "profileSnapshot",
4172 "parameters": [
4173 { "name": "snapshotId", "$ref": "SnapshotId", "description": "The id of the layer snapshot." },
4174 { "name": "minRepeatCount", "type": "integer", "optional": t rue, "description": "The maximum number of times to replay the snapshot (1, if n ot specified)." },
4175 { "name": "minDuration", "type": "number", "optional": true, "description": "The minimum duration (in seconds) to replay the snapshot." }
4176 ],
4177 "returns": [
4178 { "name": "timings", "type": "array", "items": { "$ref": "Pa intProfile" }, "description": "The array of paint profiles, one per run." }
4179 ]
4180 },
4181 {
4182 "name": "replaySnapshot",
4183 "parameters": [
4184 { "name": "snapshotId", "$ref": "SnapshotId", "description": "The id of the layer snapshot." },
4185 { "name": "fromStep", "type": "integer", "optional": true, " description": "The first step to replay from (replay from the very start if not specified)." },
4186 { "name": "toStep", "type": "integer", "optional": true, "de scription": "The last step to replay to (replay till the end if not specified)." },
4187 { "name": "scale", "type": "number", "optional": true, "desc ription": "The scale to apply while replaying (defaults to 1)." }
4188 ],
4189 "description": "Replays the layer snapshot and returns the resul ting bitmap.",
4190 "returns": [
4191 { "name": "dataURL", "type": "string", "description": "A dat a: URL for resulting image." }
4192 ]
4193 },
4194 {
4195 "name": "snapshotCommandLog",
4196 "parameters": [
4197 { "name": "snapshotId", "$ref": "SnapshotId", "description": "The id of the layer snapshot." }
4198 ],
4199 "description": "Replays the layer snapshot and returns canvas lo g.",
4200 "returns": [
4201 { "name": "commandLog", "type": "array", "items": { "type": "object" }, "description": "The array of canvas function calls." }
4202 ]
4203 }
4204 ],
4205 "events": [
4206 {
4207 "name": "layerTreeDidChange",
4208 "parameters": [
4209 { "name": "layers", "type": "array", "items": { "$ref": "Lay er" }, "optional": true, "description": "Layer tree, absent if not in the comspo siting mode." }
4210 ]
4211 },
4212 {
4213 "name": "layerPainted",
4214 "parameters": [
4215 { "name": "layerId", "$ref": "LayerId", "description": "The id of the painted layer." },
4216 { "name": "clip", "$ref": "DOM.Rect", "description": "Clip r ectangle." }
4217 ]
4218 }
4219 ]
4220 },
4221 {
4222 "domain": "Geolocation",
4223 "hidden": true,
4224 "commands": [
4225 {
4226 "name": "setGeolocationOverride",
4227 "description": "Overrides the Geolocation Position or Error.",
4228 "parameters": [
4229 { "name": "latitude", "type": "number", "optional": true, "d escription": "Mock latitude"},
4230 { "name": "longitude", "type": "number", "optional": true, " description": "Mock longitude"},
4231 { "name": "accuracy", "type": "number", "optional": true, "d escription": "Mock accuracy"}
4232 ]
4233 },
4234 {
4235 "name": "clearGeolocationOverride",
4236 "description": "Clears the overriden Geolocation Position and Er ror."
4237 }
4238 ]
4239 },
4240 {
4241 "domain": "DeviceOrientation",
4242 "hidden": true,
4243 "commands": [
4244 {
4245 "name": "setDeviceOrientationOverride",
4246 "description": "Overrides the Device Orientation.",
4247 "parameters": [
4248 { "name": "alpha", "type": "number", "description": "Mock al pha"},
4249 { "name": "beta", "type": "number", "description": "Mock bet a"},
4250 { "name": "gamma", "type": "number", "description": "Mock ga mma"}
4251 ]
4252 },
4253 {
4254 "name": "clearDeviceOrientationOverride",
4255 "description": "Clears the overridden Device Orientation."
4256 }
4257 ]
4258 },
4259 {
4260 "domain": "Tracing",
4261 "hidden": true,
4262 "commands": [
4263 {
4264 "name": "start",
4265 "description": "Start trace events collection.",
4266 "parameters": [
4267 { "name": "categories", "type": "string", "description": "Ca tegory/tag filter" },
4268 { "name": "options", "type": "string", "description": "Traci ng options" },
4269 { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage event s at this interval, specified in milliseconds" }
4270 ],
4271 "handlers": ["browser", "renderer", "frontend"]
4272 },
4273 {
4274 "name": "end",
4275 "description": "Stop trace events collection.",
4276 "handlers": ["browser", "renderer", "frontend"]
4277 },
4278 {
4279 "name": "getCategories",
4280 "description": "Gets supported tracing categories.",
4281 "returns": [
4282 { "name": "categories", "type": "array", "items": { "type": "string" }, "description": "A list of supported tracing categories." }
4283 ],
4284 "handlers": ["browser", "frontend"]
4285 }
4286 ],
4287 "events": [
4288 {
4289 "name": "started",
4290 "description": "Fired when tracing is started.",
4291 "handlers": ["browser", "frontend"],
4292 "hidden": true
4293 },
4294 {
4295 "name": "dataCollected",
4296 "parameters": [
4297 { "name": "value", "type": "array", "items": { "type": "obje ct" } }
4298 ],
4299 "description": "Contains an bucket of collected trace events. Wh en tracing is stopped collected events will be send as a sequence of dataCollect ed events followed by tracingComplete event.",
4300 "handlers": ["browser", "frontend"]
4301 },
4302 {
4303 "name": "tracingComplete",
4304 "description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.",
4305 "handlers": ["browser", "frontend"]
4306 },
4307 {
4308 "name": "bufferUsage",
4309 "parameters": [
4310 { "name": "value", "type": "number", "description": "A numbe r in range [0..1] that indicates the used size of event buffer as a fraction of its total size." }
4311 ],
4312 "handlers": ["browser", "frontend"]
4313 }
4314 ]
4315 },
4316 {
4317 "domain": "Power",
4318 "hidden": true,
4319 "types": [
4320 {
4321 "id": "PowerEvent",
4322 "type": "object",
4323 "properties": [
4324 { "name": "type", "type": "string", "description": "Power Ev ent Type." },
4325 { "name": "timestamp", "type": "number", "description": "Pow er Event Time, in milliseconds." },
4326 { "name": "value", "type": "number", "description": "Power E vent Value." }
4327 ],
4328 "description": "PowerEvent item"
4329 }
4330 ],
4331 "commands": [
4332 {
4333 "name": "start",
4334 "description": "Start power events collection.",
4335 "parameters": [],
4336 "handlers": ["browser", "frontend"]
4337 },
4338 {
4339 "name": "end",
4340 "description": "Stop power events collection.",
4341 "parameters": [],
4342 "handlers": ["browser", "frontend"]
4343 },
4344 {
4345 "name": "canProfilePower",
4346 "description": "Tells whether power profiling is supported.",
4347 "returns": [
4348 { "name": "result", "type": "boolean", "description": "True if power profiling is supported." }
4349 ],
4350 "hidden": true,
4351 "handlers": ["browser", "frontend"]
4352 },
4353 {
4354 "name": "getAccuracyLevel",
4355 "description": "Describes the accuracy level of the data provide r.",
4356 "returns": [
4357 { "name": "result", "type": "string", "enum": ["high", "mode rate", "low"] }
4358 ],
4359 "handlers": ["browser", "frontend"]
4360 }
4361 ],
4362 "events": [
4363 {
4364 "name": "dataAvailable",
4365 "parameters": [
4366 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." }
4367 ],
4368 "handlers": ["browser", "frontend"]
4369 }
4370 ]
4371 }]
4372 }
OLDNEW
« no previous file with comments | « sky/engine/core/inspector/generate-inspector-protocol-version ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698