devtools-protocol 0.0.1231733 → 0.0.1233178

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.
@@ -1109,6 +1109,7 @@
1109
1109
  "Script",
1110
1110
  "ServiceWorker",
1111
1111
  "SharedWorker",
1112
+ "SpeculationRules",
1112
1113
  "Stylesheet",
1113
1114
  "Track",
1114
1115
  "Video",
@@ -8571,6 +8572,21 @@
8571
8572
  }
8572
8573
  ]
8573
8574
  },
8575
+ {
8576
+ "id": "DevicePosture",
8577
+ "type": "object",
8578
+ "properties": [
8579
+ {
8580
+ "name": "type",
8581
+ "description": "Current posture of the device",
8582
+ "type": "string",
8583
+ "enum": [
8584
+ "continuous",
8585
+ "folded"
8586
+ ]
8587
+ }
8588
+ ]
8589
+ },
8574
8590
  {
8575
8591
  "id": "MediaFeature",
8576
8592
  "type": "object",
@@ -8958,6 +8974,13 @@
8958
8974
  "experimental": true,
8959
8975
  "optional": true,
8960
8976
  "$ref": "DisplayFeature"
8977
+ },
8978
+ {
8979
+ "name": "devicePosture",
8980
+ "description": "If set, the posture of a foldable device. If not set the posture is set\nto continuous.",
8981
+ "experimental": true,
8982
+ "optional": true,
8983
+ "$ref": "DevicePosture"
8961
8984
  }
8962
8985
  ]
8963
8986
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1231733",
3
+ "version": "0.0.1233178",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -554,6 +554,7 @@ experimental domain Audits
554
554
  Script
555
555
  ServiceWorker
556
556
  SharedWorker
557
+ SpeculationRules
557
558
  Stylesheet
558
559
  Track
559
560
  Video
@@ -3916,6 +3917,13 @@ domain Emulation
3916
3917
  # A display feature that only splits content will have a 0 mask_length.
3917
3918
  integer maskLength
3918
3919
 
3920
+ type DevicePosture extends object
3921
+ properties
3922
+ # Current posture of the device
3923
+ enum type
3924
+ continuous
3925
+ folded
3926
+
3919
3927
  type MediaFeature extends object
3920
3928
  properties
3921
3929
  string name
@@ -4073,6 +4081,9 @@ domain Emulation
4073
4081
  # If set, the display feature of a multi-segment screen. If not set, multi-segment support
4074
4082
  # is turned-off.
4075
4083
  experimental optional DisplayFeature displayFeature
4084
+ # If set, the posture of a foldable device. If not set the posture is set
4085
+ # to continuous.
4086
+ experimental optional DevicePosture devicePosture
4076
4087
 
4077
4088
  experimental command setScrollbarsHidden
4078
4089
  parameters
@@ -3291,7 +3291,7 @@ export namespace Protocol {
3291
3291
 
3292
3292
  export type MixedContentResolutionStatus = ('MixedContentBlocked' | 'MixedContentAutomaticallyUpgraded' | 'MixedContentWarning');
3293
3293
 
3294
- export type MixedContentResourceType = ('AttributionSrc' | 'Audio' | 'Beacon' | 'CSPReport' | 'Download' | 'EventSource' | 'Favicon' | 'Font' | 'Form' | 'Frame' | 'Image' | 'Import' | 'Manifest' | 'Ping' | 'PluginData' | 'PluginResource' | 'Prefetch' | 'Resource' | 'Script' | 'ServiceWorker' | 'SharedWorker' | 'Stylesheet' | 'Track' | 'Video' | 'Worker' | 'XMLHttpRequest' | 'XSLT');
3294
+ export type MixedContentResourceType = ('AttributionSrc' | 'Audio' | 'Beacon' | 'CSPReport' | 'Download' | 'EventSource' | 'Favicon' | 'Font' | 'Form' | 'Frame' | 'Image' | 'Import' | 'Manifest' | 'Ping' | 'PluginData' | 'PluginResource' | 'Prefetch' | 'Resource' | 'Script' | 'ServiceWorker' | 'SharedWorker' | 'SpeculationRules' | 'Stylesheet' | 'Track' | 'Video' | 'Worker' | 'XMLHttpRequest' | 'XSLT');
3295
3295
 
3296
3296
  export interface MixedContentIssueDetails {
3297
3297
  /**
@@ -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 {