devtools-protocol 0.0.1498597 → 0.0.1501221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/json/browser_protocol.json +17895 -17678
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +47 -13824
- package/pdl/domains/Accessibility.pdl +290 -0
- package/pdl/domains/Animation.pdl +195 -0
- package/pdl/domains/Audits.pdl +755 -0
- package/pdl/domains/Autofill.pdl +106 -0
- package/pdl/domains/BackgroundService.pdl +77 -0
- package/pdl/domains/BluetoothEmulation.pdl +227 -0
- package/pdl/domains/Browser.pdl +345 -0
- package/pdl/domains/CSS.pdl +996 -0
- package/pdl/domains/CacheStorage.pdl +125 -0
- package/pdl/domains/Cast.pdl +62 -0
- package/pdl/domains/DOM.pdl +932 -0
- package/pdl/domains/DOMDebugger.pdl +128 -0
- package/pdl/domains/DOMSnapshot.pdl +319 -0
- package/pdl/domains/DOMStorage.pdl +72 -0
- package/pdl/domains/DeviceAccess.pdl +43 -0
- package/pdl/domains/DeviceOrientation.pdl +20 -0
- package/pdl/domains/Emulation.pdl +608 -0
- package/pdl/domains/EventBreakpoints.pdl +24 -0
- package/pdl/domains/Extensions.pdl +72 -0
- package/pdl/domains/FedCm.pdl +100 -0
- package/pdl/domains/Fetch.pdl +251 -0
- package/pdl/domains/FileSystem.pdl +41 -0
- package/pdl/domains/HeadlessExperimental.pdl +56 -0
- package/pdl/domains/IO.pdl +45 -0
- package/pdl/domains/IndexedDB.pdl +226 -0
- package/pdl/domains/Input.pdl +336 -0
- package/pdl/domains/Inspector.pdl +25 -0
- package/pdl/domains/LayerTree.pdl +178 -0
- package/pdl/domains/Log.pdl +93 -0
- package/pdl/domains/Media.pdl +106 -0
- package/pdl/domains/Memory.pdl +112 -0
- package/pdl/domains/Network.pdl +2039 -0
- package/pdl/domains/Overlay.pdl +498 -0
- package/pdl/domains/PWA.pdl +142 -0
- package/pdl/domains/Page.pdl +1767 -0
- package/pdl/domains/Performance.pdl +54 -0
- package/pdl/domains/PerformanceTimeline.pdl +71 -0
- package/pdl/domains/Preload.pdl +290 -0
- package/pdl/domains/Security.pdl +196 -0
- package/pdl/domains/ServiceWorker.pdl +121 -0
- package/pdl/domains/Storage.pdl +913 -0
- package/pdl/domains/SystemInfo.pdl +145 -0
- package/pdl/domains/Target.pdl +325 -0
- package/pdl/domains/Tethering.pdl +28 -0
- package/pdl/domains/Tracing.pdl +157 -0
- package/pdl/domains/WebAudio.pdl +205 -0
- package/pdl/domains/WebAuthn.pdl +230 -0
- package/types/protocol-mapping.d.ts +659 -635
- package/types/protocol-proxy-api.d.ts +543 -522
- package/types/protocol-tests-proxy-api.d.ts +628 -607
- package/types/protocol.d.ts +8062 -7911
@@ -0,0 +1,498 @@
|
|
1
|
+
# Copyright 2017 The Chromium Authors
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
3
|
+
# found in the LICENSE file.
|
4
|
+
#
|
5
|
+
# Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
|
6
|
+
|
7
|
+
# This domain provides various functionality related to drawing atop the inspected page.
|
8
|
+
experimental domain Overlay
|
9
|
+
depends on DOM
|
10
|
+
depends on Page
|
11
|
+
depends on Runtime
|
12
|
+
|
13
|
+
# Configuration data for drawing the source order of an elements children.
|
14
|
+
type SourceOrderConfig extends object
|
15
|
+
properties
|
16
|
+
# the color to outline the given element in.
|
17
|
+
DOM.RGBA parentOutlineColor
|
18
|
+
# the color to outline the child elements in.
|
19
|
+
DOM.RGBA childOutlineColor
|
20
|
+
|
21
|
+
# Configuration data for the highlighting of Grid elements.
|
22
|
+
type GridHighlightConfig extends object
|
23
|
+
properties
|
24
|
+
# Whether the extension lines from grid cells to the rulers should be shown (default: false).
|
25
|
+
optional boolean showGridExtensionLines
|
26
|
+
# Show Positive line number labels (default: false).
|
27
|
+
optional boolean showPositiveLineNumbers
|
28
|
+
# Show Negative line number labels (default: false).
|
29
|
+
optional boolean showNegativeLineNumbers
|
30
|
+
# Show area name labels (default: false).
|
31
|
+
optional boolean showAreaNames
|
32
|
+
# Show line name labels (default: false).
|
33
|
+
optional boolean showLineNames
|
34
|
+
# Show track size labels (default: false).
|
35
|
+
optional boolean showTrackSizes
|
36
|
+
# The grid container border highlight color (default: transparent).
|
37
|
+
optional DOM.RGBA gridBorderColor
|
38
|
+
# The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead.
|
39
|
+
deprecated optional DOM.RGBA cellBorderColor
|
40
|
+
# The row line color (default: transparent).
|
41
|
+
optional DOM.RGBA rowLineColor
|
42
|
+
# The column line color (default: transparent).
|
43
|
+
optional DOM.RGBA columnLineColor
|
44
|
+
# Whether the grid border is dashed (default: false).
|
45
|
+
optional boolean gridBorderDash
|
46
|
+
# Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead.
|
47
|
+
deprecated optional boolean cellBorderDash
|
48
|
+
# Whether row lines are dashed (default: false).
|
49
|
+
optional boolean rowLineDash
|
50
|
+
# Whether column lines are dashed (default: false).
|
51
|
+
optional boolean columnLineDash
|
52
|
+
# The row gap highlight fill color (default: transparent).
|
53
|
+
optional DOM.RGBA rowGapColor
|
54
|
+
# The row gap hatching fill color (default: transparent).
|
55
|
+
optional DOM.RGBA rowHatchColor
|
56
|
+
# The column gap highlight fill color (default: transparent).
|
57
|
+
optional DOM.RGBA columnGapColor
|
58
|
+
# The column gap hatching fill color (default: transparent).
|
59
|
+
optional DOM.RGBA columnHatchColor
|
60
|
+
# The named grid areas border color (Default: transparent).
|
61
|
+
optional DOM.RGBA areaBorderColor
|
62
|
+
# The grid container background color (Default: transparent).
|
63
|
+
optional DOM.RGBA gridBackgroundColor
|
64
|
+
|
65
|
+
# Configuration data for the highlighting of Flex container elements.
|
66
|
+
type FlexContainerHighlightConfig extends object
|
67
|
+
properties
|
68
|
+
# The style of the container border
|
69
|
+
optional LineStyle containerBorder
|
70
|
+
# The style of the separator between lines
|
71
|
+
optional LineStyle lineSeparator
|
72
|
+
# The style of the separator between items
|
73
|
+
optional LineStyle itemSeparator
|
74
|
+
# Style of content-distribution space on the main axis (justify-content).
|
75
|
+
optional BoxStyle mainDistributedSpace
|
76
|
+
# Style of content-distribution space on the cross axis (align-content).
|
77
|
+
optional BoxStyle crossDistributedSpace
|
78
|
+
# Style of empty space caused by row gaps (gap/row-gap).
|
79
|
+
optional BoxStyle rowGapSpace
|
80
|
+
# Style of empty space caused by columns gaps (gap/column-gap).
|
81
|
+
optional BoxStyle columnGapSpace
|
82
|
+
# Style of the self-alignment line (align-items).
|
83
|
+
optional LineStyle crossAlignment
|
84
|
+
|
85
|
+
# Configuration data for the highlighting of Flex item elements.
|
86
|
+
type FlexItemHighlightConfig extends object
|
87
|
+
properties
|
88
|
+
# Style of the box representing the item's base size
|
89
|
+
optional BoxStyle baseSizeBox
|
90
|
+
# Style of the border around the box representing the item's base size
|
91
|
+
optional LineStyle baseSizeBorder
|
92
|
+
# Style of the arrow representing if the item grew or shrank
|
93
|
+
optional LineStyle flexibilityArrow
|
94
|
+
|
95
|
+
# Style information for drawing a line.
|
96
|
+
type LineStyle extends object
|
97
|
+
properties
|
98
|
+
# The color of the line (default: transparent)
|
99
|
+
optional DOM.RGBA color
|
100
|
+
# The line pattern (default: solid)
|
101
|
+
optional enum pattern
|
102
|
+
dashed
|
103
|
+
dotted
|
104
|
+
|
105
|
+
# Style information for drawing a box.
|
106
|
+
type BoxStyle extends object
|
107
|
+
properties
|
108
|
+
# The background color for the box (default: transparent)
|
109
|
+
optional DOM.RGBA fillColor
|
110
|
+
# The hatching color for the box (default: transparent)
|
111
|
+
optional DOM.RGBA hatchColor
|
112
|
+
|
113
|
+
type ContrastAlgorithm extends string
|
114
|
+
enum
|
115
|
+
aa
|
116
|
+
aaa
|
117
|
+
apca
|
118
|
+
|
119
|
+
# Configuration data for the highlighting of page elements.
|
120
|
+
type HighlightConfig extends object
|
121
|
+
properties
|
122
|
+
# Whether the node info tooltip should be shown (default: false).
|
123
|
+
optional boolean showInfo
|
124
|
+
# Whether the node styles in the tooltip (default: false).
|
125
|
+
optional boolean showStyles
|
126
|
+
# Whether the rulers should be shown (default: false).
|
127
|
+
optional boolean showRulers
|
128
|
+
# Whether the a11y info should be shown (default: true).
|
129
|
+
optional boolean showAccessibilityInfo
|
130
|
+
# Whether the extension lines from node to the rulers should be shown (default: false).
|
131
|
+
optional boolean showExtensionLines
|
132
|
+
# The content box highlight fill color (default: transparent).
|
133
|
+
optional DOM.RGBA contentColor
|
134
|
+
# The padding highlight fill color (default: transparent).
|
135
|
+
optional DOM.RGBA paddingColor
|
136
|
+
# The border highlight fill color (default: transparent).
|
137
|
+
optional DOM.RGBA borderColor
|
138
|
+
# The margin highlight fill color (default: transparent).
|
139
|
+
optional DOM.RGBA marginColor
|
140
|
+
# The event target element highlight fill color (default: transparent).
|
141
|
+
optional DOM.RGBA eventTargetColor
|
142
|
+
# The shape outside fill color (default: transparent).
|
143
|
+
optional DOM.RGBA shapeColor
|
144
|
+
# The shape margin fill color (default: transparent).
|
145
|
+
optional DOM.RGBA shapeMarginColor
|
146
|
+
# The grid layout color (default: transparent).
|
147
|
+
optional DOM.RGBA cssGridColor
|
148
|
+
# The color format used to format color styles (default: hex).
|
149
|
+
optional ColorFormat colorFormat
|
150
|
+
# The grid layout highlight configuration (default: all transparent).
|
151
|
+
optional GridHighlightConfig gridHighlightConfig
|
152
|
+
# The flex container highlight configuration (default: all transparent).
|
153
|
+
optional FlexContainerHighlightConfig flexContainerHighlightConfig
|
154
|
+
# The flex item highlight configuration (default: all transparent).
|
155
|
+
optional FlexItemHighlightConfig flexItemHighlightConfig
|
156
|
+
# The contrast algorithm to use for the contrast ratio (default: aa).
|
157
|
+
optional ContrastAlgorithm contrastAlgorithm
|
158
|
+
# The container query container highlight configuration (default: all transparent).
|
159
|
+
optional ContainerQueryContainerHighlightConfig containerQueryContainerHighlightConfig
|
160
|
+
|
161
|
+
type ColorFormat extends string
|
162
|
+
enum
|
163
|
+
rgb
|
164
|
+
hsl
|
165
|
+
hwb
|
166
|
+
hex
|
167
|
+
|
168
|
+
# Configurations for Persistent Grid Highlight
|
169
|
+
type GridNodeHighlightConfig extends object
|
170
|
+
properties
|
171
|
+
# A descriptor for the highlight appearance.
|
172
|
+
GridHighlightConfig gridHighlightConfig
|
173
|
+
# Identifier of the node to highlight.
|
174
|
+
DOM.NodeId nodeId
|
175
|
+
|
176
|
+
type FlexNodeHighlightConfig extends object
|
177
|
+
properties
|
178
|
+
# A descriptor for the highlight appearance of flex containers.
|
179
|
+
FlexContainerHighlightConfig flexContainerHighlightConfig
|
180
|
+
# Identifier of the node to highlight.
|
181
|
+
DOM.NodeId nodeId
|
182
|
+
|
183
|
+
type ScrollSnapContainerHighlightConfig extends object
|
184
|
+
properties
|
185
|
+
# The style of the snapport border (default: transparent)
|
186
|
+
optional LineStyle snapportBorder
|
187
|
+
# The style of the snap area border (default: transparent)
|
188
|
+
optional LineStyle snapAreaBorder
|
189
|
+
# The margin highlight fill color (default: transparent).
|
190
|
+
optional DOM.RGBA scrollMarginColor
|
191
|
+
# The padding highlight fill color (default: transparent).
|
192
|
+
optional DOM.RGBA scrollPaddingColor
|
193
|
+
|
194
|
+
type ScrollSnapHighlightConfig extends object
|
195
|
+
properties
|
196
|
+
# A descriptor for the highlight appearance of scroll snap containers.
|
197
|
+
ScrollSnapContainerHighlightConfig scrollSnapContainerHighlightConfig
|
198
|
+
# Identifier of the node to highlight.
|
199
|
+
DOM.NodeId nodeId
|
200
|
+
|
201
|
+
# Configuration for dual screen hinge
|
202
|
+
type HingeConfig extends object
|
203
|
+
properties
|
204
|
+
# A rectangle represent hinge
|
205
|
+
DOM.Rect rect
|
206
|
+
# The content box highlight fill color (default: a dark color).
|
207
|
+
optional DOM.RGBA contentColor
|
208
|
+
# The content box highlight outline color (default: transparent).
|
209
|
+
optional DOM.RGBA outlineColor
|
210
|
+
|
211
|
+
# Configuration for Window Controls Overlay
|
212
|
+
type WindowControlsOverlayConfig extends object
|
213
|
+
properties
|
214
|
+
# Whether the title bar CSS should be shown when emulating the Window Controls Overlay.
|
215
|
+
boolean showCSS
|
216
|
+
# Selected platforms to show the overlay.
|
217
|
+
string selectedPlatform
|
218
|
+
# The theme color defined in app manifest.
|
219
|
+
string themeColor
|
220
|
+
|
221
|
+
type ContainerQueryHighlightConfig extends object
|
222
|
+
properties
|
223
|
+
# A descriptor for the highlight appearance of container query containers.
|
224
|
+
ContainerQueryContainerHighlightConfig containerQueryContainerHighlightConfig
|
225
|
+
# Identifier of the container node to highlight.
|
226
|
+
DOM.NodeId nodeId
|
227
|
+
|
228
|
+
type ContainerQueryContainerHighlightConfig extends object
|
229
|
+
properties
|
230
|
+
# The style of the container border.
|
231
|
+
optional LineStyle containerBorder
|
232
|
+
# The style of the descendants' borders.
|
233
|
+
optional LineStyle descendantBorder
|
234
|
+
|
235
|
+
type IsolatedElementHighlightConfig extends object
|
236
|
+
properties
|
237
|
+
# A descriptor for the highlight appearance of an element in isolation mode.
|
238
|
+
IsolationModeHighlightConfig isolationModeHighlightConfig
|
239
|
+
# Identifier of the isolated element to highlight.
|
240
|
+
DOM.NodeId nodeId
|
241
|
+
|
242
|
+
type IsolationModeHighlightConfig extends object
|
243
|
+
properties
|
244
|
+
# The fill color of the resizers (default: transparent).
|
245
|
+
optional DOM.RGBA resizerColor
|
246
|
+
# The fill color for resizer handles (default: transparent).
|
247
|
+
optional DOM.RGBA resizerHandleColor
|
248
|
+
# The fill color for the mask covering non-isolated elements (default: transparent).
|
249
|
+
optional DOM.RGBA maskColor
|
250
|
+
|
251
|
+
type InspectMode extends string
|
252
|
+
enum
|
253
|
+
searchForNode
|
254
|
+
searchForUAShadowDOM
|
255
|
+
captureAreaScreenshot
|
256
|
+
none
|
257
|
+
|
258
|
+
# Disables domain notifications.
|
259
|
+
command disable
|
260
|
+
|
261
|
+
# Enables domain notifications.
|
262
|
+
command enable
|
263
|
+
|
264
|
+
# For testing.
|
265
|
+
command getHighlightObjectForTest
|
266
|
+
parameters
|
267
|
+
# Id of the node to get highlight object for.
|
268
|
+
DOM.NodeId nodeId
|
269
|
+
# Whether to include distance info.
|
270
|
+
optional boolean includeDistance
|
271
|
+
# Whether to include style info.
|
272
|
+
optional boolean includeStyle
|
273
|
+
# The color format to get config with (default: hex).
|
274
|
+
optional ColorFormat colorFormat
|
275
|
+
# Whether to show accessibility info (default: true).
|
276
|
+
optional boolean showAccessibilityInfo
|
277
|
+
returns
|
278
|
+
# Highlight data for the node.
|
279
|
+
object highlight
|
280
|
+
|
281
|
+
# For Persistent Grid testing.
|
282
|
+
command getGridHighlightObjectsForTest
|
283
|
+
parameters
|
284
|
+
# Ids of the node to get highlight object for.
|
285
|
+
array of DOM.NodeId nodeIds
|
286
|
+
returns
|
287
|
+
# Grid Highlight data for the node ids provided.
|
288
|
+
object highlights
|
289
|
+
|
290
|
+
# For Source Order Viewer testing.
|
291
|
+
command getSourceOrderHighlightObjectForTest
|
292
|
+
parameters
|
293
|
+
# Id of the node to highlight.
|
294
|
+
DOM.NodeId nodeId
|
295
|
+
returns
|
296
|
+
# Source order highlight data for the node id provided.
|
297
|
+
object highlight
|
298
|
+
|
299
|
+
# Hides any highlight.
|
300
|
+
command hideHighlight
|
301
|
+
|
302
|
+
# Highlights owner element of the frame with given id.
|
303
|
+
# Deprecated: Doesn't work reliably and cannot be fixed due to process
|
304
|
+
# separation (the owner node might be in a different process). Determine
|
305
|
+
# the owner node in the client and use highlightNode.
|
306
|
+
deprecated command highlightFrame
|
307
|
+
parameters
|
308
|
+
# Identifier of the frame to highlight.
|
309
|
+
Page.FrameId frameId
|
310
|
+
# The content box highlight fill color (default: transparent).
|
311
|
+
optional DOM.RGBA contentColor
|
312
|
+
# The content box highlight outline color (default: transparent).
|
313
|
+
optional DOM.RGBA contentOutlineColor
|
314
|
+
|
315
|
+
# Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or
|
316
|
+
# objectId must be specified.
|
317
|
+
command highlightNode
|
318
|
+
parameters
|
319
|
+
# A descriptor for the highlight appearance.
|
320
|
+
HighlightConfig highlightConfig
|
321
|
+
# Identifier of the node to highlight.
|
322
|
+
optional DOM.NodeId nodeId
|
323
|
+
# Identifier of the backend node to highlight.
|
324
|
+
optional DOM.BackendNodeId backendNodeId
|
325
|
+
# JavaScript object id of the node to be highlighted.
|
326
|
+
optional Runtime.RemoteObjectId objectId
|
327
|
+
# Selectors to highlight relevant nodes.
|
328
|
+
optional string selector
|
329
|
+
|
330
|
+
# Highlights given quad. Coordinates are absolute with respect to the main frame viewport.
|
331
|
+
command highlightQuad
|
332
|
+
parameters
|
333
|
+
# Quad to highlight
|
334
|
+
DOM.Quad quad
|
335
|
+
# The highlight fill color (default: transparent).
|
336
|
+
optional DOM.RGBA color
|
337
|
+
# The highlight outline color (default: transparent).
|
338
|
+
optional DOM.RGBA outlineColor
|
339
|
+
|
340
|
+
# Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.
|
341
|
+
# Issue: the method does not handle device pixel ratio (DPR) correctly.
|
342
|
+
# The coordinates currently have to be adjusted by the client
|
343
|
+
# if DPR is not 1 (see crbug.com/437807128).
|
344
|
+
command highlightRect
|
345
|
+
parameters
|
346
|
+
# X coordinate
|
347
|
+
integer x
|
348
|
+
# Y coordinate
|
349
|
+
integer y
|
350
|
+
# Rectangle width
|
351
|
+
integer width
|
352
|
+
# Rectangle height
|
353
|
+
integer height
|
354
|
+
# The highlight fill color (default: transparent).
|
355
|
+
optional DOM.RGBA color
|
356
|
+
# The highlight outline color (default: transparent).
|
357
|
+
optional DOM.RGBA outlineColor
|
358
|
+
|
359
|
+
# Highlights the source order of the children of the DOM node with given id or with the given
|
360
|
+
# JavaScript object wrapper. Either nodeId or objectId must be specified.
|
361
|
+
command highlightSourceOrder
|
362
|
+
parameters
|
363
|
+
# A descriptor for the appearance of the overlay drawing.
|
364
|
+
SourceOrderConfig sourceOrderConfig
|
365
|
+
# Identifier of the node to highlight.
|
366
|
+
optional DOM.NodeId nodeId
|
367
|
+
# Identifier of the backend node to highlight.
|
368
|
+
optional DOM.BackendNodeId backendNodeId
|
369
|
+
# JavaScript object id of the node to be highlighted.
|
370
|
+
optional Runtime.RemoteObjectId objectId
|
371
|
+
|
372
|
+
# Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.
|
373
|
+
# Backend then generates 'inspectNodeRequested' event upon element selection.
|
374
|
+
command setInspectMode
|
375
|
+
parameters
|
376
|
+
# Set an inspection mode.
|
377
|
+
InspectMode mode
|
378
|
+
# A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled
|
379
|
+
# == false`.
|
380
|
+
optional HighlightConfig highlightConfig
|
381
|
+
|
382
|
+
# Highlights owner element of all frames detected to be ads.
|
383
|
+
command setShowAdHighlights
|
384
|
+
parameters
|
385
|
+
# True for showing ad highlights
|
386
|
+
boolean show
|
387
|
+
|
388
|
+
command setPausedInDebuggerMessage
|
389
|
+
parameters
|
390
|
+
# The message to display, also triggers resume and step over controls.
|
391
|
+
optional string message
|
392
|
+
|
393
|
+
# Requests that backend shows debug borders on layers
|
394
|
+
command setShowDebugBorders
|
395
|
+
parameters
|
396
|
+
# True for showing debug borders
|
397
|
+
boolean show
|
398
|
+
|
399
|
+
# Requests that backend shows the FPS counter
|
400
|
+
command setShowFPSCounter
|
401
|
+
parameters
|
402
|
+
# True for showing the FPS counter
|
403
|
+
boolean show
|
404
|
+
|
405
|
+
# Highlight multiple elements with the CSS Grid overlay.
|
406
|
+
command setShowGridOverlays
|
407
|
+
parameters
|
408
|
+
# An array of node identifiers and descriptors for the highlight appearance.
|
409
|
+
array of GridNodeHighlightConfig gridNodeHighlightConfigs
|
410
|
+
|
411
|
+
command setShowFlexOverlays
|
412
|
+
parameters
|
413
|
+
# An array of node identifiers and descriptors for the highlight appearance.
|
414
|
+
array of FlexNodeHighlightConfig flexNodeHighlightConfigs
|
415
|
+
|
416
|
+
command setShowScrollSnapOverlays
|
417
|
+
parameters
|
418
|
+
# An array of node identifiers and descriptors for the highlight appearance.
|
419
|
+
array of ScrollSnapHighlightConfig scrollSnapHighlightConfigs
|
420
|
+
|
421
|
+
command setShowContainerQueryOverlays
|
422
|
+
parameters
|
423
|
+
# An array of node identifiers and descriptors for the highlight appearance.
|
424
|
+
array of ContainerQueryHighlightConfig containerQueryHighlightConfigs
|
425
|
+
|
426
|
+
# Requests that backend shows paint rectangles
|
427
|
+
command setShowPaintRects
|
428
|
+
parameters
|
429
|
+
# True for showing paint rectangles
|
430
|
+
boolean result
|
431
|
+
|
432
|
+
# Requests that backend shows layout shift regions
|
433
|
+
command setShowLayoutShiftRegions
|
434
|
+
parameters
|
435
|
+
# True for showing layout shift regions
|
436
|
+
boolean result
|
437
|
+
|
438
|
+
# Requests that backend shows scroll bottleneck rects
|
439
|
+
command setShowScrollBottleneckRects
|
440
|
+
parameters
|
441
|
+
# True for showing scroll bottleneck rects
|
442
|
+
boolean show
|
443
|
+
|
444
|
+
# Deprecated, no longer has any effect.
|
445
|
+
deprecated command setShowHitTestBorders
|
446
|
+
parameters
|
447
|
+
# True for showing hit-test borders
|
448
|
+
boolean show
|
449
|
+
|
450
|
+
# Deprecated, no longer has any effect.
|
451
|
+
deprecated command setShowWebVitals
|
452
|
+
parameters
|
453
|
+
boolean show
|
454
|
+
|
455
|
+
# Paints viewport size upon main frame resize.
|
456
|
+
command setShowViewportSizeOnResize
|
457
|
+
parameters
|
458
|
+
# Whether to paint size or not.
|
459
|
+
boolean show
|
460
|
+
|
461
|
+
# Add a dual screen device hinge
|
462
|
+
command setShowHinge
|
463
|
+
parameters
|
464
|
+
# hinge data, null means hideHinge
|
465
|
+
optional HingeConfig hingeConfig
|
466
|
+
|
467
|
+
# Show elements in isolation mode with overlays.
|
468
|
+
command setShowIsolatedElements
|
469
|
+
parameters
|
470
|
+
# An array of node identifiers and descriptors for the highlight appearance.
|
471
|
+
array of IsolatedElementHighlightConfig isolatedElementHighlightConfigs
|
472
|
+
|
473
|
+
# Show Window Controls Overlay for PWA
|
474
|
+
command setShowWindowControlsOverlay
|
475
|
+
parameters
|
476
|
+
# Window Controls Overlay data, null means hide Window Controls Overlay
|
477
|
+
optional WindowControlsOverlayConfig windowControlsOverlayConfig
|
478
|
+
|
479
|
+
# Fired when the node should be inspected. This happens after call to `setInspectMode` or when
|
480
|
+
# user manually inspects an element.
|
481
|
+
event inspectNodeRequested
|
482
|
+
parameters
|
483
|
+
# Id of the node to inspect.
|
484
|
+
DOM.BackendNodeId backendNodeId
|
485
|
+
|
486
|
+
# Fired when the node should be highlighted. This happens after call to `setInspectMode`.
|
487
|
+
event nodeHighlightRequested
|
488
|
+
parameters
|
489
|
+
DOM.NodeId nodeId
|
490
|
+
|
491
|
+
# Fired when user asks to capture screenshot of some area on the page.
|
492
|
+
event screenshotRequested
|
493
|
+
parameters
|
494
|
+
# Viewport to capture, in device independent pixels (dip).
|
495
|
+
Page.Viewport viewport
|
496
|
+
|
497
|
+
# Fired when user cancels the inspect mode.
|
498
|
+
event inspectModeCanceled
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# Copyright 2017 The Chromium Authors
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
3
|
+
# found in the LICENSE file.
|
4
|
+
#
|
5
|
+
# Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
|
6
|
+
|
7
|
+
# This domain allows interacting with the browser to control PWAs.
|
8
|
+
experimental domain PWA
|
9
|
+
|
10
|
+
# The following types are the replica of
|
11
|
+
# https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67
|
12
|
+
type FileHandlerAccept extends object
|
13
|
+
properties
|
14
|
+
# New name of the mimetype according to
|
15
|
+
# https://www.iana.org/assignments/media-types/media-types.xhtml
|
16
|
+
string mediaType
|
17
|
+
array of string fileExtensions
|
18
|
+
|
19
|
+
type FileHandler extends object
|
20
|
+
properties
|
21
|
+
string action
|
22
|
+
array of FileHandlerAccept accepts
|
23
|
+
string displayName
|
24
|
+
|
25
|
+
# Returns the following OS state for the given manifest id.
|
26
|
+
command getOsAppState
|
27
|
+
parameters
|
28
|
+
# The id from the webapp's manifest file, commonly it's the url of the
|
29
|
+
# site installing the webapp. See
|
30
|
+
# https://web.dev/learn/pwa/web-app-manifest.
|
31
|
+
string manifestId
|
32
|
+
returns
|
33
|
+
integer badgeCount
|
34
|
+
array of FileHandler fileHandlers
|
35
|
+
|
36
|
+
# Installs the given manifest identity, optionally using the given installUrlOrBundleUrl
|
37
|
+
#
|
38
|
+
# IWA-specific install description:
|
39
|
+
# manifestId corresponds to isolated-app:// + web_package::SignedWebBundleId
|
40
|
+
#
|
41
|
+
# File installation mode:
|
42
|
+
# The installUrlOrBundleUrl can be either file:// or http(s):// pointing
|
43
|
+
# to a signed web bundle (.swbn). In this case SignedWebBundleId must correspond to
|
44
|
+
# The .swbn file's signing key.
|
45
|
+
#
|
46
|
+
# Dev proxy installation mode:
|
47
|
+
# installUrlOrBundleUrl must be http(s):// that serves dev mode IWA.
|
48
|
+
# web_package::SignedWebBundleId must be of type dev proxy.
|
49
|
+
#
|
50
|
+
# The advantage of dev proxy mode is that all changes to IWA
|
51
|
+
# automatically will be reflected in the running app without
|
52
|
+
# reinstallation.
|
53
|
+
#
|
54
|
+
# To generate bundle id for proxy mode:
|
55
|
+
# 1. Generate 32 random bytes.
|
56
|
+
# 2. Add a specific suffix 0x00 at the end.
|
57
|
+
# 3. Encode the entire sequence using Base32 without padding.
|
58
|
+
#
|
59
|
+
# If Chrome is not in IWA dev
|
60
|
+
# mode, the installation will fail, regardless of the state of the allowlist.
|
61
|
+
command install
|
62
|
+
parameters
|
63
|
+
string manifestId
|
64
|
+
# The location of the app or bundle overriding the one derived from the
|
65
|
+
# manifestId.
|
66
|
+
optional string installUrlOrBundleUrl
|
67
|
+
|
68
|
+
# Uninstalls the given manifest_id and closes any opened app windows.
|
69
|
+
command uninstall
|
70
|
+
parameters
|
71
|
+
string manifestId
|
72
|
+
|
73
|
+
# Launches the installed web app, or an url in the same web app instead of the
|
74
|
+
# default start url if it is provided. Returns a page Target.TargetID which
|
75
|
+
# can be used to attach to via Target.attachToTarget or similar APIs.
|
76
|
+
command launch
|
77
|
+
parameters
|
78
|
+
string manifestId
|
79
|
+
optional string url
|
80
|
+
returns
|
81
|
+
# ID of the tab target created as a result.
|
82
|
+
Target.TargetID targetId
|
83
|
+
|
84
|
+
# Opens one or more local files from an installed web app identified by its
|
85
|
+
# manifestId. The web app needs to have file handlers registered to process
|
86
|
+
# the files. The API returns one or more page Target.TargetIDs which can be
|
87
|
+
# used to attach to via Target.attachToTarget or similar APIs.
|
88
|
+
# If some files in the parameters cannot be handled by the web app, they will
|
89
|
+
# be ignored. If none of the files can be handled, this API returns an error.
|
90
|
+
# If no files are provided as the parameter, this API also returns an error.
|
91
|
+
#
|
92
|
+
# According to the definition of the file handlers in the manifest file, one
|
93
|
+
# Target.TargetID may represent a page handling one or more files. The order
|
94
|
+
# of the returned Target.TargetIDs is not guaranteed.
|
95
|
+
#
|
96
|
+
# TODO(crbug.com/339454034): Check the existences of the input files.
|
97
|
+
command launchFilesInApp
|
98
|
+
parameters
|
99
|
+
string manifestId
|
100
|
+
array of string files
|
101
|
+
returns
|
102
|
+
# IDs of the tab targets created as the result.
|
103
|
+
array of Target.TargetID targetIds
|
104
|
+
|
105
|
+
# Opens the current page in its web app identified by the manifest id, needs
|
106
|
+
# to be called on a page target. This function returns immediately without
|
107
|
+
# waiting for the app to finish loading.
|
108
|
+
command openCurrentPageInApp
|
109
|
+
parameters
|
110
|
+
string manifestId
|
111
|
+
|
112
|
+
# If user prefers opening the app in browser or an app window.
|
113
|
+
type DisplayMode extends string
|
114
|
+
enum
|
115
|
+
standalone
|
116
|
+
browser
|
117
|
+
|
118
|
+
# Changes user settings of the web app identified by its manifestId. If the
|
119
|
+
# app was not installed, this command returns an error. Unset parameters will
|
120
|
+
# be ignored; unrecognized values will cause an error.
|
121
|
+
#
|
122
|
+
# Unlike the ones defined in the manifest files of the web apps, these
|
123
|
+
# settings are provided by the browser and controlled by the users, they
|
124
|
+
# impact the way the browser handling the web apps.
|
125
|
+
#
|
126
|
+
# See the comment of each parameter.
|
127
|
+
command changeAppUserSettings
|
128
|
+
parameters
|
129
|
+
string manifestId
|
130
|
+
# If user allows the links clicked on by the user in the app's scope, or
|
131
|
+
# extended scope if the manifest has scope extensions and the flags
|
132
|
+
# `DesktopPWAsLinkCapturingWithScopeExtensions` and
|
133
|
+
# `WebAppEnableScopeExtensions` are enabled.
|
134
|
+
#
|
135
|
+
# Note, the API does not support resetting the linkCapturing to the
|
136
|
+
# initial value, uninstalling and installing the web app again will reset
|
137
|
+
# it.
|
138
|
+
#
|
139
|
+
# TODO(crbug.com/339453269): Setting this value on ChromeOS is not
|
140
|
+
# supported yet.
|
141
|
+
optional boolean linkCapturing
|
142
|
+
optional DisplayMode displayMode
|