Skip to content

Commit

Permalink
Roll protocol to r1406504
Browse files Browse the repository at this point in the history
  • Loading branch information
devtools-bot committed Jan 15, 2025
1 parent 713993e commit 2ecbfaf
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 2 deletions.
33 changes: 32 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
18 changes: 18 additions & 0 deletions json/browser_protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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.",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
11 changes: 11 additions & 0 deletions pdl/browser_protocol.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
10 changes: 10 additions & 0 deletions types/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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.
*/
Expand Down

0 comments on commit 2ecbfaf

Please sign in to comment.