devtools-protocol 0.0.1468520 → 0.0.1472211
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.
@@ -9617,6 +9617,21 @@
|
|
9617
9617
|
"pauseIfNetworkFetchesPending"
|
9618
9618
|
]
|
9619
9619
|
},
|
9620
|
+
{
|
9621
|
+
"id": "UserAgentFormFactor",
|
9622
|
+
"description": "Used to specify User Agent form-factor values. See https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors",
|
9623
|
+
"experimental": true,
|
9624
|
+
"type": "string",
|
9625
|
+
"enum": [
|
9626
|
+
"Desktop",
|
9627
|
+
"Automotive",
|
9628
|
+
"Mobile",
|
9629
|
+
"Tablet",
|
9630
|
+
"XR",
|
9631
|
+
"EInk",
|
9632
|
+
"Watch"
|
9633
|
+
]
|
9634
|
+
},
|
9620
9635
|
{
|
9621
9636
|
"id": "UserAgentBrandVersion",
|
9622
9637
|
"description": "Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints",
|
@@ -9692,6 +9707,14 @@
|
|
9692
9707
|
"name": "wow64",
|
9693
9708
|
"optional": true,
|
9694
9709
|
"type": "boolean"
|
9710
|
+
},
|
9711
|
+
{
|
9712
|
+
"name": "formFactors",
|
9713
|
+
"optional": true,
|
9714
|
+
"type": "array",
|
9715
|
+
"items": {
|
9716
|
+
"$ref": "UserAgentFormFactor"
|
9717
|
+
}
|
9695
9718
|
}
|
9696
9719
|
]
|
9697
9720
|
},
|
@@ -10151,6 +10174,17 @@
|
|
10151
10174
|
}
|
10152
10175
|
]
|
10153
10176
|
},
|
10177
|
+
{
|
10178
|
+
"name": "setEmulatedOSTextScale",
|
10179
|
+
"description": "Emulates the given OS text scale.",
|
10180
|
+
"parameters": [
|
10181
|
+
{
|
10182
|
+
"name": "scale",
|
10183
|
+
"optional": true,
|
10184
|
+
"type": "number"
|
10185
|
+
}
|
10186
|
+
]
|
10187
|
+
},
|
10154
10188
|
{
|
10155
10189
|
"name": "setGeolocationOverride",
|
10156
10190
|
"description": "Overrides the Geolocation Position or Error. Omitting latitude, longitude or\naccuracy emulates position unavailable.",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -4467,6 +4467,17 @@ domain Emulation
|
|
4467
4467
|
pause
|
4468
4468
|
pauseIfNetworkFetchesPending
|
4469
4469
|
|
4470
|
+
# Used to specify User Agent form-factor values. See https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors
|
4471
|
+
experimental type UserAgentFormFactor extends string
|
4472
|
+
enum
|
4473
|
+
Desktop
|
4474
|
+
Automotive
|
4475
|
+
Mobile
|
4476
|
+
Tablet
|
4477
|
+
XR
|
4478
|
+
EInk
|
4479
|
+
Watch
|
4480
|
+
|
4470
4481
|
# Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints
|
4471
4482
|
experimental type UserAgentBrandVersion extends object
|
4472
4483
|
properties
|
@@ -4489,6 +4500,7 @@ domain Emulation
|
|
4489
4500
|
boolean mobile
|
4490
4501
|
optional string bitness
|
4491
4502
|
optional boolean wow64
|
4503
|
+
optional array of UserAgentFormFactor formFactors
|
4492
4504
|
|
4493
4505
|
# Used to specify sensor types to emulate.
|
4494
4506
|
# See https://w3c.github.io/sensors/#automation for more information.
|
@@ -4700,6 +4712,11 @@ domain Emulation
|
|
4700
4712
|
protanopia
|
4701
4713
|
tritanopia
|
4702
4714
|
|
4715
|
+
# Emulates the given OS text scale.
|
4716
|
+
command setEmulatedOSTextScale
|
4717
|
+
parameters
|
4718
|
+
optional number scale
|
4719
|
+
|
4703
4720
|
# Overrides the Geolocation Position or Error. Omitting latitude, longitude or
|
4704
4721
|
# accuracy emulates position unavailable.
|
4705
4722
|
command setGeolocationOverride
|
@@ -2917,6 +2917,13 @@ export namespace ProtocolMapping {
|
|
2917
2917
|
paramsType: [Protocol.Emulation.SetEmulatedVisionDeficiencyRequest];
|
2918
2918
|
returnType: void;
|
2919
2919
|
};
|
2920
|
+
/**
|
2921
|
+
* Emulates the given OS text scale.
|
2922
|
+
*/
|
2923
|
+
'Emulation.setEmulatedOSTextScale': {
|
2924
|
+
paramsType: [Protocol.Emulation.SetEmulatedOSTextScaleRequest?];
|
2925
|
+
returnType: void;
|
2926
|
+
};
|
2920
2927
|
/**
|
2921
2928
|
* Overrides the Geolocation Position or Error. Omitting latitude, longitude or
|
2922
2929
|
* accuracy emulates position unavailable.
|
@@ -1961,6 +1961,11 @@ export namespace ProtocolProxyApi {
|
|
1961
1961
|
*/
|
1962
1962
|
setEmulatedVisionDeficiency(params: Protocol.Emulation.SetEmulatedVisionDeficiencyRequest): Promise<void>;
|
1963
1963
|
|
1964
|
+
/**
|
1965
|
+
* Emulates the given OS text scale.
|
1966
|
+
*/
|
1967
|
+
setEmulatedOSTextScale(params: Protocol.Emulation.SetEmulatedOSTextScaleRequest): Promise<void>;
|
1968
|
+
|
1964
1969
|
/**
|
1965
1970
|
* Overrides the Geolocation Position or Error. Omitting latitude, longitude or
|
1966
1971
|
* accuracy emulates position unavailable.
|
@@ -2085,6 +2085,11 @@ export namespace ProtocolTestsProxyApi {
|
|
2085
2085
|
*/
|
2086
2086
|
setEmulatedVisionDeficiency(params: Protocol.Emulation.SetEmulatedVisionDeficiencyRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2087
2087
|
|
2088
|
+
/**
|
2089
|
+
* Emulates the given OS text scale.
|
2090
|
+
*/
|
2091
|
+
setEmulatedOSTextScale(params: Protocol.Emulation.SetEmulatedOSTextScaleRequest): Promise<{id: number, result: void, sessionId: string}>;
|
2092
|
+
|
2088
2093
|
/**
|
2089
2094
|
* Overrides the Geolocation Position or Error. Omitting latitude, longitude or
|
2090
2095
|
* accuracy emulates position unavailable.
|
package/types/protocol.d.ts
CHANGED
@@ -8536,6 +8536,11 @@ export namespace Protocol {
|
|
8536
8536
|
*/
|
8537
8537
|
export type VirtualTimePolicy = ('advance' | 'pause' | 'pauseIfNetworkFetchesPending');
|
8538
8538
|
|
8539
|
+
/**
|
8540
|
+
* Used to specify User Agent form-factor values. See https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors
|
8541
|
+
*/
|
8542
|
+
export type UserAgentFormFactor = ('Desktop' | 'Automotive' | 'Mobile' | 'Tablet' | 'XR' | 'EInk' | 'Watch');
|
8543
|
+
|
8539
8544
|
/**
|
8540
8545
|
* Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints
|
8541
8546
|
*/
|
@@ -8565,6 +8570,7 @@ export namespace Protocol {
|
|
8565
8570
|
mobile: boolean;
|
8566
8571
|
bitness?: string;
|
8567
8572
|
wow64?: boolean;
|
8573
|
+
formFactors?: UserAgentFormFactor[];
|
8568
8574
|
}
|
8569
8575
|
|
8570
8576
|
/**
|
@@ -8788,6 +8794,10 @@ export namespace Protocol {
|
|
8788
8794
|
type: ('none' | 'blurredVision' | 'reducedContrast' | 'achromatopsia' | 'deuteranopia' | 'protanopia' | 'tritanopia');
|
8789
8795
|
}
|
8790
8796
|
|
8797
|
+
export interface SetEmulatedOSTextScaleRequest {
|
8798
|
+
scale?: number;
|
8799
|
+
}
|
8800
|
+
|
8791
8801
|
export interface SetGeolocationOverrideRequest {
|
8792
8802
|
/**
|
8793
8803
|
* Mock latitude
|