Skip to content

Commit e24c9b3

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent 9ca689c commit e24c9b3

File tree

7 files changed

+131
-2
lines changed

7 files changed

+131
-2
lines changed

gen-src/ChromeDevtoolsProtocol/Domain/PageDomain.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
use ChromeDevtoolsProtocol\Model\Page\SetGeolocationOverrideRequest;
8585
use ChromeDevtoolsProtocol\Model\Page\SetInterceptFileChooserDialogRequest;
8686
use ChromeDevtoolsProtocol\Model\Page\SetLifecycleEventsEnabledRequest;
87+
use ChromeDevtoolsProtocol\Model\Page\SetRPHRegistrationModeRequest;
8788
use ChromeDevtoolsProtocol\Model\Page\SetSPCTransactionModeRequest;
8889
use ChromeDevtoolsProtocol\Model\Page\SetTouchEmulationEnabledRequest;
8990
use ChromeDevtoolsProtocol\Model\Page\SetWebLifecycleStateRequest;
@@ -469,6 +470,12 @@ public function setLifecycleEventsEnabled(ContextInterface $ctx, SetLifecycleEve
469470
}
470471

471472

473+
public function setRPHRegistrationMode(ContextInterface $ctx, SetRPHRegistrationModeRequest $request): void
474+
{
475+
$this->internalClient->executeCommand($ctx, 'Page.setRPHRegistrationMode', $request);
476+
}
477+
478+
472479
public function setSPCTransactionMode(ContextInterface $ctx, SetSPCTransactionModeRequest $request): void
473480
{
474481
$this->internalClient->executeCommand($ctx, 'Page.setSPCTransactionMode', $request);

gen-src/ChromeDevtoolsProtocol/Domain/PageDomainInterface.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
use ChromeDevtoolsProtocol\Model\Page\SetGeolocationOverrideRequest;
8484
use ChromeDevtoolsProtocol\Model\Page\SetInterceptFileChooserDialogRequest;
8585
use ChromeDevtoolsProtocol\Model\Page\SetLifecycleEventsEnabledRequest;
86+
use ChromeDevtoolsProtocol\Model\Page\SetRPHRegistrationModeRequest;
8687
use ChromeDevtoolsProtocol\Model\Page\SetSPCTransactionModeRequest;
8788
use ChromeDevtoolsProtocol\Model\Page\SetTouchEmulationEnabledRequest;
8889
use ChromeDevtoolsProtocol\Model\Page\SetWebLifecycleStateRequest;
@@ -673,6 +674,17 @@ public function setInterceptFileChooserDialog(
673674
public function setLifecycleEventsEnabled(ContextInterface $ctx, SetLifecycleEventsEnabledRequest $request): void;
674675

675676

677+
/**
678+
* Extensions for Custom Handlers API: https://html.spec.whatwg.org/multipage/system-state.html#rph-automation
679+
*
680+
* @param ContextInterface $ctx
681+
* @param SetRPHRegistrationModeRequest $request
682+
*
683+
* @return void
684+
*/
685+
public function setRPHRegistrationMode(ContextInterface $ctx, SetRPHRegistrationModeRequest $request): void;
686+
687+
676688
/**
677689
* Sets the Secure Payment Confirmation transaction mode. https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode
678690
*

gen-src/ChromeDevtoolsProtocol/Model/Page/PrerenderFinalStatusEnum.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ final class PrerenderFinalStatusEnum
6666
public const PRELOADING_DISABLED = 'PreloadingDisabled';
6767
public const BATTERY_SAVER_ENABLED = 'BatterySaverEnabled';
6868
public const ACTIVATED_DURING_MAIN_FRAME_NAVIGATION = 'ActivatedDuringMainFrameNavigation';
69+
public const PRELOADING_UNSUPPORTED_BY_WEB_CONTENTS = 'PreloadingUnsupportedByWebContents';
6970
}
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\Page;
4+
5+
/**
6+
* Request for Page.setRPHRegistrationMode command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class SetRPHRegistrationModeRequest implements \JsonSerializable
13+
{
14+
/** @var string */
15+
public $mode;
16+
17+
18+
/**
19+
* @param object $data
20+
* @return static
21+
*/
22+
public static function fromJson($data)
23+
{
24+
$instance = new static();
25+
if (isset($data->mode)) {
26+
$instance->mode = (string)$data->mode;
27+
}
28+
return $instance;
29+
}
30+
31+
32+
public function jsonSerialize()
33+
{
34+
$data = new \stdClass();
35+
if ($this->mode !== null) {
36+
$data->mode = $this->mode;
37+
}
38+
return $data;
39+
}
40+
41+
42+
/**
43+
* Create new instance using builder.
44+
*
45+
* @return SetRPHRegistrationModeRequestBuilder
46+
*/
47+
public static function builder(): SetRPHRegistrationModeRequestBuilder
48+
{
49+
return new SetRPHRegistrationModeRequestBuilder();
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\Page;
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 SetRPHRegistrationModeRequestBuilder
13+
{
14+
private $mode;
15+
16+
17+
/**
18+
* Validate non-optional parameters and return new instance.
19+
*/
20+
public function build(): SetRPHRegistrationModeRequest
21+
{
22+
$instance = new SetRPHRegistrationModeRequest();
23+
if ($this->mode === null) {
24+
throw new BuilderException('Property [mode] is required.');
25+
}
26+
$instance->mode = $this->mode;
27+
return $instance;
28+
}
29+
30+
31+
/**
32+
* @param string $mode
33+
*
34+
* @return self
35+
*/
36+
public function setMode($mode): self
37+
{
38+
$this->mode = $mode;
39+
return $this;
40+
}
41+
}

protocol.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18939,7 +18939,8 @@
1893918939
"ActivationFramePolicyNotCompatible",
1894018940
"PreloadingDisabled",
1894118941
"BatterySaverEnabled",
18942-
"ActivatedDuringMainFrameNavigation"
18942+
"ActivatedDuringMainFrameNavigation",
18943+
"PreloadingUnsupportedByWebContents"
1894318944
]
1894418945
}
1894518946
],
@@ -20021,6 +20022,22 @@
2002120022
}
2002220023
]
2002320024
},
20025+
{
20026+
"name": "setRPHRegistrationMode",
20027+
"description": "Extensions for Custom Handlers API: https://html.spec.whatwg.org/multipage/system-state.html#rph-automation",
20028+
"experimental": true,
20029+
"parameters": [
20030+
{
20031+
"name": "mode",
20032+
"type": "string",
20033+
"enum": [
20034+
"none",
20035+
"autoaccept",
20036+
"autoreject"
20037+
]
20038+
}
20039+
]
20040+
},
2002420041
{
2002520042
"name": "setSPCTransactionMode",
2002620043
"description": "Sets the Secure Payment Confirmation transaction mode. https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode",

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
872c448b4e6deb206b978117037b861f protocol.json
1+
0f8562d776aac1b305a8a1a135b692b5 protocol.json

0 commit comments

Comments
 (0)