Skip to content

Commit c217062

Browse files
committed
Roll protocol to r1591319
1 parent d5ffdaf commit c217062

9 files changed

Lines changed: 74 additions & 50 deletions

changelog.md

Lines changed: 19 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
11

22

3+
## Roll protocol to r1591319 — _2026-02-27T04:56:42.000Z_
4+
###### Diff: [`d5ffdaf...029bb84`](https://github.com/ChromeDevTools/devtools-protocol/compare/d5ffdaf...029bb84)
5+
6+
```diff
7+
@@ domains/Emulation.pdl:617 @@ domain Emulation
8+
experimental command removeScreen
9+
parameters
10+
ScreenId screenId
11+
+
12+
+ # Set primary screen. Only supported in headless mode.
13+
+ # Note that this changes the coordinate system origin to the top-left
14+
+ # of the new primary screen, updating the bounds and work areas
15+
+ # of all existing screens accordingly.
16+
+ experimental command setPrimaryScreen
17+
+ parameters
18+
+ ScreenId screenId
19+
```
20+
321
## Roll protocol to r1590631 — _2026-02-26T05:00:08.000Z_
4-
###### Diff: [`708011c...5e29205`](https://github.com/ChromeDevTools/devtools-protocol/compare/708011c...5e29205)
22+
###### Diff: [`708011c...d5ffdaf`](https://github.com/ChromeDevTools/devtools-protocol/compare/708011c...d5ffdaf)
523

624
```diff
725
@@ domains/Audits.pdl:7 @@ @@ -7,6 +7,7 @@
@@ -42305,50 +42323,4 @@ index 0dbdc01d..7a3c772c 100644
4230542323
# Defines events for background web platform features.
4230642324
experimental domain BackgroundService
4230742325
# The Background Service that will be associated with the commands/events.
42308-
```
42309-
42310-
## Roll protocol to r1138800 — _2023-05-03T04:26:34.000Z_
42311-
###### Diff: [`fd2e02b...5b4da4d`](https://github.com/ChromeDevTools/devtools-protocol/compare/fd2e02b...5b4da4d)
42312-
42313-
```diff
42314-
@@ js_protocol.pdl:1015 @@ domain Runtime
42315-
type ScriptId extends string
42316-
42317-
# Represents the value serialiazed by the WebDriver BiDi specification
42318-
- # https://w3c.github.io/webdriver-bidi.
42319-
- type WebDriverValue extends object
42320-
+ # https://goo.gle/browser-automation-deepserialization.
42321-
+ type DeepSerializedValue extends object
42322-
properties
42323-
enum type
42324-
undefined
42325-
@@ -1102,7 +1102,7 @@ domain Runtime
42326-
# String representation of the object.
42327-
optional string description
42328-
# WebDriver BiDi representation of the value.
42329-
- experimental optional WebDriverValue webDriverValue
42330-
+ experimental optional DeepSerializedValue webDriverValue
42331-
# Unique object identifier (for non-primitive values).
42332-
optional RemoteObjectId objectId
42333-
# Preview containing abbreviated property values. Specified for `object` type values only.
42334-
@@ -1416,8 +1416,8 @@ domain Runtime
42335-
# This is mutually exclusive with `executionContextId`.
42336-
experimental optional string uniqueContextId
42337-
# Whether the result should contain `webDriverValue`, serialized according to
42338-
- # https://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, but
42339-
- # resulting `objectId` is still provided.
42340-
+ # https://goo.gle/browser-automation-deepserialization. This is mutually
42341-
+ # exclusive with `returnByValue`, but resulting `objectId` is still provided.
42342-
experimental optional boolean generateWebDriverValue
42343-
returns
42344-
# Call result.
42345-
@@ -1504,7 +1504,7 @@ domain Runtime
42346-
# boundaries).
42347-
# This is mutually exclusive with `contextId`.
42348-
experimental optional string uniqueContextId
42349-
- # Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi.
42350-
+ # Whether the result should be serialized according to https://goo.gle/browser-automation-deepserialization.
42351-
experimental optional boolean generateWebDriverValue
42352-
returns
42353-
# Evaluation result.
4235442326
```

json/browser_protocol.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11691,6 +11691,17 @@
1169111691
"$ref": "ScreenId"
1169211692
}
1169311693
]
11694+
},
11695+
{
11696+
"name": "setPrimaryScreen",
11697+
"description": "Set primary screen. Only supported in headless mode.\nNote that this changes the coordinate system origin to the top-left\nof the new primary screen, updating the bounds and work areas\nof all existing screens accordingly.",
11698+
"experimental": true,
11699+
"parameters": [
11700+
{
11701+
"name": "screenId",
11702+
"$ref": "ScreenId"
11703+
}
11704+
]
1169411705
}
1169511706
],
1169611707
"events": [

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devtools-protocol",
3-
"version": "0.0.1590631",
3+
"version": "0.0.1591319",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/domains/Emulation.pdl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,3 +617,11 @@ domain Emulation
617617
experimental command removeScreen
618618
parameters
619619
ScreenId screenId
620+
621+
# Set primary screen. Only supported in headless mode.
622+
# Note that this changes the coordinate system origin to the top-left
623+
# of the new primary screen, updating the bounds and work areas
624+
# of all existing screens accordingly.
625+
experimental command setPrimaryScreen
626+
parameters
627+
ScreenId screenId

types/protocol-mapping.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3591,6 +3591,17 @@ export namespace ProtocolMapping {
35913591
paramsType: [Protocol.Emulation.RemoveScreenRequest];
35923592
returnType: void;
35933593
};
3594+
/**
3595+
* Set primary screen. Only supported in headless mode.
3596+
* Note that this changes the coordinate system origin to the top-left
3597+
* of the new primary screen, updating the bounds and work areas
3598+
* of all existing screens accordingly.
3599+
* @experimental
3600+
*/
3601+
'Emulation.setPrimaryScreen': {
3602+
paramsType: [Protocol.Emulation.SetPrimaryScreenRequest];
3603+
returnType: void;
3604+
};
35943605
/**
35953606
* Sets breakpoint on particular native event.
35963607
*/

types/protocol-proxy-api.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,6 +2390,15 @@ export namespace ProtocolProxyApi {
23902390
*/
23912391
removeScreen(params: Protocol.Emulation.RemoveScreenRequest): Promise<void>;
23922392

2393+
/**
2394+
* Set primary screen. Only supported in headless mode.
2395+
* Note that this changes the coordinate system origin to the top-left
2396+
* of the new primary screen, updating the bounds and work areas
2397+
* of all existing screens accordingly.
2398+
* @experimental
2399+
*/
2400+
setPrimaryScreen(params: Protocol.Emulation.SetPrimaryScreenRequest): Promise<void>;
2401+
23932402
/**
23942403
* Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
23952404
* @experimental

types/protocol-tests-proxy-api.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2528,6 +2528,15 @@ export namespace ProtocolTestsProxyApi {
25282528
*/
25292529
removeScreen(params: Protocol.Emulation.RemoveScreenRequest): Promise<{id: number, result: void, sessionId: string}>;
25302530

2531+
/**
2532+
* Set primary screen. Only supported in headless mode.
2533+
* Note that this changes the coordinate system origin to the top-left
2534+
* of the new primary screen, updating the bounds and work areas
2535+
* of all existing screens accordingly.
2536+
* @experimental
2537+
*/
2538+
setPrimaryScreen(params: Protocol.Emulation.SetPrimaryScreenRequest): Promise<{id: number, result: void, sessionId: string}>;
2539+
25312540
/**
25322541
* Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
25332542
* @experimental

types/protocol.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9868,6 +9868,10 @@ export namespace Protocol {
98689868
export interface RemoveScreenRequest {
98699869
screenId: ScreenId;
98709870
}
9871+
9872+
export interface SetPrimaryScreenRequest {
9873+
screenId: ScreenId;
9874+
}
98719875
}
98729876

98739877
/**

0 commit comments

Comments
 (0)