devtools-protocol 0.0.1231733 → 0.0.1232444
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 +22 -0
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +10 -0
- package/types/protocol.d.ts +17 -0
@@ -8571,6 +8571,21 @@
|
|
8571
8571
|
}
|
8572
8572
|
]
|
8573
8573
|
},
|
8574
|
+
{
|
8575
|
+
"id": "DevicePosture",
|
8576
|
+
"type": "object",
|
8577
|
+
"properties": [
|
8578
|
+
{
|
8579
|
+
"name": "type",
|
8580
|
+
"description": "Current posture of the device",
|
8581
|
+
"type": "string",
|
8582
|
+
"enum": [
|
8583
|
+
"continuous",
|
8584
|
+
"folded"
|
8585
|
+
]
|
8586
|
+
}
|
8587
|
+
]
|
8588
|
+
},
|
8574
8589
|
{
|
8575
8590
|
"id": "MediaFeature",
|
8576
8591
|
"type": "object",
|
@@ -8958,6 +8973,13 @@
|
|
8958
8973
|
"experimental": true,
|
8959
8974
|
"optional": true,
|
8960
8975
|
"$ref": "DisplayFeature"
|
8976
|
+
},
|
8977
|
+
{
|
8978
|
+
"name": "devicePosture",
|
8979
|
+
"description": "If set, the posture of a foldable device. If not set the posture is set\nto continuous.",
|
8980
|
+
"experimental": true,
|
8981
|
+
"optional": true,
|
8982
|
+
"$ref": "DevicePosture"
|
8961
8983
|
}
|
8962
8984
|
]
|
8963
8985
|
},
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -3916,6 +3916,13 @@ domain Emulation
|
|
3916
3916
|
# A display feature that only splits content will have a 0 mask_length.
|
3917
3917
|
integer maskLength
|
3918
3918
|
|
3919
|
+
type DevicePosture extends object
|
3920
|
+
properties
|
3921
|
+
# Current posture of the device
|
3922
|
+
enum type
|
3923
|
+
continuous
|
3924
|
+
folded
|
3925
|
+
|
3919
3926
|
type MediaFeature extends object
|
3920
3927
|
properties
|
3921
3928
|
string name
|
@@ -4073,6 +4080,9 @@ domain Emulation
|
|
4073
4080
|
# If set, the display feature of a multi-segment screen. If not set, multi-segment support
|
4074
4081
|
# is turned-off.
|
4075
4082
|
experimental optional DisplayFeature displayFeature
|
4083
|
+
# If set, the posture of a foldable device. If not set the posture is set
|
4084
|
+
# to continuous.
|
4085
|
+
experimental optional DevicePosture devicePosture
|
4076
4086
|
|
4077
4087
|
experimental command setScrollbarsHidden
|
4078
4088
|
parameters
|
package/types/protocol.d.ts
CHANGED
@@ -7900,6 +7900,18 @@ export namespace Protocol {
|
|
7900
7900
|
maskLength: integer;
|
7901
7901
|
}
|
7902
7902
|
|
7903
|
+
export const enum DevicePostureType {
|
7904
|
+
Continuous = 'continuous',
|
7905
|
+
Folded = 'folded',
|
7906
|
+
}
|
7907
|
+
|
7908
|
+
export interface DevicePosture {
|
7909
|
+
/**
|
7910
|
+
* Current posture of the device (DevicePostureType enum)
|
7911
|
+
*/
|
7912
|
+
type: ('continuous' | 'folded');
|
7913
|
+
}
|
7914
|
+
|
7903
7915
|
export interface MediaFeature {
|
7904
7916
|
name: string;
|
7905
7917
|
value: string;
|
@@ -8077,6 +8089,11 @@ export namespace Protocol {
|
|
8077
8089
|
* is turned-off.
|
8078
8090
|
*/
|
8079
8091
|
displayFeature?: DisplayFeature;
|
8092
|
+
/**
|
8093
|
+
* If set, the posture of a foldable device. If not set the posture is set
|
8094
|
+
* to continuous.
|
8095
|
+
*/
|
8096
|
+
devicePosture?: DevicePosture;
|
8080
8097
|
}
|
8081
8098
|
|
8082
8099
|
export interface SetScrollbarsHiddenRequest {
|