Skip to content

Commit 22d42c3

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent b68c729 commit 22d42c3

File tree

6 files changed

+123
-1
lines changed

6 files changed

+123
-1
lines changed

gen-src/ChromeDevtoolsProtocol/Domain/OverlayDomain.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use ChromeDevtoolsProtocol\Model\Overlay\SetShowDebugBordersRequest;
2121
use ChromeDevtoolsProtocol\Model\Overlay\SetShowFPSCounterRequest;
2222
use ChromeDevtoolsProtocol\Model\Overlay\SetShowHitTestBordersRequest;
23+
use ChromeDevtoolsProtocol\Model\Overlay\SetShowLayoutShiftRegionsRequest;
2324
use ChromeDevtoolsProtocol\Model\Overlay\SetShowPaintRectsRequest;
2425
use ChromeDevtoolsProtocol\Model\Overlay\SetShowScrollBottleneckRectsRequest;
2526
use ChromeDevtoolsProtocol\Model\Overlay\SetShowViewportSizeOnResizeRequest;
@@ -125,6 +126,12 @@ public function setShowHitTestBorders(ContextInterface $ctx, SetShowHitTestBorde
125126
}
126127

127128

129+
public function setShowLayoutShiftRegions(ContextInterface $ctx, SetShowLayoutShiftRegionsRequest $request): void
130+
{
131+
$this->internalClient->executeCommand($ctx, 'Overlay.setShowLayoutShiftRegions', $request);
132+
}
133+
134+
128135
public function setShowPaintRects(ContextInterface $ctx, SetShowPaintRectsRequest $request): void
129136
{
130137
$this->internalClient->executeCommand($ctx, 'Overlay.setShowPaintRects', $request);

gen-src/ChromeDevtoolsProtocol/Domain/OverlayDomainInterface.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use ChromeDevtoolsProtocol\Model\Overlay\SetShowDebugBordersRequest;
2020
use ChromeDevtoolsProtocol\Model\Overlay\SetShowFPSCounterRequest;
2121
use ChromeDevtoolsProtocol\Model\Overlay\SetShowHitTestBordersRequest;
22+
use ChromeDevtoolsProtocol\Model\Overlay\SetShowLayoutShiftRegionsRequest;
2223
use ChromeDevtoolsProtocol\Model\Overlay\SetShowPaintRectsRequest;
2324
use ChromeDevtoolsProtocol\Model\Overlay\SetShowScrollBottleneckRectsRequest;
2425
use ChromeDevtoolsProtocol\Model\Overlay\SetShowViewportSizeOnResizeRequest;
@@ -186,6 +187,17 @@ public function setShowFPSCounter(ContextInterface $ctx, SetShowFPSCounterReques
186187
public function setShowHitTestBorders(ContextInterface $ctx, SetShowHitTestBordersRequest $request): void;
187188

188189

190+
/**
191+
* Requests that backend shows layout shift regions
192+
*
193+
* @param ContextInterface $ctx
194+
* @param SetShowLayoutShiftRegionsRequest $request
195+
*
196+
* @return void
197+
*/
198+
public function setShowLayoutShiftRegions(ContextInterface $ctx, SetShowLayoutShiftRegionsRequest $request): void;
199+
200+
189201
/**
190202
* Requests that backend shows paint rectangles
191203
*
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\Overlay;
4+
5+
/**
6+
* Request for Overlay.setShowLayoutShiftRegions command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class SetShowLayoutShiftRegionsRequest implements \JsonSerializable
13+
{
14+
/**
15+
* True for showing layout shift regions
16+
*
17+
* @var bool
18+
*/
19+
public $result;
20+
21+
22+
public static function fromJson($data)
23+
{
24+
$instance = new static();
25+
if (isset($data->result)) {
26+
$instance->result = (bool)$data->result;
27+
}
28+
return $instance;
29+
}
30+
31+
32+
public function jsonSerialize()
33+
{
34+
$data = new \stdClass();
35+
if ($this->result !== null) {
36+
$data->result = $this->result;
37+
}
38+
return $data;
39+
}
40+
41+
42+
/**
43+
* Create new instance using builder.
44+
*
45+
* @return SetShowLayoutShiftRegionsRequestBuilder
46+
*/
47+
public static function builder(): SetShowLayoutShiftRegionsRequestBuilder
48+
{
49+
return new SetShowLayoutShiftRegionsRequestBuilder();
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\Overlay;
4+
5+
use ChromeDevtoolsProtocol\Exception\BuilderException;
6+
7+
/**
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class SetShowLayoutShiftRegionsRequestBuilder
13+
{
14+
private $result;
15+
16+
17+
/**
18+
* Validate non-optional parameters and return new instance.
19+
*/
20+
public function build(): SetShowLayoutShiftRegionsRequest
21+
{
22+
$instance = new SetShowLayoutShiftRegionsRequest();
23+
if ($this->result === null) {
24+
throw new BuilderException('Property [result] is required.');
25+
}
26+
$instance->result = $this->result;
27+
return $instance;
28+
}
29+
30+
31+
/**
32+
* @param bool $result
33+
*
34+
* @return self
35+
*/
36+
public function setResult($result): self
37+
{
38+
$this->result = $result;
39+
return $this;
40+
}
41+
}

protocol.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12495,6 +12495,17 @@
1249512495
}
1249612496
]
1249712497
},
12498+
{
12499+
"name": "setShowLayoutShiftRegions",
12500+
"description": "Requests that backend shows layout shift regions",
12501+
"parameters": [
12502+
{
12503+
"name": "result",
12504+
"description": "True for showing layout shift regions",
12505+
"type": "boolean"
12506+
}
12507+
]
12508+
},
1249812509
{
1249912510
"name": "setShowPaintRects",
1250012511
"description": "Requests that backend shows paint rectangles",

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
47fdaabbe7bba88c3949e2d1ba4a642d protocol.json
1+
79bc60a6bf33501f332a5aa9b84286f0 protocol.json

0 commit comments

Comments
 (0)