From c098eb8b4c0557839878319f0fb3a2290c65b6fa Mon Sep 17 00:00:00 2001 From: DevTools Bot <24444246+devtools-bot@users.noreply.github.com> Date: Sun, 3 Dec 2023 04:26:26 +0000 Subject: [PATCH] Roll protocol to r1232444 --- changelog.md | 46 +++++++++++++++++++++++++------------- json/browser_protocol.json | 22 ++++++++++++++++++ package.json | 2 +- pdl/browser_protocol.pdl | 10 +++++++++ types/protocol.d.ts | 17 ++++++++++++++ 5 files changed, 81 insertions(+), 16 deletions(-) diff --git a/changelog.md b/changelog.md index c5fd055f32..92e7ef25f8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,37 @@ +## Roll protocol to r1232444 — _2023-12-03T04:26:26.000Z_ +###### Diff: [`c137c7c...61c1062`](https://github.com/ChromeDevTools/devtools-protocol/compare/`c137c7c...61c1062`) + +```diff +@@ browser_protocol.pdl:3916 @@ domain Emulation + # A display feature that only splits content will have a 0 mask_length. + integer maskLength + +- type DevicePosture extends object +- properties +- # Current posture of the device +- enum type +- continuous +- folded +- + type MediaFeature extends object + properties + string name +@@ -4080,9 +4073,6 @@ domain Emulation + # If set, the display feature of a multi-segment screen. If not set, multi-segment support + # is turned-off. + experimental optional DisplayFeature displayFeature +- # If set, the posture of a foldable device. If not set the posture is set +- # to continuous. +- experimental optional DevicePosture devicePosture + + experimental command setScrollbarsHidden + parameters +``` + ## Roll protocol to r1231733 — _2023-12-01T04:27:08.000Z_ -###### Diff: [`92cb696...1ce8059`](https://github.com/ChromeDevTools/devtools-protocol/compare/`92cb696...1ce8059`) +###### Diff: [`92cb696...c137c7c`](https://github.com/ChromeDevTools/devtools-protocol/compare/`92cb696...c137c7c`) ```diff @@ browser_protocol.pdl:11103 @@ experimental domain WebAuthn @@ -10993,18 +11023,4 @@ index bd277eb..09c420e 100644 EmbedderPopupBlockerTabHelper EmbedderSafeBrowsingTriggeredPopupBlocker EmbedderSafeBrowsingThreatDetails -``` - -## Roll protocol to r922637 — _2021-09-17T20:15:26.000Z_ -###### Diff: [`d99de50...b86f904`](https://github.com/ChromeDevTools/devtools-protocol/compare/`d99de50...b86f904`) - -```diff -@@ browser_protocol.pdl:6800 @@ domain Page - FeatureDisabled - TokenDisabled - FeatureDisabledForUser -- UnknownTrial - - # Status for an Origin Trial. - experimental type OriginTrialStatus extends string ``` \ No newline at end of file diff --git a/json/browser_protocol.json b/json/browser_protocol.json index 17341b1067..3ab59913a2 100644 --- a/json/browser_protocol.json +++ b/json/browser_protocol.json @@ -8571,6 +8571,21 @@ } ] }, + { + "id": "DevicePosture", + "type": "object", + "properties": [ + { + "name": "type", + "description": "Current posture of the device", + "type": "string", + "enum": [ + "continuous", + "folded" + ] + } + ] + }, { "id": "MediaFeature", "type": "object", @@ -8958,6 +8973,13 @@ "experimental": true, "optional": true, "$ref": "DisplayFeature" + }, + { + "name": "devicePosture", + "description": "If set, the posture of a foldable device. If not set the posture is set\nto continuous.", + "experimental": true, + "optional": true, + "$ref": "DevicePosture" } ] }, diff --git a/package.json b/package.json index 1ba8c776a0..107e757369 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "devtools-protocol", - "version": "0.0.1231733", + "version": "0.0.1232444", "description": "The Chrome DevTools Protocol JSON", "repository": "https://github.com/ChromeDevTools/devtools-protocol", "author": "The Chromium Authors", diff --git a/pdl/browser_protocol.pdl b/pdl/browser_protocol.pdl index 3a103fe06f..903dd7bcfa 100644 --- a/pdl/browser_protocol.pdl +++ b/pdl/browser_protocol.pdl @@ -3916,6 +3916,13 @@ domain Emulation # A display feature that only splits content will have a 0 mask_length. integer maskLength + type DevicePosture extends object + properties + # Current posture of the device + enum type + continuous + folded + type MediaFeature extends object properties string name @@ -4073,6 +4080,9 @@ domain Emulation # If set, the display feature of a multi-segment screen. If not set, multi-segment support # is turned-off. experimental optional DisplayFeature displayFeature + # If set, the posture of a foldable device. If not set the posture is set + # to continuous. + experimental optional DevicePosture devicePosture experimental command setScrollbarsHidden parameters diff --git a/types/protocol.d.ts b/types/protocol.d.ts index af98eb2a46..0143d1f2e5 100644 --- a/types/protocol.d.ts +++ b/types/protocol.d.ts @@ -7900,6 +7900,18 @@ export namespace Protocol { maskLength: integer; } + export const enum DevicePostureType { + Continuous = 'continuous', + Folded = 'folded', + } + + export interface DevicePosture { + /** + * Current posture of the device (DevicePostureType enum) + */ + type: ('continuous' | 'folded'); + } + export interface MediaFeature { name: string; value: string; @@ -8077,6 +8089,11 @@ export namespace Protocol { * is turned-off. */ displayFeature?: DisplayFeature; + /** + * If set, the posture of a foldable device. If not set the posture is set + * to continuous. + */ + devicePosture?: DevicePosture; } export interface SetScrollbarsHiddenRequest {