Skip to content

Commit a340b9b

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent d86f70b commit a340b9b

File tree

7 files changed

+143
-1
lines changed

7 files changed

+143
-1
lines changed

gen-src/ChromeDevtoolsProtocol/Domain/EmulationDomain.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use ChromeDevtoolsProtocol\Model\Emulation\SetPageScaleFactorRequest;
1818
use ChromeDevtoolsProtocol\Model\Emulation\SetScriptExecutionDisabledRequest;
1919
use ChromeDevtoolsProtocol\Model\Emulation\SetScrollbarsHiddenRequest;
20+
use ChromeDevtoolsProtocol\Model\Emulation\SetTimezoneOverrideRequest;
2021
use ChromeDevtoolsProtocol\Model\Emulation\SetTouchEmulationEnabledRequest;
2122
use ChromeDevtoolsProtocol\Model\Emulation\SetUserAgentOverrideRequest;
2223
use ChromeDevtoolsProtocol\Model\Emulation\SetVirtualTimePolicyRequest;
@@ -138,6 +139,12 @@ public function setScrollbarsHidden(ContextInterface $ctx, SetScrollbarsHiddenRe
138139
}
139140

140141

142+
public function setTimezoneOverride(ContextInterface $ctx, SetTimezoneOverrideRequest $request): void
143+
{
144+
$this->internalClient->executeCommand($ctx, 'Emulation.setTimezoneOverride', $request);
145+
}
146+
147+
141148
public function setTouchEmulationEnabled(ContextInterface $ctx, SetTouchEmulationEnabledRequest $request): void
142149
{
143150
$this->internalClient->executeCommand($ctx, 'Emulation.setTouchEmulationEnabled', $request);

gen-src/ChromeDevtoolsProtocol/Domain/EmulationDomainInterface.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use ChromeDevtoolsProtocol\Model\Emulation\SetPageScaleFactorRequest;
1717
use ChromeDevtoolsProtocol\Model\Emulation\SetScriptExecutionDisabledRequest;
1818
use ChromeDevtoolsProtocol\Model\Emulation\SetScrollbarsHiddenRequest;
19+
use ChromeDevtoolsProtocol\Model\Emulation\SetTimezoneOverrideRequest;
1920
use ChromeDevtoolsProtocol\Model\Emulation\SetTouchEmulationEnabledRequest;
2021
use ChromeDevtoolsProtocol\Model\Emulation\SetUserAgentOverrideRequest;
2122
use ChromeDevtoolsProtocol\Model\Emulation\SetVirtualTimePolicyRequest;
@@ -205,6 +206,17 @@ public function setScriptExecutionDisabled(ContextInterface $ctx, SetScriptExecu
205206
public function setScrollbarsHidden(ContextInterface $ctx, SetScrollbarsHiddenRequest $request): void;
206207

207208

209+
/**
210+
* Overrides default host system timezone with the specified one.
211+
*
212+
* @param ContextInterface $ctx
213+
* @param SetTimezoneOverrideRequest $request
214+
*
215+
* @return void
216+
*/
217+
public function setTimezoneOverride(ContextInterface $ctx, SetTimezoneOverrideRequest $request): void;
218+
219+
208220
/**
209221
* Enables touch on platforms which do not support them.
210222
*
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\Emulation;
4+
5+
/**
6+
* Request for Emulation.setTimezoneOverride command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class SetTimezoneOverrideRequest implements \JsonSerializable
13+
{
14+
/**
15+
* The timezone identifier. If empty, disables the override and restores default host system timezone.
16+
*
17+
* @var string
18+
*/
19+
public $timezoneId;
20+
21+
22+
public static function fromJson($data)
23+
{
24+
$instance = new static();
25+
if (isset($data->timezoneId)) {
26+
$instance->timezoneId = (string)$data->timezoneId;
27+
}
28+
return $instance;
29+
}
30+
31+
32+
public function jsonSerialize()
33+
{
34+
$data = new \stdClass();
35+
if ($this->timezoneId !== null) {
36+
$data->timezoneId = $this->timezoneId;
37+
}
38+
return $data;
39+
}
40+
41+
42+
/**
43+
* Create new instance using builder.
44+
*
45+
* @return SetTimezoneOverrideRequestBuilder
46+
*/
47+
public static function builder(): SetTimezoneOverrideRequestBuilder
48+
{
49+
return new SetTimezoneOverrideRequestBuilder();
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\Emulation;
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 SetTimezoneOverrideRequestBuilder
13+
{
14+
private $timezoneId;
15+
16+
17+
/**
18+
* Validate non-optional parameters and return new instance.
19+
*/
20+
public function build(): SetTimezoneOverrideRequest
21+
{
22+
$instance = new SetTimezoneOverrideRequest();
23+
if ($this->timezoneId === null) {
24+
throw new BuilderException('Property [timezoneId] is required.');
25+
}
26+
$instance->timezoneId = $this->timezoneId;
27+
return $instance;
28+
}
29+
30+
31+
/**
32+
* @param string $timezoneId
33+
*
34+
* @return self
35+
*/
36+
public function setTimezoneId($timezoneId): self
37+
{
38+
$this->timezoneId = $timezoneId;
39+
return $this;
40+
}
41+
}

gen-src/ChromeDevtoolsProtocol/Model/Network/Response.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ final class Response implements \JsonSerializable
109109
*/
110110
public $fromServiceWorker;
111111

112+
/**
113+
* Specifies that the request was served from the prefetch cache.
114+
*
115+
* @var bool|null
116+
*/
117+
public $fromPrefetchCache;
118+
112119
/**
113120
* Total number of bytes received for this request so far.
114121
*
@@ -190,6 +197,9 @@ public static function fromJson($data)
190197
if (isset($data->fromServiceWorker)) {
191198
$instance->fromServiceWorker = (bool)$data->fromServiceWorker;
192199
}
200+
if (isset($data->fromPrefetchCache)) {
201+
$instance->fromPrefetchCache = (bool)$data->fromPrefetchCache;
202+
}
193203
if (isset($data->encodedDataLength)) {
194204
$instance->encodedDataLength = $data->encodedDataLength;
195205
}
@@ -254,6 +264,9 @@ public function jsonSerialize()
254264
if ($this->fromServiceWorker !== null) {
255265
$data->fromServiceWorker = $this->fromServiceWorker;
256266
}
267+
if ($this->fromPrefetchCache !== null) {
268+
$data->fromPrefetchCache = $this->fromPrefetchCache;
269+
}
257270
if ($this->encodedDataLength !== null) {
258271
$data->encodedDataLength = $this->encodedDataLength;
259272
}

protocol.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7259,6 +7259,18 @@
72597259
}
72607260
]
72617261
},
7262+
{
7263+
"name": "setTimezoneOverride",
7264+
"description": "Overrides default host system timezone with the specified one.",
7265+
"experimental": true,
7266+
"parameters": [
7267+
{
7268+
"name": "timezoneId",
7269+
"description": "The timezone identifier. If empty, disables the override and restores default host system timezone.",
7270+
"type": "string"
7271+
}
7272+
]
7273+
},
72627274
{
72637275
"name": "setTouchEmulationEnabled",
72647276
"description": "Enables touch on platforms which do not support them.",
@@ -10478,6 +10490,12 @@
1047810490
"optional": true,
1047910491
"type": "boolean"
1048010492
},
10493+
{
10494+
"name": "fromPrefetchCache",
10495+
"description": "Specifies that the request was served from the prefetch cache.",
10496+
"optional": true,
10497+
"type": "boolean"
10498+
},
1048110499
{
1048210500
"name": "encodedDataLength",
1048310501
"description": "Total number of bytes received for this request so far.",

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5b7ded6b8d5451f2568c6deb29d0b533 protocol.json
1+
3a1628dd8bfea39c6146c3e71629b668 protocol.json

0 commit comments

Comments
 (0)