Skip to content

Commit bb8820e

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent 09f29fa commit bb8820e

File tree

4 files changed

+36
-2
lines changed

4 files changed

+36
-2
lines changed

gen-src/ChromeDevtoolsProtocol/Model/Accessibility/GetFullAXTreeRequest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ final class GetFullAXTreeRequest implements \JsonSerializable
1616
*
1717
* @var int|null
1818
*/
19+
public $depth;
20+
21+
/**
22+
* Deprecated. This parameter has been renamed to `depth`. If depth is not provided, max_depth will be used.
23+
*
24+
* @var int|null
25+
*/
1926
public $max_depth;
2027

2128
/**
@@ -29,6 +36,9 @@ final class GetFullAXTreeRequest implements \JsonSerializable
2936
public static function fromJson($data)
3037
{
3138
$instance = new static();
39+
if (isset($data->depth)) {
40+
$instance->depth = (int)$data->depth;
41+
}
3242
if (isset($data->max_depth)) {
3343
$instance->max_depth = (int)$data->max_depth;
3444
}
@@ -42,6 +52,9 @@ public static function fromJson($data)
4252
public function jsonSerialize()
4353
{
4454
$data = new \stdClass();
55+
if ($this->depth !== null) {
56+
$data->depth = $this->depth;
57+
}
4558
if ($this->max_depth !== null) {
4659
$data->max_depth = $this->max_depth;
4760
}

gen-src/ChromeDevtoolsProtocol/Model/Accessibility/GetFullAXTreeRequestBuilder.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010
final class GetFullAXTreeRequestBuilder
1111
{
12+
private $depth;
1213
private $max_depth;
1314
private $frameId;
1415

@@ -19,12 +20,25 @@ final class GetFullAXTreeRequestBuilder
1920
public function build(): GetFullAXTreeRequest
2021
{
2122
$instance = new GetFullAXTreeRequest();
23+
$instance->depth = $this->depth;
2224
$instance->max_depth = $this->max_depth;
2325
$instance->frameId = $this->frameId;
2426
return $instance;
2527
}
2628

2729

30+
/**
31+
* @param int|null $depth
32+
*
33+
* @return self
34+
*/
35+
public function setDepth($depth): self
36+
{
37+
$this->depth = $depth;
38+
return $this;
39+
}
40+
41+
2842
/**
2943
* @param int|null $max_depth
3044
*

protocol.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,11 +366,18 @@
366366
"experimental": true,
367367
"parameters": [
368368
{
369-
"name": "max_depth",
369+
"name": "depth",
370370
"description": "The maximum depth at which descendants of the root node should be retrieved. If omitted, the full tree is returned.",
371371
"optional": true,
372372
"type": "integer"
373373
},
374+
{
375+
"name": "max_depth",
376+
"description": "Deprecated. This parameter has been renamed to `depth`. If depth is not provided, max_depth will be used.",
377+
"deprecated": true,
378+
"optional": true,
379+
"type": "integer"
380+
},
374381
{
375382
"name": "frameId",
376383
"description": "The frame for whose document the AX tree should be retrieved. If omited, the root frame is used.",

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4aa7188ab97abd826798518d1f4e3956 protocol.json
1+
2636a23234e639bf1a2edb623431ac90 protocol.json

0 commit comments

Comments
 (0)