Skip to content

Commit 073b3ab

Browse files
committed
Roll protocol to r1501221
1 parent ec909f9 commit 073b3ab

10 files changed

Lines changed: 39434 additions & 10942 deletions

changelog.md

Lines changed: 29234 additions & 1263 deletions
Large diffs are not rendered by default.

json/browser_protocol.json

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10359,6 +10359,130 @@
1035910359
}
1036010360
]
1036110361
},
10362+
{
10363+
"id": "WorkAreaInsets",
10364+
"experimental": true,
10365+
"type": "object",
10366+
"properties": [
10367+
{
10368+
"name": "top",
10369+
"description": "Work area top inset in pixels. Default is 0;",
10370+
"optional": true,
10371+
"type": "integer"
10372+
},
10373+
{
10374+
"name": "left",
10375+
"description": "Work area left inset in pixels. Default is 0;",
10376+
"optional": true,
10377+
"type": "integer"
10378+
},
10379+
{
10380+
"name": "bottom",
10381+
"description": "Work area bottom inset in pixels. Default is 0;",
10382+
"optional": true,
10383+
"type": "integer"
10384+
},
10385+
{
10386+
"name": "right",
10387+
"description": "Work area right inset in pixels. Default is 0;",
10388+
"optional": true,
10389+
"type": "integer"
10390+
}
10391+
]
10392+
},
10393+
{
10394+
"id": "ScreenId",
10395+
"experimental": true,
10396+
"type": "string"
10397+
},
10398+
{
10399+
"id": "ScreenInfo",
10400+
"description": "Screen information similar to the one returned by window.getScreenDetails() method,\nsee https://w3c.github.io/window-management/#screendetailed.",
10401+
"experimental": true,
10402+
"type": "object",
10403+
"properties": [
10404+
{
10405+
"name": "left",
10406+
"description": "Offset of the left edge of the screen.",
10407+
"type": "integer"
10408+
},
10409+
{
10410+
"name": "top",
10411+
"description": "Offset of the top edge of the screen.",
10412+
"type": "integer"
10413+
},
10414+
{
10415+
"name": "width",
10416+
"description": "Width of the screen.",
10417+
"type": "integer"
10418+
},
10419+
{
10420+
"name": "height",
10421+
"description": "Height of the screen.",
10422+
"type": "integer"
10423+
},
10424+
{
10425+
"name": "availLeft",
10426+
"description": "Offset of the left edge of the available screen area.",
10427+
"type": "integer"
10428+
},
10429+
{
10430+
"name": "availTop",
10431+
"description": "Offset of the top edge of the available screen area.",
10432+
"type": "integer"
10433+
},
10434+
{
10435+
"name": "availWidth",
10436+
"description": "Width of the available screen area.",
10437+
"type": "integer"
10438+
},
10439+
{
10440+
"name": "availHeight",
10441+
"description": "Height of the available screen area.",
10442+
"type": "integer"
10443+
},
10444+
{
10445+
"name": "devicePixelRatio",
10446+
"description": "Specifies the screen's device pixel ratio.",
10447+
"type": "number"
10448+
},
10449+
{
10450+
"name": "orientation",
10451+
"description": "Specifies the screen's orientation.",
10452+
"$ref": "ScreenOrientation"
10453+
},
10454+
{
10455+
"name": "colorDepth",
10456+
"description": "Specifies the screen's color depth in bits.",
10457+
"type": "integer"
10458+
},
10459+
{
10460+
"name": "isExtended",
10461+
"description": "Indicates whether the device has multiple screens.",
10462+
"type": "boolean"
10463+
},
10464+
{
10465+
"name": "isInternal",
10466+
"description": "Indicates whether the screen is internal to the device or external, attached to the device.",
10467+
"type": "boolean"
10468+
},
10469+
{
10470+
"name": "isPrimary",
10471+
"description": "Indicates whether the screen is set as the the operating system primary screen.",
10472+
"type": "boolean"
10473+
},
10474+
{
10475+
"name": "label",
10476+
"description": "Specifies the descriptive label for the screen.",
10477+
"type": "string"
10478+
},
10479+
{
10480+
"name": "id",
10481+
"description": "Specifies the unique identifier of the screen.",
10482+
"$ref": "ScreenId"
10483+
}
10484+
]
10485+
},
1036210486
{
1036310487
"id": "DisabledImageType",
1036410488
"description": "Enum of image types that can be disabled.",
@@ -11078,6 +11202,100 @@
1107811202
"type": "integer"
1107911203
}
1108011204
]
11205+
},
11206+
{
11207+
"name": "getScreenInfos",
11208+
"description": "Returns device's screen configuration.",
11209+
"experimental": true,
11210+
"returns": [
11211+
{
11212+
"name": "screenInfos",
11213+
"type": "array",
11214+
"items": {
11215+
"$ref": "ScreenInfo"
11216+
}
11217+
}
11218+
]
11219+
},
11220+
{
11221+
"name": "addScreen",
11222+
"description": "Add a new screen to the device. Only supported in headless mode.",
11223+
"experimental": true,
11224+
"parameters": [
11225+
{
11226+
"name": "left",
11227+
"description": "Offset of the left edge of the screen in pixels.",
11228+
"type": "integer"
11229+
},
11230+
{
11231+
"name": "top",
11232+
"description": "Offset of the top edge of the screen in pixels.",
11233+
"type": "integer"
11234+
},
11235+
{
11236+
"name": "width",
11237+
"description": "The width of the screen in pixels.",
11238+
"type": "integer"
11239+
},
11240+
{
11241+
"name": "height",
11242+
"description": "The height of the screen in pixels.",
11243+
"type": "integer"
11244+
},
11245+
{
11246+
"name": "workAreaInsets",
11247+
"description": "Specifies the screen's work area. Default is entire screen.",
11248+
"optional": true,
11249+
"$ref": "WorkAreaInsets"
11250+
},
11251+
{
11252+
"name": "devicePixelRatio",
11253+
"description": "Specifies the screen's device pixel ratio. Default is 1.",
11254+
"optional": true,
11255+
"type": "number"
11256+
},
11257+
{
11258+
"name": "rotation",
11259+
"description": "Specifies the screen's rotation angle. Available values are 0, 90, 180 and 270. Default is 0.",
11260+
"optional": true,
11261+
"type": "integer"
11262+
},
11263+
{
11264+
"name": "colorDepth",
11265+
"description": "Specifies the screen's color depth in bits. Default is 24.",
11266+
"optional": true,
11267+
"type": "integer"
11268+
},
11269+
{
11270+
"name": "label",
11271+
"description": "Specifies the descriptive label for the screen. Default is none.",
11272+
"optional": true,
11273+
"type": "string"
11274+
},
11275+
{
11276+
"name": "isInternal",
11277+
"description": "Indicates whether the screen is internal to the device or external, attached to the device. Default is false.",
11278+
"optional": true,
11279+
"type": "boolean"
11280+
}
11281+
],
11282+
"returns": [
11283+
{
11284+
"name": "screenInfo",
11285+
"$ref": "ScreenInfo"
11286+
}
11287+
]
11288+
},
11289+
{
11290+
"name": "removeScreen",
11291+
"description": "Remove screen from the device. Only supported in headless mode.",
11292+
"experimental": true,
11293+
"parameters": [
11294+
{
11295+
"name": "screenId",
11296+
"$ref": "ScreenId"
11297+
}
11298+
]
1108111299
}
1108211300
],
1108311301
"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.1498597",
3+
"version": "0.0.1501221",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/browser_protocol.pdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ include domains/Target.pdl
5454
include domains/Tethering.pdl
5555
include domains/Tracing.pdl
5656
include domains/WebAudio.pdl
57-
include domains/WebAuthn.pdl
57+
include domains/WebAuthn.pdl

pdl/domains/Emulation.pdl

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,56 @@ domain Emulation
160160
properties
161161
optional boolean available
162162

163+
experimental type WorkAreaInsets extends object
164+
properties
165+
# Work area top inset in pixels. Default is 0;
166+
optional integer top
167+
# Work area left inset in pixels. Default is 0;
168+
optional integer left
169+
# Work area bottom inset in pixels. Default is 0;
170+
optional integer bottom
171+
# Work area right inset in pixels. Default is 0;
172+
optional integer right
173+
174+
experimental type ScreenId extends string
175+
176+
# Screen information similar to the one returned by window.getScreenDetails() method,
177+
# see https://w3c.github.io/window-management/#screendetailed.
178+
experimental type ScreenInfo extends object
179+
properties
180+
# Offset of the left edge of the screen.
181+
integer left
182+
# Offset of the top edge of the screen.
183+
integer top
184+
# Width of the screen.
185+
integer width
186+
# Height of the screen.
187+
integer height
188+
# Offset of the left edge of the available screen area.
189+
integer availLeft
190+
# Offset of the top edge of the available screen area.
191+
integer availTop
192+
# Width of the available screen area.
193+
integer availWidth
194+
# Height of the available screen area.
195+
integer availHeight
196+
# Specifies the screen's device pixel ratio.
197+
number devicePixelRatio
198+
# Specifies the screen's orientation.
199+
ScreenOrientation orientation
200+
# Specifies the screen's color depth in bits.
201+
integer colorDepth
202+
# Indicates whether the device has multiple screens.
203+
boolean isExtended
204+
# Indicates whether the screen is internal to the device or external, attached to the device.
205+
boolean isInternal
206+
# Indicates whether the screen is set as the the operating system primary screen.
207+
boolean isPrimary
208+
# Specifies the descriptive label for the screen.
209+
string label
210+
# Specifies the unique identifier of the screen.
211+
ScreenId id
212+
163213
# Tells whether emulation is supported.
164214
deprecated command canEmulate
165215
returns
@@ -520,3 +570,39 @@ domain Emulation
520570
# This will cause an element of size 100svh to be `difference` pixels smaller than an element
521571
# of size 100lvh.
522572
integer difference
573+
574+
# Returns device's screen configuration.
575+
experimental command getScreenInfos
576+
returns
577+
array of ScreenInfo screenInfos
578+
579+
# Add a new screen to the device. Only supported in headless mode.
580+
experimental command addScreen
581+
parameters
582+
# Offset of the left edge of the screen in pixels.
583+
integer left
584+
# Offset of the top edge of the screen in pixels.
585+
integer top
586+
# The width of the screen in pixels.
587+
integer width
588+
# The height of the screen in pixels.
589+
integer height
590+
# Specifies the screen's work area. Default is entire screen.
591+
optional WorkAreaInsets workAreaInsets
592+
# Specifies the screen's device pixel ratio. Default is 1.
593+
optional number devicePixelRatio
594+
# Specifies the screen's rotation angle. Available values are 0, 90, 180 and 270. Default is 0.
595+
optional integer rotation
596+
# Specifies the screen's color depth in bits. Default is 24.
597+
optional integer colorDepth
598+
# Specifies the descriptive label for the screen. Default is none.
599+
optional string label
600+
# Indicates whether the screen is internal to the device or external, attached to the device. Default is false.
601+
optional boolean isInternal
602+
returns
603+
ScreenInfo screenInfo
604+
605+
# Remove screen from the device. Only supported in headless mode.
606+
experimental command removeScreen
607+
parameters
608+
ScreenId screenId

0 commit comments

Comments
 (0)