devtools-protocol 0.0.1327118 → 0.0.1333880
Sign up to get free protection for your applications and to get access to all the features.
@@ -9125,6 +9125,37 @@
|
|
9125
9125
|
}
|
9126
9126
|
]
|
9127
9127
|
},
|
9128
|
+
{
|
9129
|
+
"id": "PressureSource",
|
9130
|
+
"experimental": true,
|
9131
|
+
"type": "string",
|
9132
|
+
"enum": [
|
9133
|
+
"cpu"
|
9134
|
+
]
|
9135
|
+
},
|
9136
|
+
{
|
9137
|
+
"id": "PressureState",
|
9138
|
+
"experimental": true,
|
9139
|
+
"type": "string",
|
9140
|
+
"enum": [
|
9141
|
+
"nominal",
|
9142
|
+
"fair",
|
9143
|
+
"serious",
|
9144
|
+
"critical"
|
9145
|
+
]
|
9146
|
+
},
|
9147
|
+
{
|
9148
|
+
"id": "PressureMetadata",
|
9149
|
+
"experimental": true,
|
9150
|
+
"type": "object",
|
9151
|
+
"properties": [
|
9152
|
+
{
|
9153
|
+
"name": "available",
|
9154
|
+
"optional": true,
|
9155
|
+
"type": "boolean"
|
9156
|
+
}
|
9157
|
+
]
|
9158
|
+
},
|
9128
9159
|
{
|
9129
9160
|
"id": "DisabledImageType",
|
9130
9161
|
"description": "Enum of image types that can be disabled.",
|
@@ -9481,6 +9512,41 @@
|
|
9481
9512
|
}
|
9482
9513
|
]
|
9483
9514
|
},
|
9515
|
+
{
|
9516
|
+
"name": "setPressureSourceOverrideEnabled",
|
9517
|
+
"description": "Overrides a pressure source of a given type, as used by the Compute\nPressure API, so that updates to PressureObserver.observe() are provided\nvia setPressureStateOverride instead of being retrieved from\nplatform-provided telemetry data.",
|
9518
|
+
"experimental": true,
|
9519
|
+
"parameters": [
|
9520
|
+
{
|
9521
|
+
"name": "enabled",
|
9522
|
+
"type": "boolean"
|
9523
|
+
},
|
9524
|
+
{
|
9525
|
+
"name": "source",
|
9526
|
+
"$ref": "PressureSource"
|
9527
|
+
},
|
9528
|
+
{
|
9529
|
+
"name": "metadata",
|
9530
|
+
"optional": true,
|
9531
|
+
"$ref": "PressureMetadata"
|
9532
|
+
}
|
9533
|
+
]
|
9534
|
+
},
|
9535
|
+
{
|
9536
|
+
"name": "setPressureStateOverride",
|
9537
|
+
"description": "Provides a given pressure state that will be processed and eventually be\ndelivered to PressureObserver users. |source| must have been previously\noverridden by setPressureSourceOverrideEnabled.",
|
9538
|
+
"experimental": true,
|
9539
|
+
"parameters": [
|
9540
|
+
{
|
9541
|
+
"name": "source",
|
9542
|
+
"$ref": "PressureSource"
|
9543
|
+
},
|
9544
|
+
{
|
9545
|
+
"name": "state",
|
9546
|
+
"$ref": "PressureState"
|
9547
|
+
}
|
9548
|
+
]
|
9549
|
+
},
|
9484
9550
|
{
|
9485
9551
|
"name": "setIdleOverride",
|
9486
9552
|
"description": "Overrides the Idle state.",
|
@@ -16968,6 +17034,7 @@
|
|
16968
17034
|
"keyboard-map",
|
16969
17035
|
"local-fonts",
|
16970
17036
|
"magnetometer",
|
17037
|
+
"media-playback-while-not-visible",
|
16971
17038
|
"microphone",
|
16972
17039
|
"midi",
|
16973
17040
|
"otp-credentials",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -4185,6 +4185,21 @@ domain Emulation
|
|
4185
4185
|
optional SensorReadingXYZ xyz
|
4186
4186
|
optional SensorReadingQuaternion quaternion
|
4187
4187
|
|
4188
|
+
experimental type PressureSource extends string
|
4189
|
+
enum
|
4190
|
+
cpu
|
4191
|
+
|
4192
|
+
experimental type PressureState extends string
|
4193
|
+
enum
|
4194
|
+
nominal
|
4195
|
+
fair
|
4196
|
+
serious
|
4197
|
+
critical
|
4198
|
+
|
4199
|
+
experimental type PressureMetadata extends object
|
4200
|
+
properties
|
4201
|
+
optional boolean available
|
4202
|
+
|
4188
4203
|
# Tells whether emulation is supported.
|
4189
4204
|
deprecated command canEmulate
|
4190
4205
|
returns
|
@@ -4354,6 +4369,24 @@ domain Emulation
|
|
4354
4369
|
SensorType type
|
4355
4370
|
SensorReading reading
|
4356
4371
|
|
4372
|
+
# Overrides a pressure source of a given type, as used by the Compute
|
4373
|
+
# Pressure API, so that updates to PressureObserver.observe() are provided
|
4374
|
+
# via setPressureStateOverride instead of being retrieved from
|
4375
|
+
# platform-provided telemetry data.
|
4376
|
+
experimental command setPressureSourceOverrideEnabled
|
4377
|
+
parameters
|
4378
|
+
boolean enabled
|
4379
|
+
PressureSource source
|
4380
|
+
optional PressureMetadata metadata
|
4381
|
+
|
4382
|
+
# Provides a given pressure state that will be processed and eventually be
|
4383
|
+
# delivered to PressureObserver users. |source| must have been previously
|
4384
|
+
# overridden by setPressureSourceOverrideEnabled.
|
4385
|
+
experimental command setPressureStateOverride
|
4386
|
+
parameters
|
4387
|
+
PressureSource source
|
4388
|
+
PressureState state
|
4389
|
+
|
4357
4390
|
# Overrides the Idle state.
|
4358
4391
|
command setIdleOverride
|
4359
4392
|
parameters
|
@@ -7987,6 +8020,7 @@ domain Page
|
|
7987
8020
|
keyboard-map
|
7988
8021
|
local-fonts
|
7989
8022
|
magnetometer
|
8023
|
+
media-playback-while-not-visible
|
7990
8024
|
microphone
|
7991
8025
|
midi
|
7992
8026
|
otp-credentials
|
@@ -2728,6 +2728,25 @@ export namespace ProtocolMapping {
|
|
2728
2728
|
paramsType: [Protocol.Emulation.SetSensorOverrideReadingsRequest];
|
2729
2729
|
returnType: void;
|
2730
2730
|
};
|
2731
|
+
/**
|
2732
|
+
* Overrides a pressure source of a given type, as used by the Compute
|
2733
|
+
* Pressure API, so that updates to PressureObserver.observe() are provided
|
2734
|
+
* via setPressureStateOverride instead of being retrieved from
|
2735
|
+
* platform-provided telemetry data.
|
2736
|
+
*/
|
2737
|
+
'Emulation.setPressureSourceOverrideEnabled': {
|
2738
|
+
paramsType: [Protocol.Emulation.SetPressureSourceOverrideEnabledRequest];
|
2739
|
+
returnType: void;
|
2740
|
+
};
|
2741
|
+
/**
|
2742
|
+
* Provides a given pressure state that will be processed and eventually be
|
2743
|
+
* delivered to PressureObserver users. |source| must have been previously
|
2744
|
+
* overridden by setPressureSourceOverrideEnabled.
|
2745
|
+
*/
|
2746
|
+
'Emulation.setPressureStateOverride': {
|
2747
|
+
paramsType: [Protocol.Emulation.SetPressureStateOverrideRequest];
|
2748
|
+
returnType: void;
|
2749
|
+
};
|
2731
2750
|
/**
|
2732
2751
|
* Overrides the Idle state.
|
2733
2752
|
*/
|
@@ -1887,6 +1887,21 @@ export namespace ProtocolProxyApi {
|
|
1887
1887
|
*/
|
1888
1888
|
setSensorOverrideReadings(params: Protocol.Emulation.SetSensorOverrideReadingsRequest): Promise<void>;
|
1889
1889
|
|
1890
|
+
/**
|
1891
|
+
* Overrides a pressure source of a given type, as used by the Compute
|
1892
|
+
* Pressure API, so that updates to PressureObserver.observe() are provided
|
1893
|
+
* via setPressureStateOverride instead of being retrieved from
|
1894
|
+
* platform-provided telemetry data.
|
1895
|
+
*/
|
1896
|
+
setPressureSourceOverrideEnabled(params: Protocol.Emulation.SetPressureSourceOverrideEnabledRequest): Promise<void>;
|
1897
|
+
|
1898
|
+
/**
|
1899
|
+
* Provides a given pressure state that will be processed and eventually be
|
1900
|
+
* delivered to PressureObserver users. |source| must have been previously
|
1901
|
+
* overridden by setPressureSourceOverrideEnabled.
|
1902
|
+
*/
|
1903
|
+
setPressureStateOverride(params: Protocol.Emulation.SetPressureStateOverrideRequest): Promise<void>;
|
1904
|
+
|
1890
1905
|
/**
|
1891
1906
|
* Overrides the Idle state.
|
1892
1907
|
*/
|
@@ -2009,6 +2009,21 @@ export namespace ProtocolTestsProxyApi {
|
|
2009
2009
|
*/
|
2010
2010
|
setSensorOverrideReadings(params: Protocol.Emulation.SetSensorOverrideReadingsRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2011
2011
|
|
2012
|
+
/**
|
2013
|
+
* Overrides a pressure source of a given type, as used by the Compute
|
2014
|
+
* Pressure API, so that updates to PressureObserver.observe() are provided
|
2015
|
+
* via setPressureStateOverride instead of being retrieved from
|
2016
|
+
* platform-provided telemetry data.
|
2017
|
+
*/
|
2018
|
+
setPressureSourceOverrideEnabled(params: Protocol.Emulation.SetPressureSourceOverrideEnabledRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2019
|
+
|
2020
|
+
/**
|
2021
|
+
* Provides a given pressure state that will be processed and eventually be
|
2022
|
+
* delivered to PressureObserver users. |source| must have been previously
|
2023
|
+
* overridden by setPressureSourceOverrideEnabled.
|
2024
|
+
*/
|
2025
|
+
setPressureStateOverride(params: Protocol.Emulation.SetPressureStateOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2026
|
+
|
2012
2027
|
/**
|
2013
2028
|
* Overrides the Idle state.
|
2014
2029
|
*/
|
package/types/protocol.d.ts
CHANGED
@@ -8188,6 +8188,14 @@ export namespace Protocol {
|
|
8188
8188
|
quaternion?: SensorReadingQuaternion;
|
8189
8189
|
}
|
8190
8190
|
|
8191
|
+
export type PressureSource = ('cpu');
|
8192
|
+
|
8193
|
+
export type PressureState = ('nominal' | 'fair' | 'serious' | 'critical');
|
8194
|
+
|
8195
|
+
export interface PressureMetadata {
|
8196
|
+
available?: boolean;
|
8197
|
+
}
|
8198
|
+
|
8191
8199
|
/**
|
8192
8200
|
* Enum of image types that can be disabled.
|
8193
8201
|
*/
|
@@ -8391,6 +8399,17 @@ export namespace Protocol {
|
|
8391
8399
|
reading: SensorReading;
|
8392
8400
|
}
|
8393
8401
|
|
8402
|
+
export interface SetPressureSourceOverrideEnabledRequest {
|
8403
|
+
enabled: boolean;
|
8404
|
+
source: PressureSource;
|
8405
|
+
metadata?: PressureMetadata;
|
8406
|
+
}
|
8407
|
+
|
8408
|
+
export interface SetPressureStateOverrideRequest {
|
8409
|
+
source: PressureSource;
|
8410
|
+
state: PressureState;
|
8411
|
+
}
|
8412
|
+
|
8394
8413
|
export interface SetIdleOverrideRequest {
|
8395
8414
|
/**
|
8396
8415
|
* Mock isUserActive
|
@@ -13305,7 +13324,7 @@ export namespace Protocol {
|
|
13305
13324
|
* All Permissions Policy features. This enum should match the one defined
|
13306
13325
|
* in third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.
|
13307
13326
|
*/
|
13308
|
-
export type PermissionsPolicyFeature = ('accelerometer' | 'ambient-light-sensor' | 'attribution-reporting' | '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-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' | 'cross-origin-isolated' | 'deferred-fetch' | 'digital-credentials-get' | 'direct-sockets' | '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' | 'join-ad-interest-group' | 'keyboard-map' | 'local-fonts' | 'magnetometer' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-aggregation' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'sync-xhr' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-printing' | 'web-share' | 'window-management' | 'xr-spatial-tracking');
|
13327
|
+
export type PermissionsPolicyFeature = ('accelerometer' | 'ambient-light-sensor' | 'attribution-reporting' | '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-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' | 'cross-origin-isolated' | 'deferred-fetch' | 'digital-credentials-get' | 'direct-sockets' | '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' | 'join-ad-interest-group' | 'keyboard-map' | 'local-fonts' | 'magnetometer' | 'media-playback-while-not-visible' | 'microphone' | 'midi' | 'otp-credentials' | 'payment' | 'picture-in-picture' | 'private-aggregation' | 'private-state-token-issuance' | 'private-state-token-redemption' | 'publickey-credentials-create' | 'publickey-credentials-get' | 'run-ad-auction' | 'screen-wake-lock' | 'serial' | 'shared-autofill' | 'shared-storage' | 'shared-storage-select-url' | 'smart-card' | 'speaker-selection' | 'storage-access' | 'sub-apps' | 'sync-xhr' | 'unload' | 'usb' | 'usb-unrestricted' | 'vertical-scroll' | 'web-printing' | 'web-share' | 'window-management' | 'xr-spatial-tracking');
|
13309
13328
|
|
13310
13329
|
/**
|
13311
13330
|
* Reason for a permissions policy feature to be disabled.
|