File tree Expand file tree Collapse file tree
gen-src/ChromeDevtoolsProtocol Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040use ChromeDevtoolsProtocol \Model \Page \GetLayoutMetricsResponse ;
4141use ChromeDevtoolsProtocol \Model \Page \GetManifestIconsResponse ;
4242use ChromeDevtoolsProtocol \Model \Page \GetNavigationHistoryResponse ;
43+ use ChromeDevtoolsProtocol \Model \Page \GetOriginTrialsRequest ;
44+ use ChromeDevtoolsProtocol \Model \Page \GetOriginTrialsResponse ;
4345use ChromeDevtoolsProtocol \Model \Page \GetPermissionsPolicyStateRequest ;
4446use ChromeDevtoolsProtocol \Model \Page \GetPermissionsPolicyStateResponse ;
4547use ChromeDevtoolsProtocol \Model \Page \GetResourceContentRequest ;
@@ -275,6 +277,13 @@ public function getNavigationHistory(ContextInterface $ctx): GetNavigationHistor
275277 }
276278
277279
280+ public function getOriginTrials (ContextInterface $ ctx , GetOriginTrialsRequest $ request ): GetOriginTrialsResponse
281+ {
282+ $ response = $ this ->internalClient ->executeCommand ($ ctx , 'Page.getOriginTrials ' , $ request );
283+ return GetOriginTrialsResponse::fromJson ($ response );
284+ }
285+
286+
278287 public function getPermissionsPolicyState (
279288 ContextInterface $ ctx ,
280289 GetPermissionsPolicyStateRequest $ request
Original file line number Diff line number Diff line change 3939use ChromeDevtoolsProtocol \Model \Page \GetLayoutMetricsResponse ;
4040use ChromeDevtoolsProtocol \Model \Page \GetManifestIconsResponse ;
4141use ChromeDevtoolsProtocol \Model \Page \GetNavigationHistoryResponse ;
42+ use ChromeDevtoolsProtocol \Model \Page \GetOriginTrialsRequest ;
43+ use ChromeDevtoolsProtocol \Model \Page \GetOriginTrialsResponse ;
4244use ChromeDevtoolsProtocol \Model \Page \GetPermissionsPolicyStateRequest ;
4345use ChromeDevtoolsProtocol \Model \Page \GetPermissionsPolicyStateResponse ;
4446use ChromeDevtoolsProtocol \Model \Page \GetResourceContentRequest ;
@@ -350,6 +352,17 @@ public function getManifestIcons(ContextInterface $ctx): GetManifestIconsRespons
350352 public function getNavigationHistory (ContextInterface $ ctx ): GetNavigationHistoryResponse ;
351353
352354
355+ /**
356+ * Get Origin Trials on given frame.
357+ *
358+ * @param ContextInterface $ctx
359+ * @param GetOriginTrialsRequest $request
360+ *
361+ * @return GetOriginTrialsResponse
362+ */
363+ public function getOriginTrials (ContextInterface $ ctx , GetOriginTrialsRequest $ request ): GetOriginTrialsResponse ;
364+
365+
353366 /**
354367 * Get Permissions Policy state on given frame.
355368 *
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace ChromeDevtoolsProtocol \Model \Page ;
4+
5+ /**
6+ * Request for Page.getOriginTrials 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 GetOriginTrialsRequest implements \JsonSerializable
13+ {
14+ /** @var string */
15+ public $ frameId ;
16+
17+
18+ public static function fromJson ($ data )
19+ {
20+ $ instance = new static ();
21+ if (isset ($ data ->frameId )) {
22+ $ instance ->frameId = (string )$ data ->frameId ;
23+ }
24+ return $ instance ;
25+ }
26+
27+
28+ public function jsonSerialize ()
29+ {
30+ $ data = new \stdClass ();
31+ if ($ this ->frameId !== null ) {
32+ $ data ->frameId = $ this ->frameId ;
33+ }
34+ return $ data ;
35+ }
36+
37+
38+ /**
39+ * Create new instance using builder.
40+ *
41+ * @return GetOriginTrialsRequestBuilder
42+ */
43+ public static function builder (): GetOriginTrialsRequestBuilder
44+ {
45+ return new GetOriginTrialsRequestBuilder ();
46+ }
47+ }
Original file line number Diff line number Diff line change 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 <jakub.kulhan@gmail.com>
11+ */
12+ final class GetOriginTrialsRequestBuilder
13+ {
14+ private $ frameId ;
15+
16+
17+ /**
18+ * Validate non-optional parameters and return new instance.
19+ */
20+ public function build (): GetOriginTrialsRequest
21+ {
22+ $ instance = new GetOriginTrialsRequest ();
23+ if ($ this ->frameId === null ) {
24+ throw new BuilderException ('Property [frameId] is required. ' );
25+ }
26+ $ instance ->frameId = $ this ->frameId ;
27+ return $ instance ;
28+ }
29+
30+
31+ /**
32+ * @param string $frameId
33+ *
34+ * @return self
35+ */
36+ public function setFrameId ($ frameId ): self
37+ {
38+ $ this ->frameId = $ frameId ;
39+ return $ this ;
40+ }
41+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace ChromeDevtoolsProtocol \Model \Page ;
4+
5+ /**
6+ * Response to Page.getOriginTrials 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 GetOriginTrialsResponse implements \JsonSerializable
13+ {
14+ /** @var OriginTrial[] */
15+ public $ originTrials ;
16+
17+
18+ public static function fromJson ($ data )
19+ {
20+ $ instance = new static ();
21+ if (isset ($ data ->originTrials )) {
22+ $ instance ->originTrials = [];
23+ foreach ($ data ->originTrials as $ item ) {
24+ $ instance ->originTrials [] = OriginTrial::fromJson ($ item );
25+ }
26+ }
27+ return $ instance ;
28+ }
29+
30+
31+ public function jsonSerialize ()
32+ {
33+ $ data = new \stdClass ();
34+ if ($ this ->originTrials !== null ) {
35+ $ data ->originTrials = [];
36+ foreach ($ this ->originTrials as $ item ) {
37+ $ data ->originTrials [] = $ item ->jsonSerialize ();
38+ }
39+ }
40+ return $ data ;
41+ }
42+ }
Original file line number Diff line number Diff line change 1793417934 }
1793517935 ]
1793617936 },
17937+ {
17938+ "name": "getOriginTrials",
17939+ "description": "Get Origin Trials on given frame.",
17940+ "experimental": true,
17941+ "parameters": [
17942+ {
17943+ "name": "frameId",
17944+ "$ref": "FrameId"
17945+ }
17946+ ],
17947+ "returns": [
17948+ {
17949+ "name": "originTrials",
17950+ "type": "array",
17951+ "items": {
17952+ "$ref": "OriginTrial"
17953+ }
17954+ }
17955+ ]
17956+ },
1793717957 {
1793817958 "name": "getPermissionsPolicyState",
1793917959 "description": "Get Permissions Policy state on given frame.",
Original file line number Diff line number Diff line change 1- 4a069d7422dcfee71fe8bd86dd3601e4 protocol.json
1+ e76145c463e65cbf6441f0e460b2d0ba protocol.json
You can’t perform that action at this time.
0 commit comments