devtools-protocol 0.0.1684464 → 0.0.1686980
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/json/browser_protocol.json +13 -0
- package/package.json +1 -1
- package/pdl/domains/Browser.pdl +10 -0
- package/pdl/domains/Page.pdl +1 -0
- package/types/protocol-mapping.d.ts +10 -0
- package/types/protocol-proxy-api.d.ts +8 -0
- package/types/protocol-tests-proxy-api.d.ts +8 -0
- package/types/protocol.d.ts +10 -1
|
@@ -4036,6 +4036,18 @@
|
|
|
4036
4036
|
}
|
|
4037
4037
|
]
|
|
4038
4038
|
},
|
|
4039
|
+
{
|
|
4040
|
+
"name": "addMockCamera",
|
|
4041
|
+
"description": "Adds or updates a mock camera in the shared video capture device list for\ntest automation. The mock camera is not scoped to a particular page or\nframe and is removed when the DevTools session that created it disconnects.",
|
|
4042
|
+
"experimental": true,
|
|
4043
|
+
"parameters": [
|
|
4044
|
+
{
|
|
4045
|
+
"name": "deviceId",
|
|
4046
|
+
"description": "Required non-empty identifier for the mock camera. This is mapped to an\ninternal virtual-device identifier and is not the MediaDeviceInfo.deviceId\nexposed to the page.",
|
|
4047
|
+
"type": "string"
|
|
4048
|
+
}
|
|
4049
|
+
]
|
|
4050
|
+
},
|
|
4039
4051
|
{
|
|
4040
4052
|
"name": "getHistograms",
|
|
4041
4053
|
"description": "Get Chrome histograms.",
|
|
@@ -21846,6 +21858,7 @@
|
|
|
21846
21858
|
"gamepad",
|
|
21847
21859
|
"geolocation",
|
|
21848
21860
|
"gyroscope",
|
|
21861
|
+
"haptics",
|
|
21849
21862
|
"hid",
|
|
21850
21863
|
"identity-credentials-get",
|
|
21851
21864
|
"idle-detection",
|
package/package.json
CHANGED
package/pdl/domains/Browser.pdl
CHANGED
|
@@ -225,6 +225,16 @@ domain Browser
|
|
|
225
225
|
# Commandline parameters
|
|
226
226
|
array of string arguments
|
|
227
227
|
|
|
228
|
+
# Adds or updates a mock camera in the shared video capture device list for
|
|
229
|
+
# test automation. The mock camera is not scoped to a particular page or
|
|
230
|
+
# frame and is removed when the DevTools session that created it disconnects.
|
|
231
|
+
experimental command addMockCamera
|
|
232
|
+
parameters
|
|
233
|
+
# Required non-empty identifier for the mock camera. This is mapped to an
|
|
234
|
+
# internal virtual-device identifier and is not the MediaDeviceInfo.deviceId
|
|
235
|
+
# exposed to the page.
|
|
236
|
+
string deviceId
|
|
237
|
+
|
|
228
238
|
# Chrome histogram bucket.
|
|
229
239
|
experimental type Bucket extends object
|
|
230
240
|
properties
|
package/pdl/domains/Page.pdl
CHANGED
|
@@ -2113,6 +2113,16 @@ export namespace ProtocolMapping {
|
|
|
2113
2113
|
paramsType: [];
|
|
2114
2114
|
returnType: Protocol.Browser.GetBrowserCommandLineResponse;
|
|
2115
2115
|
};
|
|
2116
|
+
/**
|
|
2117
|
+
* Adds or updates a mock camera in the shared video capture device list for
|
|
2118
|
+
* test automation. The mock camera is not scoped to a particular page or
|
|
2119
|
+
* frame and is removed when the DevTools session that created it disconnects.
|
|
2120
|
+
* @experimental
|
|
2121
|
+
*/
|
|
2122
|
+
'Browser.addMockCamera': {
|
|
2123
|
+
paramsType: [Protocol.Browser.AddMockCameraRequest];
|
|
2124
|
+
returnType: void;
|
|
2125
|
+
};
|
|
2116
2126
|
/**
|
|
2117
2127
|
* Get Chrome histograms.
|
|
2118
2128
|
* @experimental
|
|
@@ -1108,6 +1108,14 @@ export namespace ProtocolProxyApi {
|
|
|
1108
1108
|
*/
|
|
1109
1109
|
getBrowserCommandLine(): Promise<Protocol.Browser.GetBrowserCommandLineResponse>;
|
|
1110
1110
|
|
|
1111
|
+
/**
|
|
1112
|
+
* Adds or updates a mock camera in the shared video capture device list for
|
|
1113
|
+
* test automation. The mock camera is not scoped to a particular page or
|
|
1114
|
+
* frame and is removed when the DevTools session that created it disconnects.
|
|
1115
|
+
* @experimental
|
|
1116
|
+
*/
|
|
1117
|
+
addMockCamera(params: Protocol.Browser.AddMockCameraRequest): Promise<void>;
|
|
1118
|
+
|
|
1111
1119
|
/**
|
|
1112
1120
|
* Get Chrome histograms.
|
|
1113
1121
|
* @experimental
|
|
@@ -1178,6 +1178,14 @@ export namespace ProtocolTestsProxyApi {
|
|
|
1178
1178
|
*/
|
|
1179
1179
|
getBrowserCommandLine(): Promise<{id: number, result: Protocol.Browser.GetBrowserCommandLineResponse, sessionId: string}>;
|
|
1180
1180
|
|
|
1181
|
+
/**
|
|
1182
|
+
* Adds or updates a mock camera in the shared video capture device list for
|
|
1183
|
+
* test automation. The mock camera is not scoped to a particular page or
|
|
1184
|
+
* frame and is removed when the DevTools session that created it disconnects.
|
|
1185
|
+
* @experimental
|
|
1186
|
+
*/
|
|
1187
|
+
addMockCamera(params: Protocol.Browser.AddMockCameraRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
1188
|
+
|
|
1181
1189
|
/**
|
|
1182
1190
|
* Get Chrome histograms.
|
|
1183
1191
|
* @experimental
|
package/types/protocol.d.ts
CHANGED
|
@@ -4903,6 +4903,15 @@ export namespace Protocol {
|
|
|
4903
4903
|
arguments: string[];
|
|
4904
4904
|
}
|
|
4905
4905
|
|
|
4906
|
+
export interface AddMockCameraRequest {
|
|
4907
|
+
/**
|
|
4908
|
+
* Required non-empty identifier for the mock camera. This is mapped to an
|
|
4909
|
+
* internal virtual-device identifier and is not the MediaDeviceInfo.deviceId
|
|
4910
|
+
* exposed to the page.
|
|
4911
|
+
*/
|
|
4912
|
+
deviceId: string;
|
|
4913
|
+
}
|
|
4914
|
+
|
|
4906
4915
|
export interface GetHistogramsRequest {
|
|
4907
4916
|
/**
|
|
4908
4917
|
* Requested substring in name. Only histograms which have query as a
|
|
@@ -16679,7 +16688,7 @@ export namespace Protocol {
|
|
|
16679
16688
|
* in services/network/public/cpp/permissions_policy/permissions_policy_features.json5.
|
|
16680
16689
|
* @experimental
|
|
16681
16690
|
*/
|
|
16682
|
-
export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'autofill' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'magnetometer' | 'manual-text' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'rewriter' | 'screen-wake-lock' | 'serial' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'tools' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'webnn' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
|
|
16691
|
+
export type PermissionsPolicyFeature = ('accelerometer' | 'all-screens-capture' | 'ambient-light-sensor' | 'aria-notify' | 'autofill' | 'autoplay' | 'bluetooth' | 'browsing-topics' | 'camera' | 'captured-surface-control' | 'ch-dpr' | 'ch-device-memory' | 'ch-downlink' | 'ch-ect' | 'ch-prefers-color-scheme' | 'ch-prefers-reduced-motion' | 'ch-prefers-reduced-transparency' | 'ch-rtt' | 'ch-save-data' | 'ch-ua' | 'ch-ua-arch' | 'ch-ua-bitness' | 'ch-ua-high-entropy-values' | 'ch-ua-platform' | 'ch-ua-model' | 'ch-ua-mobile' | 'ch-ua-form-factors' | 'ch-ua-full-version' | 'ch-ua-full-version-list' | 'ch-ua-platform-version' | 'ch-ua-wow64' | 'ch-viewport-height' | 'ch-viewport-width' | 'ch-width' | 'clipboard-read' | 'clipboard-write' | 'compute-pressure' | 'controlled-frame' | 'cross-origin-isolated' | 'deferred-fetch' | 'deferred-fetch-minimal' | 'device-attributes' | 'digital-credentials-create' | 'digital-credentials-get' | 'direct-sockets' | 'direct-sockets-multicast' | 'display-capture' | 'document-domain' | 'encrypted-media' | 'execution-while-out-of-viewport' | 'execution-while-not-rendered' | 'focus-without-user-activation' | 'fullscreen' | 'frobulate' | 'gamepad' | 'geolocation' | 'gyroscope' | 'haptics' | 'hid' | 'identity-credentials-get' | 'idle-detection' | 'interest-cohort' | 'keyboard-map' | 'language-detector' | 'language-model' | 'local-fonts' | 'local-network' | 'local-network-access' | 'loopback-network' | 'magnetometer' | 'manual-text' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'on-device-speech-recognition' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'rewriter' | 'screen-wake-lock' | 'serial' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'summarizer' | 'sync-xhr' | 'tools' | 'translator' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-app-installation' | 'webnn' | 'web-printing' | 'web-share' | 'window-management' | 'writer' | 'xr-spatial-tracking');
|
|
16683
16692
|
|
|
16684
16693
|
/**
|
|
16685
16694
|
* Reason for a permissions policy feature to be disabled.
|