Skip to content

Commit cc25ff3

Browse files
author
Jakub Kulhan
committed
autoupdated protocol.json & generated files
1 parent 72e0417 commit cc25ff3

File tree

6 files changed

+124
-19
lines changed

6 files changed

+124
-19
lines changed

gen-src/ChromeDevtoolsProtocol/Domain/PageDomain.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
use ChromeDevtoolsProtocol\Model\Page\FrameStartedLoadingEvent;
3434
use ChromeDevtoolsProtocol\Model\Page\FrameStoppedLoadingEvent;
3535
use ChromeDevtoolsProtocol\Model\Page\GenerateTestReportRequest;
36+
use ChromeDevtoolsProtocol\Model\Page\GetAppIdResponse;
3637
use ChromeDevtoolsProtocol\Model\Page\GetAppManifestResponse;
3738
use ChromeDevtoolsProtocol\Model\Page\GetCookiesResponse;
3839
use ChromeDevtoolsProtocol\Model\Page\GetFrameTreeResponse;
@@ -221,6 +222,14 @@ public function generateTestReport(ContextInterface $ctx, GenerateTestReportRequ
221222
}
222223

223224

225+
public function getAppId(ContextInterface $ctx): GetAppIdResponse
226+
{
227+
$request = new \stdClass();
228+
$response = $this->internalClient->executeCommand($ctx, 'Page.getAppId', $request);
229+
return GetAppIdResponse::fromJson($response);
230+
}
231+
232+
224233
public function getAppManifest(ContextInterface $ctx): GetAppManifestResponse
225234
{
226235
$request = new \stdClass();

gen-src/ChromeDevtoolsProtocol/Domain/PageDomainInterface.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
use ChromeDevtoolsProtocol\Model\Page\FrameStartedLoadingEvent;
3333
use ChromeDevtoolsProtocol\Model\Page\FrameStoppedLoadingEvent;
3434
use ChromeDevtoolsProtocol\Model\Page\GenerateTestReportRequest;
35+
use ChromeDevtoolsProtocol\Model\Page\GetAppIdResponse;
3536
use ChromeDevtoolsProtocol\Model\Page\GetAppManifestResponse;
3637
use ChromeDevtoolsProtocol\Model\Page\GetCookiesResponse;
3738
use ChromeDevtoolsProtocol\Model\Page\GetFrameTreeResponse;
@@ -282,6 +283,16 @@ public function enable(ContextInterface $ctx): void;
282283
public function generateTestReport(ContextInterface $ctx, GenerateTestReportRequest $request): void;
283284

284285

286+
/**
287+
* Returns the unique (PWA) app id.
288+
*
289+
* @param ContextInterface $ctx
290+
*
291+
* @return GetAppIdResponse
292+
*/
293+
public function getAppId(ContextInterface $ctx): GetAppIdResponse;
294+
295+
285296
/**
286297
* Call Page.getAppManifest command.
287298
*

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

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,29 @@ final class BackForwardCacheNotRestoredReasonEnum
107107
const ISOLATED_WORLD_SCRIPT = 'IsolatedWorldScript';
108108
const INJECTED_STYLE_SHEET = 'InjectedStyleSheet';
109109
const MEDIA_SESSION_IMPL_ON_SERVICE_CREATED = 'MediaSessionImplOnServiceCreated';
110-
const SECURITY_HANDLER = 'SecurityHandler';
111-
const WEB_AUTHENTICATION_A_P_I = 'WebAuthenticationAPI';
112-
const FILE_CHOOSER = 'FileChooser';
113-
const SERIAL = 'Serial';
114-
const FILE_SYSTEM_ACCESS = 'FileSystemAccess';
115-
const MEDIA_DEVICES_DISPATCHER_HOST = 'MediaDevicesDispatcherHost';
116-
const WEB_BLUETOOTH = 'WebBluetooth';
117-
const WEB_U_S_B = 'WebUSB';
118-
const MEDIA_SESSION = 'MediaSession';
110+
const CONTENT_MEDIA_SESSION_IMPL_ON_SERVICE_CREATED = 'ContentMediaSessionImplOnServiceCreated';
111+
const CONTENT_SECURITY_HANDLER = 'ContentSecurityHandler';
112+
const CONTENT_WEB_AUTHENTICATION_A_P_I = 'ContentWebAuthenticationAPI';
113+
const CONTENT_FILE_CHOOSER = 'ContentFileChooser';
114+
const CONTENT_SERIAL = 'ContentSerial';
115+
const CONTENT_FILE_SYSTEM_ACCESS = 'ContentFileSystemAccess';
116+
const CONTENT_MEDIA_DEVICES_DISPATCHER_HOST = 'ContentMediaDevicesDispatcherHost';
117+
const CONTENT_WEB_BLUETOOTH = 'ContentWebBluetooth';
118+
const CONTENT_WEB_U_S_B = 'ContentWebUSB';
119+
const CONTENT_MEDIA_SESSION = 'ContentMediaSession';
120+
const EMBEDDER_POPUP_BLOCKER_TAB_HELPER = 'EmbedderPopupBlockerTabHelper';
121+
const EMBEDDER_SAFE_BROWSING_TRIGGERED_POPUP_BLOCKER = 'EmbedderSafeBrowsingTriggeredPopupBlocker';
122+
const EMBEDDER_SAFE_BROWSING_THREAT_DETAILS = 'EmbedderSafeBrowsingThreatDetails';
123+
const EMBEDDER_APP_BANNER_MANAGER = 'EmbedderAppBannerManager';
124+
const EMBEDDER_DOM_DISTILLER_VIEWER_SOURCE = 'EmbedderDomDistillerViewerSource';
125+
const EMBEDDER_DOM_DISTILLER_SELF_DELETING_REQUEST_DELEGATE = 'EmbedderDomDistillerSelfDeletingRequestDelegate';
126+
const EMBEDDER_OOM_INTERVENTION_TAB_HELPER = 'EmbedderOomInterventionTabHelper';
127+
const EMBEDDER_OFFLINE_PAGE = 'EmbedderOfflinePage';
128+
const EMBEDDER_CHROME_PASSWORD_MANAGER_CLIENT_BIND_CREDENTIAL_MANAGER = 'EmbedderChromePasswordManagerClientBindCredentialManager';
129+
const EMBEDDER_PERMISSION_REQUEST_MANAGER = 'EmbedderPermissionRequestManager';
130+
const EMBEDDER_MODAL_DIALOG = 'EmbedderModalDialog';
131+
const EMBEDDER_EXTENSIONS = 'EmbedderExtensions';
132+
const EMBEDDER_EXTENSION_MESSAGING = 'EmbedderExtensionMessaging';
133+
const EMBEDDER_EXTENSION_MESSAGING_FOR_OPEN_PORT = 'EmbedderExtensionMessagingForOpenPort';
134+
const EMBEDDER_EXTENSION_SENT_MESSAGE_TO_CACHED_FRAME = 'EmbedderExtensionSentMessageToCachedFrame';
119135
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
namespace ChromeDevtoolsProtocol\Model\Page;
4+
5+
/**
6+
* Response to Page.getAppId command.
7+
*
8+
* @generated This file has been auto-generated, do not edit.
9+
*
10+
* @author Jakub Kulhan <[email protected]>
11+
*/
12+
final class GetAppIdResponse implements \JsonSerializable
13+
{
14+
/**
15+
* Only returns a value if the feature flag 'WebAppEnableManifestId' is enabled
16+
*
17+
* @var string|null
18+
*/
19+
public $appId;
20+
21+
22+
public static function fromJson($data)
23+
{
24+
$instance = new static();
25+
if (isset($data->appId)) {
26+
$instance->appId = (string)$data->appId;
27+
}
28+
return $instance;
29+
}
30+
31+
32+
public function jsonSerialize()
33+
{
34+
$data = new \stdClass();
35+
if ($this->appId !== null) {
36+
$data->appId = $this->appId;
37+
}
38+
return $data;
39+
}
40+
}

protocol.json

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17680,15 +17680,31 @@
1768017680
"IsolatedWorldScript",
1768117681
"InjectedStyleSheet",
1768217682
"MediaSessionImplOnServiceCreated",
17683-
"SecurityHandler",
17684-
"WebAuthenticationAPI",
17685-
"FileChooser",
17686-
"Serial",
17687-
"FileSystemAccess",
17688-
"MediaDevicesDispatcherHost",
17689-
"WebBluetooth",
17690-
"WebUSB",
17691-
"MediaSession"
17683+
"ContentMediaSessionImplOnServiceCreated",
17684+
"ContentSecurityHandler",
17685+
"ContentWebAuthenticationAPI",
17686+
"ContentFileChooser",
17687+
"ContentSerial",
17688+
"ContentFileSystemAccess",
17689+
"ContentMediaDevicesDispatcherHost",
17690+
"ContentWebBluetooth",
17691+
"ContentWebUSB",
17692+
"ContentMediaSession",
17693+
"EmbedderPopupBlockerTabHelper",
17694+
"EmbedderSafeBrowsingTriggeredPopupBlocker",
17695+
"EmbedderSafeBrowsingThreatDetails",
17696+
"EmbedderAppBannerManager",
17697+
"EmbedderDomDistillerViewerSource",
17698+
"EmbedderDomDistillerSelfDeletingRequestDelegate",
17699+
"EmbedderOomInterventionTabHelper",
17700+
"EmbedderOfflinePage",
17701+
"EmbedderChromePasswordManagerClientBindCredentialManager",
17702+
"EmbedderPermissionRequestManager",
17703+
"EmbedderModalDialog",
17704+
"EmbedderExtensions",
17705+
"EmbedderExtensionMessaging",
17706+
"EmbedderExtensionMessagingForOpenPort",
17707+
"EmbedderExtensionSentMessageToCachedFrame"
1769217708
]
1769317709
},
1769417710
{
@@ -17974,6 +17990,19 @@
1797417990
}
1797517991
]
1797617992
},
17993+
{
17994+
"name": "getAppId",
17995+
"description": "Returns the unique (PWA) app id.",
17996+
"experimental": true,
17997+
"returns": [
17998+
{
17999+
"name": "appId",
18000+
"description": "Only returns a value if the feature flag 'WebAppEnableManifestId' is enabled",
18001+
"optional": true,
18002+
"type": "string"
18003+
}
18004+
]
18005+
},
1797718006
{
1797818007
"name": "getAppManifest",
1797918008
"returns": [

protocol.json.md5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
86d8fa2e5a6f770501be7a84b1ce4d8d protocol.json
1+
9f4e2fa6afdf431c51fb9fdd950b9bb5 protocol.json

0 commit comments

Comments
 (0)