devtools-protocol 0.0.1498010 → 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 +17905 -17687
- 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 +8064 -7914
@@ -0,0 +1,145 @@
|
|
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 SystemInfo domain defines methods and events for querying low-level system information.
|
8
|
+
experimental domain SystemInfo
|
9
|
+
|
10
|
+
# Describes a single graphics processor (GPU).
|
11
|
+
type GPUDevice extends object
|
12
|
+
properties
|
13
|
+
# PCI ID of the GPU vendor, if available; 0 otherwise.
|
14
|
+
number vendorId
|
15
|
+
# PCI ID of the GPU device, if available; 0 otherwise.
|
16
|
+
number deviceId
|
17
|
+
# Sub sys ID of the GPU, only available on Windows.
|
18
|
+
optional number subSysId
|
19
|
+
# Revision of the GPU, only available on Windows.
|
20
|
+
optional number revision
|
21
|
+
# String description of the GPU vendor, if the PCI ID is not available.
|
22
|
+
string vendorString
|
23
|
+
# String description of the GPU device, if the PCI ID is not available.
|
24
|
+
string deviceString
|
25
|
+
# String description of the GPU driver vendor.
|
26
|
+
string driverVendor
|
27
|
+
# String description of the GPU driver version.
|
28
|
+
string driverVersion
|
29
|
+
|
30
|
+
# Describes the width and height dimensions of an entity.
|
31
|
+
type Size extends object
|
32
|
+
properties
|
33
|
+
# Width in pixels.
|
34
|
+
integer width
|
35
|
+
# Height in pixels.
|
36
|
+
integer height
|
37
|
+
|
38
|
+
# Describes a supported video decoding profile with its associated minimum and
|
39
|
+
# maximum resolutions.
|
40
|
+
type VideoDecodeAcceleratorCapability extends object
|
41
|
+
properties
|
42
|
+
# Video codec profile that is supported, e.g. VP9 Profile 2.
|
43
|
+
string profile
|
44
|
+
# Maximum video dimensions in pixels supported for this |profile|.
|
45
|
+
Size maxResolution
|
46
|
+
# Minimum video dimensions in pixels supported for this |profile|.
|
47
|
+
Size minResolution
|
48
|
+
|
49
|
+
# Describes a supported video encoding profile with its associated maximum
|
50
|
+
# resolution and maximum framerate.
|
51
|
+
type VideoEncodeAcceleratorCapability extends object
|
52
|
+
properties
|
53
|
+
# Video codec profile that is supported, e.g H264 Main.
|
54
|
+
string profile
|
55
|
+
# Maximum video dimensions in pixels supported for this |profile|.
|
56
|
+
Size maxResolution
|
57
|
+
# Maximum encoding framerate in frames per second supported for this
|
58
|
+
# |profile|, as fraction's numerator and denominator, e.g. 24/1 fps,
|
59
|
+
# 24000/1001 fps, etc.
|
60
|
+
integer maxFramerateNumerator
|
61
|
+
integer maxFramerateDenominator
|
62
|
+
|
63
|
+
# YUV subsampling type of the pixels of a given image.
|
64
|
+
type SubsamplingFormat extends string
|
65
|
+
enum
|
66
|
+
yuv420
|
67
|
+
yuv422
|
68
|
+
yuv444
|
69
|
+
|
70
|
+
# Image format of a given image.
|
71
|
+
type ImageType extends string
|
72
|
+
enum
|
73
|
+
jpeg
|
74
|
+
webp
|
75
|
+
unknown
|
76
|
+
|
77
|
+
# Describes a supported image decoding profile with its associated minimum and
|
78
|
+
# maximum resolutions and subsampling.
|
79
|
+
type ImageDecodeAcceleratorCapability extends object
|
80
|
+
properties
|
81
|
+
# Image coded, e.g. Jpeg.
|
82
|
+
ImageType imageType
|
83
|
+
# Maximum supported dimensions of the image in pixels.
|
84
|
+
Size maxDimensions
|
85
|
+
# Minimum supported dimensions of the image in pixels.
|
86
|
+
Size minDimensions
|
87
|
+
# Optional array of supported subsampling formats, e.g. 4:2:0, if known.
|
88
|
+
array of SubsamplingFormat subsamplings
|
89
|
+
|
90
|
+
# Provides information about the GPU(s) on the system.
|
91
|
+
type GPUInfo extends object
|
92
|
+
properties
|
93
|
+
# The graphics devices on the system. Element 0 is the primary GPU.
|
94
|
+
array of GPUDevice devices
|
95
|
+
# An optional dictionary of additional GPU related attributes.
|
96
|
+
optional object auxAttributes
|
97
|
+
# An optional dictionary of graphics features and their status.
|
98
|
+
optional object featureStatus
|
99
|
+
# An optional array of GPU driver bug workarounds.
|
100
|
+
array of string driverBugWorkarounds
|
101
|
+
# Supported accelerated video decoding capabilities.
|
102
|
+
array of VideoDecodeAcceleratorCapability videoDecoding
|
103
|
+
# Supported accelerated video encoding capabilities.
|
104
|
+
array of VideoEncodeAcceleratorCapability videoEncoding
|
105
|
+
# Supported accelerated image decoding capabilities.
|
106
|
+
array of ImageDecodeAcceleratorCapability imageDecoding
|
107
|
+
|
108
|
+
# Represents process info.
|
109
|
+
type ProcessInfo extends object
|
110
|
+
properties
|
111
|
+
# Specifies process type.
|
112
|
+
string type
|
113
|
+
# Specifies process id.
|
114
|
+
integer id
|
115
|
+
# Specifies cumulative CPU usage in seconds across all threads of the
|
116
|
+
# process since the process start.
|
117
|
+
number cpuTime
|
118
|
+
|
119
|
+
# Returns information about the system.
|
120
|
+
command getInfo
|
121
|
+
returns
|
122
|
+
# Information about the GPUs on the system.
|
123
|
+
GPUInfo gpu
|
124
|
+
# A platform-dependent description of the model of the machine. On Mac OS, this is, for
|
125
|
+
# example, 'MacBookPro'. Will be the empty string if not supported.
|
126
|
+
string modelName
|
127
|
+
# A platform-dependent description of the version of the machine. On Mac OS, this is, for
|
128
|
+
# example, '10.1'. Will be the empty string if not supported.
|
129
|
+
string modelVersion
|
130
|
+
# The command line string used to launch the browser. Will be the empty string if not
|
131
|
+
# supported.
|
132
|
+
string commandLine
|
133
|
+
|
134
|
+
# Returns information about the feature state.
|
135
|
+
command getFeatureState
|
136
|
+
parameters
|
137
|
+
string featureState
|
138
|
+
returns
|
139
|
+
boolean featureEnabled
|
140
|
+
|
141
|
+
# Returns information about all running processes.
|
142
|
+
command getProcessInfo
|
143
|
+
returns
|
144
|
+
# An array of process info blocks.
|
145
|
+
array of ProcessInfo processInfo
|
@@ -0,0 +1,325 @@
|
|
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
|
+
# Supports additional targets discovery and allows to attach to them.
|
8
|
+
domain Target
|
9
|
+
|
10
|
+
type TargetID extends string
|
11
|
+
|
12
|
+
# Unique identifier of attached debugging session.
|
13
|
+
type SessionID extends string
|
14
|
+
|
15
|
+
type TargetInfo extends object
|
16
|
+
properties
|
17
|
+
TargetID targetId
|
18
|
+
# List of types: https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/devtools_agent_host_impl.cc?ss=chromium&q=f:devtools%20-f:out%20%22::kTypeTab%5B%5D%22
|
19
|
+
string type
|
20
|
+
string title
|
21
|
+
string url
|
22
|
+
# Whether the target has an attached client.
|
23
|
+
boolean attached
|
24
|
+
# Opener target Id
|
25
|
+
optional TargetID openerId
|
26
|
+
# Whether the target has access to the originating window.
|
27
|
+
experimental boolean canAccessOpener
|
28
|
+
# Frame id of originating window (is only set if target has an opener).
|
29
|
+
experimental optional Page.FrameId openerFrameId
|
30
|
+
experimental optional Browser.BrowserContextID browserContextId
|
31
|
+
# Provides additional details for specific target types. For example, for
|
32
|
+
# the type of "page", this may be set to "prerender".
|
33
|
+
experimental optional string subtype
|
34
|
+
|
35
|
+
# A filter used by target query/discovery/auto-attach operations.
|
36
|
+
experimental type FilterEntry extends object
|
37
|
+
properties
|
38
|
+
# If set, causes exclusion of matching targets from the list.
|
39
|
+
optional boolean exclude
|
40
|
+
# If not present, matches any type.
|
41
|
+
optional string type
|
42
|
+
|
43
|
+
# The entries in TargetFilter are matched sequentially against targets and
|
44
|
+
# the first entry that matches determines if the target is included or not,
|
45
|
+
# depending on the value of `exclude` field in the entry.
|
46
|
+
# If filter is not specified, the one assumed is
|
47
|
+
# [{type: "browser", exclude: true}, {type: "tab", exclude: true}, {}]
|
48
|
+
# (i.e. include everything but `browser` and `tab`).
|
49
|
+
experimental type TargetFilter extends array of FilterEntry
|
50
|
+
|
51
|
+
experimental type RemoteLocation extends object
|
52
|
+
properties
|
53
|
+
string host
|
54
|
+
integer port
|
55
|
+
|
56
|
+
# The state of the target window.
|
57
|
+
experimental type WindowState extends string
|
58
|
+
enum
|
59
|
+
normal
|
60
|
+
minimized
|
61
|
+
maximized
|
62
|
+
fullscreen
|
63
|
+
|
64
|
+
# Activates (focuses) the target.
|
65
|
+
command activateTarget
|
66
|
+
parameters
|
67
|
+
TargetID targetId
|
68
|
+
|
69
|
+
# Attaches to the target with given id.
|
70
|
+
command attachToTarget
|
71
|
+
parameters
|
72
|
+
TargetID targetId
|
73
|
+
# Enables "flat" access to the session via specifying sessionId attribute in the commands.
|
74
|
+
# We plan to make this the default, deprecate non-flattened mode,
|
75
|
+
# and eventually retire it. See crbug.com/991325.
|
76
|
+
optional boolean flatten
|
77
|
+
returns
|
78
|
+
# Id assigned to the session.
|
79
|
+
SessionID sessionId
|
80
|
+
|
81
|
+
# Attaches to the browser target, only uses flat sessionId mode.
|
82
|
+
experimental command attachToBrowserTarget
|
83
|
+
returns
|
84
|
+
# Id assigned to the session.
|
85
|
+
SessionID sessionId
|
86
|
+
|
87
|
+
# Closes the target. If the target is a page that gets closed too.
|
88
|
+
command closeTarget
|
89
|
+
parameters
|
90
|
+
TargetID targetId
|
91
|
+
returns
|
92
|
+
# Always set to true. If an error occurs, the response indicates protocol error.
|
93
|
+
deprecated boolean success
|
94
|
+
|
95
|
+
# Inject object to the target's main frame that provides a communication
|
96
|
+
# channel with browser target.
|
97
|
+
#
|
98
|
+
# Injected object will be available as `window[bindingName]`.
|
99
|
+
#
|
100
|
+
# The object has the following API:
|
101
|
+
# - `binding.send(json)` - a method to send messages over the remote debugging protocol
|
102
|
+
# - `binding.onmessage = json => handleMessage(json)` - a callback that will be called for the protocol notifications and command responses.
|
103
|
+
experimental command exposeDevToolsProtocol
|
104
|
+
parameters
|
105
|
+
TargetID targetId
|
106
|
+
# Binding name, 'cdp' if not specified.
|
107
|
+
optional string bindingName
|
108
|
+
# If true, inherits the current root session's permissions (default: false).
|
109
|
+
optional boolean inheritPermissions
|
110
|
+
|
111
|
+
# Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than
|
112
|
+
# one.
|
113
|
+
command createBrowserContext
|
114
|
+
parameters
|
115
|
+
# If specified, disposes this context when debugging session disconnects.
|
116
|
+
experimental optional boolean disposeOnDetach
|
117
|
+
# Proxy server, similar to the one passed to --proxy-server
|
118
|
+
experimental optional string proxyServer
|
119
|
+
# Proxy bypass list, similar to the one passed to --proxy-bypass-list
|
120
|
+
experimental optional string proxyBypassList
|
121
|
+
# An optional list of origins to grant unlimited cross-origin access to.
|
122
|
+
# Parts of the URL other than those constituting origin are ignored.
|
123
|
+
experimental optional array of string originsWithUniversalNetworkAccess
|
124
|
+
returns
|
125
|
+
# The id of the context created.
|
126
|
+
Browser.BrowserContextID browserContextId
|
127
|
+
|
128
|
+
# Returns all browser contexts created with `Target.createBrowserContext` method.
|
129
|
+
command getBrowserContexts
|
130
|
+
returns
|
131
|
+
# An array of browser context ids.
|
132
|
+
array of Browser.BrowserContextID browserContextIds
|
133
|
+
|
134
|
+
# Creates a new page.
|
135
|
+
command createTarget
|
136
|
+
parameters
|
137
|
+
# The initial URL the page will be navigated to. An empty string indicates about:blank.
|
138
|
+
string url
|
139
|
+
# Frame left origin in DIP (requires newWindow to be true or headless shell).
|
140
|
+
experimental optional integer left
|
141
|
+
# Frame top origin in DIP (requires newWindow to be true or headless shell).
|
142
|
+
experimental optional integer top
|
143
|
+
# Frame width in DIP (requires newWindow to be true or headless shell).
|
144
|
+
optional integer width
|
145
|
+
# Frame height in DIP (requires newWindow to be true or headless shell).
|
146
|
+
optional integer height
|
147
|
+
# Frame window state (requires newWindow to be true or headless shell).
|
148
|
+
# Default is normal.
|
149
|
+
optional WindowState windowState
|
150
|
+
# The browser context to create the page in.
|
151
|
+
experimental optional Browser.BrowserContextID browserContextId
|
152
|
+
# Whether BeginFrames for this target will be controlled via DevTools (headless shell only,
|
153
|
+
# not supported on MacOS yet, false by default).
|
154
|
+
experimental optional boolean enableBeginFrameControl
|
155
|
+
# Whether to create a new Window or Tab (false by default, not supported by headless shell).
|
156
|
+
optional boolean newWindow
|
157
|
+
# Whether to create the target in background or foreground (false by default, not supported
|
158
|
+
# by headless shell).
|
159
|
+
optional boolean background
|
160
|
+
# Whether to create the target of type "tab".
|
161
|
+
experimental optional boolean forTab
|
162
|
+
# Whether to create a hidden target. The hidden target is observable via protocol, but not
|
163
|
+
# present in the tab UI strip. Cannot be created with `forTab: true`, `newWindow: true` or
|
164
|
+
# `background: false`. The life-time of the tab is limited to the life-time of the session.
|
165
|
+
experimental optional boolean hidden
|
166
|
+
returns
|
167
|
+
# The id of the page opened.
|
168
|
+
TargetID targetId
|
169
|
+
|
170
|
+
# Detaches session with given id.
|
171
|
+
command detachFromTarget
|
172
|
+
parameters
|
173
|
+
# Session to detach.
|
174
|
+
optional SessionID sessionId
|
175
|
+
# Deprecated.
|
176
|
+
deprecated optional TargetID targetId
|
177
|
+
|
178
|
+
# Deletes a BrowserContext. All the belonging pages will be closed without calling their
|
179
|
+
# beforeunload hooks.
|
180
|
+
command disposeBrowserContext
|
181
|
+
parameters
|
182
|
+
Browser.BrowserContextID browserContextId
|
183
|
+
|
184
|
+
# Returns information about a target.
|
185
|
+
experimental command getTargetInfo
|
186
|
+
parameters
|
187
|
+
optional TargetID targetId
|
188
|
+
returns
|
189
|
+
TargetInfo targetInfo
|
190
|
+
|
191
|
+
# Retrieves a list of available targets.
|
192
|
+
command getTargets
|
193
|
+
parameters
|
194
|
+
# Only targets matching filter will be reported. If filter is not specified
|
195
|
+
# and target discovery is currently enabled, a filter used for target discovery
|
196
|
+
# is used for consistency.
|
197
|
+
experimental optional TargetFilter filter
|
198
|
+
returns
|
199
|
+
# The list of targets.
|
200
|
+
array of TargetInfo targetInfos
|
201
|
+
|
202
|
+
# Sends protocol message over session with given id.
|
203
|
+
# Consider using flat mode instead; see commands attachToTarget, setAutoAttach,
|
204
|
+
# and crbug.com/991325.
|
205
|
+
deprecated command sendMessageToTarget
|
206
|
+
parameters
|
207
|
+
string message
|
208
|
+
# Identifier of the session.
|
209
|
+
optional SessionID sessionId
|
210
|
+
# Deprecated.
|
211
|
+
deprecated optional TargetID targetId
|
212
|
+
|
213
|
+
# Controls whether to automatically attach to new targets which are considered
|
214
|
+
# to be directly related to this one (for example, iframes or workers).
|
215
|
+
# When turned on, attaches to all existing related targets as well. When turned off,
|
216
|
+
# automatically detaches from all currently attached targets.
|
217
|
+
# This also clears all targets added by `autoAttachRelated` from the list of targets to watch
|
218
|
+
# for creation of related targets.
|
219
|
+
# You might want to call this recursively for auto-attached targets to attach
|
220
|
+
# to all available targets.
|
221
|
+
command setAutoAttach
|
222
|
+
parameters
|
223
|
+
# Whether to auto-attach to related targets.
|
224
|
+
boolean autoAttach
|
225
|
+
# Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`
|
226
|
+
# to run paused targets.
|
227
|
+
boolean waitForDebuggerOnStart
|
228
|
+
# Enables "flat" access to the session via specifying sessionId attribute in the commands.
|
229
|
+
# We plan to make this the default, deprecate non-flattened mode,
|
230
|
+
# and eventually retire it. See crbug.com/991325.
|
231
|
+
experimental optional boolean flatten
|
232
|
+
# Only targets matching filter will be attached.
|
233
|
+
experimental optional TargetFilter filter
|
234
|
+
|
235
|
+
# Adds the specified target to the list of targets that will be monitored for any related target
|
236
|
+
# creation (such as child frames, child workers and new versions of service worker) and reported
|
237
|
+
# through `attachedToTarget`. The specified target is also auto-attached.
|
238
|
+
# This cancels the effect of any previous `setAutoAttach` and is also cancelled by subsequent
|
239
|
+
# `setAutoAttach`. Only available at the Browser target.
|
240
|
+
experimental command autoAttachRelated
|
241
|
+
parameters
|
242
|
+
TargetID targetId
|
243
|
+
# Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`
|
244
|
+
# to run paused targets.
|
245
|
+
boolean waitForDebuggerOnStart
|
246
|
+
# Only targets matching filter will be attached.
|
247
|
+
experimental optional TargetFilter filter
|
248
|
+
|
249
|
+
# Controls whether to discover available targets and notify via
|
250
|
+
# `targetCreated/targetInfoChanged/targetDestroyed` events.
|
251
|
+
command setDiscoverTargets
|
252
|
+
parameters
|
253
|
+
# Whether to discover available targets.
|
254
|
+
boolean discover
|
255
|
+
# Only targets matching filter will be attached. If `discover` is false,
|
256
|
+
# `filter` must be omitted or empty.
|
257
|
+
experimental optional TargetFilter filter
|
258
|
+
|
259
|
+
# Enables target discovery for the specified locations, when `setDiscoverTargets` was set to
|
260
|
+
# `true`.
|
261
|
+
experimental command setRemoteLocations
|
262
|
+
parameters
|
263
|
+
# List of remote locations.
|
264
|
+
array of RemoteLocation locations
|
265
|
+
|
266
|
+
# Issued when attached to target because of auto-attach or `attachToTarget` command.
|
267
|
+
experimental event attachedToTarget
|
268
|
+
parameters
|
269
|
+
# Identifier assigned to the session used to send/receive messages.
|
270
|
+
SessionID sessionId
|
271
|
+
TargetInfo targetInfo
|
272
|
+
boolean waitingForDebugger
|
273
|
+
|
274
|
+
# Issued when detached from target for any reason (including `detachFromTarget` command). Can be
|
275
|
+
# issued multiple times per target if multiple sessions have been attached to it.
|
276
|
+
experimental event detachedFromTarget
|
277
|
+
parameters
|
278
|
+
# Detached session identifier.
|
279
|
+
SessionID sessionId
|
280
|
+
# Deprecated.
|
281
|
+
deprecated optional TargetID targetId
|
282
|
+
|
283
|
+
# Notifies about a new protocol message received from the session (as reported in
|
284
|
+
# `attachedToTarget` event).
|
285
|
+
event receivedMessageFromTarget
|
286
|
+
parameters
|
287
|
+
# Identifier of a session which sends a message.
|
288
|
+
SessionID sessionId
|
289
|
+
string message
|
290
|
+
# Deprecated.
|
291
|
+
deprecated optional TargetID targetId
|
292
|
+
|
293
|
+
# Issued when a possible inspection target is created.
|
294
|
+
event targetCreated
|
295
|
+
parameters
|
296
|
+
TargetInfo targetInfo
|
297
|
+
|
298
|
+
# Issued when a target is destroyed.
|
299
|
+
event targetDestroyed
|
300
|
+
parameters
|
301
|
+
TargetID targetId
|
302
|
+
|
303
|
+
# Issued when a target has crashed.
|
304
|
+
event targetCrashed
|
305
|
+
parameters
|
306
|
+
TargetID targetId
|
307
|
+
# Termination status type.
|
308
|
+
string status
|
309
|
+
# Termination error code.
|
310
|
+
integer errorCode
|
311
|
+
|
312
|
+
# Issued when some information about a target has changed. This only happens between
|
313
|
+
# `targetCreated` and `targetDestroyed`.
|
314
|
+
event targetInfoChanged
|
315
|
+
parameters
|
316
|
+
TargetInfo targetInfo
|
317
|
+
|
318
|
+
# Opens a DevTools window for the target.
|
319
|
+
experimental command openDevTools
|
320
|
+
parameters
|
321
|
+
# This can be the page or tab target ID.
|
322
|
+
TargetID targetId
|
323
|
+
returns
|
324
|
+
# The targetId of DevTools page target.
|
325
|
+
TargetID targetId
|
@@ -0,0 +1,28 @@
|
|
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 Tethering domain defines methods and events for browser port binding.
|
8
|
+
experimental domain Tethering
|
9
|
+
|
10
|
+
# Request browser port binding.
|
11
|
+
command bind
|
12
|
+
parameters
|
13
|
+
# Port number to bind.
|
14
|
+
integer port
|
15
|
+
|
16
|
+
# Request browser port unbinding.
|
17
|
+
command unbind
|
18
|
+
parameters
|
19
|
+
# Port number to unbind.
|
20
|
+
integer port
|
21
|
+
|
22
|
+
# Informs that port was successfully bound and got a specified connection id.
|
23
|
+
event accepted
|
24
|
+
parameters
|
25
|
+
# Port number that was successfully bound.
|
26
|
+
integer port
|
27
|
+
# Connection id to be used.
|
28
|
+
string connectionId
|
@@ -0,0 +1,157 @@
|
|
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
|
+
domain Tracing
|
8
|
+
depends on IO
|
9
|
+
|
10
|
+
# Configuration for memory dump. Used only when "memory-infra" category is enabled.
|
11
|
+
experimental type MemoryDumpConfig extends object
|
12
|
+
|
13
|
+
type TraceConfig extends object
|
14
|
+
properties
|
15
|
+
# Controls how the trace buffer stores data. The default is `recordUntilFull`.
|
16
|
+
experimental optional enum recordMode
|
17
|
+
recordUntilFull
|
18
|
+
recordContinuously
|
19
|
+
recordAsMuchAsPossible
|
20
|
+
echoToConsole
|
21
|
+
# Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value
|
22
|
+
# of 200 MB would be used.
|
23
|
+
experimental optional number traceBufferSizeInKb
|
24
|
+
# Turns on JavaScript stack sampling.
|
25
|
+
experimental optional boolean enableSampling
|
26
|
+
# Turns on system tracing.
|
27
|
+
experimental optional boolean enableSystrace
|
28
|
+
# Turns on argument filter.
|
29
|
+
experimental optional boolean enableArgumentFilter
|
30
|
+
# Included category filters.
|
31
|
+
optional array of string includedCategories
|
32
|
+
# Excluded category filters.
|
33
|
+
optional array of string excludedCategories
|
34
|
+
# Configuration to synthesize the delays in tracing.
|
35
|
+
experimental optional array of string syntheticDelays
|
36
|
+
# Configuration for memory dump triggers. Used only when "memory-infra" category is enabled.
|
37
|
+
experimental optional MemoryDumpConfig memoryDumpConfig
|
38
|
+
|
39
|
+
# Data format of a trace. Can be either the legacy JSON format or the
|
40
|
+
# protocol buffer format. Note that the JSON format will be deprecated soon.
|
41
|
+
experimental type StreamFormat extends string
|
42
|
+
enum
|
43
|
+
json
|
44
|
+
proto
|
45
|
+
|
46
|
+
# Compression type to use for traces returned via streams.
|
47
|
+
experimental type StreamCompression extends string
|
48
|
+
enum
|
49
|
+
none
|
50
|
+
gzip
|
51
|
+
|
52
|
+
# Details exposed when memory request explicitly declared.
|
53
|
+
# Keep consistent with memory_dump_request_args.h and
|
54
|
+
# memory_instrumentation.mojom
|
55
|
+
experimental type MemoryDumpLevelOfDetail extends string
|
56
|
+
enum
|
57
|
+
background
|
58
|
+
light
|
59
|
+
detailed
|
60
|
+
|
61
|
+
# Backend type to use for tracing. `chrome` uses the Chrome-integrated
|
62
|
+
# tracing service and is supported on all platforms. `system` is only
|
63
|
+
# supported on Chrome OS and uses the Perfetto system tracing service.
|
64
|
+
# `auto` chooses `system` when the perfettoConfig provided to Tracing.start
|
65
|
+
# specifies at least one non-Chrome data source; otherwise uses `chrome`.
|
66
|
+
experimental type TracingBackend extends string
|
67
|
+
enum
|
68
|
+
auto
|
69
|
+
chrome
|
70
|
+
system
|
71
|
+
|
72
|
+
# Stop trace events collection.
|
73
|
+
command end
|
74
|
+
|
75
|
+
# Gets supported tracing categories.
|
76
|
+
experimental command getCategories
|
77
|
+
returns
|
78
|
+
# A list of supported tracing categories.
|
79
|
+
array of string categories
|
80
|
+
|
81
|
+
# Record a clock sync marker in the trace.
|
82
|
+
experimental command recordClockSyncMarker
|
83
|
+
parameters
|
84
|
+
# The ID of this clock sync marker
|
85
|
+
string syncId
|
86
|
+
|
87
|
+
# Request a global memory dump.
|
88
|
+
experimental command requestMemoryDump
|
89
|
+
parameters
|
90
|
+
# Enables more deterministic results by forcing garbage collection
|
91
|
+
optional boolean deterministic
|
92
|
+
# Specifies level of details in memory dump. Defaults to "detailed".
|
93
|
+
optional MemoryDumpLevelOfDetail levelOfDetail
|
94
|
+
returns
|
95
|
+
# GUID of the resulting global memory dump.
|
96
|
+
string dumpGuid
|
97
|
+
# True iff the global memory dump succeeded.
|
98
|
+
boolean success
|
99
|
+
|
100
|
+
# Start trace events collection.
|
101
|
+
command start
|
102
|
+
parameters
|
103
|
+
# Category/tag filter
|
104
|
+
experimental deprecated optional string categories
|
105
|
+
# Tracing options
|
106
|
+
experimental deprecated optional string options
|
107
|
+
# If set, the agent will issue bufferUsage events at this interval, specified in milliseconds
|
108
|
+
experimental optional number bufferUsageReportingInterval
|
109
|
+
# Whether to report trace events as series of dataCollected events or to save trace to a
|
110
|
+
# stream (defaults to `ReportEvents`).
|
111
|
+
optional enum transferMode
|
112
|
+
ReportEvents
|
113
|
+
ReturnAsStream
|
114
|
+
# Trace data format to use. This only applies when using `ReturnAsStream`
|
115
|
+
# transfer mode (defaults to `json`).
|
116
|
+
optional StreamFormat streamFormat
|
117
|
+
# Compression format to use. This only applies when using `ReturnAsStream`
|
118
|
+
# transfer mode (defaults to `none`)
|
119
|
+
experimental optional StreamCompression streamCompression
|
120
|
+
optional TraceConfig traceConfig
|
121
|
+
# Base64-encoded serialized perfetto.protos.TraceConfig protobuf message
|
122
|
+
# When specified, the parameters `categories`, `options`, `traceConfig`
|
123
|
+
# are ignored.
|
124
|
+
experimental optional binary perfettoConfig
|
125
|
+
# Backend type (defaults to `auto`)
|
126
|
+
experimental optional TracingBackend tracingBackend
|
127
|
+
|
128
|
+
experimental event bufferUsage
|
129
|
+
parameters
|
130
|
+
# A number in range [0..1] that indicates the used size of event buffer as a fraction of its
|
131
|
+
# total size.
|
132
|
+
optional number percentFull
|
133
|
+
# An approximate number of events in the trace log.
|
134
|
+
optional number eventCount
|
135
|
+
# A number in range [0..1] that indicates the used size of event buffer as a fraction of its
|
136
|
+
# total size.
|
137
|
+
optional number value
|
138
|
+
|
139
|
+
# Contains a bucket of collected trace events. When tracing is stopped collected events will be
|
140
|
+
# sent as a sequence of dataCollected events followed by tracingComplete event.
|
141
|
+
experimental event dataCollected
|
142
|
+
parameters
|
143
|
+
array of object value
|
144
|
+
|
145
|
+
# Signals that tracing is stopped and there is no trace buffers pending flush, all data were
|
146
|
+
# delivered via dataCollected events.
|
147
|
+
event tracingComplete
|
148
|
+
parameters
|
149
|
+
# Indicates whether some trace data is known to have been lost, e.g. because the trace ring
|
150
|
+
# buffer wrapped around.
|
151
|
+
boolean dataLossOccurred
|
152
|
+
# A handle of the stream that holds resulting trace data.
|
153
|
+
optional IO.StreamHandle stream
|
154
|
+
# Trace data format of returned stream.
|
155
|
+
optional StreamFormat traceFormat
|
156
|
+
# Compression format of returned stream.
|
157
|
+
optional StreamCompression streamCompression
|