Skip to content

Commit e6a55b7

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent fba11c9 commit e6a55b7

7 files changed

Lines changed: 194 additions & 1 deletion

gen-src/ChromeDevtoolsProtocol/Domain/DOMDomain.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
use ChromeDevtoolsProtocol\Model\DOM\GetNodesForSubtreeByStyleResponse;
4545
use ChromeDevtoolsProtocol\Model\DOM\GetOuterHTMLRequest;
4646
use ChromeDevtoolsProtocol\Model\DOM\GetOuterHTMLResponse;
47+
use ChromeDevtoolsProtocol\Model\DOM\GetQueryingDescendantsForContainerRequest;
48+
use ChromeDevtoolsProtocol\Model\DOM\GetQueryingDescendantsForContainerResponse;
4749
use ChromeDevtoolsProtocol\Model\DOM\GetRelayoutBoundaryRequest;
4850
use ChromeDevtoolsProtocol\Model\DOM\GetRelayoutBoundaryResponse;
4951
use ChromeDevtoolsProtocol\Model\DOM\GetSearchResultsRequest;
@@ -240,6 +242,15 @@ public function getOuterHTML(ContextInterface $ctx, GetOuterHTMLRequest $request
240242
}
241243

242244

245+
public function getQueryingDescendantsForContainer(
246+
ContextInterface $ctx,
247+
GetQueryingDescendantsForContainerRequest $request
248+
): GetQueryingDescendantsForContainerResponse {
249+
$response = $this->internalClient->executeCommand($ctx, 'DOM.getQueryingDescendantsForContainer', $request);
250+
return GetQueryingDescendantsForContainerResponse::fromJson($response);
251+
}
252+
253+
243254
public function getRelayoutBoundary(
244255
ContextInterface $ctx,
245256
GetRelayoutBoundaryRequest $request

gen-src/ChromeDevtoolsProtocol/Domain/DOMDomainInterface.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
use ChromeDevtoolsProtocol\Model\DOM\GetNodesForSubtreeByStyleResponse;
4444
use ChromeDevtoolsProtocol\Model\DOM\GetOuterHTMLRequest;
4545
use ChromeDevtoolsProtocol\Model\DOM\GetOuterHTMLResponse;
46+
use ChromeDevtoolsProtocol\Model\DOM\GetQueryingDescendantsForContainerRequest;
47+
use ChromeDevtoolsProtocol\Model\DOM\GetQueryingDescendantsForContainerResponse;
4648
use ChromeDevtoolsProtocol\Model\DOM\GetRelayoutBoundaryRequest;
4749
use ChromeDevtoolsProtocol\Model\DOM\GetRelayoutBoundaryResponse;
4850
use ChromeDevtoolsProtocol\Model\DOM\GetSearchResultsRequest;
@@ -318,6 +320,20 @@ public function getNodeStackTraces(
318320
public function getOuterHTML(ContextInterface $ctx, GetOuterHTMLRequest $request): GetOuterHTMLResponse;
319321

320322

323+
/**
324+
* Returns the descendants of a container query container that have container queries against this container.
325+
*
326+
* @param ContextInterface $ctx
327+
* @param GetQueryingDescendantsForContainerRequest $request
328+
*
329+
* @return GetQueryingDescendantsForContainerResponse
330+
*/
331+
public function getQueryingDescendantsForContainer(
332+
ContextInterface $ctx,
333+
GetQueryingDescendantsForContainerRequest $request
334+
): GetQueryingDescendantsForContainerResponse;
335+
336+
321337
/**
322338
* Returns the id of the nearest ancestor that is a relayout boundary.
323339
*
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\DOM;
4+
5+
/**
6+
* Request for DOM.getQueryingDescendantsForContainer command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <jakub.kulhan@gmail.com>
11+
*/
12+
final class GetQueryingDescendantsForContainerRequest implements \JsonSerializable
13+
{
14+
/**
15+
* Id of the container node to find querying descendants from.
16+
*
17+
* @var int
18+
*/
19+
public $nodeId;
20+
21+
22+
public static function fromJson($data)
23+
{
24+
$instance = new static();
25+
if (isset($data->nodeId)) {
26+
$instance->nodeId = (int)$data->nodeId;
27+
}
28+
return $instance;
29+
}
30+
31+
32+
public function jsonSerialize()
33+
{
34+
$data = new \stdClass();
35+
if ($this->nodeId !== null) {
36+
$data->nodeId = $this->nodeId;
37+
}
38+
return $data;
39+
}
40+
41+
42+
/**
43+
* Create new instance using builder.
44+
*
45+
* @return GetQueryingDescendantsForContainerRequestBuilder
46+
*/
47+
public static function builder(): GetQueryingDescendantsForContainerRequestBuilder
48+
{
49+
return new GetQueryingDescendantsForContainerRequestBuilder();
50+
}
51+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\DOM;
4+
5+
use ChromeDevtoolsProtocol\Exception\BuilderException;
6+
7+
/**
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <jakub.kulhan@gmail.com>
11+
*/
12+
final class GetQueryingDescendantsForContainerRequestBuilder
13+
{
14+
private $nodeId;
15+
16+
17+
/**
18+
* Validate non-optional parameters and return new instance.
19+
*/
20+
public function build(): GetQueryingDescendantsForContainerRequest
21+
{
22+
$instance = new GetQueryingDescendantsForContainerRequest();
23+
if ($this->nodeId === null) {
24+
throw new BuilderException('Property [nodeId] is required.');
25+
}
26+
$instance->nodeId = $this->nodeId;
27+
return $instance;
28+
}
29+
30+
31+
/**
32+
* @param int $nodeId
33+
*
34+
* @return self
35+
*/
36+
public function setNodeId($nodeId): self
37+
{
38+
$this->nodeId = $nodeId;
39+
return $this;
40+
}
41+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\DOM;
4+
5+
/**
6+
* Response to DOM.getQueryingDescendantsForContainer command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <jakub.kulhan@gmail.com>
11+
*/
12+
final class GetQueryingDescendantsForContainerResponse implements \JsonSerializable
13+
{
14+
/**
15+
* Descendant nodes with container queries against the given container.
16+
*
17+
* @var int[]
18+
*/
19+
public $nodeIds;
20+
21+
22+
public static function fromJson($data)
23+
{
24+
$instance = new static();
25+
if (isset($data->nodeIds)) {
26+
$instance->nodeIds = [];
27+
if (isset($data->nodeIds)) {
28+
$instance->nodeIds = [];
29+
foreach ($data->nodeIds as $item) {
30+
$instance->nodeIds[] = (int)$item;
31+
}
32+
}
33+
}
34+
return $instance;
35+
}
36+
37+
38+
public function jsonSerialize()
39+
{
40+
$data = new \stdClass();
41+
if ($this->nodeIds !== null) {
42+
$data->nodeIds = [];
43+
if ($this->nodeIds !== null) {
44+
$data->nodeIds = [];
45+
foreach ($this->nodeIds as $item) {
46+
$data->nodeIds[] = $item;
47+
}
48+
}
49+
}
50+
return $data;
51+
}
52+
}

protocol.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6662,6 +6662,28 @@
66626662
}
66636663
]
66646664
},
6665+
{
6666+
"name": "getQueryingDescendantsForContainer",
6667+
"description": "Returns the descendants of a container query container that have container queries against this container.",
6668+
"experimental": true,
6669+
"parameters": [
6670+
{
6671+
"name": "nodeId",
6672+
"description": "Id of the container node to find querying descendants from.",
6673+
"$ref": "NodeId"
6674+
}
6675+
],
6676+
"returns": [
6677+
{
6678+
"name": "nodeIds",
6679+
"description": "Descendant nodes with container queries against the given container.",
6680+
"type": "array",
6681+
"items": {
6682+
"$ref": "NodeId"
6683+
}
6684+
}
6685+
]
6686+
},
66656687
{
66666688
"name": "getRelayoutBoundary",
66676689
"description": "Returns the id of the nearest ancestor that is a relayout boundary.",

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7420665760e586c06ca048bcdd70e15c protocol.json
1+
43a92c5a9258c1a138e9d21da2f0c650 protocol.json

0 commit comments

Comments
 (0)