| OLD | NEW |
| 1 { | 1 { |
| 2 "domains": [ | 2 "domains": [ |
| 3 { | 3 { |
| 4 "commands": [ | 4 "commands": [ |
| 5 { | 5 { |
| 6 "description": "Enables DOM agent for the given page.", | 6 "description": "Enables DOM agent for the given page.", |
| 7 "name": "enable" | 7 "name": "enable" |
| 8 }, | 8 }, |
| 9 { | 9 { |
| 10 "description": "Disables DOM agent for the given page.", | 10 "description": "Disables DOM agent for the given page.", |
| 11 "name": "disable" | 11 "name": "disable" |
| 12 }, | 12 }, |
| 13 { | 13 { |
| 14 "description": "Returns the root DOM node to the caller.", | 14 "description": "Returns the root DOM node to the caller.", |
| 15 "name": "getDocument", | 15 "name": "getDocument", |
| 16 "returns": [ | 16 "returns": [ |
| 17 { | 17 { |
| 18 "$ref": "Node", | 18 "$ref": "Node", |
| 19 "description": "Resulting node.", | 19 "description": "Resulting node.", |
| 20 "name": "root" | 20 "name": "root" |
| 21 } | 21 } |
| 22 ] | 22 ] |
| 23 }, | 23 }, |
| 24 { | 24 { |
| 25 "name": "highlightNode", | 25 "name": "setInspectMode", |
| 26 "parameters": [ | 26 "parameters": [ |
| 27 { | 27 { |
| 28 "name": "highlightConfig", | 28 "description": "Enable or disable the highlighting i
nspector.", |
| 29 "$ref": "HighlightConfig", | 29 "optional": true, |
| 30 "description": "A descriptor for the highlight appea
rance." | 30 "name": "mode", |
| 31 "$ref": "Mode" |
| 32 }, |
| 33 { |
| 34 "name": "highlightConfig", |
| 35 "$ref": "HighlightConfig", |
| 36 "description": "A descriptor for the highlight appea
rance." |
| 31 }, | 37 }, |
| 32 { | 38 { |
| 33 "description": "Identifier of the node to highlight.
", | 39 "description": "Identifier of the node to highlight.
", |
| 40 "optional": true, |
| 41 "name": "nodeId", |
| 42 "$ref": "NodeId" |
| 43 } |
| 44 ], |
| 45 "description": "Highlights DOM node with given id or with th
e given JavaScript object wrapper. Either nodeId or objectId must be specified." |
| 46 }, |
| 47 { |
| 48 "name": "highlightNode", |
| 49 "parameters": [ |
| 50 { |
| 51 "name": "highlightConfig", |
| 52 "$ref": "HighlightConfig", |
| 53 "description": "A descriptor for the highlight appea
rance." |
| 54 }, |
| 55 { |
| 56 "description": "Identifier of the node to highlight.
", |
| 34 "optional": true, | 57 "optional": true, |
| 35 "name": "nodeId", | 58 "name": "nodeId", |
| 36 "$ref": "NodeId" | 59 "$ref": "NodeId" |
| 37 } | 60 } |
| 38 ], | 61 ], |
| 39 "description": "Highlights DOM node with given id or with th
e given JavaScript object wrapper. Either nodeId or objectId must be specified." | 62 "description": "Highlights DOM node with given id or with th
e given JavaScript object wrapper. Either nodeId or objectId must be specified." |
| 40 }, | 63 }, |
| 41 { | 64 { |
| 42 "name": "hideHighlight", | 65 "name": "hideHighlight", |
| 43 "description": "Hides DOM node highlight." | 66 "description": "Hides DOM node highlight." |
| 44 } | 67 } |
| 45 | 68 |
| 46 ], | 69 ], |
| 47 "events": [ | 70 "events": [ |
| 48 { | 71 { |
| 72 "name": "setInspectMode", |
| 73 "parameters": [ |
| 74 { |
| 75 "description": "Enable or disable the highlighting i
nspector.", |
| 76 "optional": true, |
| 77 "name": "mode", |
| 78 "$ref": "Mode" |
| 79 } |
| 80 ], |
| 81 "description": "Highlights DOM node with given id or with th
e given JavaScript object wrapper. Either nodeId or objectId must be specified." |
| 82 }, |
| 83 { |
| 84 "name": "nodeHighlightRequested", |
| 85 "parameters": [ |
| 86 { |
| 87 "name": "nodeId", |
| 88 "$ref": "NodeId", |
| 89 "description": "Identifier of the node to highlight
in DOM tree." |
| 90 } |
| 91 ], |
| 92 "description": "In DOM tree, highlights DOM node with given
id." |
| 93 }, |
| 94 { |
| 49 "name": "childNodeInserted", | 95 "name": "childNodeInserted", |
| 50 "parameters": [ | 96 "parameters": [ |
| 51 { | 97 { |
| 52 "description": "Id of the node that has changed.", | 98 "description": "Id of the node that has changed.", |
| 53 "name": "parentNodeId", | 99 "name": "parentNodeId", |
| 54 "$ref": "NodeId" | 100 "$ref": "NodeId" |
| 55 }, | 101 }, |
| 56 { | 102 { |
| 57 | 103 |
| 58 "description": "Id of the previous sibling (0 if thi
s is at the beginning of the list).", | 104 "description": "Id of the previous sibling (0 if thi
s is at the beginning of the list).", |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 "optional": true, | 192 "optional": true, |
| 147 "type": "string" | 193 "type": "string" |
| 148 } | 194 } |
| 149 ], | 195 ], |
| 150 "type": "object" | 196 "type": "object" |
| 151 }, | 197 }, |
| 152 { | 198 { |
| 153 "id": "RGBA", | 199 "id": "RGBA", |
| 154 "type": "object", | 200 "type": "object", |
| 155 "properties": [ | 201 "properties": [ |
| 156 { | 202 { |
| 157 "name": "r", | 203 "name": "r", |
| 158 "type": "integer", | 204 "type": "integer", |
| 159 "description": "The red component, in the [0-255] ra
nge." | 205 "description": "The red component, in the [0-255] ra
nge." |
| 160 }, | 206 }, |
| 161 { | 207 { |
| 162 "name": "g", | 208 "name": "g", |
| 163 "type": "integer", | 209 "type": "integer", |
| 164 "description": "The green component, in the [0-255]
range." | 210 "description": "The green component, in the [0-255]
range." |
| 165 }, | 211 }, |
| 166 { | 212 { |
| 167 "name": "b", | 213 "name": "b", |
| 168 "type": "integer", | 214 "type": "integer", |
| 169 "description": "The blue component, in the [0-255] r
ange." | 215 "description": "The blue component, in the [0-255] r
ange." |
| 170 }, | 216 }, |
| 171 { | 217 { |
| 172 "name": "a", | 218 "name": "a", |
| 173 "type": "number", | 219 "type": "number", |
| 174 "optional": true, | 220 "optional": true, |
| 175 "description": "The alpha component, in the [0-1] ra
nge (default: 1)." | 221 "description": "The alpha component, in the [0-1] ra
nge (default: 1)." |
| 176 } | 222 } |
| 177 ], | 223 ], |
| 178 "description": "A structure holding an RGBA color." | 224 "description": "A structure holding an RGBA color." |
| 179 }, | 225 }, |
| 180 { | 226 { |
| 227 "id": "Mode", |
| 228 "type": "string", |
| 229 "description": "Enable or Disable the highlighting inspector
." |
| 230 }, |
| 231 { |
| 181 "id": "HighlightConfig", | 232 "id": "HighlightConfig", |
| 182 "type": "object", | 233 "type": "object", |
| 183 "properties": [ | 234 "properties": [ |
| 184 { | 235 { |
| 185 "name": "contentColor", | 236 "name": "contentColor", |
| 186 "$ref": "RGBA", | 237 "$ref": "RGBA", |
| 187 "optional": true, | 238 "optional": true, |
| 188 "description": "The content box highlight fill color
(default: transparent)." | 239 "description": "The content box highlight fill color
(default: transparent)." |
| 189 }, | 240 }, |
| 190 { | 241 { |
| 191 "name": "borderColor", | 242 "name": "borderColor", |
| 192 "$ref": "RGBA", | 243 "$ref": "RGBA", |
| 193 "optional": true, | 244 "optional": true, |
| 194 "description": "The border highlight fill color (def
ault: transparent)." | 245 "description": "The border highlight fill color (def
ault: transparent)." |
| 195 } | 246 } |
| 196 ], | 247 ], |
| 197 "description": "Configuration data for the highlighting of p
age elements." | 248 "description": "Configuration data for the highlighting of p
age elements." |
| 198 } | 249 } |
| 199 ] | 250 ] |
| 200 }, | 251 }, |
| 201 { | 252 { |
| 202 "commands": [ | 253 "commands": [ |
| 203 { | 254 { |
| 204 "description": "Enables CSS agent for the given page.", | 255 "description": "Enables CSS agent for the given page.", |
| 205 "name": "enable" | 256 "name": "enable" |
| 206 }, | 257 }, |
| 207 { | 258 { |
| 208 "description": "Disables CSS agent for the given page.", | 259 "description": "Disables CSS agent for the given page.", |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 { | 370 { |
| 320 "description": "The property name.", | 371 "description": "The property name.", |
| 321 "name": "name", | 372 "name": "name", |
| 322 "type": "string" | 373 "type": "string" |
| 323 }, | 374 }, |
| 324 { | 375 { |
| 325 "description": "The property value.", | 376 "description": "The property value.", |
| 326 "name": "value", | 377 "name": "value", |
| 327 "type": "string" | 378 "type": "string" |
| 328 }, | 379 }, |
| 329 { | 380 { |
| 330 "name": "range", | 381 "name": "range", |
| 331 "$ref": "SourceRange", | 382 "$ref": "SourceRange", |
| 332 "optional": true, | 383 "optional": true, |
| 333 "description": "The entire property range in the enc
losing style declaration (if available)." | 384 "description": "The entire property range in the enc
losing style declaration (if available)." |
| 334 } | 385 } |
| 335 ], | 386 ], |
| 336 "type": "object" | 387 "type": "object" |
| 337 }, | 388 }, |
| 338 { | 389 { |
| 339 "description": "CSS style representation.", | 390 "description": "CSS style representation.", |
| 340 "id": "CSSStyle", | 391 "id": "CSSStyle", |
| 341 "properties": [ | 392 "properties": [ |
| 342 { | 393 { |
| 343 "description": "The css style sheet identifier (abse
nt for user agent stylesheet and user-specified stylesheet rules) this rule came
from. For UI devtools, this is simply equivalent to the NodeId.", | 394 "description": "The css style sheet identifier (abse
nt for user agent stylesheet and user-specified stylesheet rules) this rule came
from. For UI devtools, this is simply equivalent to the NodeId.", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 364 { | 415 { |
| 365 "description": "Style declaration range in the enclo
sing stylesheet (if available).", | 416 "description": "Style declaration range in the enclo
sing stylesheet (if available).", |
| 366 "optional": true, | 417 "optional": true, |
| 367 "name": "range", | 418 "name": "range", |
| 368 "$ref": "SourceRange" | 419 "$ref": "SourceRange" |
| 369 } | 420 } |
| 370 ], | 421 ], |
| 371 "type": "object" | 422 "type": "object" |
| 372 } | 423 } |
| 373 ] | 424 ] |
| 425 }, |
| 426 { |
| 427 "commands": [ |
| 428 { |
| 429 "description": "Enables CSS agent for the given page.", |
| 430 "name": "enable" |
| 431 }, |
| 432 { |
| 433 "description": "Disables CSS agent for the given page.", |
| 434 "name": "disable" |
| 435 }, |
| 436 { |
| 437 "name": "setInspectMode", |
| 438 "parameters": [ |
| 439 { |
| 440 "description": "Set an inspection mode.", |
| 441 "name": "mode", |
| 442 "$ref": "InspectMode" |
| 443 }, |
| 444 { |
| 445 "description": "A descriptor for the highlight appear
ance of hovered-over nodes. May be omitted if <code>enabled == false</code>.", |
| 446 "optional": true, |
| 447 "name": "highlightConfig", |
| 448 "$ref": "HighlightConfig" |
| 449 } |
| 450 ], |
| 451 "description": "Enters the 'inspect' mode. In this mode, elem
ents that user is hovering over are highlighted. Backend then generates 'inspect
NodeRequested' event upon element selection." |
| 452 } |
| 453 ], |
| 454 "description": "This domain provides various functionality related to
drawing atop the inspected page.", |
| 455 "domain": "Overlay", |
| 456 "dependencies": [ |
| 457 "DOM" |
| 458 ], |
| 459 "experimental": true, |
| 460 "events": [ |
| 461 { |
| 462 "name": "setInspectMode", |
| 463 "parameters": [ |
| 464 { |
| 465 "description": "Set an inspection mode.", |
| 466 "name": "mode", |
| 467 "$ref": "InspectMode" |
| 468 }, |
| 469 { |
| 470 "description": "A descriptor for the highlight appear
ance of hovered-over nodes. May be omitted if <code>enabled == false</code>.", |
| 471 "optional": true, |
| 472 "name": "highlightConfig", |
| 473 "$ref": "HighlightConfig" |
| 474 } |
| 475 ], |
| 476 "description": "Enters the 'inspect' mode. In this mode, elem
ents that user is hovering over are highlighted. Backend then generates 'inspect
NodeRequested' event upon element selection." |
| 477 } |
| 478 ], |
| 479 "types": [ |
| 480 { |
| 481 "description": "Configuration data for the highlighting of pa
ge elements.", |
| 482 "type": "object", |
| 483 "id": "HighlightConfig", |
| 484 "properties": [ |
| 485 { |
| 486 "optional": true, |
| 487 "type": "boolean", |
| 488 "name": "showInfo", |
| 489 "description": "Whether the node info tooltip should
be shown (default: false)." |
| 490 }, |
| 491 { |
| 492 "optional": true, |
| 493 "type": "boolean", |
| 494 "name": "showRulers", |
| 495 "description": "Whether the rulers should be shown (d
efault: false)." |
| 496 }, |
| 497 { |
| 498 "optional": true, |
| 499 "type": "boolean", |
| 500 "name": "showExtensionLines", |
| 501 "description": "Whether the extension lines from node
to the rulers should be shown (default: false)." |
| 502 }, |
| 503 { |
| 504 "optional": true, |
| 505 "type": "boolean", |
| 506 "name": "displayAsMaterial" |
| 507 }, |
| 508 { |
| 509 "description": "The content box highlight fill color
(default: transparent).", |
| 510 "optional": true, |
| 511 "name": "contentColor", |
| 512 "$ref": "DOM.RGBA" |
| 513 }, |
| 514 { |
| 515 "description": "The padding highlight fill color (def
ault: transparent).", |
| 516 "optional": true, |
| 517 "name": "paddingColor", |
| 518 "$ref": "DOM.RGBA" |
| 519 }, |
| 520 { |
| 521 "description": "The border highlight fill color (defa
ult: transparent).", |
| 522 "optional": true, |
| 523 "name": "borderColor", |
| 524 "$ref": "DOM.RGBA" |
| 525 }, |
| 526 { |
| 527 "description": "The margin highlight fill color (defa
ult: transparent).", |
| 528 "optional": true, |
| 529 "name": "marginColor", |
| 530 "$ref": "DOM.RGBA" |
| 531 }, |
| 532 { |
| 533 "description": "The event target element highlight fi
ll color (default: transparent).", |
| 534 "optional": true, |
| 535 "name": "eventTargetColor", |
| 536 "$ref": "DOM.RGBA" |
| 537 }, |
| 538 { |
| 539 "description": "The shape outside fill color (default
: transparent).", |
| 540 "optional": true, |
| 541 "name": "shapeColor", |
| 542 "$ref": "DOM.RGBA" |
| 543 }, |
| 544 { |
| 545 "description": "The shape margin fill color (default:
transparent).", |
| 546 "optional": true, |
| 547 "name": "shapeMarginColor", |
| 548 "$ref": "DOM.RGBA" |
| 549 }, |
| 550 { |
| 551 "optional": true, |
| 552 "type": "string", |
| 553 "name": "selectorList", |
| 554 "description": "Selectors to highlight relevant nodes
." |
| 555 } |
| 556 ] |
| 557 }, |
| 558 { |
| 559 "enum": [ |
| 560 "searchForNode", |
| 561 "searchForUAShadowDOM", |
| 562 "none" |
| 563 ], |
| 564 "type": "string", |
| 565 "id": "InspectMode" |
| 566 } |
| 567 ] |
| 374 } | 568 } |
| 375 ], | 569 ], |
| 376 "version": { | 570 "version": { |
| 377 "major": "1", | 571 "major": "1", |
| 378 "minor": "0" | 572 "minor": "0" |
| 379 } | 573 } |
| 380 } | 574 } |
| OLD | NEW |