Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 1 | { |
| 2 | "version": { "major": "1", "minor": "0" }, |
| 3 | "domains": [{ |
| 4 | "domain": "Inspector", |
| 5 | "hidden": true, |
| 6 | "types": [], |
| 7 | "commands": [ |
| 8 | { |
| 9 | "name": "enable", |
| 10 | "description": "Enables inspector domain notifications." |
| 11 | }, |
| 12 | { |
| 13 | "name": "disable", |
| 14 | "description": "Disables inspector domain notifications." |
Torne (Richard Coles) | 5267f70 | 2013-06-11 10:57:24 +0100 | [diff] [blame] | 15 | }, |
| 16 | { |
| 17 | "name": "reset", |
| 18 | "description": "Resets all domains." |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 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 reason why connection has been terminated." } |
| 41 | ] |
| 42 | }, |
| 43 | { |
| 44 | "name": "targetCrashed", |
| 45 | "description": "Fired when debugging target has crashed" |
| 46 | } |
| 47 | ] |
| 48 | }, |
| 49 | { |
| 50 | "domain": "Memory", |
| 51 | "hidden": true, |
| 52 | "types": [ |
| 53 | { |
| 54 | "id": "MemoryBlock", |
| 55 | "type": "object", |
| 56 | "properties": [ |
| 57 | { "name": "size", "type": "number", "optional": true, "description": "Size of the block in bytes if available" }, |
| 58 | { "name": "name", "type": "string", "description": "Unique name used to identify the component that allocated this block" }, |
| 59 | { "name": "children", "type": "array", "optional": true, "items": { "$ref": "MemoryBlock" }} |
| 60 | ] |
| 61 | }, |
| 62 | { |
| 63 | "id": "HeapSnapshotChunk", |
| 64 | "type": "object", |
| 65 | "properties": [ |
| 66 | { "name": "strings", "type": "array", "items": { "type": "string" }, "description": "An array of strings that were found since last update." }, |
| 67 | { "name": "nodes", "type": "array", "items": { "type": "integer" }, "description": "An array of nodes that were found since last update." }, |
| 68 | { "name": "edges", "type": "array", "items": { "type": "integer" }, "description": "An array of edges that were found since last update." }, |
| 69 | { "name": "baseToRealNodeId", "type": "array", "items": { "type": "integer" }, "description": "An array of integers for nodeId remapping. Even nodeId has to be mapped to the following odd nodeId." } |
| 70 | ] |
| 71 | } |
| 72 | ], |
| 73 | "commands": [ |
| 74 | { |
| 75 | "name": "getDOMCounters", |
| 76 | "returns": [ |
| 77 | { "name": "documents", "type": "integer" }, |
| 78 | { "name": "nodes", "type": "integer" }, |
| 79 | { "name": "jsEventListeners", "type": "integer" } |
| 80 | ] |
| 81 | }, |
| 82 | { |
| 83 | "name": "getProcessMemoryDistribution", |
| 84 | "parameters": [ |
| 85 | { "name": "reportGraph", "type": "boolean", "optional": true, "description": "Whether native memory graph should be reported in addition to aggregated statistics." } |
| 86 | ], |
| 87 | "returns": [ |
| 88 | { "name": "distribution", "$ref": "MemoryBlock", "description": "An object describing all memory allocated by the process"}, |
| 89 | { "name": "graphMetaInformation", "type": "object", "optional": true, "description": "An object describing structures of nodes and edges in the graph."} |
| 90 | ] |
| 91 | } |
| 92 | ], |
| 93 | "events": [ |
| 94 | { |
| 95 | "name": "addNativeSnapshotChunk", |
| 96 | "parameters": [ |
| 97 | { "name": "chunk", "$ref": "HeapSnapshotChunk", "description": "A chunk of the serialized the snapshot." } |
| 98 | ] |
| 99 | } |
| 100 | ] |
| 101 | }, |
| 102 | { |
| 103 | "domain": "Page", |
| 104 | "description": "Actions and events related to the inspected page belong to the page domain.", |
| 105 | "types": [ |
| 106 | { |
| 107 | "id": "ResourceType", |
| 108 | "type": "string", |
| 109 | "enum": ["Document", "Stylesheet", "Image", "Font", "Script", "XHR", "WebSocket", "Other"], |
| 110 | "description": "Resource type as it was perceived by the rendering engine." |
| 111 | }, |
| 112 | { |
| 113 | "id": "Frame", |
| 114 | "type": "object", |
| 115 | "description": "Information about the Frame on the page.", |
| 116 | "properties": [ |
| 117 | { "name": "id", "type": "string", "description": "Frame unique identifier." }, |
| 118 | { "name": "parentId", "type": "string", "optional": true, "description": "Parent frame identifier." }, |
| 119 | { "name": "loaderId", "$ref": "Network.LoaderId", "description": "Identifier of the loader associated with this frame." }, |
| 120 | { "name": "name", "type": "string", "optional": true, "description": "Frame's name as specified in the tag." }, |
| 121 | { "name": "url", "type": "string", "description": "Frame document's URL." }, |
| 122 | { "name": "securityOrigin", "type": "string", "description": "Frame document's security origin." }, |
| 123 | { "name": "mimeType", "type": "string", "description": "Frame document's mimeType as determined by the browser." } |
| 124 | ], |
| 125 | "hidden": true |
| 126 | }, |
| 127 | { |
| 128 | "id": "FrameResourceTree", |
| 129 | "type": "object", |
| 130 | "description": "Information about the Frame hierarchy along with their cached resources.", |
| 131 | "properties": [ |
| 132 | { "name": "frame", "$ref": "Frame", "description": "Frame information for this tree item." }, |
| 133 | { "name": "childFrames", "type": "array", "optional": true, "items": { "$ref": "FrameResourceTree" }, "description": "Child frames." }, |
| 134 | { "name": "resources", "type": "array", |
| 135 | "items": { |
| 136 | "type": "object", |
| 137 | "properties": [ |
| 138 | { "name": "url", "type": "string", "description": "Resource URL." }, |
| 139 | { "name": "type", "$ref": "ResourceType", "description": "Type of this resource." }, |
| 140 | { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." }, |
| 141 | { "name": "failed", "type": "boolean", "optional": true, "description": "True if the resource failed to load." }, |
| 142 | { "name": "canceled", "type": "boolean", "optional": true, "description": "True if the resource was canceled during loading." } |
| 143 | ] |
| 144 | }, |
| 145 | "description": "Information about frame resources." |
| 146 | } |
| 147 | ], |
| 148 | "hidden": true |
| 149 | }, |
| 150 | { |
| 151 | "id": "SearchMatch", |
| 152 | "type": "object", |
| 153 | "description": "Search match for resource.", |
| 154 | "properties": [ |
| 155 | { "name": "lineNumber", "type": "number", "description": "Line number in resource content." }, |
| 156 | { "name": "lineContent", "type": "string", "description": "Line with match content." } |
| 157 | ], |
| 158 | "hidden": true |
| 159 | }, |
| 160 | { |
| 161 | "id": "SearchResult", |
| 162 | "type": "object", |
| 163 | "description": "Search result for resource.", |
| 164 | "properties": [ |
| 165 | { "name": "url", "type": "string", "description": "Resource URL." }, |
| 166 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Resource frame id." }, |
| 167 | { "name": "matchesCount", "type": "number", "description": "Number of matches in the resource content." } |
| 168 | ], |
| 169 | "hidden": true |
| 170 | }, |
| 171 | { |
| 172 | "id": "Cookie", |
| 173 | "type": "object", |
| 174 | "description": "Cookie object", |
| 175 | "properties": [ |
| 176 | { "name": "name", "type": "string", "description": "Cookie name." }, |
| 177 | { "name": "value", "type": "string", "description": "Cookie value." }, |
| 178 | { "name": "domain", "type": "string", "description": "Cookie domain." }, |
| 179 | { "name": "path", "type": "string", "description": "Cookie path." }, |
| 180 | { "name": "expires", "type": "number", "description": "Cookie expires." }, |
| 181 | { "name": "size", "type": "integer", "description": "Cookie size." }, |
| 182 | { "name": "httpOnly", "type": "boolean", "description": "True if cookie is http-only." }, |
| 183 | { "name": "secure", "type": "boolean", "description": "True if cookie is secure." }, |
| 184 | { "name": "session", "type": "boolean", "description": "True in case of session cookie." } |
| 185 | ], |
| 186 | "hidden": true |
| 187 | }, |
| 188 | { |
| 189 | "id": "ScriptIdentifier", |
| 190 | "type": "string", |
| 191 | "description": "Unique script identifier.", |
| 192 | "hidden": true |
| 193 | } |
| 194 | ], |
| 195 | "commands": [ |
| 196 | { |
| 197 | "name": "enable", |
| 198 | "description": "Enables page domain notifications." |
| 199 | }, |
| 200 | { |
| 201 | "name": "disable", |
| 202 | "description": "Disables page domain notifications." |
| 203 | }, |
| 204 | { |
| 205 | "name": "addScriptToEvaluateOnLoad", |
| 206 | "parameters": [ |
| 207 | { "name": "scriptSource", "type": "string" } |
| 208 | ], |
| 209 | "returns": [ |
| 210 | { "name": "identifier", "$ref": "ScriptIdentifier", "description": "Identifier of the added script." } |
| 211 | ], |
| 212 | "hidden": true |
| 213 | }, |
| 214 | { |
| 215 | "name": "removeScriptToEvaluateOnLoad", |
| 216 | "parameters": [ |
| 217 | { "name": "identifier", "$ref": "ScriptIdentifier" } |
| 218 | ], |
| 219 | "hidden": true |
| 220 | }, |
| 221 | { |
| 222 | "name": "reload", |
| 223 | "parameters": [ |
| 224 | { "name": "ignoreCache", "type": "boolean", "optional": true, "description": "If true, browser cache is ignored (as if the user pressed Shift+refresh)." }, |
| 225 | { "name": "scriptToEvaluateOnLoad", "type": "string", "optional": true, "description": "If set, the script will be injected into all frames of the inspected page after reload." }, |
| 226 | { "name": "scriptPreprocessor", "type": "string", "optional": true, "description": "Script body that should evaluate to function that will preprocess all the scripts before their compilation.", "hidden": true } |
| 227 | ], |
| 228 | "description": "Reloads given page optionally ignoring the cache." |
| 229 | }, |
| 230 | { |
| 231 | "name": "navigate", |
| 232 | "parameters": [ |
| 233 | { "name": "url", "type": "string", "description": "URL to navigate the page to." } |
| 234 | ], |
| 235 | "description": "Navigates current page to the given URL." |
| 236 | }, |
| 237 | { |
| 238 | "name": "getCookies", |
| 239 | "returns": [ |
| 240 | { "name": "cookies", "type": "array", "items": { "$ref": "Cookie"}, "description": "Array of cookie objects." }, |
| 241 | { "name": "cookiesString", "type": "string", "description": "document.cookie string representation of the cookies." } |
| 242 | ], |
| 243 | "description": "Returns all browser cookies. Depending on the backend support, will either return detailed cookie information in the <code>cookie</code> field or string cookie representation using <code>cookieString</code>.", |
| 244 | "hidden": true |
| 245 | }, |
| 246 | { |
| 247 | "name": "deleteCookie", |
| 248 | "parameters": [ |
| 249 | { "name": "cookieName", "type": "string", "description": "Name of the cookie to remove." }, |
| 250 | { "name": "url", "type": "string", "description": "URL to match cooke domain and path." } |
| 251 | ], |
| 252 | "description": "Deletes browser cookie with given name, domain and path.", |
| 253 | "hidden": true |
| 254 | }, |
| 255 | { |
| 256 | "name": "getResourceTree", |
| 257 | "description": "Returns present frame / resource tree structure.", |
| 258 | "returns": [ |
| 259 | { "name": "frameTree", "$ref": "FrameResourceTree", "description": "Present frame / resource tree structure." } |
| 260 | ], |
| 261 | "hidden": true |
| 262 | }, |
| 263 | { |
| 264 | "name": "getResourceContent", |
| 265 | "description": "Returns content of the given resource.", |
| 266 | "parameters": [ |
| 267 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id to get resource for." }, |
| 268 | { "name": "url", "type": "string", "description": "URL of the resource to get content for." } |
| 269 | ], |
| 270 | "returns": [ |
| 271 | { "name": "content", "type": "string", "description": "Resource content." }, |
| 272 | { "name": "base64Encoded", "type": "boolean", "description": "True, if content was served as base64." } |
| 273 | ], |
| 274 | "hidden": true |
| 275 | }, |
| 276 | { |
| 277 | "name": "searchInResource", |
| 278 | "description": "Searches for given string in resource content.", |
| 279 | "parameters": [ |
| 280 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id for resource to search in." }, |
| 281 | { "name": "url", "type": "string", "description": "URL of the resource to search in." }, |
| 282 | { "name": "query", "type": "string", "description": "String to search for." }, |
| 283 | { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." }, |
| 284 | { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." } |
| 285 | ], |
| 286 | "returns": [ |
| 287 | { "name": "result", "type": "array", "items": { "$ref": "SearchMatch" }, "description": "List of search matches." } |
| 288 | ], |
| 289 | "hidden": true |
| 290 | }, |
| 291 | { |
| 292 | "name": "searchInResources", |
| 293 | "description": "Searches for given string in frame / resource tree structure.", |
| 294 | "parameters": [ |
| 295 | { "name": "text", "type": "string", "description": "String to search for." }, |
| 296 | { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." }, |
| 297 | { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." } |
| 298 | ], |
| 299 | "returns": [ |
| 300 | { "name": "result", "type": "array", "items": { "$ref": "SearchResult" }, "description": "List of search results." } |
| 301 | ], |
| 302 | "hidden": true |
| 303 | }, |
| 304 | { |
| 305 | "name": "setDocumentContent", |
| 306 | "description": "Sets given markup as the document's HTML.", |
| 307 | "parameters": [ |
| 308 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id to set HTML for." }, |
| 309 | { "name": "html", "type": "string", "description": "HTML content to set." } |
| 310 | ], |
| 311 | "hidden": true |
| 312 | }, |
| 313 | { |
| 314 | "name": "setDeviceMetricsOverride", |
| 315 | "description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height, window.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media query results) and the font scale factor.", |
| 316 | "parameters": [ |
| 317 | { "name": "width", "type": "integer", "description": "Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override." }, |
| 318 | { "name": "height", "type": "integer", "description": "Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override." }, |
| 319 | { "name": "fontScaleFactor", "type": "number", "description": "Overriding font scale factor value (must be positive). 1 disables the override." }, |
| 320 | { "name": "fitWindow", "type": "boolean", "description": "Whether a view that exceeds the available browser window area should be scaled down to fit." } |
| 321 | ], |
| 322 | "hidden": true |
| 323 | }, |
| 324 | { |
| 325 | "name": "setShowPaintRects", |
| 326 | "description": "Requests that backend shows paint rectangles", |
| 327 | "parameters": [ |
| 328 | { "name": "result", "type": "boolean", "description": "True for showing paint rectangles" } |
| 329 | ], |
| 330 | "hidden": true |
| 331 | }, |
| 332 | { |
| 333 | "name": "setShowDebugBorders", |
| 334 | "description": "Requests that backend shows debug borders on layers", |
| 335 | "parameters": [ |
| 336 | { "name": "show", "type": "boolean", "description": "True for showing debug borders" } |
| 337 | ], |
| 338 | "hidden": true |
| 339 | }, |
| 340 | { |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 341 | "name": "setShowFPSCounter", |
| 342 | "description": "Requests that backend shows the FPS counter", |
| 343 | "parameters": [ |
| 344 | { "name": "show", "type": "boolean", "description": "True for showing the FPS counter" } |
| 345 | ], |
| 346 | "hidden": true |
| 347 | }, |
| 348 | { |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 349 | "name": "setContinuousPaintingEnabled", |
| 350 | "description": "Requests that backend enables continuous painting", |
| 351 | "parameters": [ |
| 352 | { "name": "enabled", "type": "boolean", "description": "True for enabling cointinuous painting" } |
| 353 | ], |
| 354 | "hidden": true |
| 355 | }, |
| 356 | { |
| 357 | "name": "getScriptExecutionStatus", |
| 358 | "description": "Determines if scripts can be executed in the page.", |
| 359 | "returns": [ |
| 360 | { "name": "result", "type": "string", "enum": ["allowed", "disabled", "forbidden"], "description": "Script execution status: \"allowed\" if scripts can be executed, \"disabled\" if script execution has been disabled through page settings, \"forbidden\" if script execution for the given page is not possible for other reasons." } |
| 361 | ], |
| 362 | "hidden": true |
| 363 | }, |
| 364 | { |
| 365 | "name": "setScriptExecutionDisabled", |
| 366 | "description": "Switches script execution in the page.", |
| 367 | "parameters": [ |
| 368 | { "name": "value", "type": "boolean", "description": "Whether script execution should be disabled in the page." } |
| 369 | ], |
| 370 | "hidden": true |
| 371 | }, |
| 372 | { |
| 373 | "name": "setGeolocationOverride", |
| 374 | "description": "Overrides the Geolocation Position or Error.", |
| 375 | "parameters": [ |
| 376 | { "name": "latitude", "type": "number", "optional": true, "description": "Mock longitude"}, |
| 377 | { "name": "longitude", "type": "number", "optional": true, "description": "Mock latitude"}, |
| 378 | { "name": "accuracy", "type": "number", "optional": true, "description": "Mock accuracy"} |
| 379 | ] |
| 380 | }, |
| 381 | { |
| 382 | "name": "clearGeolocationOverride", |
| 383 | "description": "Clears the overriden Geolocation Position and Error." |
| 384 | }, |
| 385 | { |
| 386 | "name": "setDeviceOrientationOverride", |
| 387 | "description": "Overrides the Device Orientation.", |
| 388 | "parameters": [ |
| 389 | { "name": "alpha", "type": "number", "description": "Mock alpha"}, |
| 390 | { "name": "beta", "type": "number", "description": "Mock beta"}, |
| 391 | { "name": "gamma", "type": "number", "description": "Mock gamma"} |
| 392 | ], |
| 393 | "hidden": true |
| 394 | }, |
| 395 | { |
| 396 | "name": "clearDeviceOrientationOverride", |
| 397 | "description": "Clears the overridden Device Orientation.", |
| 398 | "hidden": true |
| 399 | }, |
| 400 | { |
| 401 | "name": "setTouchEmulationEnabled", |
| 402 | "parameters": [ |
| 403 | { "name": "enabled", "type": "boolean", "description": "Whether the touch event emulation should be enabled." } |
| 404 | ], |
| 405 | "description": "Toggles mouse event-based touch event emulation.", |
| 406 | "hidden": true |
| 407 | }, |
| 408 | { |
| 409 | "name": "setEmulatedMedia", |
| 410 | "parameters": [ |
| 411 | { "name": "media", "type": "string", "description": "Media type to emulate. Empty string disables the override." } |
| 412 | ], |
| 413 | "description": "Emulates the given media for CSS media queries.", |
| 414 | "hidden": true |
| 415 | }, |
| 416 | { |
| 417 | "name": "getCompositingBordersVisible", |
| 418 | "description": "Indicates the visibility of compositing borders.", |
| 419 | "returns": [ |
| 420 | { "name": "result", "type": "boolean", "description": "If true, compositing borders are visible." } |
| 421 | ], |
| 422 | "hidden": true |
| 423 | }, |
| 424 | { |
| 425 | "name": "setCompositingBordersVisible", |
| 426 | "description": "Controls the visibility of compositing borders.", |
| 427 | "parameters": [ |
| 428 | { "name": "visible", "type": "boolean", "description": "True for showing compositing borders." } |
| 429 | ], |
| 430 | "hidden": true |
| 431 | }, |
| 432 | { |
| 433 | "name": "captureScreenshot", |
| 434 | "description": "Capture page screenshot.", |
| 435 | "returns": [ |
| 436 | { "name": "data", "type": "string", "description": "Base64-encoded image data (PNG)." } |
| 437 | ] |
| 438 | }, |
| 439 | { |
| 440 | "name": "handleJavaScriptDialog", |
| 441 | "description": "Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).", |
| 442 | "parameters": [ |
| 443 | { "name": "accept", "type": "boolean", "description": "Whether to accept or dismiss the dialog." }, |
Torne (Richard Coles) | e524955 | 2013-05-15 11:35:13 +0100 | [diff] [blame] | 444 | { "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." } |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 445 | ], |
| 446 | "hidden": true |
Torne (Richard Coles) | 93ac45c | 2013-05-29 14:40:20 +0100 | [diff] [blame] | 447 | }, |
| 448 | { |
| 449 | "name": "setShowViewportSizeOnResize", |
| 450 | "description": "Paints viewport size upon main frame resize.", |
| 451 | "parameters": [ |
| 452 | { "name": "show", "type": "boolean", "description": "Whether to paint size or not." }, |
| 453 | { "name": "showGrid", "type": "boolean", "optional": true, "description": "Whether to paint grid as well." } |
| 454 | ], |
| 455 | "hidden": true |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 456 | }, |
| 457 | { |
| 458 | "name": "setForceCompositingMode", |
| 459 | "description": "Force accelerated compositing mode for inspected page.", |
| 460 | "parameters": [ |
| 461 | { "name": "force", "type": "boolean", "description": "Whether to force accelerated compositing or not." } |
| 462 | ], |
| 463 | "hidden": true |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 464 | } |
| 465 | ], |
| 466 | "events": [ |
| 467 | { |
| 468 | "name": "domContentEventFired", |
| 469 | "parameters": [ |
| 470 | { "name": "timestamp", "type": "number" } |
| 471 | ] |
| 472 | }, |
| 473 | { |
| 474 | "name": "loadEventFired", |
| 475 | "parameters": [ |
| 476 | { "name": "timestamp", "type": "number" } |
| 477 | ] |
| 478 | }, |
| 479 | { |
| 480 | "name": "frameNavigated", |
| 481 | "description": "Fired once navigation of the frame has completed. Frame is now associated with the new loader.", |
| 482 | "parameters": [ |
| 483 | { "name": "frame", "$ref": "Frame", "description": "Frame object." } |
| 484 | ], |
| 485 | "hidden": true |
| 486 | }, |
| 487 | { |
| 488 | "name": "frameDetached", |
| 489 | "description": "Fired when frame has been detached from its parent.", |
| 490 | "parameters": [ |
| 491 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has been detached." } |
| 492 | ], |
| 493 | "hidden": true |
| 494 | }, |
| 495 | { |
| 496 | "name": "frameStartedLoading", |
| 497 | "description": "Fired when frame has started loading.", |
| 498 | "parameters": [ |
| 499 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has started loading." } |
| 500 | ], |
| 501 | "hidden": true |
| 502 | }, |
| 503 | { |
| 504 | "name": "frameStoppedLoading", |
| 505 | "description": "Fired when frame has stopped loading.", |
| 506 | "parameters": [ |
| 507 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has stopped loading." } |
| 508 | ], |
| 509 | "hidden": true |
| 510 | }, |
| 511 | { |
| 512 | "name": "frameScheduledNavigation", |
| 513 | "description": "Fired when frame schedules a potential navigation.", |
| 514 | "parameters": [ |
| 515 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has scheduled a navigation." }, |
| 516 | { "name": "delay", "type": "number", "description": "Delay (in seconds) until the navigation is scheduled to begin. The navigation is not guaranteed to start." } |
| 517 | ], |
| 518 | "hidden": true |
| 519 | }, |
| 520 | { |
| 521 | "name": "frameClearedScheduledNavigation", |
| 522 | "description": "Fired when frame no longer has a scheduled navigation.", |
| 523 | "parameters": [ |
| 524 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has cleared its scheduled navigation." } |
| 525 | ], |
| 526 | "hidden": true |
| 527 | }, |
| 528 | { |
| 529 | "name": "javascriptDialogOpening", |
| 530 | "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.", |
| 531 | "parameters": [ |
| 532 | { "name": "message", "type": "string", "description": "Message that will be displayed by the dialog." } |
| 533 | ], |
| 534 | "hidden": true |
| 535 | }, |
| 536 | { |
| 537 | "name": "javascriptDialogClosed", |
| 538 | "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.", |
| 539 | "hidden": true |
| 540 | }, |
| 541 | { |
| 542 | "name": "scriptsEnabled", |
| 543 | "description": "Fired when the JavaScript is enabled/disabled on the page", |
| 544 | "parameters": [ |
| 545 | { "name": "isEnabled", "type": "boolean", "description": "Whether script execution is enabled or disabled on the page." } |
| 546 | ], |
| 547 | "hidden": true |
| 548 | } |
| 549 | ] |
| 550 | }, |
| 551 | { |
| 552 | "domain": "Runtime", |
| 553 | "description": "Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.", |
| 554 | "types": [ |
| 555 | { |
| 556 | "id": "RemoteObjectId", |
| 557 | "type": "string", |
| 558 | "description": "Unique object identifier." |
| 559 | }, |
| 560 | { |
| 561 | "id": "RemoteObject", |
| 562 | "type": "object", |
| 563 | "description": "Mirror object referencing original JavaScript object.", |
| 564 | "properties": [ |
| 565 | { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean"], "description": "Object type." }, |
| 566 | { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date"], "description": "Object subtype hint. Specified for <code>object</code> type values only." }, |
| 567 | { "name": "className", "type": "string", "optional": true, "description": "Object class (constructor) name. Specified for <code>object</code> type values only." }, |
| 568 | { "name": "value", "type": "any", "optional": true, "description": "Remote object value (in case of primitive values or JSON values if it was requested)." }, |
| 569 | { "name": "description", "type": "string", "optional": true, "description": "String representation of the object." }, |
| 570 | { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Unique object identifier (for non-primitive values)." }, |
| 571 | { "name": "preview", "$ref": "ObjectPreview", "optional": true, "description": "Preview containsing abbreviated property values.", "hidden": true } |
| 572 | ] |
| 573 | }, |
| 574 | { |
| 575 | "id": "ObjectPreview", |
| 576 | "type": "object", |
| 577 | "hidden": true, |
| 578 | "description": "Object containing abbreviated remote object value.", |
| 579 | "properties": [ |
| 580 | { "name": "lossless", "type": "boolean", "description": "Determines whether preview is lossless (contains all information of the original object)." }, |
| 581 | { "name": "overflow", "type": "boolean", "description": "True iff some of the properties of the original did not fit." }, |
| 582 | { "name": "properties", "type": "array", "items": { "$ref": "PropertyPreview" }, "description": "List of the properties." } |
| 583 | ] |
| 584 | }, |
| 585 | { |
| 586 | "id": "PropertyPreview", |
| 587 | "type": "object", |
| 588 | "hidden": true, |
| 589 | "properties": [ |
| 590 | { "name": "name", "type": "string", "description": "Property name." }, |
| 591 | { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean"], "description": "Object type." }, |
| 592 | { "name": "value", "type": "string", "optional": true, "description": "User-friendly property value string." }, |
| 593 | { "name": "valuePreview", "$ref": "ObjectPreview", "optional": true, "description": "Nested value preview." }, |
| 594 | { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date"], "description": "Object subtype hint. Specified for <code>object</code> type values only." } |
| 595 | ] |
| 596 | }, |
| 597 | { |
| 598 | "id": "PropertyDescriptor", |
| 599 | "type": "object", |
| 600 | "description": "Object property descriptor.", |
| 601 | "properties": [ |
| 602 | { "name": "name", "type": "string", "description": "Property name." }, |
| 603 | { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." }, |
| 604 | { "name": "writable", "type": "boolean", "optional": true, "description": "True if the value associated with the property may be changed (data descriptors only)." }, |
| 605 | { "name": "get", "$ref": "RemoteObject", "optional": true, "description": "A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only)." }, |
| 606 | { "name": "set", "$ref": "RemoteObject", "optional": true, "description": "A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only)." }, |
| 607 | { "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." }, |
| 608 | { "name": "enumerable", "type": "boolean", "description": "True if this property shows up during enumeration of the properties on the corresponding object." }, |
| 609 | { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }, |
| 610 | { "name": "isOwn", "optional": true, "type": "boolean", "description": "True if the property is owned for the object.", "hidden": true } |
| 611 | |
| 612 | ] |
| 613 | }, |
| 614 | { |
| 615 | "id": "InternalPropertyDescriptor", |
| 616 | "type": "object", |
| 617 | "description": "Object internal property descriptor. This property isn't normally visible in JavaScript code.", |
| 618 | "properties": [ |
| 619 | { "name": "name", "type": "string", "description": "Conventional property name." }, |
| 620 | { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." } |
| 621 | ], |
| 622 | "hidden": true |
| 623 | }, |
| 624 | { |
| 625 | "id": "CallArgument", |
| 626 | "type": "object", |
| 627 | "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.", |
| 628 | "properties": [ |
| 629 | { "name": "value", "type": "any", "optional": true, "description": "Primitive value." }, |
| 630 | { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Remote object handle." } |
| 631 | ] |
| 632 | }, |
| 633 | { |
| 634 | "id": "ExecutionContextId", |
| 635 | "type": "integer", |
| 636 | "description": "Id of an execution context." |
| 637 | }, |
| 638 | { |
| 639 | "id": "ExecutionContextDescription", |
| 640 | "type": "object", |
| 641 | "description": "Description of an isolated world.", |
| 642 | "properties": [ |
| 643 | { "name": "id", "$ref": "ExecutionContextId", "description": "Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed." }, |
| 644 | { "name": "isPageContext", "type": "boolean", "description": "True if this is a context where inpspected web page scripts run. False if it is a content script isolated context.", "hidden": true }, |
| 645 | { "name": "name", "type": "string", "description": "Human readable name describing given context.", "hidden": true}, |
| 646 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the owning frame." } |
| 647 | ] |
| 648 | } |
| 649 | |
| 650 | ], |
| 651 | "commands": [ |
| 652 | { |
| 653 | "name": "evaluate", |
| 654 | "parameters": [ |
| 655 | { "name": "expression", "type": "string", "description": "Expression to evaluate." }, |
| 656 | { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }, |
| 657 | { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Determines whether Command Line API should be available during the evaluation.", "hidden": true }, |
| 658 | { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true }, |
| 659 | { "name": "contextId", "$ref": "Runtime.ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perform evaluation. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page." }, |
| 660 | { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." }, |
| 661 | { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." } |
| 662 | ], |
| 663 | "returns": [ |
| 664 | { "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." }, |
| 665 | { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." } |
| 666 | ], |
| 667 | "description": "Evaluates expression on global object." |
| 668 | }, |
| 669 | { |
| 670 | "name": "callFunctionOn", |
| 671 | "parameters": [ |
| 672 | { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to call function on." }, |
| 673 | { "name": "functionDeclaration", "type": "string", "description": "Declaration of the function to call." }, |
| 674 | { "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." }, |
| 675 | { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether function call should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true }, |
| 676 | { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object which should be sent by value." }, |
| 677 | { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." } |
| 678 | ], |
| 679 | "returns": [ |
| 680 | { "name": "result", "$ref": "RemoteObject", "description": "Call result." }, |
| 681 | { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." } |
| 682 | ], |
| 683 | "description": "Calls function with given declaration on the given object. Object group of the result is inherited from the target object." |
| 684 | }, |
| 685 | { |
| 686 | "name": "getProperties", |
| 687 | "parameters": [ |
| 688 | { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to return properties for." }, |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 689 | { "name": "ownProperties", "optional": true, "type": "boolean", "description": "If true, returns properties belonging only to the element itself, not to its prototype chain." }, |
| 690 | { "name": "accessorPropertiesOnly", "optional": true, "type": "boolean", "description": "If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.", "hidden": true } |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 691 | ], |
| 692 | "returns": [ |
| 693 | { "name": "result", "type": "array", "items": { "$ref": "PropertyDescriptor"}, "description": "Object properties." }, |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 694 | { "name": "internalProperties", "optional": true, "type": "array", "items": { "$ref": "InternalPropertyDescriptor"}, "description": "Internal object properties (only of the element itself).", "hidden": true } |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 695 | ], |
| 696 | "description": "Returns properties of a given object. Object group of the result is inherited from the target object." |
| 697 | }, |
| 698 | { |
| 699 | "name": "releaseObject", |
| 700 | "parameters": [ |
| 701 | { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to release." } |
| 702 | ], |
| 703 | "description": "Releases remote object with given id." |
| 704 | }, |
| 705 | { |
| 706 | "name": "releaseObjectGroup", |
| 707 | "parameters": [ |
| 708 | { "name": "objectGroup", "type": "string", "description": "Symbolic object group name." } |
| 709 | ], |
| 710 | "description": "Releases all remote objects that belong to a given group." |
| 711 | }, |
| 712 | { |
| 713 | "name": "run", |
| 714 | "hidden": true, |
| 715 | "description": "Tells inspected instance(worker or page) that it can run in case it was started paused." |
| 716 | }, |
| 717 | { |
| 718 | "name": "enable", |
| 719 | "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." |
| 720 | }, |
| 721 | { |
| 722 | "name": "disable", |
| 723 | "hidden": true, |
| 724 | "description": "Disables reporting of execution contexts creation." |
| 725 | } |
| 726 | ], |
| 727 | "events": [ |
| 728 | { |
| 729 | "name": "executionContextCreated", |
| 730 | "parameters": [ |
| 731 | { "name": "context", "$ref": "ExecutionContextDescription", "description": "A newly created execution contex." } |
| 732 | ], |
| 733 | "description": "Issued when new execution context is created." |
| 734 | } |
| 735 | ] |
| 736 | }, |
| 737 | { |
| 738 | "domain": "Console", |
| 739 | "description": "Console domain defines methods and events for interaction with the JavaScript console. Console collects messages created by means of the <a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console API</a>. One needs to enable this domain using <code>enable</code> command in order to start receiving the console messages. Browser collects messages issued while console domain is not enabled as well and reports them using <code>messageAdded</code> notification upon enabling.", |
| 740 | "types": [ |
| 741 | { |
Torne (Richard Coles) | 5267f70 | 2013-06-11 10:57:24 +0100 | [diff] [blame] | 742 | "id": "Timestamp", |
| 743 | "type": "number", |
| 744 | "description": "Number of seconds since epoch." |
| 745 | }, |
| 746 | { |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 747 | "id": "ConsoleMessage", |
| 748 | "type": "object", |
| 749 | "description": "Console message.", |
| 750 | "properties": [ |
| 751 | { "name": "source", "type": "string", "enum": ["xml", "javascript", "network", "console-api", "storage", "appcache", "rendering", "css", "security", "other", "deprecation"], "description": "Message source." }, |
| 752 | { "name": "level", "type": "string", "enum": ["log", "warning", "error", "debug"], "description": "Message severity." }, |
| 753 | { "name": "text", "type": "string", "description": "Message text." }, |
| 754 | { "name": "type", "type": "string", "optional": true, "enum": ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupCollapsed", "endGroup", "assert", "timing", "profile", "profileEnd"], "description": "Console message type." }, |
| 755 | { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." }, |
| 756 | { "name": "line", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message." }, |
| 757 | { "name": "repeatCount", "type": "integer", "optional": true, "description": "Repeat count for repeated messages." }, |
| 758 | { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters in case of the formatted message." }, |
| 759 | { "name": "stackTrace", "$ref": "StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages." }, |
Torne (Richard Coles) | 5267f70 | 2013-06-11 10:57:24 +0100 | [diff] [blame] | 760 | { "name": "networkRequestId", "$ref": "Network.RequestId", "optional": true, "description": "Identifier of the network request associated with this message." }, |
| 761 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp, when this message was fired.", "hidden": true } |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 762 | ] |
| 763 | }, |
| 764 | { |
| 765 | "id": "CallFrame", |
| 766 | "type": "object", |
| 767 | "description": "Stack entry for console errors and assertions.", |
| 768 | "properties": [ |
| 769 | { "name": "functionName", "type": "string", "description": "JavaScript function name." }, |
| 770 | { "name": "url", "type": "string", "description": "JavaScript script name or url." }, |
| 771 | { "name": "lineNumber", "type": "integer", "description": "JavaScript script line number." }, |
| 772 | { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number." } |
| 773 | ] |
| 774 | }, |
| 775 | { |
| 776 | "id": "StackTrace", |
| 777 | "type": "array", |
| 778 | "items": { "$ref": "CallFrame" }, |
| 779 | "description": "Call frames for assertions or error messages." |
| 780 | } |
| 781 | ], |
| 782 | "commands": [ |
| 783 | { |
| 784 | "name": "enable", |
| 785 | "description": "Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification." |
| 786 | }, |
| 787 | { |
| 788 | "name": "disable", |
| 789 | "description": "Disables console domain, prevents further console messages from being reported to the client." |
| 790 | }, |
| 791 | { |
| 792 | "name": "clearMessages", |
| 793 | "description": "Clears console messages collected in the browser." |
| 794 | }, |
| 795 | { |
| 796 | "name": "setMonitoringXHREnabled", |
| 797 | "parameters": [ |
| 798 | { "name": "enabled", "type": "boolean", "description": "Monitoring enabled state." } |
| 799 | ], |
| 800 | "description": "Toggles monitoring of XMLHttpRequest. If <code>true</code>, console will receive messages upon each XHR issued.", |
| 801 | "hidden": true |
| 802 | }, |
| 803 | { |
| 804 | "name": "addInspectedNode", |
| 805 | "parameters": [ |
| 806 | { "name": "nodeId", "$ref": "DOM.NodeId", "description": "DOM node id to be accessible by means of $x command line API." } |
| 807 | ], |
| 808 | "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).", |
| 809 | "hidden": true |
| 810 | }, |
| 811 | { |
| 812 | "name": "addInspectedHeapObject", |
| 813 | "parameters": [ |
| 814 | { "name": "heapObjectId", "type": "integer" } |
| 815 | ], |
| 816 | "hidden": true |
| 817 | } |
| 818 | ], |
| 819 | "events": [ |
| 820 | { |
| 821 | "name": "messageAdded", |
| 822 | "parameters": [ |
| 823 | { "name": "message", "$ref": "ConsoleMessage", "description": "Console message that has been added." } |
| 824 | ], |
| 825 | "description": "Issued when new console message is added." |
| 826 | }, |
| 827 | { |
| 828 | "name": "messageRepeatCountUpdated", |
| 829 | "parameters": [ |
Torne (Richard Coles) | 5267f70 | 2013-06-11 10:57:24 +0100 | [diff] [blame] | 830 | { "name": "count", "type": "integer", "description": "New repeat count value." }, |
| 831 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp of most recent message in batch.", "hidden": true } |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 832 | ], |
| 833 | "description": "Issued when subsequent message(s) are equal to the previous one(s)." |
| 834 | }, |
| 835 | { |
| 836 | "name": "messagesCleared", |
| 837 | "description": "Issued when console is cleared. This happens either upon <code>clearMessages</code> command or after page navigation." |
| 838 | } |
| 839 | ] |
| 840 | }, |
| 841 | { |
| 842 | "domain": "Network", |
| 843 | "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.", |
| 844 | "types": [ |
| 845 | { |
| 846 | "id": "LoaderId", |
| 847 | "type": "string", |
| 848 | "description": "Unique loader identifier." |
| 849 | }, |
| 850 | { |
| 851 | "id": "FrameId", |
| 852 | "type": "string", |
| 853 | "description": "Unique frame identifier.", |
| 854 | "hidden": true |
| 855 | }, |
| 856 | { |
| 857 | "id": "RequestId", |
| 858 | "type": "string", |
| 859 | "description": "Unique request identifier." |
| 860 | }, |
| 861 | { |
| 862 | "id": "Timestamp", |
| 863 | "type": "number", |
| 864 | "description": "Number of seconds since epoch." |
| 865 | }, |
| 866 | { |
| 867 | "id": "Headers", |
| 868 | "type": "object", |
| 869 | "description": "Request / response headers as keys / values of JSON object." |
| 870 | }, |
| 871 | { |
| 872 | "id": "ResourceTiming", |
| 873 | "type": "object", |
| 874 | "description": "Timing information for the request.", |
| 875 | "properties": [ |
| 876 | { "name": "requestTime", "type": "number", "description": "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime." }, |
| 877 | { "name": "proxyStart", "type": "number", "description": "Started resolving proxy." }, |
| 878 | { "name": "proxyEnd", "type": "number", "description": "Finished resolving proxy." }, |
| 879 | { "name": "dnsStart", "type": "number", "description": "Started DNS address resolve." }, |
| 880 | { "name": "dnsEnd", "type": "number", "description": "Finished DNS address resolve." }, |
| 881 | { "name": "connectStart", "type": "number", "description": "Started connecting to the remote host." }, |
| 882 | { "name": "connectEnd", "type": "number", "description": "Connected to the remote host." }, |
| 883 | { "name": "sslStart", "type": "number", "description": "Started SSL handshake." }, |
| 884 | { "name": "sslEnd", "type": "number", "description": "Finished SSL handshake." }, |
| 885 | { "name": "sendStart", "type": "number", "description": "Started sending request." }, |
| 886 | { "name": "sendEnd", "type": "number", "description": "Finished sending request." }, |
| 887 | { "name": "receiveHeadersEnd", "type": "number", "description": "Finished receiving response headers." } |
| 888 | ] |
| 889 | }, |
| 890 | { |
| 891 | "id": "Request", |
| 892 | "type": "object", |
| 893 | "description": "HTTP request data.", |
| 894 | "properties": [ |
| 895 | { "name": "url", "type": "string", "description": "Request URL." }, |
| 896 | { "name": "method", "type": "string", "description": "HTTP request method." }, |
| 897 | { "name": "headers", "$ref": "Headers", "description": "HTTP request headers." }, |
| 898 | { "name": "postData", "type": "string", "optional": true, "description": "HTTP POST request data." } |
| 899 | ] |
| 900 | }, |
| 901 | { |
| 902 | "id": "Response", |
| 903 | "type": "object", |
| 904 | "description": "HTTP response data.", |
| 905 | "properties": [ |
| 906 | { "name": "url", "type": "string", "description": "Response URL. This URL can be different from CachedResource.url in case of redirect." }, |
| 907 | { "name": "status", "type": "number", "description": "HTTP response status code." }, |
| 908 | { "name": "statusText", "type": "string", "description": "HTTP response status text." }, |
| 909 | { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." }, |
| 910 | { "name": "headersText", "type": "string", "optional": true, "description": "HTTP response headers text." }, |
| 911 | { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." }, |
| 912 | { "name": "requestHeaders", "$ref": "Headers", "optional": true, "description": "Refined HTTP request headers that were actually transmitted over the network." }, |
| 913 | { "name": "requestHeadersText", "type": "string", "optional": true, "description": "HTTP request headers text." }, |
| 914 | { "name": "connectionReused", "type": "boolean", "description": "Specifies whether physical connection was actually reused for this request." }, |
| 915 | { "name": "connectionId", "type": "number", "description": "Physical connection id that was actually used for this request." }, |
| 916 | { "name": "fromDiskCache", "type": "boolean", "optional": true, "description": "Specifies that the request was served from the disk cache." }, |
| 917 | { "name": "timing", "$ref": "ResourceTiming", "optional": true, "description": "Timing information for the given request." } |
| 918 | ] |
| 919 | }, |
| 920 | { |
| 921 | "id": "WebSocketRequest", |
| 922 | "type": "object", |
| 923 | "description": "WebSocket request data.", |
| 924 | "hidden": true, |
| 925 | "properties": [ |
| 926 | { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." } |
| 927 | ] |
| 928 | }, |
| 929 | { |
| 930 | "id": "WebSocketResponse", |
| 931 | "type": "object", |
| 932 | "description": "WebSocket response data.", |
| 933 | "hidden": true, |
| 934 | "properties": [ |
| 935 | { "name": "status", "type": "number", "description": "HTTP response status code." }, |
| 936 | { "name": "statusText", "type": "string", "description": "HTTP response status text." }, |
| 937 | { "name": "headers", "$ref": "Headers", "description": "HTTP response headers." } |
| 938 | ] |
| 939 | }, |
| 940 | { |
| 941 | "id": "WebSocketFrame", |
| 942 | "type": "object", |
| 943 | "description": "WebSocket frame data.", |
| 944 | "hidden": true, |
| 945 | "properties": [ |
| 946 | { "name": "opcode", "type": "number", "description": "WebSocket frame opcode." }, |
| 947 | { "name": "mask", "type": "boolean", "description": "WebSocke frame mask." }, |
| 948 | { "name": "payloadData", "type": "string", "description": "WebSocke frame payload data." } |
| 949 | ] |
| 950 | }, |
| 951 | { |
| 952 | "id": "CachedResource", |
| 953 | "type": "object", |
| 954 | "description": "Information about the cached resource.", |
| 955 | "properties": [ |
| 956 | { "name": "url", "type": "string", "description": "Resource URL. This is the url of the original network request." }, |
| 957 | { "name": "type", "$ref": "Page.ResourceType", "description": "Type of this resource." }, |
| 958 | { "name": "response", "$ref": "Response", "optional": true, "description": "Cached response data." }, |
| 959 | { "name": "bodySize", "type": "number", "description": "Cached response body size." } |
| 960 | ] |
| 961 | }, |
| 962 | { |
| 963 | "id": "Initiator", |
| 964 | "type": "object", |
| 965 | "description": "Information about the request initiator.", |
| 966 | "properties": [ |
| 967 | { "name": "type", "type": "string", "enum": ["parser", "script", "other"], "description": "Type of this initiator." }, |
| 968 | { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "Initiator JavaScript stack trace, set for Script only." }, |
| 969 | { "name": "url", "type": "string", "optional": true, "description": "Initiator URL, set for Parser type only." }, |
| 970 | { "name": "lineNumber", "type": "number", "optional": true, "description": "Initiator line number, set for Parser type only." } |
| 971 | ] |
| 972 | } |
| 973 | ], |
| 974 | "commands": [ |
| 975 | { |
| 976 | "name": "enable", |
| 977 | "description": "Enables network tracking, network events will now be delivered to the client." |
| 978 | }, |
| 979 | { |
| 980 | "name": "disable", |
| 981 | "description": "Disables network tracking, prevents network events from being sent to the client." |
| 982 | }, |
| 983 | { |
| 984 | "name": "setUserAgentOverride", |
| 985 | "description": "Allows overriding user agent with the given string.", |
| 986 | "parameters": [ |
| 987 | { "name": "userAgent", "type": "string", "description": "User agent to use." } |
| 988 | ] |
| 989 | }, |
| 990 | { |
| 991 | "name": "setExtraHTTPHeaders", |
| 992 | "description": "Specifies whether to always send extra HTTP headers with the requests from this page.", |
| 993 | "parameters": [ |
| 994 | { "name": "headers", "$ref": "Headers", "description": "Map with extra HTTP headers." } |
| 995 | ] |
| 996 | }, |
| 997 | { |
| 998 | "name": "getResponseBody", |
| 999 | "description": "Returns content served for the given request.", |
| 1000 | "parameters": [ |
| 1001 | { "name": "requestId", "$ref": "RequestId", "description": "Identifier of the network request to get content for." } |
| 1002 | ], |
| 1003 | "returns": [ |
| 1004 | { "name": "body", "type": "string", "description": "Response body." }, |
| 1005 | { "name": "base64Encoded", "type": "boolean", "description": "True, if content was sent as base64." } |
| 1006 | ] |
| 1007 | }, |
| 1008 | { |
| 1009 | "name": "replayXHR", |
| 1010 | "description": "This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.", |
| 1011 | "parameters": [ |
| 1012 | { "name": "requestId", "$ref": "RequestId", "description": "Identifier of XHR to replay." } |
| 1013 | ], |
| 1014 | "hidden": true |
| 1015 | }, |
| 1016 | { |
| 1017 | "name": "canClearBrowserCache", |
| 1018 | "description": "Tells whether clearing browser cache is supported.", |
| 1019 | "returns": [ |
| 1020 | { "name": "result", "type": "boolean", "description": "True if browser cache can be cleared." } |
| 1021 | ] |
| 1022 | }, |
| 1023 | { |
| 1024 | "name": "clearBrowserCache", |
| 1025 | "description": "Clears browser cache." |
| 1026 | }, |
| 1027 | { |
| 1028 | "name": "canClearBrowserCookies", |
| 1029 | "description": "Tells whether clearing browser cookies is supported.", |
| 1030 | "returns": [ |
| 1031 | { "name": "result", "type": "boolean", "description": "True if browser cookies can be cleared." } |
| 1032 | ] |
| 1033 | }, |
| 1034 | { |
| 1035 | "name": "clearBrowserCookies", |
| 1036 | "description": "Clears browser cookies." |
| 1037 | }, |
| 1038 | { |
| 1039 | "name": "setCacheDisabled", |
| 1040 | "parameters": [ |
| 1041 | { "name": "cacheDisabled", "type": "boolean", "description": "Cache disabled state." } |
| 1042 | ], |
| 1043 | "description": "Toggles ignoring cache for each request. If <code>true</code>, cache will not be used." |
Torne (Richard Coles) | 5267f70 | 2013-06-11 10:57:24 +0100 | [diff] [blame] | 1044 | }, |
| 1045 | { |
| 1046 | "name": "loadResourceForFrontend", |
| 1047 | "async": true, |
| 1048 | "parameters": [ |
| 1049 | { "name": "frameId", "$ref": "FrameId", "description": "Frame to load the resource from." }, |
| 1050 | { "name": "url", "type": "string", "description": "URL of the resource to load." } |
| 1051 | ], |
| 1052 | "returns": [ |
| 1053 | { "name": "content", "type": "string", "description": "Resource content." } |
| 1054 | ], |
| 1055 | "description": "Loads a resource in the context of a frame on the inspected page without cross origin checks.", |
| 1056 | "hidden": true |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 1057 | } |
| 1058 | ], |
| 1059 | "events": [ |
| 1060 | { |
| 1061 | "name": "requestWillBeSent", |
| 1062 | "description": "Fired when page is about to send HTTP request.", |
| 1063 | "parameters": [ |
| 1064 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1065 | { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier.", "hidden": true }, |
| 1066 | { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." }, |
| 1067 | { "name": "documentURL", "type": "string", "description": "URL of the document this request is loaded for." }, |
| 1068 | { "name": "request", "$ref": "Request", "description": "Request data." }, |
| 1069 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
| 1070 | { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." }, |
| 1071 | { "name": "redirectResponse", "optional": true, "$ref": "Response", "description": "Redirect response data." } |
| 1072 | ] |
| 1073 | }, |
| 1074 | { |
| 1075 | "name": "requestServedFromCache", |
| 1076 | "description": "Fired if request ended up loading from cache.", |
| 1077 | "parameters": [ |
| 1078 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." } |
| 1079 | ] |
| 1080 | }, |
| 1081 | { |
| 1082 | "name": "responseReceived", |
| 1083 | "description": "Fired when HTTP response is available.", |
| 1084 | "parameters": [ |
| 1085 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1086 | { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier.", "hidden": true }, |
| 1087 | { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." }, |
| 1088 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
| 1089 | { "name": "type", "$ref": "Page.ResourceType", "description": "Resource type." }, |
| 1090 | { "name": "response", "$ref": "Response", "description": "Response data." } |
| 1091 | ] |
| 1092 | }, |
| 1093 | { |
| 1094 | "name": "dataReceived", |
| 1095 | "description": "Fired when data chunk was received over the network.", |
| 1096 | "parameters": [ |
| 1097 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1098 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
| 1099 | { "name": "dataLength", "type": "integer", "description": "Data chunk length." }, |
| 1100 | { "name": "encodedDataLength", "type": "integer", "description": "Actual bytes received (might be less than dataLength for compressed encodings)." } |
| 1101 | ] |
| 1102 | }, |
| 1103 | { |
| 1104 | "name": "loadingFinished", |
| 1105 | "description": "Fired when HTTP request has finished loading.", |
| 1106 | "parameters": [ |
| 1107 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1108 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." } |
| 1109 | ] |
| 1110 | }, |
| 1111 | { |
| 1112 | "name": "loadingFailed", |
| 1113 | "description": "Fired when HTTP request has failed to load.", |
| 1114 | "parameters": [ |
| 1115 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1116 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
| 1117 | { "name": "errorText", "type": "string", "description": "User friendly error message." }, |
| 1118 | { "name": "canceled", "type": "boolean", "optional": true, "description": "True if loading was canceled." } |
| 1119 | ] |
| 1120 | }, |
| 1121 | { |
| 1122 | "name": "requestServedFromMemoryCache", |
| 1123 | "description": "Fired when HTTP request has been served from memory cache.", |
| 1124 | "parameters": [ |
| 1125 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1126 | { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier.", "hidden": true }, |
| 1127 | { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." }, |
| 1128 | { "name": "documentURL", "type": "string", "description": "URL of the document this request is loaded for." }, |
| 1129 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
| 1130 | { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." }, |
| 1131 | { "name": "resource", "$ref": "CachedResource", "description": "Cached resource data." } |
| 1132 | ] |
| 1133 | }, |
| 1134 | { |
| 1135 | "name": "webSocketWillSendHandshakeRequest", |
| 1136 | "description": "Fired when WebSocket is about to initiate handshake.", |
| 1137 | "parameters": [ |
| 1138 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1139 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
| 1140 | { "name": "request", "$ref": "WebSocketRequest", "description": "WebSocket request data." } |
| 1141 | ], |
| 1142 | "hidden": true |
| 1143 | }, |
| 1144 | { |
| 1145 | "name": "webSocketHandshakeResponseReceived", |
| 1146 | "description": "Fired when WebSocket handshake response becomes available.", |
| 1147 | "parameters": [ |
| 1148 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1149 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
| 1150 | { "name": "response", "$ref": "WebSocketResponse", "description": "WebSocket response data." } |
| 1151 | ], |
| 1152 | "hidden": true |
| 1153 | }, |
| 1154 | { |
| 1155 | "name": "webSocketCreated", |
| 1156 | "description": "Fired upon WebSocket creation.", |
| 1157 | "parameters": [ |
| 1158 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1159 | { "name": "url", "type": "string", "description": "WebSocket request URL." } |
| 1160 | ], |
| 1161 | "hidden": true |
| 1162 | }, |
| 1163 | { |
| 1164 | "name": "webSocketClosed", |
| 1165 | "description": "Fired when WebSocket is closed.", |
| 1166 | "parameters": [ |
| 1167 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1168 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." } |
| 1169 | ], |
| 1170 | "hidden": true |
| 1171 | }, |
| 1172 | { |
| 1173 | "name": "webSocketFrameReceived", |
| 1174 | "description": "Fired when WebSocket frame is received.", |
| 1175 | "parameters": [ |
| 1176 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1177 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
| 1178 | { "name": "response", "$ref": "WebSocketFrame", "description": "WebSocket response data." } |
| 1179 | ], |
| 1180 | "hidden": true |
| 1181 | }, |
| 1182 | { |
| 1183 | "name": "webSocketFrameError", |
| 1184 | "description": "Fired when WebSocket frame error occurs.", |
| 1185 | "parameters": [ |
| 1186 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1187 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
| 1188 | { "name": "errorMessage", "type": "string", "description": "WebSocket frame error message." } |
| 1189 | ], |
| 1190 | "hidden": true |
| 1191 | }, |
| 1192 | { |
| 1193 | "name": "webSocketFrameSent", |
| 1194 | "description": "Fired when WebSocket frame is sent.", |
| 1195 | "parameters": [ |
| 1196 | { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, |
| 1197 | { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, |
| 1198 | { "name": "response", "$ref": "WebSocketFrame", "description": "WebSocket response data." } |
| 1199 | ], |
| 1200 | "hidden": true |
| 1201 | } |
| 1202 | ] |
| 1203 | }, |
| 1204 | { |
| 1205 | "domain": "Database", |
| 1206 | "hidden": true, |
| 1207 | "types": [ |
| 1208 | { |
| 1209 | "id": "DatabaseId", |
| 1210 | "type": "string", |
| 1211 | "description": "Unique identifier of Database object.", |
| 1212 | "hidden": true |
| 1213 | }, |
| 1214 | { |
| 1215 | "id": "Database", |
| 1216 | "type": "object", |
| 1217 | "description": "Database object.", |
| 1218 | "hidden": true, |
| 1219 | "properties": [ |
| 1220 | { "name": "id", "$ref": "DatabaseId", "description": "Database ID." }, |
| 1221 | { "name": "domain", "type": "string", "description": "Database domain." }, |
| 1222 | { "name": "name", "type": "string", "description": "Database name." }, |
| 1223 | { "name": "version", "type": "string", "description": "Database version." } |
| 1224 | ] |
| 1225 | }, |
| 1226 | { |
| 1227 | "id": "Error", |
| 1228 | "type": "object", |
| 1229 | "description": "Database error.", |
| 1230 | "properties": [ |
| 1231 | { "name": "message", "type": "string", "description": "Error message." }, |
| 1232 | { "name": "code", "type": "integer", "description": "Error code." } |
| 1233 | ] |
| 1234 | } |
| 1235 | ], |
| 1236 | "commands": [ |
| 1237 | { |
| 1238 | "name": "enable", |
| 1239 | "description": "Enables database tracking, database events will now be delivered to the client." |
| 1240 | }, |
| 1241 | { |
| 1242 | "name": "disable", |
| 1243 | "description": "Disables database tracking, prevents database events from being sent to the client." |
| 1244 | }, |
| 1245 | { |
| 1246 | "name": "getDatabaseTableNames", |
| 1247 | "parameters": [ |
| 1248 | { "name": "databaseId", "$ref": "DatabaseId" } |
| 1249 | ], |
| 1250 | "returns": [ |
| 1251 | { "name": "tableNames", "type": "array", "items": { "type": "string" } } |
| 1252 | ] |
| 1253 | }, |
| 1254 | { |
| 1255 | "name": "executeSQL", |
| 1256 | "async": true, |
| 1257 | "parameters": [ |
| 1258 | { "name": "databaseId", "$ref": "DatabaseId" }, |
| 1259 | { "name": "query", "type": "string" } |
| 1260 | ], |
| 1261 | "returns": [ |
| 1262 | { "name": "columnNames", "type": "array", "optional": true, "items": { "type": "string" } }, |
| 1263 | { "name": "values", "type": "array", "optional": true, "items": { "type": "any" }}, |
| 1264 | { "name": "sqlError", "$ref": "Error", "optional": true } |
| 1265 | ] |
| 1266 | } |
| 1267 | ], |
| 1268 | "events": [ |
| 1269 | { |
| 1270 | "name": "addDatabase", |
| 1271 | "parameters": [ |
| 1272 | { "name": "database", "$ref": "Database" } |
| 1273 | ] |
| 1274 | } |
| 1275 | ] |
| 1276 | }, |
| 1277 | { |
| 1278 | "domain": "IndexedDB", |
| 1279 | "hidden": true, |
| 1280 | "types": [ |
| 1281 | { |
| 1282 | "id": "DatabaseWithObjectStores", |
| 1283 | "type": "object", |
| 1284 | "description": "Database with an array of object stores.", |
| 1285 | "properties": [ |
| 1286 | { "name": "name", "type": "string", "description": "Database name." }, |
| 1287 | { "name": "version", "type": "string", "description": "Deprecated string database version." }, |
| 1288 | { "name": "intVersion", "type": "integer", "description": "Integer database version." }, |
| 1289 | { "name": "objectStores", "type": "array", "items": { "$ref": "ObjectStore" }, "description": "Object stores in this database." } |
| 1290 | ] |
| 1291 | }, |
| 1292 | { |
| 1293 | "id": "ObjectStore", |
| 1294 | "type": "object", |
| 1295 | "description": "Object store.", |
| 1296 | "properties": [ |
| 1297 | { "name": "name", "type": "string", "description": "Object store name." }, |
| 1298 | { "name": "keyPath", "$ref": "KeyPath", "description": "Object store key path." }, |
| 1299 | { "name": "autoIncrement", "type": "boolean", "description": "If true, object store has auto increment flag set." }, |
| 1300 | { "name": "indexes", "type": "array", "items": { "$ref": "ObjectStoreIndex" }, "description": "Indexes in this object store." } |
| 1301 | ] |
| 1302 | }, |
| 1303 | { |
| 1304 | "id": "ObjectStoreIndex", |
| 1305 | "type": "object", |
| 1306 | "description": "Object store index.", |
| 1307 | "properties": [ |
| 1308 | { "name": "name", "type": "string", "description": "Index name." }, |
| 1309 | { "name": "keyPath", "$ref": "KeyPath", "description": "Index key path." }, |
| 1310 | { "name": "unique", "type": "boolean", "description": "If true, index is unique." }, |
| 1311 | { "name": "multiEntry", "type": "boolean", "description": "If true, index allows multiple entries for a key." } |
| 1312 | ] |
| 1313 | }, |
| 1314 | { |
| 1315 | "id": "Key", |
| 1316 | "type": "object", |
| 1317 | "description": "Key.", |
| 1318 | "properties": [ |
| 1319 | { "name": "type", "type": "string", "enum": ["number", "string", "date", "array"], "description": "Key type." }, |
| 1320 | { "name": "number", "type": "number", "optional": true, "description": "Number value." }, |
| 1321 | { "name": "string", "type": "string", "optional": true, "description": "String value." }, |
| 1322 | { "name": "date", "type": "number", "optional": true, "description": "Date value." }, |
| 1323 | { "name": "array", "type": "array", "optional": true, "items": { "$ref": "Key" }, "description": "Array value." } |
| 1324 | ] |
| 1325 | }, |
| 1326 | { |
| 1327 | "id": "KeyRange", |
| 1328 | "type": "object", |
| 1329 | "description": "Key range.", |
| 1330 | "properties": [ |
| 1331 | { "name": "lower", "$ref": "Key", "optional": true, "description": "Lower bound." }, |
| 1332 | { "name": "upper", "$ref": "Key", "optional": true, "description": "Upper bound." }, |
| 1333 | { "name": "lowerOpen", "type": "boolean", "description": "If true lower bound is open." }, |
| 1334 | { "name": "upperOpen", "type": "boolean", "description": "If true upper bound is open." } |
| 1335 | ] |
| 1336 | }, |
| 1337 | { |
| 1338 | "id": "DataEntry", |
| 1339 | "type": "object", |
| 1340 | "description": "Data entry.", |
| 1341 | "properties": [ |
| 1342 | { "name": "key", "$ref": "Runtime.RemoteObject", "description": "Key." }, |
| 1343 | { "name": "primaryKey", "$ref": "Runtime.RemoteObject", "description": "Primary key." }, |
| 1344 | { "name": "value", "$ref": "Runtime.RemoteObject", "description": "Value." } |
| 1345 | ] |
| 1346 | }, |
| 1347 | { |
| 1348 | "id": "KeyPath", |
| 1349 | "type": "object", |
| 1350 | "description": "Key path.", |
| 1351 | "properties": [ |
| 1352 | { "name": "type", "type": "string", "enum": ["null", "string", "array"], "description": "Key path type." }, |
| 1353 | { "name": "string", "type": "string", "optional": true, "description": "String value." }, |
| 1354 | { "name": "array", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Array value." } |
| 1355 | ] |
| 1356 | } |
| 1357 | ], |
| 1358 | "commands": [ |
| 1359 | { |
| 1360 | "name": "enable", |
| 1361 | "description": "Enables events from backend." |
| 1362 | }, |
| 1363 | { |
| 1364 | "name": "disable", |
| 1365 | "description": "Disables events from backend." |
| 1366 | }, |
| 1367 | { |
| 1368 | "name": "requestDatabaseNames", |
| 1369 | "async": true, |
| 1370 | "parameters": [ |
| 1371 | { "name": "securityOrigin", "type": "string", "description": "Security origin." } |
| 1372 | ], |
| 1373 | "returns": [ |
| 1374 | { "name": "databaseNames", "type": "array", "items": { "type": "string" }, "description": "Database names for origin." } |
| 1375 | ], |
| 1376 | "description": "Requests database names for given security origin." |
| 1377 | }, |
| 1378 | { |
| 1379 | "name": "requestDatabase", |
| 1380 | "async": true, |
| 1381 | "parameters": [ |
| 1382 | { "name": "securityOrigin", "type": "string", "description": "Security origin." }, |
| 1383 | { "name": "databaseName", "type": "string", "description": "Database name." } |
| 1384 | ], |
| 1385 | "returns": [ |
| 1386 | { "name": "databaseWithObjectStores", "$ref": "DatabaseWithObjectStores", "description": "Database with an array of object stores." } |
| 1387 | ], |
| 1388 | "description": "Requests database with given name in given frame." |
| 1389 | }, |
| 1390 | { |
| 1391 | "name": "requestData", |
| 1392 | "async": true, |
| 1393 | "parameters": [ |
| 1394 | { "name": "securityOrigin", "type": "string", "description": "Security origin." }, |
| 1395 | { "name": "databaseName", "type": "string", "description": "Database name." }, |
| 1396 | { "name": "objectStoreName", "type": "string", "description": "Object store name." }, |
| 1397 | { "name": "indexName", "type": "string", "description": "Index name, empty string for object store data requests." }, |
| 1398 | { "name": "skipCount", "type": "integer", "description": "Number of records to skip." }, |
| 1399 | { "name": "pageSize", "type": "integer", "description": "Number of records to fetch." }, |
| 1400 | { "name": "keyRange", "$ref": "KeyRange", "optional": true, "description": "Key range." } |
| 1401 | ], |
| 1402 | "returns": [ |
| 1403 | { "name": "objectStoreDataEntries", "type": "array", "items": { "$ref": "DataEntry" }, "description": "Array of object store data entries." }, |
| 1404 | { "name": "hasMore", "type": "boolean", "description": "If true, there are more entries to fetch in the given range." } |
| 1405 | ], |
| 1406 | "description": "Requests data from object store or index." |
| 1407 | }, |
| 1408 | { |
| 1409 | "name": "clearObjectStore", |
| 1410 | "async": true, |
| 1411 | "parameters": [ |
| 1412 | { "name": "securityOrigin", "type": "string", "description": "Security origin." }, |
| 1413 | { "name": "databaseName", "type": "string", "description": "Database name." }, |
| 1414 | { "name": "objectStoreName", "type": "string", "description": "Object store name." } |
| 1415 | ], |
| 1416 | "returns": [ |
| 1417 | ], |
| 1418 | "description": "Clears all entries from an object store." |
| 1419 | } |
| 1420 | ] |
| 1421 | }, |
| 1422 | { |
| 1423 | "domain": "DOMStorage", |
| 1424 | "hidden": true, |
| 1425 | "description": "Query and modify DOM storage.", |
| 1426 | "types": [ |
| 1427 | { |
| 1428 | "id": "StorageId", |
| 1429 | "type": "object", |
| 1430 | "description": "DOM Storage identifier.", |
| 1431 | "hidden": true, |
| 1432 | "properties": [ |
| 1433 | { "name": "securityOrigin", "type": "string", "description": "Security origin for the storage." }, |
| 1434 | { "name": "isLocalStorage", "type": "boolean", "description": "Whether the storage is local storage (not session storage)." } |
| 1435 | ] |
| 1436 | }, |
| 1437 | { |
| 1438 | "id": "Item", |
| 1439 | "type": "array", |
| 1440 | "description": "DOM Storage item.", |
| 1441 | "hidden": true, |
| 1442 | "items": { "type": "string" } |
| 1443 | } |
| 1444 | ], |
| 1445 | "commands": [ |
| 1446 | { |
| 1447 | "name": "enable", |
| 1448 | "description": "Enables storage tracking, storage events will now be delivered to the client." |
| 1449 | }, |
| 1450 | { |
| 1451 | "name": "disable", |
| 1452 | "description": "Disables storage tracking, prevents storage events from being sent to the client." |
| 1453 | }, |
| 1454 | { |
| 1455 | "name": "getDOMStorageItems", |
| 1456 | "parameters": [ |
| 1457 | { "name": "storageId", "$ref": "StorageId" } |
| 1458 | ], |
| 1459 | "returns": [ |
| 1460 | { "name": "entries", "type": "array", "items": { "$ref": "Item" } } |
| 1461 | ] |
| 1462 | }, |
| 1463 | { |
| 1464 | "name": "setDOMStorageItem", |
| 1465 | "parameters": [ |
| 1466 | { "name": "storageId", "$ref": "StorageId" }, |
| 1467 | { "name": "key", "type": "string" }, |
| 1468 | { "name": "value", "type": "string" } |
| 1469 | ] |
| 1470 | }, |
| 1471 | { |
| 1472 | "name": "removeDOMStorageItem", |
| 1473 | "parameters": [ |
| 1474 | { "name": "storageId", "$ref": "StorageId" }, |
| 1475 | { "name": "key", "type": "string" } |
| 1476 | ] |
| 1477 | } |
| 1478 | ], |
| 1479 | "events": [ |
| 1480 | { |
| 1481 | "name": "domStorageItemsCleared", |
| 1482 | "parameters": [ |
| 1483 | { "name": "storageId", "$ref": "StorageId" } |
| 1484 | ] |
| 1485 | }, |
| 1486 | { |
| 1487 | "name": "domStorageItemRemoved", |
| 1488 | "parameters": [ |
| 1489 | { "name": "storageId", "$ref": "StorageId" }, |
| 1490 | { "name": "key", "type": "string" } |
| 1491 | ] |
| 1492 | }, |
| 1493 | { |
| 1494 | "name": "domStorageItemAdded", |
| 1495 | "parameters": [ |
| 1496 | { "name": "storageId", "$ref": "StorageId" }, |
| 1497 | { "name": "key", "type": "string" }, |
| 1498 | { "name": "newValue", "type": "string" } |
| 1499 | ] |
| 1500 | }, |
| 1501 | { |
| 1502 | "name": "domStorageItemUpdated", |
| 1503 | "parameters": [ |
| 1504 | { "name": "storageId", "$ref": "StorageId" }, |
| 1505 | { "name": "key", "type": "string" }, |
| 1506 | { "name": "oldValue", "type": "string" }, |
| 1507 | { "name": "newValue", "type": "string" } |
| 1508 | ] |
| 1509 | } |
| 1510 | ] |
| 1511 | }, |
| 1512 | { |
| 1513 | "domain": "ApplicationCache", |
| 1514 | "hidden": true, |
| 1515 | "types": [ |
| 1516 | { |
| 1517 | "id": "ApplicationCacheResource", |
| 1518 | "type": "object", |
| 1519 | "description": "Detailed application cache resource information.", |
| 1520 | "properties": [ |
| 1521 | { "name": "url", "type": "string", "description": "Resource url." }, |
| 1522 | { "name": "size", "type": "integer", "description": "Resource size." }, |
| 1523 | { "name": "type", "type": "string", "description": "Resource type." } |
| 1524 | ] |
| 1525 | }, |
| 1526 | { |
| 1527 | "id": "ApplicationCache", |
| 1528 | "type": "object", |
| 1529 | "description": "Detailed application cache information.", |
| 1530 | "properties": [ |
| 1531 | { "name": "manifestURL", "type": "string", "description": "Manifest URL." }, |
| 1532 | { "name": "size", "type": "number", "description": "Application cache size." }, |
| 1533 | { "name": "creationTime", "type": "number", "description": "Application cache creation time." }, |
| 1534 | { "name": "updateTime", "type": "number", "description": "Application cache update time." }, |
| 1535 | { "name": "resources", "type": "array", "items": { "$ref": "ApplicationCacheResource" }, "description": "Application cache resources." } |
| 1536 | ] |
| 1537 | }, |
| 1538 | { |
| 1539 | "id": "FrameWithManifest", |
| 1540 | "type": "object", |
| 1541 | "description": "Frame identifier - manifest URL pair.", |
| 1542 | "properties": [ |
| 1543 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame identifier." }, |
| 1544 | { "name": "manifestURL", "type": "string", "description": "Manifest URL." }, |
| 1545 | { "name": "status", "type": "integer", "description": "Application cache status." } |
| 1546 | ] |
| 1547 | } |
| 1548 | ], |
| 1549 | "commands": [ |
| 1550 | { |
| 1551 | "name": "getFramesWithManifests", |
| 1552 | "returns": [ |
| 1553 | { "name": "frameIds", "type": "array", "items": { "$ref": "FrameWithManifest" }, "description": "Array of frame identifiers with manifest urls for each frame containing a document associated with some application cache." } |
| 1554 | ], |
| 1555 | "description": "Returns array of frame identifiers with manifest urls for each frame containing a document associated with some application cache." |
| 1556 | }, |
| 1557 | { |
| 1558 | "name": "enable", |
| 1559 | "description": "Enables application cache domain notifications." |
| 1560 | }, |
| 1561 | { |
| 1562 | "name": "getManifestForFrame", |
| 1563 | "parameters": [ |
| 1564 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose manifest is retrieved." } |
| 1565 | ], |
| 1566 | "returns": [ |
| 1567 | { "name": "manifestURL", "type": "string", "description": "Manifest URL for document in the given frame." } |
| 1568 | ], |
| 1569 | "description": "Returns manifest URL for document in the given frame." |
| 1570 | }, |
| 1571 | { |
| 1572 | "name": "getApplicationCacheForFrame", |
| 1573 | "parameters": [ |
| 1574 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose application cache is retrieved." } |
| 1575 | ], |
| 1576 | "returns": [ |
| 1577 | { "name": "applicationCache", "$ref": "ApplicationCache", "description": "Relevant application cache data for the document in given frame." } |
| 1578 | ], |
| 1579 | "description": "Returns relevant application cache data for the document in given frame." |
| 1580 | } |
| 1581 | ], |
| 1582 | "events": [ |
| 1583 | { |
| 1584 | "name": "applicationCacheStatusUpdated", |
| 1585 | "parameters": [ |
| 1586 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose application cache updated status." }, |
| 1587 | { "name": "manifestURL", "type": "string", "description": "Manifest URL." }, |
| 1588 | { "name": "status", "type": "integer", "description": "Updated application cache status." } |
| 1589 | ] |
| 1590 | }, |
| 1591 | { |
| 1592 | "name": "networkStateUpdated", |
| 1593 | "parameters": [ |
| 1594 | { "name": "isNowOnline", "type": "boolean" } |
| 1595 | ] |
| 1596 | } |
| 1597 | ] |
| 1598 | }, |
| 1599 | { |
| 1600 | "domain": "FileSystem", |
| 1601 | "hidden": true, |
| 1602 | "types": [ |
| 1603 | { |
| 1604 | "id": "Entry", |
| 1605 | "type": "object", |
| 1606 | "properties": [ |
| 1607 | { "name": "url", "type": "string", "description": "filesystem: URL for the entry." }, |
| 1608 | { "name": "name", "type": "string", "description": "The name of the file or directory." }, |
| 1609 | { "name": "isDirectory", "type": "boolean", "description": "True if the entry is a directory." }, |
| 1610 | { "name": "mimeType", "type": "string", "optional": true, "description": "MIME type of the entry, available for a file only." }, |
| 1611 | { "name": "resourceType", "$ref": "Page.ResourceType", "optional": true, "description": "ResourceType of the entry, available for a file only." }, |
| 1612 | { "name": "isTextFile", "type": "boolean", "optional": true, "description": "True if the entry is a text file." } |
| 1613 | ], |
| 1614 | "description": "Represents a browser side file or directory." |
| 1615 | }, |
| 1616 | { |
| 1617 | "id": "Metadata", |
| 1618 | "type": "object", |
| 1619 | "properties": [ |
| 1620 | { "name": "modificationTime", "type": "number", "description": "Modification time." }, |
| 1621 | { "name": "size", "type": "number", "description": "File size. This field is always zero for directories." } |
| 1622 | ], |
| 1623 | "description": "Represents metadata of a file or entry." |
| 1624 | } |
| 1625 | ], |
| 1626 | "commands": [ |
| 1627 | { |
| 1628 | "name": "enable", |
| 1629 | "description": "Enables events from backend." |
| 1630 | }, |
| 1631 | { |
| 1632 | "name": "disable", |
| 1633 | "description": "Disables events from backend." |
| 1634 | }, |
| 1635 | { |
| 1636 | "name": "requestFileSystemRoot", |
| 1637 | "async": true, |
| 1638 | "parameters": [ |
| 1639 | { "name": "origin", "type": "string", "description": "Security origin of requesting FileSystem. One of frames in current page needs to have this security origin." }, |
| 1640 | { "name": "type", "type": "string", "enum": ["temporary", "persistent"], "description": "FileSystem type of requesting FileSystem." } |
| 1641 | ], |
| 1642 | "returns": [ |
| 1643 | { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." }, |
| 1644 | { "name": "root", "$ref": "Entry", "optional": true, "description": "Contains root of the requested FileSystem if the command completed successfully." } |
| 1645 | ], |
| 1646 | "description": "Returns root directory of the FileSystem, if exists." |
| 1647 | }, |
| 1648 | { |
| 1649 | "name": "requestDirectoryContent", |
| 1650 | "async": true, |
| 1651 | "parameters": [ |
| 1652 | { "name": "url", "type": "string", "description": "URL of the directory that the frontend is requesting to read from." } |
| 1653 | ], |
| 1654 | "returns": [ |
| 1655 | { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." }, |
| 1656 | { "name": "entries", "type": "array", "items": { "$ref": "Entry" }, "optional": true, "description": "Contains all entries on directory if the command completed successfully." } |
| 1657 | ], |
| 1658 | "description": "Returns content of the directory." |
| 1659 | }, |
| 1660 | { |
| 1661 | "name": "requestMetadata", |
| 1662 | "async": true, |
| 1663 | "parameters": [ |
| 1664 | { "name": "url", "type": "string", "description": "URL of the entry that the frontend is requesting to get metadata from." } |
| 1665 | ], |
| 1666 | "returns": [ |
| 1667 | { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." }, |
| 1668 | { "name": "metadata", "$ref": "Metadata", "optional": true, "description": "Contains metadata of the entry if the command completed successfully." } |
| 1669 | ], |
| 1670 | "description": "Returns metadata of the entry." |
| 1671 | }, |
| 1672 | { |
| 1673 | "name": "requestFileContent", |
| 1674 | "async": true, |
| 1675 | "parameters": [ |
| 1676 | { "name": "url", "type": "string", "description": "URL of the file that the frontend is requesting to read from." }, |
| 1677 | { "name": "readAsText", "type": "boolean", "description": "True if the content should be read as text, otherwise the result will be returned as base64 encoded text." }, |
| 1678 | { "name": "start", "type": "integer", "optional": true, "description": "Specifies the start of range to read." }, |
| 1679 | { "name": "end", "type": "integer", "optional": true, "description": "Specifies the end of range to read exclusively." }, |
| 1680 | { "name": "charset", "type": "string", "optional": true, "description": "Overrides charset of the content when content is served as text." } |
| 1681 | ], |
| 1682 | "returns": [ |
| 1683 | { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." }, |
| 1684 | { "name": "content", "type": "string", "optional": true, "description": "Content of the file." }, |
| 1685 | { "name": "charset", "type": "string", "optional": true, "description": "Charset of the content if it is served as text." } |
| 1686 | ], |
| 1687 | "description": "Returns content of the file. Result should be sliced into [start, end)." |
| 1688 | }, |
| 1689 | { |
| 1690 | "name": "deleteEntry", |
| 1691 | "async": true, |
| 1692 | "parameters": [ |
| 1693 | { "name": "url", "type": "string", "description": "URL of the entry to delete." } |
| 1694 | ], |
| 1695 | "returns": [ |
| 1696 | { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise errorCode is set to FileError::ErrorCode value." } |
| 1697 | ], |
| 1698 | "description": "Deletes specified entry. If the entry is a directory, the agent deletes children recursively." |
| 1699 | } |
| 1700 | ] |
| 1701 | }, |
| 1702 | { |
| 1703 | "domain": "DOM", |
| 1704 | "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an <code>id</code>. This <code>id</code> can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.<p>Note that <code>iframe</code> owner elements will return corresponding document elements as their child nodes.</p>", |
| 1705 | "types": [ |
| 1706 | { |
| 1707 | "id": "NodeId", |
| 1708 | "type": "integer", |
| 1709 | "description": "Unique DOM node identifier." |
| 1710 | }, |
| 1711 | { |
| 1712 | "id": "BackendNodeId", |
| 1713 | "type": "integer", |
| 1714 | "description": "Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.", |
| 1715 | "hidden": true |
| 1716 | }, |
| 1717 | { |
| 1718 | "id": "Node", |
| 1719 | "type": "object", |
| 1720 | "properties": [ |
| 1721 | { "name": "nodeId", "$ref": "NodeId", "description": "Node identifier that is passed into the rest of the DOM messages as the <code>nodeId</code>. Backend will only push node with given <code>id</code> once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client." }, |
| 1722 | { "name": "nodeType", "type": "integer", "description": "<code>Node</code>'s nodeType." }, |
| 1723 | { "name": "nodeName", "type": "string", "description": "<code>Node</code>'s nodeName." }, |
| 1724 | { "name": "localName", "type": "string", "description": "<code>Node</code>'s localName." }, |
| 1725 | { "name": "nodeValue", "type": "string", "description": "<code>Node</code>'s nodeValue." }, |
| 1726 | { "name": "childNodeCount", "type": "integer", "optional": true, "description": "Child count for <code>Container</code> nodes." }, |
| 1727 | { "name": "children", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Child nodes of this node when requested with children." }, |
| 1728 | { "name": "attributes", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Attributes of the <code>Element</code> node in the form of flat array <code>[name1, value1, name2, value2]</code>." }, |
| 1729 | { "name": "documentURL", "type": "string", "optional": true, "description": "Document URL that <code>Document</code> or <code>FrameOwner</code> node points to." }, |
| 1730 | { "name": "baseURL", "type": "string", "optional": true, "description": "Base URL that <code>Document</code> or <code>FrameOwner</code> node uses for URL completion.", "hidden": true }, |
| 1731 | { "name": "publicId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s publicId." }, |
| 1732 | { "name": "systemId", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s systemId." }, |
| 1733 | { "name": "internalSubset", "type": "string", "optional": true, "description": "<code>DocumentType</code>'s internalSubset." }, |
| 1734 | { "name": "xmlVersion", "type": "string", "optional": true, "description": "<code>Document</code>'s XML version in case of XML documents." }, |
| 1735 | { "name": "name", "type": "string", "optional": true, "description": "<code>Attr</code>'s name." }, |
| 1736 | { "name": "value", "type": "string", "optional": true, "description": "<code>Attr</code>'s value." }, |
| 1737 | { "name": "frameId", "$ref": "Network.FrameId", "optional": true, "description": "Frame ID for frame owner elements.", "hidden": true }, |
| 1738 | { "name": "contentDocument", "$ref": "Node", "optional": true, "description": "Content document for frame owner elements." }, |
| 1739 | { "name": "shadowRoots", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Shadow root list for given element host.", "hidden": true }, |
| 1740 | { "name": "templateContent", "$ref": "Node", "optional": true, "description": "Content document fragment for template elements", "hidden": true } |
| 1741 | ], |
| 1742 | "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type." |
| 1743 | }, |
| 1744 | { |
| 1745 | "id": "EventListener", |
| 1746 | "type": "object", |
| 1747 | "hidden": true, |
| 1748 | "properties": [ |
| 1749 | { "name": "type", "type": "string", "description": "<code>EventListener</code>'s type." }, |
| 1750 | { "name": "useCapture", "type": "boolean", "description": "<code>EventListener</code>'s useCapture." }, |
| 1751 | { "name": "isAttribute", "type": "boolean", "description": "<code>EventListener</code>'s isAttribute." }, |
| 1752 | { "name": "nodeId", "$ref": "NodeId", "description": "Target <code>DOMNode</code> id." }, |
| 1753 | { "name": "handlerBody", "type": "string", "description": "Event handler function body." }, |
| 1754 | { "name": "location", "$ref": "Debugger.Location", "optional": true, "description": "Handler code location." }, |
| 1755 | { "name": "sourceName", "type": "string", "optional": true, "description": "Source script URL." }, |
| 1756 | { "name": "handler", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Event handler function value." } |
| 1757 | ], |
| 1758 | "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type." |
| 1759 | }, |
| 1760 | { |
| 1761 | "id": "RGBA", |
| 1762 | "type": "object", |
| 1763 | "properties": [ |
| 1764 | { "name": "r", "type": "integer", "description": "The red component, in the [0-255] range." }, |
| 1765 | { "name": "g", "type": "integer", "description": "The green component, in the [0-255] range." }, |
| 1766 | { "name": "b", "type": "integer", "description": "The blue component, in the [0-255] range." }, |
| 1767 | { "name": "a", "type": "number", "optional": true, "description": "The alpha component, in the [0-1] range (default: 1)." } |
| 1768 | ], |
| 1769 | "description": "A structure holding an RGBA color." |
| 1770 | }, |
| 1771 | { |
| 1772 | "id": "Quad", |
| 1773 | "type": "array", |
| 1774 | "items": { "type": "number" }, |
| 1775 | "minItems": 8, |
| 1776 | "maxItems": 8, |
| 1777 | "description": "An array of quad vertices, x immediately followed by y for each point, points clock-wise." |
| 1778 | }, |
| 1779 | { |
| 1780 | "id": "HighlightConfig", |
| 1781 | "type": "object", |
| 1782 | "properties": [ |
| 1783 | { "name": "showInfo", "type": "boolean", "optional": true, "description": "Whether the node info tooltip should be shown (default: false)." }, |
| 1784 | { "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." }, |
| 1785 | { "name": "paddingColor", "$ref": "RGBA", "optional": true, "description": "The padding highlight fill color (default: transparent)." }, |
| 1786 | { "name": "borderColor", "$ref": "RGBA", "optional": true, "description": "The border highlight fill color (default: transparent)." }, |
| 1787 | { "name": "marginColor", "$ref": "RGBA", "optional": true, "description": "The margin highlight fill color (default: transparent)." }, |
| 1788 | { "name": "eventTargetColor", "$ref": "RGBA", "optional": true, "hidden": true, "description": "The event target element highlight fill color (default: transparent)." } |
| 1789 | ], |
| 1790 | "description": "Configuration data for the highlighting of page elements." |
| 1791 | } |
| 1792 | ], |
| 1793 | "commands": [ |
| 1794 | { |
| 1795 | "name": "getDocument", |
| 1796 | "returns": [ |
| 1797 | { "name": "root", "$ref": "Node", "description": "Resulting node." } |
| 1798 | ], |
| 1799 | "description": "Returns the root DOM node to the caller." |
| 1800 | }, |
| 1801 | { |
| 1802 | "name": "requestChildNodes", |
| 1803 | "parameters": [ |
| 1804 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get children for." }, |
| 1805 | { "name": "depth", "type": "integer", "optional": true, "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", "hidden": true } |
| 1806 | ], |
| 1807 | "description": "Requests that children of the node with given id are returned to the caller in form of <code>setChildNodes</code> events where not only immediate children are retrieved, but all children down to the specified depth." |
| 1808 | }, |
| 1809 | { |
| 1810 | "name": "querySelector", |
| 1811 | "parameters": [ |
| 1812 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." }, |
| 1813 | { "name": "selector", "type": "string", "description": "Selector string." } |
| 1814 | ], |
| 1815 | "returns": [ |
| 1816 | { "name": "nodeId", "$ref": "NodeId", "description": "Query selector result." } |
| 1817 | ], |
| 1818 | "description": "Executes <code>querySelector</code> on a given node." |
| 1819 | }, |
| 1820 | { |
| 1821 | "name": "querySelectorAll", |
| 1822 | "parameters": [ |
| 1823 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to query upon." }, |
| 1824 | { "name": "selector", "type": "string", "description": "Selector string." } |
| 1825 | ], |
| 1826 | "returns": [ |
| 1827 | { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Query selector result." } |
| 1828 | ], |
| 1829 | "description": "Executes <code>querySelectorAll</code> on a given node." |
| 1830 | }, |
| 1831 | { |
| 1832 | "name": "setNodeName", |
| 1833 | "parameters": [ |
| 1834 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set name for." }, |
| 1835 | { "name": "name", "type": "string", "description": "New node's name." } |
| 1836 | ], |
| 1837 | "returns": [ |
| 1838 | { "name": "nodeId", "$ref": "NodeId", "description": "New node's id." } |
| 1839 | ], |
| 1840 | "description": "Sets node name for a node with given id." |
| 1841 | }, |
| 1842 | { |
| 1843 | "name": "setNodeValue", |
| 1844 | "parameters": [ |
| 1845 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set value for." }, |
| 1846 | { "name": "value", "type": "string", "description": "New node's value." } |
| 1847 | ], |
| 1848 | "description": "Sets node value for a node with given id." |
| 1849 | }, |
| 1850 | { |
| 1851 | "name": "removeNode", |
| 1852 | "parameters": [ |
| 1853 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to remove." } |
| 1854 | ], |
| 1855 | "description": "Removes node with given id." |
| 1856 | }, |
| 1857 | { |
| 1858 | "name": "setAttributeValue", |
| 1859 | "parameters": [ |
| 1860 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attribute for." }, |
| 1861 | { "name": "name", "type": "string", "description": "Attribute name." }, |
| 1862 | { "name": "value", "type": "string", "description": "Attribute value." } |
| 1863 | ], |
| 1864 | "description": "Sets attribute for an element with given id." |
| 1865 | }, |
| 1866 | { |
| 1867 | "name": "setAttributesAsText", |
| 1868 | "parameters": [ |
| 1869 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to set attributes for." }, |
| 1870 | { "name": "text", "type": "string", "description": "Text with a number of attributes. Will parse this text using HTML parser." }, |
| 1871 | { "name": "name", "type": "string", "optional": true, "description": "Attribute name to replace with new attributes derived from text in case text parsed successfully." } |
| 1872 | ], |
| 1873 | "description": "Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs." |
| 1874 | }, |
| 1875 | { |
| 1876 | "name": "removeAttribute", |
| 1877 | "parameters": [ |
| 1878 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element to remove attribute from." }, |
| 1879 | { "name": "name", "type": "string", "description": "Name of the attribute to remove." } |
| 1880 | ], |
| 1881 | "description": "Removes attribute with given name from an element with given id." |
| 1882 | }, |
| 1883 | { |
| 1884 | "name": "getEventListenersForNode", |
| 1885 | "parameters": [ |
| 1886 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get listeners for." }, |
| 1887 | { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name for handler value. Handler value is not returned without this parameter specified." } |
| 1888 | ], |
| 1889 | "returns": [ |
| 1890 | { "name": "listeners", "type": "array", "items": { "$ref": "EventListener"}, "description": "Array of relevant listeners." } |
| 1891 | ], |
| 1892 | "description": "Returns event listeners relevant to the node.", |
| 1893 | "hidden": true |
| 1894 | }, |
| 1895 | { |
| 1896 | "name": "getOuterHTML", |
| 1897 | "parameters": [ |
| 1898 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get markup for." } |
| 1899 | ], |
| 1900 | "returns": [ |
| 1901 | { "name": "outerHTML", "type": "string", "description": "Outer HTML markup." } |
| 1902 | ], |
| 1903 | "description": "Returns node's HTML markup." |
| 1904 | }, |
| 1905 | { |
| 1906 | "name": "setOuterHTML", |
| 1907 | "parameters": [ |
| 1908 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to set markup for." }, |
| 1909 | { "name": "outerHTML", "type": "string", "description": "Outer HTML markup to set." } |
| 1910 | ], |
| 1911 | "description": "Sets node HTML markup, returns new node id." |
| 1912 | }, |
| 1913 | { |
| 1914 | "name": "performSearch", |
| 1915 | "parameters": [ |
| 1916 | { "name": "query", "type": "string", "description": "Plain text or query selector or XPath search query." } |
| 1917 | ], |
| 1918 | "returns": [ |
| 1919 | { "name": "searchId", "type": "string", "description": "Unique search session identifier." }, |
| 1920 | { "name": "resultCount", "type": "integer", "description": "Number of search results." } |
| 1921 | ], |
| 1922 | "description": "Searches for a given string in the DOM tree. Use <code>getSearchResults</code> to access search results or <code>cancelSearch</code> to end this search session.", |
| 1923 | "hidden": true |
| 1924 | }, |
| 1925 | { |
| 1926 | "name": "getSearchResults", |
| 1927 | "parameters": [ |
| 1928 | { "name": "searchId", "type": "string", "description": "Unique search session identifier." }, |
| 1929 | { "name": "fromIndex", "type": "integer", "description": "Start index of the search result to be returned." }, |
| 1930 | { "name": "toIndex", "type": "integer", "description": "End index of the search result to be returned." } |
| 1931 | ], |
| 1932 | "returns": [ |
| 1933 | { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the search result nodes." } |
| 1934 | ], |
| 1935 | "description": "Returns search results from given <code>fromIndex</code> to given <code>toIndex</code> from the sarch with the given identifier.", |
| 1936 | "hidden": true |
| 1937 | }, |
| 1938 | { |
| 1939 | "name": "discardSearchResults", |
| 1940 | "parameters": [ |
| 1941 | { "name": "searchId", "type": "string", "description": "Unique search session identifier." } |
| 1942 | ], |
| 1943 | "description": "Discards search results from the session with the given id. <code>getSearchResults</code> should no longer be called for that search.", |
| 1944 | "hidden": true |
| 1945 | }, |
| 1946 | { |
| 1947 | "name": "requestNode", |
| 1948 | "parameters": [ |
| 1949 | { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "JavaScript object id to convert into node." } |
| 1950 | ], |
| 1951 | "returns": [ |
| 1952 | { "name": "nodeId", "$ref": "NodeId", "description": "Node id for given object." } |
| 1953 | ], |
| 1954 | "description": "Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of <code>setChildNodes</code> notifications." |
| 1955 | }, |
| 1956 | { |
| 1957 | "name": "setInspectModeEnabled", |
| 1958 | "hidden": true, |
| 1959 | "parameters": [ |
| 1960 | { "name": "enabled", "type": "boolean", "description": "True to enable inspection mode, false to disable it." }, |
| 1961 | { "name": "highlightConfig", "$ref": "HighlightConfig", "optional": true, "description": "A descriptor for the highlight appearance of hovered-over nodes. May be omitted if <code>enabled == false</code>." } |
| 1962 | ], |
| 1963 | "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection." |
| 1964 | }, |
| 1965 | { |
| 1966 | "name": "highlightRect", |
| 1967 | "parameters": [ |
| 1968 | { "name": "x", "type": "integer", "description": "X coordinate" }, |
| 1969 | { "name": "y", "type": "integer", "description": "Y coordinate" }, |
| 1970 | { "name": "width", "type": "integer", "description": "Rectangle width" }, |
| 1971 | { "name": "height", "type": "integer", "description": "Rectangle height" }, |
| 1972 | { "name": "color", "$ref": "RGBA", "optional": true, "description": "The highlight fill color (default: transparent)." }, |
| 1973 | { "name": "outlineColor", "$ref": "RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." } |
| 1974 | ], |
| 1975 | "description": "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport." |
| 1976 | }, |
| 1977 | { |
| 1978 | "name": "highlightQuad", |
| 1979 | "parameters": [ |
| 1980 | { "name": "quad", "$ref": "Quad", "description": "Quad to highlight" }, |
| 1981 | { "name": "color", "$ref": "RGBA", "optional": true, "description": "The highlight fill color (default: transparent)." }, |
| 1982 | { "name": "outlineColor", "$ref": "RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." } |
| 1983 | ], |
| 1984 | "description": "Highlights given quad. Coordinates are absolute with respect to the main frame viewport." |
| 1985 | }, |
| 1986 | { |
| 1987 | "name": "highlightNode", |
| 1988 | "parameters": [ |
| 1989 | { "name": "highlightConfig", "$ref": "HighlightConfig", "description": "A descriptor for the highlight appearance." }, |
| 1990 | { "name": "nodeId", "$ref": "NodeId", "optional": true, "description": "Identifier of the node to highlight." }, |
| 1991 | { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "optional": true, "description": "JavaScript object id of the node to be highlighted.", "hidden": true } |
| 1992 | ], |
| 1993 | "description": "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified." |
| 1994 | }, |
| 1995 | { |
| 1996 | "name": "hideHighlight", |
| 1997 | "description": "Hides DOM node highlight." |
| 1998 | }, |
| 1999 | { |
| 2000 | "name": "highlightFrame", |
| 2001 | "parameters": [ |
| 2002 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame to highlight." }, |
| 2003 | { "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." }, |
| 2004 | { "name": "contentOutlineColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight outline color (default: transparent)." } |
| 2005 | ], |
| 2006 | "description": "Highlights owner element of the frame with given id.", |
| 2007 | "hidden": true |
| 2008 | }, |
| 2009 | { |
| 2010 | "name": "pushNodeByPathToFrontend", |
| 2011 | "parameters": [ |
| 2012 | { "name": "path", "type": "string", "description": "Path to node in the proprietary format." } |
| 2013 | ], |
| 2014 | "returns": [ |
| 2015 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node for given path." } |
| 2016 | ], |
| 2017 | "description": "Requests that the node is sent to the caller given its path. // FIXME, use XPath", |
| 2018 | "hidden": true |
| 2019 | }, |
| 2020 | { |
| 2021 | "name": "pushNodeByBackendIdToFrontend", |
| 2022 | "parameters": [ |
| 2023 | { "name": "backendNodeId", "$ref": "BackendNodeId", "description": "The backend node id of the node." } |
| 2024 | ], |
| 2025 | "returns": [ |
| 2026 | { "name": "nodeId", "$ref": "NodeId", "description": "The pushed node's id." } |
| 2027 | ], |
| 2028 | "description": "Requests that the node is sent to the caller given its backend node id.", |
| 2029 | "hidden": true |
| 2030 | }, |
| 2031 | { |
| 2032 | "name": "releaseBackendNodeIds", |
| 2033 | "parameters": [ |
| 2034 | { "name": "nodeGroup", "type": "string", "description": "The backend node ids group name." } |
| 2035 | ], |
| 2036 | "description": "Requests that group of <code>BackendNodeIds</code> is released.", |
| 2037 | "hidden": true |
| 2038 | }, |
| 2039 | { |
| 2040 | "name": "resolveNode", |
| 2041 | "parameters": [ |
| 2042 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to resolve." }, |
| 2043 | { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." } |
| 2044 | ], |
| 2045 | "returns": [ |
| 2046 | { "name": "object", "$ref": "Runtime.RemoteObject", "description": "JavaScript object wrapper for given node." } |
| 2047 | ], |
| 2048 | "description": "Resolves JavaScript node object for given node id." |
| 2049 | }, |
| 2050 | { |
| 2051 | "name": "getAttributes", |
| 2052 | "parameters": [ |
| 2053 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to retrieve attibutes for." } |
| 2054 | ], |
| 2055 | "returns": [ |
| 2056 | { "name": "attributes", "type": "array", "items": { "type": "string" }, "description": "An interleaved array of node attribute names and values." } |
| 2057 | ], |
| 2058 | "description": "Returns attributes for the specified node." |
| 2059 | }, |
| 2060 | { |
| 2061 | "name": "moveTo", |
| 2062 | "parameters": [ |
| 2063 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to drop." }, |
| 2064 | { "name": "targetNodeId", "$ref": "NodeId", "description": "Id of the element to drop into." }, |
| 2065 | { "name": "insertBeforeNodeId", "$ref": "NodeId", "optional": true, "description": "Drop node before given one." } |
| 2066 | ], |
| 2067 | "returns": [ |
| 2068 | { "name": "nodeId", "$ref": "NodeId", "description": "New id of the moved node." } |
| 2069 | ], |
| 2070 | "description": "Moves node into the new container, places it before the given anchor." |
| 2071 | }, |
| 2072 | { |
| 2073 | "name": "undo", |
| 2074 | "description": "Undoes the last performed action.", |
| 2075 | "hidden": true |
| 2076 | }, |
| 2077 | { |
| 2078 | "name": "redo", |
| 2079 | "description": "Re-does the last undone action.", |
| 2080 | "hidden": true |
| 2081 | }, |
| 2082 | { |
| 2083 | "name": "markUndoableState", |
| 2084 | "description": "Marks last undoable state.", |
| 2085 | "hidden": true |
| 2086 | }, |
| 2087 | { |
| 2088 | "name": "focus", |
| 2089 | "parameters": [ |
| 2090 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to focus." } |
| 2091 | ], |
| 2092 | "description": "Focuses the given element.", |
| 2093 | "hidden": true |
| 2094 | }, |
| 2095 | { |
| 2096 | "name": "setFileInputFiles", |
| 2097 | "parameters": [ |
| 2098 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the file input node to set files for." }, |
| 2099 | { "name": "files", "type": "array", "items": { "type": "string" }, "description": "Array of file paths to set." } |
| 2100 | ], |
| 2101 | "description": "Sets files for the given file input element.", |
| 2102 | "hidden": true |
| 2103 | } |
| 2104 | ], |
| 2105 | "events": [ |
| 2106 | { |
| 2107 | "name": "documentUpdated", |
| 2108 | "description": "Fired when <code>Document</code> has been totally updated. Node ids are no longer valid." |
| 2109 | }, |
| 2110 | { |
| 2111 | "name": "inspectNodeRequested", |
| 2112 | "parameters": [ |
| 2113 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to inspect." } |
| 2114 | ], |
| 2115 | "description": "Fired when the node should be inspected. This happens after call to <code>setInspectModeEnabled</code>." |
| 2116 | }, |
| 2117 | { |
| 2118 | "name": "setChildNodes", |
| 2119 | "parameters": [ |
| 2120 | { "name": "parentId", "$ref": "NodeId", "description": "Parent node id to populate with children." }, |
| 2121 | { "name": "nodes", "type": "array", "items": { "$ref": "Node"}, "description": "Child nodes array." } |
| 2122 | ], |
| 2123 | "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids." |
| 2124 | }, |
| 2125 | { |
| 2126 | "name": "attributeModified", |
| 2127 | "parameters": [ |
| 2128 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." }, |
| 2129 | { "name": "name", "type": "string", "description": "Attribute name." }, |
| 2130 | { "name": "value", "type": "string", "description": "Attribute value." } |
| 2131 | ], |
| 2132 | "description": "Fired when <code>Element</code>'s attribute is modified." |
| 2133 | }, |
| 2134 | { |
| 2135 | "name": "attributeRemoved", |
| 2136 | "parameters": [ |
| 2137 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." }, |
| 2138 | { "name": "name", "type": "string", "description": "A ttribute name." } |
| 2139 | ], |
| 2140 | "description": "Fired when <code>Element</code>'s attribute is removed." |
| 2141 | }, |
| 2142 | { |
| 2143 | "name": "inlineStyleInvalidated", |
| 2144 | "parameters": [ |
| 2145 | { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the nodes for which the inline styles have been invalidated." } |
| 2146 | ], |
| 2147 | "description": "Fired when <code>Element</code>'s inline style is modified via a CSS property modification.", |
| 2148 | "hidden": true |
| 2149 | }, |
| 2150 | { |
| 2151 | "name": "characterDataModified", |
| 2152 | "parameters": [ |
| 2153 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." }, |
| 2154 | { "name": "characterData", "type": "string", "description": "New text value." } |
| 2155 | ], |
| 2156 | "description": "Mirrors <code>DOMCharacterDataModified</code> event." |
| 2157 | }, |
| 2158 | { |
| 2159 | "name": "childNodeCountUpdated", |
| 2160 | "parameters": [ |
| 2161 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has changed." }, |
| 2162 | { "name": "childNodeCount", "type": "integer", "description": "New node count." } |
| 2163 | ], |
| 2164 | "description": "Fired when <code>Container</code>'s child node count has changed." |
| 2165 | }, |
| 2166 | { |
| 2167 | "name": "childNodeInserted", |
| 2168 | "parameters": [ |
| 2169 | { "name": "parentNodeId", "$ref": "NodeId", "description": "Id of the node that has changed." }, |
| 2170 | { "name": "previousNodeId", "$ref": "NodeId", "description": "If of the previous siblint." }, |
| 2171 | { "name": "node", "$ref": "Node", "description": "Inserted node data." } |
| 2172 | ], |
| 2173 | "description": "Mirrors <code>DOMNodeInserted</code> event." |
| 2174 | }, |
| 2175 | { |
| 2176 | "name": "childNodeRemoved", |
| 2177 | "parameters": [ |
| 2178 | { "name": "parentNodeId", "$ref": "NodeId", "description": "Parent id." }, |
| 2179 | { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node that has been removed." } |
| 2180 | ], |
| 2181 | "description": "Mirrors <code>DOMNodeRemoved</code> event." |
| 2182 | }, |
| 2183 | { |
| 2184 | "name": "shadowRootPushed", |
| 2185 | "parameters": [ |
| 2186 | { "name": "hostId", "$ref": "NodeId", "description": "Host element id." }, |
| 2187 | { "name": "root", "$ref": "Node", "description": "Shadow root." } |
| 2188 | ], |
| 2189 | "description": "Called when shadow root is pushed into the element.", |
| 2190 | "hidden": true |
| 2191 | }, |
| 2192 | { |
| 2193 | "name": "shadowRootPopped", |
| 2194 | "parameters": [ |
| 2195 | { "name": "hostId", "$ref": "NodeId", "description": "Host element id." }, |
| 2196 | { "name": "rootId", "$ref": "NodeId", "description": "Shadow root id." } |
| 2197 | ], |
| 2198 | "description": "Called when shadow root is popped from the element.", |
| 2199 | "hidden": true |
| 2200 | } |
| 2201 | ] |
| 2202 | }, |
| 2203 | { |
| 2204 | "domain": "CSS", |
| 2205 | "hidden": true, |
| 2206 | "description": "This domain exposes CSS read/write operations. All CSS objects (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 of the <code>styleSheetAdded</code>/<code>styleSheetRemoved</code> events) and subsequently load the required stylesheet contents using the <code>getStyleSheet[Text]()</code> methods.", |
| 2207 | "types": [ |
| 2208 | { |
| 2209 | "id": "StyleSheetId", |
| 2210 | "type": "string" |
| 2211 | }, |
| 2212 | { |
| 2213 | "id": "CSSStyleId", |
| 2214 | "type": "object", |
| 2215 | "properties": [ |
| 2216 | { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Enclosing stylesheet identifier." }, |
| 2217 | { "name": "ordinal", "type": "integer", "description": "The style ordinal within the stylesheet." } |
| 2218 | ], |
| 2219 | "description": "This object identifies a CSS style in a unique way." |
| 2220 | }, |
| 2221 | { |
| 2222 | "id": "StyleSheetOrigin", |
| 2223 | "type": "string", |
| 2224 | "enum": ["user", "user-agent", "inspector", "regular"], |
| 2225 | "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." |
| 2226 | }, |
| 2227 | { |
| 2228 | "id": "CSSRuleId", |
| 2229 | "type": "object", |
| 2230 | "properties": [ |
| 2231 | { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Enclosing stylesheet identifier." }, |
| 2232 | { "name": "ordinal", "type": "integer", "description": "The rule ordinal within the stylesheet." } |
| 2233 | ], |
| 2234 | "description": "This object identifies a CSS rule in a unique way." |
| 2235 | }, |
| 2236 | { |
| 2237 | "id": "PseudoIdMatches", |
| 2238 | "type": "object", |
| 2239 | "properties": [ |
| 2240 | { "name": "pseudoId", "type": "integer", "description": "Pseudo style identifier (see <code>enum PseudoId</code> in <code>RenderStyleConstants.h</code>)."}, |
| 2241 | { "name": "matches", "type": "array", "items": { "$ref": "RuleMatch" }, "description": "Matches of CSS rules applicable to the pseudo style."} |
| 2242 | ], |
| 2243 | "description": "CSS rule collection for a single pseudo style." |
| 2244 | }, |
| 2245 | { |
| 2246 | "id": "InheritedStyleEntry", |
| 2247 | "type": "object", |
| 2248 | "properties": [ |
| 2249 | { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "The ancestor node's inline style, if any, in the style inheritance chain." }, |
| 2250 | { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "RuleMatch" }, "description": "Matches of CSS rules matching the ancestor node in the style inheritance chain." } |
| 2251 | ], |
| 2252 | "description": "CSS rule collection for a single pseudo style." |
| 2253 | }, |
| 2254 | { |
| 2255 | "id": "RuleMatch", |
| 2256 | "type": "object", |
| 2257 | "properties": [ |
| 2258 | { "name": "rule", "$ref": "CSSRule", "description": "CSS rule in the match." }, |
| 2259 | { "name": "matchingSelectors", "type": "array", "items": { "type": "integer" }, "description": "Matching selector indices in the rule's selectorList selectors (0-based)." } |
| 2260 | ], |
| 2261 | "description": "Match data for a CSS rule." |
| 2262 | }, |
| 2263 | { |
| 2264 | "id": "SelectorList", |
| 2265 | "type": "object", |
| 2266 | "properties": [ |
| 2267 | { "name": "selectors", "type": "array", "items": { "type": "string" }, "description": "Selectors in the list." }, |
| 2268 | { "name": "text", "type": "string", "description": "Rule selector text." }, |
| 2269 | { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Rule selector range in the underlying resource (if available)." } |
| 2270 | ], |
| 2271 | "description": "Selector list data." |
| 2272 | }, |
| 2273 | { |
| 2274 | "id": "CSSStyleAttribute", |
| 2275 | "type": "object", |
| 2276 | "properties": [ |
| 2277 | { "name": "name", "type": "string", "description": "DOM attribute name (e.g. \"width\")."}, |
| 2278 | { "name": "style", "$ref": "CSSStyle", "description": "CSS style generated by the respective DOM attribute."} |
| 2279 | ], |
| 2280 | "description": "CSS style information for a DOM style attribute." |
| 2281 | }, |
| 2282 | { |
| 2283 | "id": "CSSStyleSheetHeader", |
| 2284 | "type": "object", |
| 2285 | "properties": [ |
| 2286 | { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The stylesheet identifier."}, |
| 2287 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Owner frame identifier."}, |
| 2288 | { "name": "sourceURL", "type": "string", "description": "Stylesheet resource URL."}, |
Torne (Richard Coles) | 81a5157 | 2013-05-13 16:52:28 +0100 | [diff] [blame] | 2289 | { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with the stylesheet (if any)." }, |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 2290 | { "name": "origin", "$ref": "StyleSheetOrigin", "description": "Stylesheet origin."}, |
| 2291 | { "name": "title", "type": "string", "description": "Stylesheet title."}, |
Torne (Richard Coles) | 93ac45c | 2013-05-29 14:40:20 +0100 | [diff] [blame] | 2292 | { "name": "disabled", "type": "boolean", "description": "Denotes whether the stylesheet is disabled."}, |
| 2293 | { "name": "hasSourceURL", "type": "boolean", "optional": true, "description": "Whether the sourceURL field value comes from the sourceURL comment." }, |
| 2294 | { "name": "isInline", "type": "boolean", "description": "Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags." }, |
| 2295 | { "name": "startLine", "type": "number", "description": "Line offset of the stylesheet within the resource (zero based)." }, |
| 2296 | { "name": "startColumn", "type": "number", "description": "Column offset of the stylesheet within the resource (zero based)." } |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 2297 | ], |
| 2298 | "description": "CSS stylesheet metainformation." |
| 2299 | }, |
| 2300 | { |
| 2301 | "id": "CSSStyleSheetBody", |
| 2302 | "type": "object", |
| 2303 | "properties": [ |
| 2304 | { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The stylesheet identifier."}, |
| 2305 | { "name": "rules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "Stylesheet resource URL."}, |
| 2306 | { "name": "text", "type": "string", "optional": true, "description": "Stylesheet resource contents (if available)."} |
| 2307 | ], |
| 2308 | "description": "CSS stylesheet contents." |
| 2309 | }, |
| 2310 | { |
| 2311 | "id": "CSSRule", |
| 2312 | "type": "object", |
| 2313 | "properties": [ |
| 2314 | { "name": "ruleId", "$ref": "CSSRuleId", "optional": true, "description": "The CSS rule identifier (absent for user agent stylesheet and user-specified stylesheet rules)."}, |
| 2315 | { "name": "selectorList", "$ref": "SelectorList", "description": "Rule selector data." }, |
| 2316 | { "name": "sourceURL", "type": "string", "optional": true, "description": "Parent stylesheet resource URL (for regular rules)."}, |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 2317 | { "name": "origin", "$ref": "StyleSheetOrigin", "description": "Parent stylesheet's origin."}, |
| 2318 | { "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." }, |
| 2319 | { "name": "media", "type": "array", "items": { "$ref": "CSSMedia" }, "optional": true, "description": "Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards." } |
| 2320 | ], |
| 2321 | "description": "CSS rule representation." |
| 2322 | }, |
| 2323 | { |
| 2324 | "id": "SourceRange", |
| 2325 | "type": "object", |
| 2326 | "properties": [ |
| 2327 | { "name": "startLine", "type": "integer", "description": "Start line of range." }, |
| 2328 | { "name": "startColumn", "type": "integer", "description": "Start column of range (inclusive)." }, |
| 2329 | { "name": "endLine", "type": "integer", "description": "End line of range" }, |
| 2330 | { "name": "endColumn", "type": "integer", "description": "End column of range (exclusive)." } |
| 2331 | ], |
Torne (Richard Coles) | 93ac45c | 2013-05-29 14:40:20 +0100 | [diff] [blame] | 2332 | "description": "Text range within a resource. All numbers are zero-based." |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 2333 | }, |
| 2334 | { |
| 2335 | "id": "ShorthandEntry", |
| 2336 | "type": "object", |
| 2337 | "properties": [ |
| 2338 | { "name": "name", "type": "string", "description": "Shorthand name." }, |
| 2339 | { "name": "value", "type": "string", "description": "Shorthand value." } |
| 2340 | ] |
| 2341 | }, |
| 2342 | { |
| 2343 | "id": "CSSPropertyInfo", |
| 2344 | "type": "object", |
| 2345 | "properties": [ |
| 2346 | { "name": "name", "type": "string", "description": "Property name." }, |
| 2347 | { "name": "longhands", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Longhand property names." } |
| 2348 | ] |
| 2349 | }, |
| 2350 | { |
| 2351 | "id": "CSSComputedStyleProperty", |
| 2352 | "type": "object", |
| 2353 | "properties": [ |
| 2354 | { "name": "name", "type": "string", "description": "Computed style property name." }, |
| 2355 | { "name": "value", "type": "string", "description": "Computed style property value." } |
| 2356 | ] |
| 2357 | }, |
| 2358 | { |
| 2359 | "id": "CSSStyle", |
| 2360 | "type": "object", |
| 2361 | "properties": [ |
| 2362 | { "name": "styleId", "$ref": "CSSStyleId", "optional": true, "description": "The CSS style identifier (absent for attribute styles)." }, |
| 2363 | { "name": "cssProperties", "type": "array", "items": { "$ref": "CSSProperty" }, "description": "CSS properties in the style." }, |
| 2364 | { "name": "shorthandEntries", "type": "array", "items": { "$ref": "ShorthandEntry" }, "description": "Computed values for all shorthands found in the style." }, |
| 2365 | { "name": "cssText", "type": "string", "optional": true, "description": "Style declaration text (if available)." }, |
| 2366 | { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if available)." }, |
| 2367 | { "name": "width", "type": "string", "optional": true, "description": "The effective \"width\" property value from this style." }, |
| 2368 | { "name": "height", "type": "string", "optional": true, "description": "The effective \"height\" property value from this style." } |
| 2369 | ], |
| 2370 | "description": "CSS style representation." |
| 2371 | }, |
| 2372 | { |
| 2373 | "id": "CSSProperty", |
| 2374 | "type": "object", |
| 2375 | "properties": [ |
| 2376 | { "name": "name", "type": "string", "description": "The property name." }, |
| 2377 | { "name": "value", "type": "string", "description": "The property value." }, |
| 2378 | { "name": "priority", "type": "string", "optional": true, "description": "The property priority (implies \"\" if absent)." }, |
| 2379 | { "name": "implicit", "type": "boolean", "optional": true, "description": "Whether the property is implicit (implies <code>false</code> if absent)." }, |
| 2380 | { "name": "text", "type": "string", "optional": true, "description": "The full property text as specified in the style." }, |
| 2381 | { "name": "parsedOk", "type": "boolean", "optional": true, "description": "Whether the property is understood by the browser (implies <code>true</code> if absent)." }, |
| 2382 | { "name": "status", "type": "string", "enum": ["active", "inactive", "disabled", "style"], "optional": true, "description": "The property status: \"active\" if the property is effective in the style, \"inactive\" if the property is overridden by a same-named property in this style later on, \"disabled\" if the property is disabled by the user, \"style\" (implied if absent) if the property is reported by the browser rather than by the CSS source parser." }, |
| 2383 | { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The entire property range in the enclosing style declaration (if available)." } |
| 2384 | ], |
| 2385 | "description": "CSS property declaration data." |
| 2386 | }, |
| 2387 | { |
| 2388 | "id": "CSSMedia", |
| 2389 | "type": "object", |
| 2390 | "properties": [ |
| 2391 | { "name": "text", "type": "string", "description": "Media query text." }, |
| 2392 | { "name": "source", "type": "string", "enum": ["mediaRule", "importRule", "linkedSheet", "inlineSheet"], "description": "Source of the media query: \"mediaRule\" if specified by a @media rule, \"importRule\" if specified by an @import rule, \"linkedSheet\" if specified by a \"media\" attribute in a linked stylesheet's LINK tag, \"inlineSheet\" if specified by a \"media\" attribute in an inline stylesheet's STYLE tag." }, |
| 2393 | { "name": "sourceURL", "type": "string", "optional": true, "description": "URL of the document containing the media query description." }, |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 2394 | { "name": "sourceLine", "type": "integer", "optional": true, "description": "Line in the document containing the media query (not defined for the \"linkedSheet\" source)." }, |
| 2395 | { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The associated rule (@media or @import) header range in the enclosing stylesheet (if available)." } |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 2396 | ], |
| 2397 | "description": "CSS media query descriptor." |
| 2398 | }, |
| 2399 | { |
| 2400 | "id": "SelectorProfileEntry", |
| 2401 | "type": "object", |
| 2402 | "properties": [ |
| 2403 | { "name": "selector", "type": "string", "description": "CSS selector of the corresponding rule." }, |
| 2404 | { "name": "url", "type": "string", "description": "URL of the resource containing the corresponding rule." }, |
| 2405 | { "name": "lineNumber", "type": "integer", "description": "Selector line number in the resource for the corresponding rule." }, |
| 2406 | { "name": "time", "type": "number", "description": "Total time this rule handling contributed to the browser running time during profiling (in milliseconds.)" }, |
| 2407 | { "name": "hitCount", "type": "integer", "description": "Number of times this rule was considered a candidate for matching against DOM elements." }, |
| 2408 | { "name": "matchCount", "type": "integer", "description": "Number of times this rule actually matched a DOM element." } |
| 2409 | ], |
| 2410 | "description": "CSS selector profile entry." |
| 2411 | }, |
| 2412 | { |
| 2413 | "id": "SelectorProfile", |
| 2414 | "type": "object", |
| 2415 | "properties": [ |
| 2416 | { "name": "totalTime", "type": "number", "description": "Total processing time for all selectors in the profile (in milliseconds.)" }, |
| 2417 | { "name": "data", "type": "array", "items": { "$ref": "SelectorProfileEntry" }, "description": "CSS selector profile entries." } |
| 2418 | ] |
| 2419 | }, |
| 2420 | { |
| 2421 | "id": "Region", |
| 2422 | "type": "object", |
| 2423 | "properties": [ |
| 2424 | { "name": "regionOverset", "type": "string", "enum": ["overset", "fit", "empty"], "description": "The \"overset\" attribute of a Named Flow." }, |
| 2425 | { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The corresponding DOM node id." } |
| 2426 | ], |
| 2427 | "description": "This object represents a region that flows from a Named Flow.", |
| 2428 | "hidden": true |
| 2429 | }, |
| 2430 | { |
| 2431 | "id": "NamedFlow", |
| 2432 | "type": "object", |
| 2433 | "properties": [ |
| 2434 | { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." }, |
| 2435 | { "name": "name", "type": "string", "description": "Named Flow identifier." }, |
| 2436 | { "name": "overset", "type": "boolean", "description": "The \"overset\" attribute of a Named Flow." }, |
| 2437 | { "name": "content", "type": "array", "items": { "$ref": "DOM.NodeId" }, "description": "An array of nodes that flow into the Named Flow." }, |
| 2438 | { "name": "regions", "type": "array", "items": { "$ref": "Region" }, "description": "An array of regions associated with the Named Flow." } |
| 2439 | ], |
| 2440 | "description": "This object represents a Named Flow.", |
| 2441 | "hidden": true |
| 2442 | } |
| 2443 | ], |
| 2444 | "commands": [ |
| 2445 | { |
| 2446 | "name": "enable", |
| 2447 | "description": "Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received." |
| 2448 | }, |
| 2449 | { |
| 2450 | "name": "disable", |
| 2451 | "description": "Disables the CSS agent for the given page." |
| 2452 | }, |
| 2453 | { |
| 2454 | "name": "getMatchedStylesForNode", |
| 2455 | "parameters": [ |
| 2456 | { "name": "nodeId", "$ref": "DOM.NodeId" }, |
| 2457 | { "name": "includePseudo", "type": "boolean", "optional": true, "description": "Whether to include pseudo styles (default: true)." }, |
| 2458 | { "name": "includeInherited", "type": "boolean", "optional": true, "description": "Whether to include inherited styles (default: true)." } |
| 2459 | ], |
| 2460 | "returns": [ |
| 2461 | { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "RuleMatch" }, "optional": true, "description": "CSS rules matching this node, from all applicable stylesheets." }, |
| 2462 | { "name": "pseudoElements", "type": "array", "items": { "$ref": "PseudoIdMatches" }, "optional": true, "description": "Pseudo style matches for this node." }, |
| 2463 | { "name": "inherited", "type": "array", "items": { "$ref": "InheritedStyleEntry" }, "optional": true, "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root)." } |
| 2464 | ], |
| 2465 | "description": "Returns requested styles for a DOM node identified by <code>nodeId</code>." |
| 2466 | }, |
| 2467 | { |
| 2468 | "name": "getInlineStylesForNode", |
| 2469 | "parameters": [ |
| 2470 | { "name": "nodeId", "$ref": "DOM.NodeId" } |
| 2471 | ], |
| 2472 | "returns": [ |
| 2473 | { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "Inline style for the specified DOM node." }, |
| 2474 | { "name": "attributesStyle", "$ref": "CSSStyle", "optional": true, "description": "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."} |
| 2475 | ], |
| 2476 | "description": "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM attributes) for a DOM node identified by <code>nodeId</code>." |
| 2477 | }, |
| 2478 | { |
| 2479 | "name": "getComputedStyleForNode", |
| 2480 | "parameters": [ |
| 2481 | { "name": "nodeId", "$ref": "DOM.NodeId" } |
| 2482 | ], |
| 2483 | "returns": [ |
| 2484 | { "name": "computedStyle", "type": "array", "items": { "$ref": "CSSComputedStyleProperty" }, "description": "Computed style for the specified DOM node." } |
| 2485 | ], |
| 2486 | "description": "Returns the computed style for a DOM node identified by <code>nodeId</code>." |
| 2487 | }, |
| 2488 | { |
| 2489 | "name": "getAllStyleSheets", |
| 2490 | "returns": [ |
| 2491 | { "name": "headers", "type": "array", "items": { "$ref": "CSSStyleSheetHeader" }, "description": "Descriptor entries for all available stylesheets." } |
| 2492 | ], |
| 2493 | "description": "Returns metainfo entries for all known stylesheets." |
| 2494 | }, |
| 2495 | { |
| 2496 | "name": "getStyleSheet", |
| 2497 | "parameters": [ |
| 2498 | { "name": "styleSheetId", "$ref": "StyleSheetId" } |
| 2499 | ], |
| 2500 | "returns": [ |
| 2501 | { "name": "styleSheet", "$ref": "CSSStyleSheetBody", "description": "Stylesheet contents for the specified <code>styleSheetId</code>." } |
| 2502 | ], |
| 2503 | "description": "Returns stylesheet data for the specified <code>styleSheetId</code>." |
| 2504 | }, |
| 2505 | { |
| 2506 | "name": "getStyleSheetText", |
| 2507 | "parameters": [ |
| 2508 | { "name": "styleSheetId", "$ref": "StyleSheetId" } |
| 2509 | ], |
| 2510 | "returns": [ |
| 2511 | { "name": "text", "type": "string", "description": "The stylesheet text." } |
| 2512 | ], |
| 2513 | "description": "Returns the current textual content and the URL for a stylesheet." |
| 2514 | }, |
| 2515 | { |
| 2516 | "name": "setStyleSheetText", |
| 2517 | "parameters": [ |
| 2518 | { "name": "styleSheetId", "$ref": "StyleSheetId" }, |
| 2519 | { "name": "text", "type": "string" } |
| 2520 | ], |
| 2521 | "description": "Sets the new stylesheet text, thereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet." |
| 2522 | }, |
| 2523 | { |
| 2524 | "name": "setStyleText", |
| 2525 | "parameters": [ |
| 2526 | { "name": "styleId", "$ref": "CSSStyleId" }, |
| 2527 | { "name": "text", "type": "string" } |
| 2528 | ], |
| 2529 | "returns": [ |
| 2530 | { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the text modification." } |
| 2531 | ], |
| 2532 | "description": "Updates the CSSStyleDeclaration text." |
| 2533 | }, |
| 2534 | { |
| 2535 | "name": "setPropertyText", |
| 2536 | "parameters": [ |
| 2537 | { "name": "styleId", "$ref": "CSSStyleId" }, |
| 2538 | { "name": "propertyIndex", "type": "integer" }, |
| 2539 | { "name": "text", "type": "string" }, |
| 2540 | { "name": "overwrite", "type": "boolean" } |
| 2541 | ], |
| 2542 | "returns": [ |
| 2543 | { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the property text modification." } |
| 2544 | ], |
| 2545 | "description": "Sets the new <code>text</code> for a property in the respective style, at offset <code>propertyIndex</code>. If <code>overwrite</code> is <code>true</code>, a property at the given offset is overwritten, otherwise inserted. <code>text</code> entirely replaces the property <code>name: value</code>." |
| 2546 | }, |
| 2547 | { |
| 2548 | "name": "toggleProperty", |
| 2549 | "parameters": [ |
| 2550 | { "name": "styleId", "$ref": "CSSStyleId" }, |
| 2551 | { "name": "propertyIndex", "type": "integer" }, |
| 2552 | { "name": "disable", "type": "boolean" } |
| 2553 | ], |
| 2554 | "returns": [ |
| 2555 | { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the property toggling." } |
| 2556 | ], |
| 2557 | "description": "Toggles the property in the respective style, at offset <code>propertyIndex</code>. The <code>disable</code> parameter denotes whether the property should be disabled (i.e. removed from the style declaration). If <code>disable == false</code>, the property gets put back into its original place in the style declaration." |
| 2558 | }, |
| 2559 | { |
| 2560 | "name": "setRuleSelector", |
| 2561 | "parameters": [ |
| 2562 | { "name": "ruleId", "$ref": "CSSRuleId" }, |
| 2563 | { "name": "selector", "type": "string" } |
| 2564 | ], |
| 2565 | "returns": [ |
| 2566 | { "name": "rule", "$ref": "CSSRule", "description": "The resulting rule after the selector modification." } |
| 2567 | ], |
| 2568 | "description": "Modifies the rule selector." |
| 2569 | }, |
| 2570 | { |
| 2571 | "name": "addRule", |
| 2572 | "parameters": [ |
| 2573 | { "name": "contextNodeId", "$ref": "DOM.NodeId" }, |
| 2574 | { "name": "selector", "type": "string" } |
| 2575 | ], |
| 2576 | "returns": [ |
| 2577 | { "name": "rule", "$ref": "CSSRule", "description": "The newly created rule." } |
| 2578 | ], |
| 2579 | "description": "Creates a new empty rule with the given <code>selector</code> in a special \"inspector\" stylesheet in the owner document of the context node." |
| 2580 | }, |
| 2581 | { |
| 2582 | "name": "getSupportedCSSProperties", |
| 2583 | "returns": [ |
| 2584 | { "name": "cssProperties", "type": "array", "items": { "$ref": "CSSPropertyInfo" }, "description": "Supported property metainfo." } |
| 2585 | ], |
| 2586 | "description": "Returns all supported CSS property names." |
| 2587 | }, |
| 2588 | { |
| 2589 | "name": "forcePseudoState", |
| 2590 | "parameters": [ |
| 2591 | { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The element id for which to force the pseudo state." }, |
| 2592 | { "name": "forcedPseudoClasses", "type": "array", "items": { "type": "string", "enum": ["active", "focus", "hover", "visited"] }, "description": "Element pseudo classes to force when computing the element's style." } |
| 2593 | ], |
| 2594 | "description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser." |
| 2595 | }, |
| 2596 | { |
| 2597 | "name": "startSelectorProfiler" |
| 2598 | }, |
| 2599 | { |
| 2600 | "name": "stopSelectorProfiler", |
| 2601 | "returns": [ |
| 2602 | { "name": "profile", "$ref": "SelectorProfile" } |
| 2603 | ] |
| 2604 | }, |
| 2605 | { |
| 2606 | "name": "getNamedFlowCollection", |
| 2607 | "parameters": [ |
| 2608 | { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id for which to get the Named Flow Collection." } |
| 2609 | ], |
| 2610 | "returns": [ |
| 2611 | { "name": "namedFlows", "type": "array", "items": { "$ref": "NamedFlow" }, "description": "An array containing the Named Flows in the document." } |
| 2612 | ], |
| 2613 | "description": "Returns the Named Flows from the document.", |
| 2614 | "hidden": true |
| 2615 | } |
| 2616 | ], |
| 2617 | "events": [ |
| 2618 | { |
| 2619 | "name": "mediaQueryResultChanged", |
| 2620 | "description": "Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features." |
| 2621 | }, |
| 2622 | { |
| 2623 | "name": "styleSheetChanged", |
| 2624 | "parameters": [ |
| 2625 | { "name": "styleSheetId", "$ref": "StyleSheetId" } |
| 2626 | ], |
| 2627 | "description": "Fired whenever a stylesheet is changed as a result of the client operation." |
| 2628 | }, |
| 2629 | { |
| 2630 | "name": "styleSheetAdded", |
| 2631 | "parameters": [ |
| 2632 | { "name": "header", "$ref": "CSSStyleSheetHeader", "description": "Added stylesheet metainfo." } |
| 2633 | ], |
| 2634 | "description": "Fired whenever an active document stylesheet is added." |
| 2635 | }, |
| 2636 | { |
| 2637 | "name": "styleSheetRemoved", |
| 2638 | "parameters": [ |
| 2639 | { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Identifier of the removed stylesheet." } |
| 2640 | ], |
| 2641 | "description": "Fired whenever an active document stylesheet is removed." |
| 2642 | }, |
| 2643 | { |
| 2644 | "name": "namedFlowCreated", |
| 2645 | "parameters": [ |
| 2646 | { "name": "namedFlow", "$ref": "NamedFlow", "description": "The new Named Flow." } |
| 2647 | ], |
| 2648 | "description": "Fires when a Named Flow is created.", |
| 2649 | "hidden": true |
| 2650 | }, |
| 2651 | { |
| 2652 | "name": "namedFlowRemoved", |
| 2653 | "parameters": [ |
| 2654 | { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." }, |
| 2655 | { "name": "flowName", "type": "string", "description": "Identifier of the removed Named Flow." } |
| 2656 | ], |
| 2657 | "description": "Fires when a Named Flow is removed: has no associated content nodes and regions.", |
| 2658 | "hidden": true |
| 2659 | }, |
| 2660 | { |
| 2661 | "name": "regionLayoutUpdated", |
| 2662 | "parameters": [ |
| 2663 | { "name": "namedFlow", "$ref": "NamedFlow", "description": "The Named Flow whose layout may have changed." } |
| 2664 | ], |
| 2665 | "description": "Fires when a Named Flow's layout may have changed.", |
| 2666 | "hidden": true |
| 2667 | } |
| 2668 | ] |
| 2669 | }, |
| 2670 | { |
| 2671 | "domain": "Timeline", |
| 2672 | "description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.", |
| 2673 | "types": [ |
| 2674 | { |
| 2675 | "id": "DOMCounters", |
| 2676 | "type": "object", |
| 2677 | "properties": [ |
| 2678 | { "name": "documents", "type": "integer" }, |
| 2679 | { "name": "nodes", "type": "integer" }, |
| 2680 | { "name": "jsEventListeners", "type": "integer" } |
| 2681 | ], |
| 2682 | "description": "Current values of DOM counters.", |
| 2683 | "hidden": true |
| 2684 | }, |
| 2685 | { |
| 2686 | "id": "TimelineEvent", |
| 2687 | "type": "object", |
| 2688 | "properties": [ |
| 2689 | { "name": "type", "type": "string", "description": "Event type." }, |
| 2690 | { "name": "thread", "type": "string", "optional": true, "description": "If present, identifies the thread that produced the event.", "hidden": true }, |
| 2691 | { "name": "data", "type": "object", "description": "Event data." }, |
| 2692 | { "name": "children", "type": "array", "optional": true, "items": { "$ref": "TimelineEvent" }, "description": "Nested records." }, |
| 2693 | { "name": "counters", "$ref": "DOMCounters", "optional": true, "hidden": true, "description": "Current values of DOM counters." }, |
| 2694 | { "name": "usedHeapSize", "type": "integer", "optional": true, "hidden": true, "description": "Current size of JS heap." }, |
| 2695 | { "name": "nativeHeapStatistics", "type": "object", "optional": true, "hidden": true, "description": "Native heap statistics." } |
| 2696 | ], |
| 2697 | "description": "Timeline record contains information about the recorded activity." |
| 2698 | } |
| 2699 | ], |
| 2700 | "commands": [ |
| 2701 | { |
| 2702 | "name": "start", |
| 2703 | "parameters": [ |
| 2704 | { "name": "maxCallStackDepth", "optional": true, "type": "integer", "description": "Samples JavaScript stack traces up to <code>maxCallStackDepth</code>, defaults to 5." }, |
| 2705 | { "name": "includeDomCounters", "optional": true, "type": "boolean", "hidden": true, "description": "Whether DOM counters data should be included into timeline events." }, |
| 2706 | { "name": "includeNativeMemoryStatistics", "optional": true, "type": "boolean", "hidden": true, "description": "Whether native memory usage statistics should be reported as part of timeline events." } |
| 2707 | |
| 2708 | ], |
| 2709 | "description": "Starts capturing instrumentation events." |
| 2710 | }, |
| 2711 | { |
| 2712 | "name": "stop", |
| 2713 | "description": "Stops capturing instrumentation events." |
| 2714 | } |
| 2715 | ], |
| 2716 | "events": [ |
| 2717 | { |
| 2718 | "name": "eventRecorded", |
| 2719 | "parameters": [ |
| 2720 | { "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." } |
| 2721 | ], |
| 2722 | "description": "Fired for every instrumentation event while timeline is started." |
| 2723 | } |
| 2724 | ] |
| 2725 | }, |
| 2726 | { |
| 2727 | "domain": "Debugger", |
| 2728 | "description": "Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.", |
| 2729 | "types": [ |
| 2730 | { |
| 2731 | "id": "BreakpointId", |
| 2732 | "type": "string", |
| 2733 | "description": "Breakpoint identifier." |
| 2734 | }, |
| 2735 | { |
| 2736 | "id": "ScriptId", |
| 2737 | "type": "string", |
| 2738 | "description": "Unique script identifier." |
| 2739 | }, |
| 2740 | { |
| 2741 | "id": "CallFrameId", |
| 2742 | "type": "string", |
| 2743 | "description": "Call frame identifier." |
| 2744 | }, |
| 2745 | { |
| 2746 | "id": "Location", |
| 2747 | "type": "object", |
| 2748 | "properties": [ |
| 2749 | { "name": "scriptId", "$ref": "ScriptId", "description": "Script identifier as reported in the <code>Debugger.scriptParsed</code>." }, |
| 2750 | { "name": "lineNumber", "type": "integer", "description": "Line number in the script." }, |
| 2751 | { "name": "columnNumber", "type": "integer", "optional": true, "description": "Column number in the script." } |
| 2752 | ], |
| 2753 | "description": "Location in the source code." |
| 2754 | }, |
| 2755 | { |
| 2756 | "id": "FunctionDetails", |
| 2757 | "hidden": true, |
| 2758 | "type": "object", |
| 2759 | "properties": [ |
| 2760 | { "name": "location", "$ref": "Location", "description": "Location of the function." }, |
| 2761 | { "name": "name", "type": "string", "optional": true, "description": "Name of the function. Not present for anonymous functions." }, |
| 2762 | { "name": "displayName", "type": "string", "optional": true, "description": "Display name of the function(specified in 'displayName' property on the function object)." }, |
| 2763 | { "name": "inferredName", "type": "string", "optional": true, "description": "Name of the function inferred from its initial assignment." }, |
| 2764 | { "name": "scopeChain", "type": "array", "optional": true, "items": { "$ref": "Scope" }, "description": "Scope chain for this closure." } |
| 2765 | ], |
| 2766 | "description": "Information about the function." |
| 2767 | }, |
| 2768 | { |
| 2769 | "id": "CallFrame", |
| 2770 | "type": "object", |
| 2771 | "properties": [ |
| 2772 | { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier. This identifier is only valid while the virtual machine is paused." }, |
| 2773 | { "name": "functionName", "type": "string", "description": "Name of the JavaScript function called on this call frame." }, |
| 2774 | { "name": "location", "$ref": "Location", "description": "Location in the source code." }, |
| 2775 | { "name": "scopeChain", "type": "array", "items": { "$ref": "Scope" }, "description": "Scope chain for this call frame." }, |
| 2776 | { "name": "this", "$ref": "Runtime.RemoteObject", "description": "<code>this</code> object for this call frame." } |
| 2777 | ], |
| 2778 | "description": "JavaScript call frame. Array of call frames form the call stack." |
| 2779 | }, |
| 2780 | { |
| 2781 | "id": "Scope", |
| 2782 | "type": "object", |
| 2783 | "properties": [ |
| 2784 | { "name": "type", "type": "string", "enum": ["global", "local", "with", "closure", "catch"], "description": "Scope type." }, |
| 2785 | { "name": "object", "$ref": "Runtime.RemoteObject", "description": "Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties." } |
| 2786 | ], |
| 2787 | "description": "Scope description." |
| 2788 | } |
| 2789 | ], |
| 2790 | "commands": [ |
| 2791 | { |
| 2792 | "name": "enable", |
| 2793 | "description": "Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received." |
| 2794 | }, |
| 2795 | { |
| 2796 | "name": "disable", |
| 2797 | "description": "Disables debugger for given page." |
| 2798 | }, |
| 2799 | { |
| 2800 | "name": "setBreakpointsActive", |
| 2801 | "parameters": [ |
| 2802 | { "name": "active", "type": "boolean", "description": "New value for breakpoints active state." } |
| 2803 | ], |
| 2804 | "description": "Activates / deactivates all breakpoints on the page." |
| 2805 | }, |
| 2806 | { |
| 2807 | "name": "setBreakpointByUrl", |
| 2808 | "parameters": [ |
| 2809 | { "name": "lineNumber", "type": "integer", "description": "Line number to set breakpoint at." }, |
| 2810 | { "name": "url", "type": "string", "optional": true, "description": "URL of the resources to set breakpoint on." }, |
| 2811 | { "name": "urlRegex", "type": "string", "optional": true, "description": "Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified." }, |
| 2812 | { "name": "columnNumber", "type": "integer", "optional": true, "description": "Offset in the line to set breakpoint at." }, |
| 2813 | { "name": "condition", "type": "string", "optional": true, "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true." } |
| 2814 | ], |
| 2815 | "returns": [ |
| 2816 | { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." }, |
| 2817 | { "name": "locations", "type": "array", "items": { "$ref": "Location"}, "description": "List of the locations this breakpoint resolved into upon addition." } |
| 2818 | ], |
| 2819 | "description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads." |
| 2820 | }, |
| 2821 | { |
| 2822 | "name": "setBreakpoint", |
| 2823 | "parameters": [ |
| 2824 | { "name": "location", "$ref": "Location", "description": "Location to set breakpoint in." }, |
| 2825 | { "name": "condition", "type": "string", "optional": true, "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true." } |
| 2826 | ], |
| 2827 | "returns": [ |
| 2828 | { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." }, |
| 2829 | { "name": "actualLocation", "$ref": "Location", "description": "Location this breakpoint resolved into." } |
| 2830 | ], |
| 2831 | "description": "Sets JavaScript breakpoint at a given location." |
| 2832 | }, |
| 2833 | { |
| 2834 | "name": "removeBreakpoint", |
| 2835 | "parameters": [ |
| 2836 | { "name": "breakpointId", "$ref": "BreakpointId" } |
| 2837 | ], |
| 2838 | "description": "Removes JavaScript breakpoint." |
| 2839 | }, |
| 2840 | { |
| 2841 | "name": "continueToLocation", |
| 2842 | "parameters": [ |
| 2843 | { "name": "location", "$ref": "Location", "description": "Location to continue to." } |
| 2844 | ], |
| 2845 | "description": "Continues execution until specific location is reached." |
| 2846 | }, |
| 2847 | { |
| 2848 | "name": "stepOver", |
| 2849 | "description": "Steps over the statement." |
| 2850 | }, |
| 2851 | { |
| 2852 | "name": "stepInto", |
| 2853 | "description": "Steps into the function call." |
| 2854 | }, |
| 2855 | { |
| 2856 | "name": "stepOut", |
| 2857 | "description": "Steps out of the function call." |
| 2858 | }, |
| 2859 | { |
| 2860 | "name": "pause", |
| 2861 | "description": "Stops on the next JavaScript statement." |
| 2862 | }, |
| 2863 | { |
| 2864 | "name": "resume", |
| 2865 | "description": "Resumes JavaScript execution." |
| 2866 | }, |
| 2867 | { |
| 2868 | "name": "searchInContent", |
| 2869 | "parameters": [ |
| 2870 | { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to search in." }, |
| 2871 | { "name": "query", "type": "string", "description": "String to search for." }, |
| 2872 | { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." }, |
| 2873 | { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." } |
| 2874 | ], |
| 2875 | "returns": [ |
| 2876 | { "name": "result", "type": "array", "items": { "$ref": "Page.SearchMatch" }, "description": "List of search matches." } |
| 2877 | ], |
| 2878 | "description": "Searches for given string in script content." |
| 2879 | }, |
| 2880 | { |
| 2881 | "name": "canSetScriptSource", |
| 2882 | "returns": [ |
| 2883 | { "name": "result", "type": "boolean", "description": "True if <code>setScriptSource</code> is supported." } |
| 2884 | ], |
| 2885 | "description": "Always returns true." |
| 2886 | }, |
| 2887 | { |
| 2888 | "name": "setScriptSource", |
| 2889 | "parameters": [ |
| 2890 | { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to edit." }, |
| 2891 | { "name": "scriptSource", "type": "string", "description": "New content of the script." }, |
| 2892 | { "name": "preview", "type": "boolean", "optional": true, "description": " If true the change will not actually be applied. Preview mode may be used to get result description without actually modifying the code.", "hidden": true } |
| 2893 | ], |
| 2894 | "returns": [ |
| 2895 | { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref": "CallFrame"}, "description": "New stack trace in case editing has happened while VM was stopped." }, |
| 2896 | { "name": "result", "type": "object", "optional": true, "description": "VM-specific description of the changes applied.", "hidden": true } |
| 2897 | ], |
| 2898 | "description": "Edits JavaScript source live." |
| 2899 | }, |
| 2900 | { |
| 2901 | "name": "restartFrame", |
| 2902 | "parameters": [ |
| 2903 | { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier to evaluate on." } |
| 2904 | ], |
| 2905 | "returns": [ |
| 2906 | { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame"}, "description": "New stack trace." }, |
| 2907 | { "name": "result", "type": "object", "description": "VM-specific description.", "hidden": true } |
| 2908 | ], |
| 2909 | "hidden": true, |
| 2910 | "description": "Restarts particular call frame from the beginning." |
| 2911 | }, |
| 2912 | { |
| 2913 | "name": "getScriptSource", |
| 2914 | "parameters": [ |
| 2915 | { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to get source for." } |
| 2916 | ], |
| 2917 | "returns": [ |
| 2918 | { "name": "scriptSource", "type": "string", "description": "Script source." } |
| 2919 | ], |
| 2920 | "description": "Returns source for the script with given id." |
| 2921 | }, |
| 2922 | { |
| 2923 | "name": "getFunctionDetails", |
| 2924 | "hidden": true, |
| 2925 | "parameters": [ |
| 2926 | { "name": "functionId", "$ref": "Runtime.RemoteObjectId", "description": "Id of the function to get location for." } |
| 2927 | ], |
| 2928 | "returns": [ |
| 2929 | { "name": "details", "$ref": "FunctionDetails", "description": "Information about the function." } |
| 2930 | ], |
| 2931 | "description": "Returns detailed informtation on given function." |
| 2932 | }, |
| 2933 | { |
| 2934 | "name": "setPauseOnExceptions", |
| 2935 | "parameters": [ |
| 2936 | { "name": "state", "type": "string", "enum": ["none", "uncaught", "all"], "description": "Pause on exceptions mode." } |
| 2937 | ], |
| 2938 | "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>." |
| 2939 | }, |
| 2940 | { |
| 2941 | "name": "evaluateOnCallFrame", |
| 2942 | "parameters": [ |
| 2943 | { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier to evaluate on." }, |
| 2944 | { "name": "expression", "type": "string", "description": "Expression to evaluate." }, |
| 2945 | { "name": "objectGroup", "type": "string", "optional": true, "description": "String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>)." }, |
| 2946 | { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Specifies whether command line API should be available to the evaluated expression, defaults to false.", "hidden": true }, |
| 2947 | { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true }, |
| 2948 | { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." }, |
| 2949 | { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." } |
| 2950 | ], |
| 2951 | "returns": [ |
| 2952 | { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Object wrapper for the evaluation result." }, |
| 2953 | { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." } |
| 2954 | ], |
| 2955 | "description": "Evaluates expression on a given call frame." |
| 2956 | }, |
| 2957 | { |
| 2958 | "name": "compileScript", |
| 2959 | "hidden": true, |
| 2960 | "parameters": [ |
| 2961 | { "name": "expression", "type": "string", "description": "Expression to compile." }, |
| 2962 | { "name": "sourceURL", "type": "string", "description": "Source url to be set for the script." } |
| 2963 | ], |
| 2964 | "returns": [ |
| 2965 | { "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." }, |
| 2966 | { "name": "syntaxErrorMessage", "type": "string", "optional": true, "description": "Syntax error message if compilation failed." } |
| 2967 | ], |
| 2968 | "description": "Compiles expression." |
| 2969 | }, |
| 2970 | { |
| 2971 | "name": "runScript", |
| 2972 | "hidden": true, |
| 2973 | "parameters": [ |
| 2974 | { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to run." }, |
| 2975 | { "name": "contextId", "$ref": "Runtime.ExecutionContextId", "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 omitted or 0 the evaluation will be performed in the context of the inspected page." }, |
| 2976 | { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }, |
| 2977 | { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether script run should stop on exceptions and mute console. Overrides setPauseOnException state." } |
| 2978 | ], |
| 2979 | "returns": [ |
| 2980 | { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Run result." }, |
| 2981 | { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the script run." } |
| 2982 | ], |
| 2983 | "description": "Runs script with given id in a given context." |
| 2984 | }, |
| 2985 | { |
| 2986 | "name": "setOverlayMessage", |
| 2987 | "parameters": [ |
| 2988 | { "name": "message", "type": "string", "optional": true, "description": "Overlay message to display when paused in debugger." } |
| 2989 | ], |
| 2990 | "hidden": true, |
| 2991 | "description": "Sets overlay message." |
| 2992 | }, |
| 2993 | { |
| 2994 | "name": "setVariableValue", |
| 2995 | "parameters": [ |
| 2996 | { "name": "scopeNumber", "type": "integer", "description": "0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually." }, |
| 2997 | { "name": "variableName", "type": "string", "description": "Variable name." }, |
| 2998 | { "name": "newValue", "$ref": "Runtime.CallArgument", "description": "New variable value." }, |
| 2999 | { "name": "callFrameId", "$ref": "CallFrameId", "optional": true, "description": "Id of callframe that holds variable." }, |
| 3000 | { "name": "functionObjectId", "$ref": "Runtime.RemoteObjectId", "optional": true, "description": "Object id of closure (function) that holds variable." } |
| 3001 | ], |
| 3002 | "hidden": true, |
| 3003 | "description": "Changes value of variable in a callframe or a closure. Either callframe or function must be specified. Object-based scopes are not supported and must be mutated manually." |
| 3004 | } |
| 3005 | ], |
| 3006 | "events": [ |
| 3007 | { |
| 3008 | "name": "globalObjectCleared", |
| 3009 | "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload." |
| 3010 | }, |
| 3011 | { |
| 3012 | "name": "scriptParsed", |
| 3013 | "parameters": [ |
| 3014 | { "name": "scriptId", "$ref": "ScriptId", "description": "Identifier of the script parsed." }, |
| 3015 | { "name": "url", "type": "string", "description": "URL or name of the script parsed (if any)." }, |
| 3016 | { "name": "startLine", "type": "integer", "description": "Line offset of the script within the resource with given URL (for script tags)." }, |
| 3017 | { "name": "startColumn", "type": "integer", "description": "Column offset of the script within the resource with given URL." }, |
| 3018 | { "name": "endLine", "type": "integer", "description": "Last line of the script." }, |
| 3019 | { "name": "endColumn", "type": "integer", "description": "Length of the last line of the script." }, |
| 3020 | { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script." }, |
| 3021 | { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with script (if any)." }, |
| 3022 | { "name": "hasSourceURL", "type": "boolean", "optional": true, "description": "True, if this script has sourceURL.", "hidden": true } |
| 3023 | ], |
| 3024 | "description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger." |
| 3025 | }, |
| 3026 | { |
| 3027 | "name": "scriptFailedToParse", |
| 3028 | "parameters": [ |
| 3029 | { "name": "url", "type": "string", "description": "URL of the script that failed to parse." }, |
| 3030 | { "name": "scriptSource", "type": "string", "description": "Source text of the script that failed to parse." }, |
| 3031 | { "name": "startLine", "type": "integer", "description": "Line offset of the script within the resource." }, |
| 3032 | { "name": "errorLine", "type": "integer", "description": "Line with error." }, |
| 3033 | { "name": "errorMessage", "type": "string", "description": "Parse error message." } |
| 3034 | ], |
| 3035 | "description": "Fired when virtual machine fails to parse the script." |
| 3036 | }, |
| 3037 | { |
| 3038 | "name": "breakpointResolved", |
| 3039 | "parameters": [ |
| 3040 | { "name": "breakpointId", "$ref": "BreakpointId", "description": "Breakpoint unique identifier." }, |
| 3041 | { "name": "location", "$ref": "Location", "description": "Actual breakpoint location." } |
| 3042 | ], |
| 3043 | "description": "Fired when breakpoint is resolved to an actual script and location." |
| 3044 | }, |
| 3045 | { |
| 3046 | "name": "paused", |
| 3047 | "parameters": [ |
| 3048 | { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." }, |
Torne (Richard Coles) | 5267f70 | 2013-06-11 10:57:24 +0100 | [diff] [blame] | 3049 | { "name": "reason", "type": "string", "enum": [ "XHR", "DOM", "EventListener", "exception", "assert", "CSPViolation", "debugCommand", "other" ], "description": "Pause reason." }, |
| 3050 | { "name": "data", "type": "object", "optional": true, "description": "Object containing break-specific auxiliary properties." }, |
| 3051 | { "name": "hitBreakpoints", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Hit breakpoints IDs", "hidden": true } |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 3052 | ], |
| 3053 | "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria." |
| 3054 | }, |
| 3055 | { |
| 3056 | "name": "resumed", |
| 3057 | "description": "Fired when the virtual machine resumed execution." |
| 3058 | } |
| 3059 | ] |
| 3060 | }, |
| 3061 | { |
| 3062 | "domain": "DOMDebugger", |
| 3063 | "description": "DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.", |
| 3064 | "types": [ |
| 3065 | { |
| 3066 | "id": "DOMBreakpointType", |
| 3067 | "type": "string", |
| 3068 | "enum": ["subtree-modified", "attribute-modified", "node-removed"], |
| 3069 | "description": "DOM breakpoint type." |
| 3070 | } |
| 3071 | ], |
| 3072 | "commands": [ |
| 3073 | { |
| 3074 | "name": "setDOMBreakpoint", |
| 3075 | "parameters": [ |
| 3076 | { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to set breakpoint on." }, |
| 3077 | { "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the operation to stop upon." } |
| 3078 | ], |
| 3079 | "description": "Sets breakpoint on particular operation with DOM." |
| 3080 | }, |
| 3081 | { |
| 3082 | "name": "removeDOMBreakpoint", |
| 3083 | "parameters": [ |
| 3084 | { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Identifier of the node to remove breakpoint from." }, |
| 3085 | { "name": "type", "$ref": "DOMBreakpointType", "description": "Type of the breakpoint to remove." } |
| 3086 | ], |
| 3087 | "description": "Removes DOM breakpoint that was set using <code>setDOMBreakpoint</code>." |
| 3088 | }, |
| 3089 | { |
| 3090 | "name": "setEventListenerBreakpoint", |
| 3091 | "parameters": [ |
| 3092 | { "name": "eventName", "type": "string", "description": "DOM Event name to stop on (any DOM event will do)." } |
| 3093 | ], |
| 3094 | "description": "Sets breakpoint on particular DOM event." |
| 3095 | }, |
| 3096 | { |
| 3097 | "name": "removeEventListenerBreakpoint", |
| 3098 | "parameters": [ |
| 3099 | { "name": "eventName", "type": "string", "description": "Event name." } |
| 3100 | ], |
| 3101 | "description": "Removes breakpoint on particular DOM event." |
| 3102 | }, |
| 3103 | { |
| 3104 | "name": "setInstrumentationBreakpoint", |
| 3105 | "parameters": [ |
| 3106 | { "name": "eventName", "type": "string", "description": "Instrumentation name to stop on." } |
| 3107 | ], |
| 3108 | "description": "Sets breakpoint on particular native event.", |
| 3109 | "hidden": true |
| 3110 | }, |
| 3111 | { |
| 3112 | "name": "removeInstrumentationBreakpoint", |
| 3113 | "parameters": [ |
| 3114 | { "name": "eventName", "type": "string", "description": "Instrumentation name to stop on." } |
| 3115 | ], |
Torne (Richard Coles) | 521d96e | 2013-06-19 11:58:24 +0100 | [diff] [blame] | 3116 | "description": "Removes breakpoint on particular native event.", |
Torne (Richard Coles) | 53e740f | 2013-05-09 18:38:43 +0100 | [diff] [blame] | 3117 | "hidden": true |
| 3118 | }, |
| 3119 | { |
| 3120 | "name": "setXHRBreakpoint", |
| 3121 | "parameters": [ |
| 3122 | { "name": "url", "type": "string", "description": "Resource URL substring. All XHRs having this substring in the URL will get stopped upon." } |
| 3123 | ], |
| 3124 | "description": "Sets breakpoint on XMLHttpRequest." |
| 3125 | }, |
| 3126 | { |
| 3127 | "name": "removeXHRBreakpoint", |
| 3128 | "parameters": [ |
| 3129 | { "name": "url", "type": "string", "description": "Resource URL substring." } |
| 3130 | ], |
| 3131 | "description": "Removes breakpoint from XMLHttpRequest." |
| 3132 | } |
| 3133 | ] |
| 3134 | }, |
| 3135 | { |
| 3136 | "domain": "Profiler", |
| 3137 | "hidden": true, |
| 3138 | "types": [ |
| 3139 | { |
| 3140 | "id": "ProfileHeader", |
| 3141 | "type": "object", |
| 3142 | "description": "Profile header.", |
| 3143 | "properties": [ |
| 3144 | { "name": "typeId", "type": "string", "enum": ["CPU", "CSS", "HEAP"], "description": "Profile type name." }, |
| 3145 | { "name": "title", "type": "string", "description": "Profile title." }, |
| 3146 | { "name": "uid", "type": "integer", "description": "Unique identifier of the profile." } |
| 3147 | ] |
| 3148 | }, |
| 3149 | { |
| 3150 | "id": "CPUProfileNode", |
| 3151 | "type": "object", |
| 3152 | "description": "CPU Profile node. Holds callsite information, execution statistics and child nodes.", |
| 3153 | "properties": [ |
| 3154 | { "name": "functionName", "type": "string", "description": "Function name." }, |
| 3155 | { "name": "url", "type": "string", "description": "URL." }, |
| 3156 | { "name": "lineNumber", "type": "integer", "description": "Line number." }, |
| 3157 | { "name": "totalTime", "type": "number", "description": "Total execution time." }, |
| 3158 | { "name": "selfTime", "type": "number", "description": "Self time." }, |
| 3159 | { "name": "numberOfCalls", "type": "integer", "description": "Number of calls." }, |
| 3160 | { "name": "visible", "type": "boolean", "description": "Visibility." }, |
| 3161 | { "name": "callUID", "type": "number", "description": "Call UID." }, |
| 3162 | { "name": "children", "type": "array", "items": { "$ref": "CPUProfileNode" }, "description": "Child nodes." }, |
| 3163 | { "name": "id", "optional": true, "type": "integer", "description": "Unique id of the node." } |
| 3164 | ] |
| 3165 | }, |
| 3166 | { |
| 3167 | "id": "CPUProfile", |
| 3168 | "type": "object", |
| 3169 | "description": "Profile.", |
| 3170 | "properties": [ |
| 3171 | { "name": "head", "$ref": "CPUProfileNode", "optional": true }, |
| 3172 | { "name": "idleTime", "type": "number", "optional": true }, |
| 3173 | { "name": "samples", "optional": true, "type": "array", "items": { "type": "integer" }, "description": "Ids of samples top nodes." } |
| 3174 | ] |
| 3175 | }, |
| 3176 | { |
| 3177 | "id": "HeapSnapshotObjectId", |
| 3178 | "type": "string", |
| 3179 | "description": "Heap snashot object id." |
| 3180 | } |
| 3181 | ], |
| 3182 | "commands": [ |
| 3183 | { |
| 3184 | "name": "enable" |
| 3185 | }, |
| 3186 | { |
| 3187 | "name": "disable" |
| 3188 | }, |
| 3189 | { |
| 3190 | "name": "start" |
| 3191 | }, |
| 3192 | { |
| 3193 | "name": "stop", |
| 3194 | "returns": [ |
| 3195 | { "name": "header", "$ref": "ProfileHeader", "description": "The header of the recorded profile."} |
| 3196 | ] |
| 3197 | }, |
| 3198 | { |
| 3199 | "name": "getProfileHeaders", |
| 3200 | "returns": [ |
| 3201 | { "name": "headers", "type": "array", "items": { "$ref": "ProfileHeader"} } |
| 3202 | ] |
| 3203 | }, |
| 3204 | { |
| 3205 | "name": "getCPUProfile", |
| 3206 | "parameters": [ |
| 3207 | { "name": "uid", "type": "integer" } |
| 3208 | ], |
| 3209 | "returns": [ |
| 3210 | { "name": "profile", "$ref": "CPUProfile" } |
| 3211 | ] |
| 3212 | }, |
| 3213 | { |
| 3214 | "name": "removeProfile", |
| 3215 | "parameters": [ |
| 3216 | { "name": "type", "type": "string" }, |
| 3217 | { "name": "uid", "type": "integer" } |
| 3218 | ] |
| 3219 | }, |
| 3220 | { |
| 3221 | "name": "clearProfiles" |
| 3222 | } |
| 3223 | ], |
| 3224 | "events": [ |
| 3225 | { |
| 3226 | "name": "addProfileHeader", |
| 3227 | "parameters": [ |
| 3228 | { "name": "header", "$ref": "ProfileHeader" } |
| 3229 | ] |
| 3230 | }, |
| 3231 | { |
| 3232 | "name": "setRecordingProfile", |
| 3233 | "parameters": [ |
| 3234 | { "name": "isProfiling", "type": "boolean" } |
| 3235 | ] |
| 3236 | }, |
| 3237 | { |
| 3238 | "name": "resetProfiles" |
| 3239 | } |
| 3240 | ] |
| 3241 | }, |
| 3242 | { |
| 3243 | "domain": "HeapProfiler", |
| 3244 | "hidden": true, |
| 3245 | "types": [ |
| 3246 | { |
| 3247 | "id": "ProfileHeader", |
| 3248 | "type": "object", |
| 3249 | "description": "Profile header.", |
| 3250 | "properties": [ |
| 3251 | { "name": "title", "type": "string", "description": "Profile title." }, |
| 3252 | { "name": "uid", "type": "integer", "description": "Unique identifier of the profile." }, |
| 3253 | { "name": "maxJSObjectId", "type": "integer", "optional": true, "description": "Last seen JS object Id." } |
| 3254 | ] |
| 3255 | }, |
| 3256 | { |
| 3257 | "id": "HeapSnapshotObjectId", |
| 3258 | "type": "string", |
| 3259 | "description": "Heap snashot object id." |
| 3260 | } |
| 3261 | ], |
| 3262 | "commands": [ |
| 3263 | { |
| 3264 | "name": "getProfileHeaders", |
| 3265 | "returns": [ |
| 3266 | { "name": "headers", "type": "array", "items": { "$ref": "ProfileHeader"} } |
| 3267 | ] |
| 3268 | }, |
| 3269 | { |
| 3270 | "name": "startTrackingHeapObjects" |
| 3271 | }, |
| 3272 | { |
| 3273 | "name": "stopTrackingHeapObjects" |
| 3274 | }, |
| 3275 | { |
| 3276 | "name": "getHeapSnapshot", |
| 3277 | "parameters": [ |
| 3278 | { "name": "uid", "type": "integer" } |
| 3279 | ] |
| 3280 | }, |
| 3281 | { |
| 3282 | "name": "removeProfile", |
| 3283 | "parameters": [ |
| 3284 | { "name": "uid", "type": "integer" } |
| 3285 | ] |
| 3286 | }, |
| 3287 | { |
| 3288 | "name": "clearProfiles" |
| 3289 | }, |
| 3290 | { |
| 3291 | "name": "takeHeapSnapshot", |
| 3292 | "parameters": [ |
| 3293 | { "name": "reportProgress", "type": "boolean", "optional": true, "description": "If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken." } |
| 3294 | ] |
| 3295 | }, |
| 3296 | { |
| 3297 | "name": "collectGarbage" |
| 3298 | }, |
| 3299 | { |
| 3300 | "name": "getObjectByHeapObjectId", |
| 3301 | "parameters": [ |
| 3302 | { "name": "objectId", "$ref": "HeapSnapshotObjectId" }, |
| 3303 | { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." } |
| 3304 | ], |
| 3305 | "returns": [ |
| 3306 | { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Evaluation result." } |
| 3307 | ] |
| 3308 | }, |
| 3309 | { |
| 3310 | "name": "getHeapObjectId", |
| 3311 | "parameters": [ |
| 3312 | { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "Identifier of the object to get heap object id for." } |
| 3313 | ], |
| 3314 | "returns": [ |
| 3315 | { "name": "heapSnapshotObjectId", "$ref": "HeapSnapshotObjectId", "description": "Id of the heap snapshot object corresponding to the passed remote object id." } |
| 3316 | ] |
| 3317 | } |
| 3318 | ], |
| 3319 | "events": [ |
| 3320 | { |
| 3321 | "name": "addProfileHeader", |
| 3322 | "parameters": [ |
| 3323 | { "name": "header", "$ref": "ProfileHeader" } |
| 3324 | ] |
| 3325 | }, |
| 3326 | { |
| 3327 | "name": "addHeapSnapshotChunk", |
| 3328 | "parameters": [ |
| 3329 | { "name": "uid", "type": "integer" }, |
| 3330 | { "name": "chunk", "type": "string" } |
| 3331 | ] |
| 3332 | }, |
| 3333 | { |
| 3334 | "name": "finishHeapSnapshot", |
| 3335 | "parameters": [ |
| 3336 | { "name": "uid", "type": "integer" } |
| 3337 | ] |
| 3338 | }, |
| 3339 | { |
| 3340 | "name": "resetProfiles" |
| 3341 | }, |
| 3342 | { |
| 3343 | "name": "reportHeapSnapshotProgress", |
| 3344 | "parameters": [ |
| 3345 | { "name": "done", "type": "integer" }, |
| 3346 | { "name": "total", "type": "integer" } |
| 3347 | ] |
| 3348 | }, |
| 3349 | { |
| 3350 | "name": "lastSeenObjectId", |
| 3351 | "description": "If heap objects tracking has been started then backend 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 heapStatsUpdate events will be sent before a new lastSeenObjectId event.", |
| 3352 | "parameters": [ |
| 3353 | { "name": "lastSeenObjectId", "type": "integer" }, |
| 3354 | { "name": "timestamp", "type": "number" } |
| 3355 | ] |
| 3356 | }, |
| 3357 | { |
| 3358 | "name": "heapStatsUpdate", |
| 3359 | "description": "If heap objects tracking has been started then backend may send update for one or more fragments", |
| 3360 | "parameters": [ |
| 3361 | { "name": "statsUpdate", "type": "array", "items": { "type": "integer" }, "description": "An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment."} |
| 3362 | ] |
| 3363 | } |
| 3364 | ] |
| 3365 | }, |
| 3366 | { |
| 3367 | "domain": "Worker", |
| 3368 | "hidden": true, |
| 3369 | "types": [], |
| 3370 | "commands": [ |
| 3371 | { |
| 3372 | "name": "enable" |
| 3373 | }, |
| 3374 | { |
| 3375 | "name": "disable" |
| 3376 | }, |
| 3377 | { |
| 3378 | "name": "sendMessageToWorker", |
| 3379 | "parameters": [ |
| 3380 | { "name": "workerId", "type": "integer" }, |
| 3381 | { "name": "message", "type": "object" } |
| 3382 | ] |
| 3383 | }, |
| 3384 | { |
| 3385 | "name": "canInspectWorkers", |
| 3386 | "description": "Tells whether browser supports workers inspection.", |
| 3387 | "returns": [ |
| 3388 | { "name": "result", "type": "boolean", "description": "True if browser has workers support." } |
| 3389 | ] |
| 3390 | }, |
| 3391 | { |
| 3392 | "name": "connectToWorker", |
| 3393 | "parameters": [ |
| 3394 | { "name": "workerId", "type": "integer" } |
| 3395 | ] |
| 3396 | }, |
| 3397 | { |
| 3398 | "name": "disconnectFromWorker", |
| 3399 | "parameters": [ |
| 3400 | { "name": "workerId", "type": "integer" } |
| 3401 | ] |
| 3402 | }, |
| 3403 | { |
| 3404 | "name": "setAutoconnectToWorkers", |
| 3405 | "parameters": [ |
| 3406 | { "name": "value", "type": "boolean" } |
| 3407 | ] |
| 3408 | } |
| 3409 | ], |
| 3410 | "events": [ |
| 3411 | { |
| 3412 | "name": "workerCreated", |
| 3413 | "parameters": [ |
| 3414 | { "name": "workerId", "type": "integer" }, |
| 3415 | { "name": "url", "type": "string" }, |
| 3416 | { "name": "inspectorConnected", "type": "boolean" } |
| 3417 | ] |
| 3418 | }, |
| 3419 | { |
| 3420 | "name": "workerTerminated", |
| 3421 | "parameters": [ |
| 3422 | { "name": "workerId", "type": "integer" } |
| 3423 | ] |
| 3424 | }, |
| 3425 | { |
| 3426 | "name": "dispatchMessageFromWorker", |
| 3427 | "parameters": [ |
| 3428 | { "name": "workerId", "type": "integer" }, |
| 3429 | { "name": "message", "type": "object" } |
| 3430 | ] |
| 3431 | }, |
| 3432 | { |
| 3433 | "name": "disconnectedFromWorker" |
| 3434 | } |
| 3435 | ] |
| 3436 | }, |
| 3437 | { |
| 3438 | "domain": "Canvas", |
| 3439 | "hidden": true, |
| 3440 | "types": [ |
| 3441 | { |
| 3442 | "id": "ResourceId", |
| 3443 | "type": "string", |
| 3444 | "description": "Unique resource identifier." |
| 3445 | }, |
| 3446 | { |
| 3447 | "id": "ResourceInfo", |
| 3448 | "type": "object", |
| 3449 | "properties": [ |
| 3450 | { "name": "id", "$ref": "ResourceId" }, |
| 3451 | { "name": "description", "type": "string" } |
| 3452 | ] |
| 3453 | }, |
| 3454 | { |
| 3455 | "id": "ResourceState", |
| 3456 | "type": "object", |
| 3457 | "properties": [ |
| 3458 | { "name": "id", "$ref": "ResourceId" }, |
| 3459 | { "name": "traceLogId", "$ref": "TraceLogId" }, |
| 3460 | { "name": "imageURL", "type": "string", "optional": true, "description": "Screenshot image data URL." } |
| 3461 | ] |
| 3462 | }, |
| 3463 | { |
| 3464 | "id": "CallArgument", |
| 3465 | "type": "object", |
| 3466 | "properties": [ |
| 3467 | { "name": "description", "type": "string" } |
| 3468 | ] |
| 3469 | }, |
| 3470 | { |
| 3471 | "id": "Call", |
| 3472 | "type": "object", |
| 3473 | "properties": [ |
| 3474 | { "name": "contextId", "$ref": "ResourceId" }, |
| 3475 | { "name": "functionName", "type": "string", "optional": true }, |
| 3476 | { "name": "arguments", "type": "array", "items": { "$ref": "CallArgument" }, "optional": true }, |
| 3477 | { "name": "result", "$ref": "CallArgument", "optional": true }, |
| 3478 | { "name": "isDrawingCall", "type": "boolean", "optional": true }, |
| 3479 | { "name": "isFrameEndCall", "type": "boolean", "optional": true }, |
| 3480 | { "name": "property", "type": "string", "optional": true }, |
| 3481 | { "name": "value", "$ref": "CallArgument", "optional": true }, |
| 3482 | { "name": "sourceURL", "type": "string", "optional": true }, |
| 3483 | { "name": "lineNumber", "type": "integer", "optional": true }, |
| 3484 | { "name": "columnNumber", "type": "integer", "optional": true } |
| 3485 | ] |
| 3486 | }, |
| 3487 | { |
| 3488 | "id": "TraceLogId", |
| 3489 | "type": "string", |
| 3490 | "description": "Unique trace log identifier." |
| 3491 | }, |
| 3492 | { |
| 3493 | "id": "TraceLog", |
| 3494 | "type": "object", |
| 3495 | "properties": [ |
| 3496 | { "name": "id", "$ref": "TraceLogId" }, |
| 3497 | { "name": "calls", "type": "array", "items": { "$ref": "Call" } }, |
| 3498 | { "name": "startOffset", "type": "integer" }, |
| 3499 | { "name": "alive", "type": "boolean" }, |
| 3500 | { "name": "totalAvailableCalls", "type": "number" } |
| 3501 | ] |
| 3502 | } |
| 3503 | ], |
| 3504 | "commands": [ |
| 3505 | { |
| 3506 | "name": "enable", |
| 3507 | "description": "Enables Canvas inspection." |
| 3508 | }, |
| 3509 | { |
| 3510 | "name": "disable", |
| 3511 | "description": "Disables Canvas inspection." |
| 3512 | }, |
| 3513 | { |
| 3514 | "name": "dropTraceLog", |
| 3515 | "parameters": [ |
| 3516 | { "name": "traceLogId", "$ref": "TraceLogId" } |
| 3517 | ] |
| 3518 | }, |
| 3519 | { |
| 3520 | "name": "hasUninstrumentedCanvases", |
| 3521 | "returns": [ |
| 3522 | { "name": "result", "type": "boolean" } |
| 3523 | ], |
| 3524 | "description": "Checks if there is any uninstrumented canvas in the inspected page." |
| 3525 | }, |
| 3526 | { |
| 3527 | "name": "captureFrame", |
| 3528 | "parameters": [ |
| 3529 | { "name": "frameId", "$ref": "Network.FrameId", "optional": true, "description": "Identifier of the frame containing document whose canvases are to be captured. If omitted, main frame is assumed." } |
| 3530 | ], |
| 3531 | "returns": [ |
| 3532 | { "name": "traceLogId", "$ref": "TraceLogId", "description": "Identifier of the trace log containing captured canvas calls." } |
| 3533 | ], |
| 3534 | "description": "Starts (or continues) a canvas frame capturing which will be stopped automatically after the next frame is prepared." |
| 3535 | }, |
| 3536 | { |
| 3537 | "name": "startCapturing", |
| 3538 | "parameters": [ |
| 3539 | { "name": "frameId", "$ref": "Network.FrameId", "optional": true, "description": "Identifier of the frame containing document whose canvases are to be captured. If omitted, main frame is assumed." } |
| 3540 | ], |
| 3541 | "returns": [ |
| 3542 | { "name": "traceLogId", "$ref": "TraceLogId", "description": "Identifier of the trace log containing captured canvas calls." } |
| 3543 | ], |
| 3544 | "description": "Starts (or continues) consecutive canvas frames capturing. The capturing is stopped by the corresponding stopCapturing command." |
| 3545 | }, |
| 3546 | { |
| 3547 | "name": "stopCapturing", |
| 3548 | "parameters": [ |
| 3549 | { "name": "traceLogId", "$ref": "TraceLogId" } |
| 3550 | ] |
| 3551 | }, |
| 3552 | { |
| 3553 | "name": "getTraceLog", |
| 3554 | "parameters": [ |
| 3555 | { "name": "traceLogId", "$ref": "TraceLogId" }, |
| 3556 | { "name": "startOffset", "type": "integer", "optional": true }, |
| 3557 | { "name": "maxLength", "type": "integer", "optional": true } |
| 3558 | ], |
| 3559 | "returns": [ |
| 3560 | { "name": "traceLog", "$ref": "TraceLog" } |
| 3561 | ] |
| 3562 | }, |
| 3563 | { |
| 3564 | "name": "replayTraceLog", |
| 3565 | "parameters": [ |
| 3566 | { "name": "traceLogId", "$ref": "TraceLogId" }, |
| 3567 | { "name": "stepNo", "type": "integer" } |
| 3568 | ], |
| 3569 | "returns": [ |
| 3570 | { "name": "resourceState", "$ref": "ResourceState" } |
| 3571 | ] |
| 3572 | }, |
| 3573 | { |
| 3574 | "name": "getResourceInfo", |
| 3575 | "parameters": [ |
| 3576 | { "name": "resourceId", "$ref": "ResourceId" } |
| 3577 | ], |
| 3578 | "returns": [ |
| 3579 | { "name": "resourceInfo", "$ref": "ResourceInfo" } |
| 3580 | ] |
| 3581 | }, |
| 3582 | { |
| 3583 | "name": "getResourceState", |
| 3584 | "parameters": [ |
| 3585 | { "name": "traceLogId", "$ref": "TraceLogId" }, |
| 3586 | { "name": "resourceId", "$ref": "ResourceId" } |
| 3587 | ], |
| 3588 | "returns": [ |
| 3589 | { "name": "resourceState", "$ref": "ResourceState" } |
| 3590 | ] |
| 3591 | } |
| 3592 | ], |
| 3593 | "events": [ |
| 3594 | { |
| 3595 | "name": "contextCreated", |
| 3596 | "parameters": [ |
| 3597 | { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing a canvas with a context." } |
| 3598 | ], |
| 3599 | "description": "Fired when a canvas context has been created in the given frame. The context may not be instrumented (see hasUninstrumentedCanvases command)." |
| 3600 | }, |
| 3601 | { |
| 3602 | "name": "traceLogsRemoved", |
| 3603 | "parameters": [ |
| 3604 | { "name": "frameId", "$ref": "Network.FrameId", "optional": true, "description": "If given, trace logs from the given frame were removed." }, |
| 3605 | { "name": "traceLogId", "$ref": "TraceLogId", "optional": true, "description": "If given, trace log with the given ID was removed." } |
| 3606 | ], |
| 3607 | "description": "Fired when a set of trace logs were removed from the backend. If no parameters are given, all trace logs were removed." |
| 3608 | } |
| 3609 | ] |
| 3610 | }, |
| 3611 | { |
| 3612 | "domain": "Input", |
| 3613 | "types": [], |
| 3614 | "commands": [ |
| 3615 | { |
| 3616 | "name": "dispatchKeyEvent", |
| 3617 | "parameters": [ |
| 3618 | { "name": "type", "type": "string", "enum": ["keyDown", "keyUp", "rawKeyDown", "char"], "description": "Type of the key event." }, |
| 3619 | { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)." }, |
| 3620 | { "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)." }, |
| 3621 | { "name": "text", "type": "string", "optional": true, "description": "Text as generated by processing a virtual key code with a keyboard layout. Not needed for for <code>keyUp</code> and <code>rawKeyDown</code> events (default: \"\")" }, |
| 3622 | { "name": "unmodifiedText", "type": "string", "optional": true, "description": "Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: \"\")." }, |
| 3623 | { "name": "keyIdentifier", "type": "string", "optional": true, "description": "Unique key identifier (e.g., 'U+0041') (default: \"\")." }, |
| 3624 | { "name": "windowsVirtualKeyCode", "type": "integer", "optional": true, "description": "Windows virtual key code (default: 0)." }, |
| 3625 | { "name": "nativeVirtualKeyCode", "type": "integer", "optional": true, "description": "Native virtual key code (default: 0)." }, |
| 3626 | { "name": "macCharCode", "type": "integer", "optional": true, "description": "Mac character code (default: 0)." }, |
| 3627 | { "name": "autoRepeat", "type": "boolean", "optional": true, "description": "Whether the event was generated from auto repeat (default: false)." }, |
| 3628 | { "name": "isKeypad", "type": "boolean", "optional": true, "description": "Whether the event was generated from the keypad (default: false)." }, |
| 3629 | { "name": "isSystemKey", "type": "boolean", "optional": true, "description": "Whether the event was a system key event (default: false)." } |
| 3630 | ], |
| 3631 | "description": "Dispatches a key event to the page." |
| 3632 | }, |
| 3633 | { |
| 3634 | "name": "dispatchMouseEvent", |
| 3635 | "parameters": [ |
| 3636 | { "name": "type", "type": "string", "enum": ["mousePressed", "mouseReleased", "mouseMoved"], "description": "Type of the mouse event." }, |
| 3637 | { "name": "x", "type": "integer", "description": "X coordinate of the event relative to the main frame's viewport."}, |
| 3638 | { "name": "y", "type": "integer", "description": "Y coordinate of the event relative to the main frame's viewport. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport."}, |
| 3639 | { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)." }, |
| 3640 | { "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)." }, |
| 3641 | { "name": "button", "type": "string", "enum": ["none", "left", "middle", "right"], "optional": true, "description": "Mouse button (default: \"none\")." }, |
| 3642 | { "name": "clickCount", "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." } |
| 3643 | ], |
| 3644 | "description": "Dispatches a mouse event to the page." |
| 3645 | } |
| 3646 | ], |
| 3647 | "events": [] |
| 3648 | }, |
| 3649 | { |
| 3650 | "domain": "LayerTree", |
| 3651 | "hidden": true, |
| 3652 | "types": [ |
| 3653 | { |
| 3654 | "id": "LayerId", |
| 3655 | "type": "string", |
| 3656 | "description": "Unique RenderLayer identifier." |
| 3657 | }, |
| 3658 | { |
| 3659 | "id": "PseudoElementId", |
| 3660 | "type": "string", |
| 3661 | "description": "Unique PseudoElement identifier." |
| 3662 | }, |
| 3663 | { |
| 3664 | "id": "IntRect", |
| 3665 | "type": "object", |
| 3666 | "description": "A rectangle.", |
| 3667 | "properties": [ |
| 3668 | { "name": "x", "type": "integer", "description": "The x position." }, |
| 3669 | { "name": "y", "type": "integer", "description": "The y position." }, |
| 3670 | { "name": "width", "type": "integer", "description": "The width metric." }, |
| 3671 | { "name": "height", "type": "integer", "description": "The height metric." } |
| 3672 | ] |
| 3673 | }, |
| 3674 | { |
| 3675 | "id": "Layer", |
| 3676 | "type": "object", |
| 3677 | "description": "Information about a compositing layer.", |
| 3678 | "properties": [ |
| 3679 | { "name": "layerId", "$ref": "LayerId", "description": "The unique id for this layer." }, |
| 3680 | { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The id for the node associated with this layer." }, |
| 3681 | { "name": "bounds", "$ref": "IntRect", "description": "Bounds of the layer in absolute page coordinates." }, |
| 3682 | { "name": "paintCount", "type": "integer", "description": "Indicates how many time this layer has painted." }, |
| 3683 | { "name": "memory", "type": "integer", "description": "Estimated memory used by this layer." }, |
| 3684 | { "name": "compositedBounds", "$ref": "IntRect", "description": "The bounds of the composited layer." }, |
| 3685 | { "name": "isInShadowTree", "type": "boolean", "optional": true, "description": "Indicates whether this layer is associated with an element hosted in a shadow tree." }, |
| 3686 | { "name": "isReflection", "type": "boolean", "optional": true, "description": "Indicates whether this layer was used to provide a reflection for the element." }, |
| 3687 | { "name": "isGeneratedContent", "type": "boolean", "optional": true, "description": "Indicates whether the layer is attached to a pseudo element that is CSS generated content." }, |
| 3688 | { "name": "pseudoElementId", "$ref": "PseudoElementId", "optional": true, "description": "The id for the pseudo element associated with this layer." }, |
| 3689 | { "name": "pseudoClass", "type": "string", "optional": true, "description": "The name of the CSS pseudo-class that prompted the layer's content to be generated." } |
| 3690 | ] |
| 3691 | }, |
| 3692 | { |
| 3693 | "id": "CompositingReasons", |
| 3694 | "type": "object", |
| 3695 | "description": "An object containing the reasons why the layer was composited as properties.", |
| 3696 | "properties": [ |
| 3697 | { "name": "transform3D", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a CSS 3D transform." }, |
| 3698 | { "name": "video", "type": "boolean", "optional": true, "description": "Composition due to association with a <video> element." }, |
| 3699 | { "name": "canvas", "type": "boolean", "optional": true, "description": "Composition due to the element being a <canvas> element." }, |
| 3700 | { "name": "plugin", "type": "boolean", "optional": true, "description": "Composition due to association with a plugin." }, |
| 3701 | { "name": "iFrame", "type": "boolean", "optional": true, "description": "Composition due to association with an <iframe> element." }, |
| 3702 | { "name": "backfaceVisibilityHidden", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"backface-visibility: hidden\" style." }, |
| 3703 | { "name": "clipsCompositingDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element clipping compositing descendants." }, |
| 3704 | { "name": "animation", "type": "boolean", "optional": true, "description": "Composition due to association with an animated element." }, |
| 3705 | { "name": "filters", "type": "boolean", "optional": true, "description": "Composition due to association with an element with CSS filters applied." }, |
| 3706 | { "name": "positionFixed", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"position: fixed\" style." }, |
| 3707 | { "name": "positionSticky", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"position: sticky\" style." }, |
| 3708 | { "name": "overflowScrollingTouch", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"overflow-scrolling: touch\" style." }, |
| 3709 | { "name": "stacking", "type": "boolean", "optional": true, "description": "Composition due to association with an element establishing a stacking context." }, |
| 3710 | { "name": "overlap", "type": "boolean", "optional": true, "description": "Composition due to association with an element overlapping other composited elements." }, |
| 3711 | { "name": "negativeZIndexChildren", "type": "boolean", "optional": true, "description": "Composition due to association with an element with descendants that have a negative z-index." }, |
| 3712 | { "name": "transformWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element with composited descendants." }, |
| 3713 | { "name": "opacityWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element with opacity applied and composited descendants." }, |
| 3714 | { "name": "maskWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with a masked element and composited descendants." }, |
| 3715 | { "name": "reflectionWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a reflection and composited descendants." }, |
| 3716 | { "name": "filterWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element with CSS filters applied and composited descendants." }, |
| 3717 | { "name": "blendingWithCompositedDescendants", "type": "boolean", "optional": true, "description": "Composition due to association with an element with CSS blending applied and composited descendants." }, |
| 3718 | { "name": "perspective", "type": "boolean", "optional": true, "description": "Composition due to association with an element with perspective applied." }, |
| 3719 | { "name": "preserve3D", "type": "boolean", "optional": true, "description": "Composition due to association with an element with a \"transform-style: preserve-3d\" style." }, |
| 3720 | { "name": "root", "type": "boolean", "optional": true, "description": "Composition due to association with the root element." } |
| 3721 | ] |
| 3722 | } |
| 3723 | ], |
| 3724 | "commands": [ |
| 3725 | { |
| 3726 | "name": "enable", |
| 3727 | "description": "Enables compositing tree inspection." |
| 3728 | }, |
| 3729 | { |
| 3730 | "name": "disable", |
| 3731 | "description": "Disables compositing tree inspection." |
| 3732 | }, |
| 3733 | { |
| 3734 | "name": "layersForNode", |
| 3735 | "parameters": [ |
| 3736 | { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Root of the subtree for which we want to gather layers." } ], |
| 3737 | "description": "Returns the layer tree structure of the current page.", |
| 3738 | "returns": [ |
| 3739 | { "name": "layers", "type": "array", "items": { "$ref": "Layer" }, "description": "Child layers." } |
| 3740 | ] |
| 3741 | }, |
| 3742 | { |
| 3743 | "name": "reasonsForCompositingLayer", |
| 3744 | "parameters": [ |
| 3745 | { "name": "layerId", "$ref": "LayerId", "description": "The id of the layer for which we want to get the reasons it was composited." } |
| 3746 | ], |
| 3747 | "description": "Provides the reasons why the given layer was composited.", |
| 3748 | "returns": [ |
| 3749 | { "name": "compositingReasons", "$ref": "CompositingReasons", "description": "An object containing the reasons why the layer was composited as properties." } |
| 3750 | ] |
| 3751 | } |
| 3752 | ], |
| 3753 | "events": [ |
| 3754 | { |
| 3755 | "name": "layerTreeDidChange" |
| 3756 | } |
| 3757 | ] |
| 3758 | }] |
| 3759 | } |