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,345 @@
|
|
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
|
+
# The Browser domain defines methods and events for browser managing.
|
8
|
+
domain Browser
|
9
|
+
experimental type BrowserContextID extends string
|
10
|
+
experimental type WindowID extends integer
|
11
|
+
|
12
|
+
# The state of the browser window.
|
13
|
+
experimental type WindowState extends string
|
14
|
+
enum
|
15
|
+
normal
|
16
|
+
minimized
|
17
|
+
maximized
|
18
|
+
fullscreen
|
19
|
+
|
20
|
+
# Browser window bounds information
|
21
|
+
experimental type Bounds extends object
|
22
|
+
properties
|
23
|
+
# The offset from the left edge of the screen to the window in pixels.
|
24
|
+
optional integer left
|
25
|
+
# The offset from the top edge of the screen to the window in pixels.
|
26
|
+
optional integer top
|
27
|
+
# The window width in pixels.
|
28
|
+
optional integer width
|
29
|
+
# The window height in pixels.
|
30
|
+
optional integer height
|
31
|
+
# The window state. Default to normal.
|
32
|
+
optional WindowState windowState
|
33
|
+
|
34
|
+
experimental type PermissionType extends string
|
35
|
+
enum
|
36
|
+
ar
|
37
|
+
audioCapture
|
38
|
+
automaticFullscreen
|
39
|
+
backgroundFetch
|
40
|
+
backgroundSync
|
41
|
+
cameraPanTiltZoom
|
42
|
+
capturedSurfaceControl
|
43
|
+
clipboardReadWrite
|
44
|
+
clipboardSanitizedWrite
|
45
|
+
displayCapture
|
46
|
+
durableStorage
|
47
|
+
geolocation
|
48
|
+
handTracking
|
49
|
+
idleDetection
|
50
|
+
keyboardLock
|
51
|
+
localFonts
|
52
|
+
localNetworkAccess
|
53
|
+
midi
|
54
|
+
midiSysex
|
55
|
+
nfc
|
56
|
+
notifications
|
57
|
+
paymentHandler
|
58
|
+
periodicBackgroundSync
|
59
|
+
pointerLock
|
60
|
+
protectedMediaIdentifier
|
61
|
+
sensors
|
62
|
+
smartCard
|
63
|
+
speakerSelection
|
64
|
+
storageAccess
|
65
|
+
topLevelStorageAccess
|
66
|
+
videoCapture
|
67
|
+
vr
|
68
|
+
wakeLockScreen
|
69
|
+
wakeLockSystem
|
70
|
+
webAppInstallation
|
71
|
+
webPrinting
|
72
|
+
windowManagement
|
73
|
+
|
74
|
+
experimental type PermissionSetting extends string
|
75
|
+
enum
|
76
|
+
granted
|
77
|
+
denied
|
78
|
+
prompt
|
79
|
+
|
80
|
+
# Definition of PermissionDescriptor defined in the Permissions API:
|
81
|
+
# https://w3c.github.io/permissions/#dom-permissiondescriptor.
|
82
|
+
experimental type PermissionDescriptor extends object
|
83
|
+
properties
|
84
|
+
# Name of permission.
|
85
|
+
# See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.
|
86
|
+
string name
|
87
|
+
# For "midi" permission, may also specify sysex control.
|
88
|
+
optional boolean sysex
|
89
|
+
# For "push" permission, may specify userVisibleOnly.
|
90
|
+
# Note that userVisibleOnly = true is the only currently supported type.
|
91
|
+
optional boolean userVisibleOnly
|
92
|
+
# For "clipboard" permission, may specify allowWithoutSanitization.
|
93
|
+
optional boolean allowWithoutSanitization
|
94
|
+
# For "fullscreen" permission, must specify allowWithoutGesture:true.
|
95
|
+
optional boolean allowWithoutGesture
|
96
|
+
# For "camera" permission, may specify panTiltZoom.
|
97
|
+
optional boolean panTiltZoom
|
98
|
+
|
99
|
+
# Browser command ids used by executeBrowserCommand.
|
100
|
+
experimental type BrowserCommandId extends string
|
101
|
+
enum
|
102
|
+
openTabSearch
|
103
|
+
closeTabSearch
|
104
|
+
openGlic
|
105
|
+
|
106
|
+
# Set permission settings for given origin.
|
107
|
+
experimental command setPermission
|
108
|
+
parameters
|
109
|
+
# Descriptor of permission to override.
|
110
|
+
PermissionDescriptor permission
|
111
|
+
# Setting of the permission.
|
112
|
+
PermissionSetting setting
|
113
|
+
# Origin the permission applies to, all origins if not specified.
|
114
|
+
optional string origin
|
115
|
+
# Context to override. When omitted, default browser context is used.
|
116
|
+
optional BrowserContextID browserContextId
|
117
|
+
|
118
|
+
# Grant specific permissions to the given origin and reject all others.
|
119
|
+
experimental command grantPermissions
|
120
|
+
parameters
|
121
|
+
array of PermissionType permissions
|
122
|
+
# Origin the permission applies to, all origins if not specified.
|
123
|
+
optional string origin
|
124
|
+
# BrowserContext to override permissions. When omitted, default browser context is used.
|
125
|
+
optional BrowserContextID browserContextId
|
126
|
+
|
127
|
+
# Reset all permission management for all origins.
|
128
|
+
command resetPermissions
|
129
|
+
parameters
|
130
|
+
# BrowserContext to reset permissions. When omitted, default browser context is used.
|
131
|
+
optional BrowserContextID browserContextId
|
132
|
+
|
133
|
+
# Set the behavior when downloading a file.
|
134
|
+
experimental command setDownloadBehavior
|
135
|
+
parameters
|
136
|
+
# Whether to allow all or deny all download requests, or use default Chrome behavior if
|
137
|
+
# available (otherwise deny). |allowAndName| allows download and names files according to
|
138
|
+
# their download guids.
|
139
|
+
enum behavior
|
140
|
+
deny
|
141
|
+
allow
|
142
|
+
allowAndName
|
143
|
+
default
|
144
|
+
# BrowserContext to set download behavior. When omitted, default browser context is used.
|
145
|
+
optional BrowserContextID browserContextId
|
146
|
+
# The default path to save downloaded files to. This is required if behavior is set to 'allow'
|
147
|
+
# or 'allowAndName'.
|
148
|
+
optional string downloadPath
|
149
|
+
# Whether to emit download events (defaults to false).
|
150
|
+
optional boolean eventsEnabled
|
151
|
+
|
152
|
+
# Cancel a download if in progress
|
153
|
+
experimental command cancelDownload
|
154
|
+
parameters
|
155
|
+
# Global unique identifier of the download.
|
156
|
+
string guid
|
157
|
+
# BrowserContext to perform the action in. When omitted, default browser context is used.
|
158
|
+
optional BrowserContextID browserContextId
|
159
|
+
|
160
|
+
# Fired when page is about to start a download.
|
161
|
+
experimental event downloadWillBegin
|
162
|
+
parameters
|
163
|
+
# Id of the frame that caused the download to begin.
|
164
|
+
Page.FrameId frameId
|
165
|
+
# Global unique identifier of the download.
|
166
|
+
string guid
|
167
|
+
# URL of the resource being downloaded.
|
168
|
+
string url
|
169
|
+
# Suggested file name of the resource (the actual name of the file saved on disk may differ).
|
170
|
+
string suggestedFilename
|
171
|
+
|
172
|
+
# Fired when download makes progress. Last call has |done| == true.
|
173
|
+
experimental event downloadProgress
|
174
|
+
parameters
|
175
|
+
# Global unique identifier of the download.
|
176
|
+
string guid
|
177
|
+
# Total expected bytes to download.
|
178
|
+
number totalBytes
|
179
|
+
# Total bytes received.
|
180
|
+
number receivedBytes
|
181
|
+
# Download status.
|
182
|
+
enum state
|
183
|
+
inProgress
|
184
|
+
completed
|
185
|
+
canceled
|
186
|
+
# If download is "completed", provides the path of the downloaded file.
|
187
|
+
# Depending on the platform, it is not guaranteed to be set, nor the file
|
188
|
+
# is guaranteed to exist.
|
189
|
+
experimental optional string filePath
|
190
|
+
|
191
|
+
# Close browser gracefully.
|
192
|
+
command close
|
193
|
+
|
194
|
+
# Crashes browser on the main thread.
|
195
|
+
experimental command crash
|
196
|
+
|
197
|
+
# Crashes GPU process.
|
198
|
+
experimental command crashGpuProcess
|
199
|
+
|
200
|
+
# Returns version information.
|
201
|
+
command getVersion
|
202
|
+
returns
|
203
|
+
# Protocol version.
|
204
|
+
string protocolVersion
|
205
|
+
# Product name.
|
206
|
+
string product
|
207
|
+
# Product revision.
|
208
|
+
string revision
|
209
|
+
# User-Agent.
|
210
|
+
string userAgent
|
211
|
+
# V8 version.
|
212
|
+
string jsVersion
|
213
|
+
|
214
|
+
# Returns the command line switches for the browser process if, and only if
|
215
|
+
# --enable-automation is on the commandline.
|
216
|
+
experimental command getBrowserCommandLine
|
217
|
+
returns
|
218
|
+
# Commandline parameters
|
219
|
+
array of string arguments
|
220
|
+
|
221
|
+
# Chrome histogram bucket.
|
222
|
+
experimental type Bucket extends object
|
223
|
+
properties
|
224
|
+
# Minimum value (inclusive).
|
225
|
+
integer low
|
226
|
+
# Maximum value (exclusive).
|
227
|
+
integer high
|
228
|
+
# Number of samples.
|
229
|
+
integer count
|
230
|
+
|
231
|
+
# Chrome histogram.
|
232
|
+
experimental type Histogram extends object
|
233
|
+
properties
|
234
|
+
# Name.
|
235
|
+
string name
|
236
|
+
# Sum of sample values.
|
237
|
+
integer sum
|
238
|
+
# Total number of samples.
|
239
|
+
integer count
|
240
|
+
# Buckets.
|
241
|
+
array of Bucket buckets
|
242
|
+
|
243
|
+
# Get Chrome histograms.
|
244
|
+
experimental command getHistograms
|
245
|
+
parameters
|
246
|
+
# Requested substring in name. Only histograms which have query as a
|
247
|
+
# substring in their name are extracted. An empty or absent query returns
|
248
|
+
# all histograms.
|
249
|
+
optional string query
|
250
|
+
# If true, retrieve delta since last delta call.
|
251
|
+
optional boolean delta
|
252
|
+
|
253
|
+
returns
|
254
|
+
# Histograms.
|
255
|
+
array of Histogram histograms
|
256
|
+
|
257
|
+
# Get a Chrome histogram by name.
|
258
|
+
experimental command getHistogram
|
259
|
+
parameters
|
260
|
+
# Requested histogram name.
|
261
|
+
string name
|
262
|
+
# If true, retrieve delta since last delta call.
|
263
|
+
optional boolean delta
|
264
|
+
returns
|
265
|
+
# Histogram.
|
266
|
+
Histogram histogram
|
267
|
+
|
268
|
+
# Get position and size of the browser window.
|
269
|
+
experimental command getWindowBounds
|
270
|
+
parameters
|
271
|
+
# Browser window id.
|
272
|
+
WindowID windowId
|
273
|
+
returns
|
274
|
+
# Bounds information of the window. When window state is 'minimized', the restored window
|
275
|
+
# position and size are returned.
|
276
|
+
Bounds bounds
|
277
|
+
|
278
|
+
# Get the browser window that contains the devtools target.
|
279
|
+
experimental command getWindowForTarget
|
280
|
+
parameters
|
281
|
+
# Devtools agent host id. If called as a part of the session, associated targetId is used.
|
282
|
+
optional Target.TargetID targetId
|
283
|
+
returns
|
284
|
+
# Browser window id.
|
285
|
+
WindowID windowId
|
286
|
+
# Bounds information of the window. When window state is 'minimized', the restored window
|
287
|
+
# position and size are returned.
|
288
|
+
Bounds bounds
|
289
|
+
|
290
|
+
# Set position and/or size of the browser window.
|
291
|
+
experimental command setWindowBounds
|
292
|
+
parameters
|
293
|
+
# Browser window id.
|
294
|
+
WindowID windowId
|
295
|
+
# New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined
|
296
|
+
# with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.
|
297
|
+
Bounds bounds
|
298
|
+
|
299
|
+
# Set size of the browser contents resizing browser window as necessary.
|
300
|
+
experimental command setContentsSize
|
301
|
+
parameters
|
302
|
+
# Browser window id.
|
303
|
+
WindowID windowId
|
304
|
+
# The window contents width in DIP. Assumes current width if omitted.
|
305
|
+
# Must be specified if 'height' is omitted.
|
306
|
+
optional integer width
|
307
|
+
# The window contents height in DIP. Assumes current height if omitted.
|
308
|
+
# Must be specified if 'width' is omitted.
|
309
|
+
optional integer height
|
310
|
+
|
311
|
+
# Set dock tile details, platform-specific.
|
312
|
+
experimental command setDockTile
|
313
|
+
parameters
|
314
|
+
optional string badgeLabel
|
315
|
+
# Png encoded image.
|
316
|
+
optional binary image
|
317
|
+
|
318
|
+
# Invoke custom browser commands used by telemetry.
|
319
|
+
experimental command executeBrowserCommand
|
320
|
+
parameters
|
321
|
+
BrowserCommandId commandId
|
322
|
+
|
323
|
+
# Allows a site to use privacy sandbox features that require enrollment
|
324
|
+
# without the site actually being enrolled. Only supported on page targets.
|
325
|
+
command addPrivacySandboxEnrollmentOverride
|
326
|
+
parameters
|
327
|
+
string url
|
328
|
+
|
329
|
+
experimental type PrivacySandboxAPI extends string
|
330
|
+
enum
|
331
|
+
BiddingAndAuctionServices
|
332
|
+
TrustedKeyValue
|
333
|
+
|
334
|
+
# Configures encryption keys used with a given privacy sandbox API to talk
|
335
|
+
# to a trusted coordinator. Since this is intended for test automation only,
|
336
|
+
# coordinatorOrigin must be a .test domain. No existing coordinator
|
337
|
+
# configuration for the origin may exist.
|
338
|
+
command addPrivacySandboxCoordinatorKeyConfig
|
339
|
+
parameters
|
340
|
+
PrivacySandboxAPI api
|
341
|
+
string coordinatorOrigin
|
342
|
+
string keyConfig
|
343
|
+
# BrowserContext to perform the action in. When omitted, default browser
|
344
|
+
# context is used.
|
345
|
+
optional BrowserContextID browserContextId
|