From 2ecbfafe8ec5c8d1a617dfedb5c95c4c6c6e0214 Mon Sep 17 00:00:00 2001 From: DevTools Bot <24444246+devtools-bot@users.noreply.github.com> Date: Wed, 15 Jan 2025 04:28:35 +0000 Subject: [PATCH] Roll protocol to r1406504 --- changelog.md | 33 ++++++++++++++++++++++++++++++++- json/browser_protocol.json | 18 ++++++++++++++++++ package.json | 2 +- pdl/browser_protocol.pdl | 11 +++++++++++ types/protocol.d.ts | 10 ++++++++++ 5 files changed, 72 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index ccbe4a1ed1..1dbd39a3ab 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,38 @@ +## Roll protocol to r1406504 — _2025-01-15T04:28:35.000Z_ +###### Diff: [`713993e...e45a917`](https://github.com/ChromeDevTools/devtools-protocol/compare/713993e...e45a917) + +```diff +@@ browser_protocol.pdl:11174 @@ domain Target + string host + integer port + ++ # The state of the target window. ++ experimental type WindowState extends string ++ enum ++ normal ++ minimized ++ maximized ++ fullscreen ++ + # Activates (focuses) the target. + command activateTarget + parameters +@@ -11255,6 +11263,9 @@ domain Target + optional integer width + # Frame height in DIP (requires newWindow to be true or headless shell). + optional integer height ++ # Frame window state (requires newWindow to be true or headless shell). ++ # Default is normal. ++ optional WindowState windowState + # The browser context to create the page in. + experimental optional Browser.BrowserContextID browserContextId + # Whether BeginFrames for this target will be controlled via DevTools (headless shell only, +``` + ## Roll protocol to r1404580 — _2025-01-10T04:29:07.000Z_ -###### Diff: [`e2b4f4f...7e9acf8`](https://github.com/ChromeDevTools/devtools-protocol/compare/e2b4f4f...7e9acf8) +###### Diff: [`e2b4f4f...713993e`](https://github.com/ChromeDevTools/devtools-protocol/compare/e2b4f4f...713993e) ```diff @@ browser_protocol.pdl:949 @@ experimental domain Audits diff --git a/json/browser_protocol.json b/json/browser_protocol.json index c2d64ff6d8..6bacdfcb39 100644 --- a/json/browser_protocol.json +++ b/json/browser_protocol.json @@ -23771,6 +23771,18 @@ "type": "integer" } ] + }, + { + "id": "WindowState", + "description": "The state of the target window.", + "experimental": true, + "type": "string", + "enum": [ + "normal", + "minimized", + "maximized", + "fullscreen" + ] } ], "commands": [ @@ -23947,6 +23959,12 @@ "optional": true, "type": "integer" }, + { + "name": "windowState", + "description": "Frame window state (requires newWindow to be true or headless shell).\nDefault is normal.", + "optional": true, + "$ref": "WindowState" + }, { "name": "browserContextId", "description": "The browser context to create the page in.", diff --git a/package.json b/package.json index eaeb28338a..2ea7e8585b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "devtools-protocol", - "version": "0.0.1404580", + "version": "0.0.1406504", "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 583cc9fe7d..e10e5495fa 100644 --- a/pdl/browser_protocol.pdl +++ b/pdl/browser_protocol.pdl @@ -11174,6 +11174,14 @@ domain Target string host integer port + # The state of the target window. + experimental type WindowState extends string + enum + normal + minimized + maximized + fullscreen + # Activates (focuses) the target. command activateTarget parameters @@ -11255,6 +11263,9 @@ domain Target optional integer width # Frame height in DIP (requires newWindow to be true or headless shell). optional integer height + # Frame window state (requires newWindow to be true or headless shell). + # Default is normal. + optional WindowState windowState # The browser context to create the page in. experimental optional Browser.BrowserContextID browserContextId # Whether BeginFrames for this target will be controlled via DevTools (headless shell only, diff --git a/types/protocol.d.ts b/types/protocol.d.ts index d6cf19c81e..1e63ed1600 100644 --- a/types/protocol.d.ts +++ b/types/protocol.d.ts @@ -17101,6 +17101,11 @@ export namespace Protocol { port: integer; } + /** + * The state of the target window. + */ + export type WindowState = ('normal' | 'minimized' | 'maximized' | 'fullscreen'); + export interface ActivateTargetRequest { targetId: TargetID; } @@ -17203,6 +17208,11 @@ export namespace Protocol { * Frame height in DIP (requires newWindow to be true or headless shell). */ height?: integer; + /** + * Frame window state (requires newWindow to be true or headless shell). + * Default is normal. + */ + windowState?: WindowState; /** * The browser context to create the page in. */