devtools-protocol 0.0.1498597 → 0.0.1501779
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 +17960 -17689
- package/json/js_protocol.json +6 -0
- 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 +327 -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 +992 -615
- package/types/protocol-proxy-api.d.ts +543 -522
- package/types/protocol-tests-proxy-api.d.ts +628 -607
- package/types/protocol.d.ts +8059 -7903
@@ -0,0 +1,100 @@
|
|
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 FedCM dialog.
|
8
|
+
experimental domain FedCm
|
9
|
+
# Whether this is a sign-up or sign-in action for this account, i.e.
|
10
|
+
# whether this account has ever been used to sign in to this RP before.
|
11
|
+
type LoginState extends string
|
12
|
+
enum
|
13
|
+
SignIn
|
14
|
+
SignUp
|
15
|
+
|
16
|
+
# The types of FedCM dialogs.
|
17
|
+
type DialogType extends string
|
18
|
+
enum
|
19
|
+
AccountChooser
|
20
|
+
AutoReauthn
|
21
|
+
ConfirmIdpLogin
|
22
|
+
Error
|
23
|
+
|
24
|
+
# The buttons on the FedCM dialog.
|
25
|
+
type DialogButton extends string
|
26
|
+
enum
|
27
|
+
ConfirmIdpLoginContinue
|
28
|
+
ErrorGotIt
|
29
|
+
ErrorMoreDetails
|
30
|
+
|
31
|
+
# The URLs that each account has
|
32
|
+
type AccountUrlType extends string
|
33
|
+
enum
|
34
|
+
TermsOfService
|
35
|
+
PrivacyPolicy
|
36
|
+
|
37
|
+
# Corresponds to IdentityRequestAccount
|
38
|
+
type Account extends object
|
39
|
+
properties
|
40
|
+
string accountId
|
41
|
+
string email
|
42
|
+
string name
|
43
|
+
string givenName
|
44
|
+
string pictureUrl
|
45
|
+
string idpConfigUrl
|
46
|
+
string idpLoginUrl
|
47
|
+
LoginState loginState
|
48
|
+
# These two are only set if the loginState is signUp
|
49
|
+
optional string termsOfServiceUrl
|
50
|
+
optional string privacyPolicyUrl
|
51
|
+
|
52
|
+
event dialogShown
|
53
|
+
parameters
|
54
|
+
string dialogId
|
55
|
+
DialogType dialogType
|
56
|
+
array of Account accounts
|
57
|
+
# These exist primarily so that the caller can verify the
|
58
|
+
# RP context was used appropriately.
|
59
|
+
string title
|
60
|
+
optional string subtitle
|
61
|
+
|
62
|
+
# Triggered when a dialog is closed, either by user action, JS abort,
|
63
|
+
# or a command below.
|
64
|
+
event dialogClosed
|
65
|
+
parameters
|
66
|
+
string dialogId
|
67
|
+
|
68
|
+
command enable
|
69
|
+
parameters
|
70
|
+
# Allows callers to disable the promise rejection delay that would
|
71
|
+
# normally happen, if this is unimportant to what's being tested.
|
72
|
+
# (step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in)
|
73
|
+
optional boolean disableRejectionDelay
|
74
|
+
|
75
|
+
command disable
|
76
|
+
|
77
|
+
command selectAccount
|
78
|
+
parameters
|
79
|
+
string dialogId
|
80
|
+
integer accountIndex
|
81
|
+
|
82
|
+
command clickDialogButton
|
83
|
+
parameters
|
84
|
+
string dialogId
|
85
|
+
DialogButton dialogButton
|
86
|
+
|
87
|
+
command openUrl
|
88
|
+
parameters
|
89
|
+
string dialogId
|
90
|
+
integer accountIndex
|
91
|
+
AccountUrlType accountUrlType
|
92
|
+
|
93
|
+
command dismissDialog
|
94
|
+
parameters
|
95
|
+
string dialogId
|
96
|
+
optional boolean triggerCooldown
|
97
|
+
|
98
|
+
# Resets the cooldown time, if any, to allow the next FedCM call to show
|
99
|
+
# a dialog even if one was recently dismissed by the user.
|
100
|
+
command resetCooldown
|
@@ -0,0 +1,251 @@
|
|
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
|
+
# A domain for letting clients substitute browser's network layer with client code.
|
8
|
+
domain Fetch
|
9
|
+
depends on Network
|
10
|
+
depends on IO
|
11
|
+
depends on Page
|
12
|
+
|
13
|
+
# Unique request identifier.
|
14
|
+
# Note that this does not identify individual HTTP requests that are part of
|
15
|
+
# a network request.
|
16
|
+
type RequestId extends string
|
17
|
+
|
18
|
+
# Stages of the request to handle. Request will intercept before the request is
|
19
|
+
# sent. Response will intercept after the response is received (but before response
|
20
|
+
# body is received).
|
21
|
+
type RequestStage extends string
|
22
|
+
enum
|
23
|
+
Request
|
24
|
+
Response
|
25
|
+
|
26
|
+
type RequestPattern extends object
|
27
|
+
properties
|
28
|
+
# Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is
|
29
|
+
# backslash. Omitting is equivalent to `"*"`.
|
30
|
+
optional string urlPattern
|
31
|
+
# If set, only requests for matching resource types will be intercepted.
|
32
|
+
optional Network.ResourceType resourceType
|
33
|
+
# Stage at which to begin intercepting requests. Default is Request.
|
34
|
+
optional RequestStage requestStage
|
35
|
+
|
36
|
+
# Response HTTP header entry
|
37
|
+
type HeaderEntry extends object
|
38
|
+
properties
|
39
|
+
string name
|
40
|
+
string value
|
41
|
+
|
42
|
+
# Authorization challenge for HTTP status code 401 or 407.
|
43
|
+
type AuthChallenge extends object
|
44
|
+
properties
|
45
|
+
# Source of the authentication challenge.
|
46
|
+
optional enum source
|
47
|
+
Server
|
48
|
+
Proxy
|
49
|
+
# Origin of the challenger.
|
50
|
+
string origin
|
51
|
+
# The authentication scheme used, such as basic or digest
|
52
|
+
string scheme
|
53
|
+
# The realm of the challenge. May be empty.
|
54
|
+
string realm
|
55
|
+
|
56
|
+
# Response to an AuthChallenge.
|
57
|
+
type AuthChallengeResponse extends object
|
58
|
+
properties
|
59
|
+
# The decision on what to do in response to the authorization challenge. Default means
|
60
|
+
# deferring to the default behavior of the net stack, which will likely either the Cancel
|
61
|
+
# authentication or display a popup dialog box.
|
62
|
+
enum response
|
63
|
+
Default
|
64
|
+
CancelAuth
|
65
|
+
ProvideCredentials
|
66
|
+
# The username to provide, possibly empty. Should only be set if response is
|
67
|
+
# ProvideCredentials.
|
68
|
+
optional string username
|
69
|
+
# The password to provide, possibly empty. Should only be set if response is
|
70
|
+
# ProvideCredentials.
|
71
|
+
optional string password
|
72
|
+
|
73
|
+
# Disables the fetch domain.
|
74
|
+
command disable
|
75
|
+
|
76
|
+
# Enables issuing of requestPaused events. A request will be paused until client
|
77
|
+
# calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.
|
78
|
+
command enable
|
79
|
+
parameters
|
80
|
+
# If specified, only requests matching any of these patterns will produce
|
81
|
+
# fetchRequested event and will be paused until clients response. If not set,
|
82
|
+
# all requests will be affected.
|
83
|
+
optional array of RequestPattern patterns
|
84
|
+
# If true, authRequired events will be issued and requests will be paused
|
85
|
+
# expecting a call to continueWithAuth.
|
86
|
+
optional boolean handleAuthRequests
|
87
|
+
|
88
|
+
# Causes the request to fail with specified reason.
|
89
|
+
command failRequest
|
90
|
+
parameters
|
91
|
+
# An id the client received in requestPaused event.
|
92
|
+
RequestId requestId
|
93
|
+
# Causes the request to fail with the given reason.
|
94
|
+
Network.ErrorReason errorReason
|
95
|
+
|
96
|
+
# Provides response to the request.
|
97
|
+
command fulfillRequest
|
98
|
+
parameters
|
99
|
+
# An id the client received in requestPaused event.
|
100
|
+
RequestId requestId
|
101
|
+
# An HTTP response code.
|
102
|
+
integer responseCode
|
103
|
+
# Response headers.
|
104
|
+
optional array of HeaderEntry responseHeaders
|
105
|
+
# Alternative way of specifying response headers as a \0-separated
|
106
|
+
# series of name: value pairs. Prefer the above method unless you
|
107
|
+
# need to represent some non-UTF8 values that can't be transmitted
|
108
|
+
# over the protocol as text.
|
109
|
+
optional binary binaryResponseHeaders
|
110
|
+
# A response body. If absent, original response body will be used if
|
111
|
+
# the request is intercepted at the response stage and empty body
|
112
|
+
# will be used if the request is intercepted at the request stage.
|
113
|
+
optional binary body
|
114
|
+
# A textual representation of responseCode.
|
115
|
+
# If absent, a standard phrase matching responseCode is used.
|
116
|
+
optional string responsePhrase
|
117
|
+
|
118
|
+
# Continues the request, optionally modifying some of its parameters.
|
119
|
+
command continueRequest
|
120
|
+
parameters
|
121
|
+
# An id the client received in requestPaused event.
|
122
|
+
RequestId requestId
|
123
|
+
# If set, the request url will be modified in a way that's not observable by page.
|
124
|
+
optional string url
|
125
|
+
# If set, the request method is overridden.
|
126
|
+
optional string method
|
127
|
+
# If set, overrides the post data in the request.
|
128
|
+
optional binary postData
|
129
|
+
# If set, overrides the request headers. Note that the overrides do not
|
130
|
+
# extend to subsequent redirect hops, if a redirect happens. Another override
|
131
|
+
# may be applied to a different request produced by a redirect.
|
132
|
+
optional array of HeaderEntry headers
|
133
|
+
# If set, overrides response interception behavior for this request.
|
134
|
+
experimental optional boolean interceptResponse
|
135
|
+
|
136
|
+
# Continues a request supplying authChallengeResponse following authRequired event.
|
137
|
+
command continueWithAuth
|
138
|
+
parameters
|
139
|
+
# An id the client received in authRequired event.
|
140
|
+
RequestId requestId
|
141
|
+
# Response to with an authChallenge.
|
142
|
+
AuthChallengeResponse authChallengeResponse
|
143
|
+
|
144
|
+
# Continues loading of the paused response, optionally modifying the
|
145
|
+
# response headers. If either responseCode or headers are modified, all of them
|
146
|
+
# must be present.
|
147
|
+
experimental command continueResponse
|
148
|
+
parameters
|
149
|
+
# An id the client received in requestPaused event.
|
150
|
+
RequestId requestId
|
151
|
+
# An HTTP response code. If absent, original response code will be used.
|
152
|
+
optional integer responseCode
|
153
|
+
# A textual representation of responseCode.
|
154
|
+
# If absent, a standard phrase matching responseCode is used.
|
155
|
+
optional string responsePhrase
|
156
|
+
# Response headers. If absent, original response headers will be used.
|
157
|
+
optional array of HeaderEntry responseHeaders
|
158
|
+
# Alternative way of specifying response headers as a \0-separated
|
159
|
+
# series of name: value pairs. Prefer the above method unless you
|
160
|
+
# need to represent some non-UTF8 values that can't be transmitted
|
161
|
+
# over the protocol as text.
|
162
|
+
optional binary binaryResponseHeaders
|
163
|
+
|
164
|
+
# Causes the body of the response to be received from the server and
|
165
|
+
# returned as a single string. May only be issued for a request that
|
166
|
+
# is paused in the Response stage and is mutually exclusive with
|
167
|
+
# takeResponseBodyForInterceptionAsStream. Calling other methods that
|
168
|
+
# affect the request or disabling fetch domain before body is received
|
169
|
+
# results in an undefined behavior.
|
170
|
+
# Note that the response body is not available for redirects. Requests
|
171
|
+
# paused in the _redirect received_ state may be differentiated by
|
172
|
+
# `responseCode` and presence of `location` response header, see
|
173
|
+
# comments to `requestPaused` for details.
|
174
|
+
command getResponseBody
|
175
|
+
parameters
|
176
|
+
# Identifier for the intercepted request to get body for.
|
177
|
+
RequestId requestId
|
178
|
+
returns
|
179
|
+
# Response body.
|
180
|
+
string body
|
181
|
+
# True, if content was sent as base64.
|
182
|
+
boolean base64Encoded
|
183
|
+
|
184
|
+
# Returns a handle to the stream representing the response body.
|
185
|
+
# The request must be paused in the HeadersReceived stage.
|
186
|
+
# Note that after this command the request can't be continued
|
187
|
+
# as is -- client either needs to cancel it or to provide the
|
188
|
+
# response body.
|
189
|
+
# The stream only supports sequential read, IO.read will fail if the position
|
190
|
+
# is specified.
|
191
|
+
# This method is mutually exclusive with getResponseBody.
|
192
|
+
# Calling other methods that affect the request or disabling fetch
|
193
|
+
# domain before body is received results in an undefined behavior.
|
194
|
+
command takeResponseBodyAsStream
|
195
|
+
parameters
|
196
|
+
RequestId requestId
|
197
|
+
returns
|
198
|
+
IO.StreamHandle stream
|
199
|
+
|
200
|
+
# Issued when the domain is enabled and the request URL matches the
|
201
|
+
# specified filter. The request is paused until the client responds
|
202
|
+
# with one of continueRequest, failRequest or fulfillRequest.
|
203
|
+
# The stage of the request can be determined by presence of responseErrorReason
|
204
|
+
# and responseStatusCode -- the request is at the response stage if either
|
205
|
+
# of these fields is present and in the request stage otherwise.
|
206
|
+
# Redirect responses and subsequent requests are reported similarly to regular
|
207
|
+
# responses and requests. Redirect responses may be distinguished by the value
|
208
|
+
# of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with
|
209
|
+
# presence of the `location` header. Requests resulting from a redirect will
|
210
|
+
# have `redirectedRequestId` field set.
|
211
|
+
event requestPaused
|
212
|
+
parameters
|
213
|
+
# Each request the page makes will have a unique id.
|
214
|
+
RequestId requestId
|
215
|
+
# The details of the request.
|
216
|
+
Network.Request request
|
217
|
+
# The id of the frame that initiated the request.
|
218
|
+
Page.FrameId frameId
|
219
|
+
# How the requested resource will be used.
|
220
|
+
Network.ResourceType resourceType
|
221
|
+
# Response error if intercepted at response stage.
|
222
|
+
optional Network.ErrorReason responseErrorReason
|
223
|
+
# Response code if intercepted at response stage.
|
224
|
+
optional integer responseStatusCode
|
225
|
+
# Response status text if intercepted at response stage.
|
226
|
+
optional string responseStatusText
|
227
|
+
# Response headers if intercepted at the response stage.
|
228
|
+
optional array of HeaderEntry responseHeaders
|
229
|
+
# If the intercepted request had a corresponding Network.requestWillBeSent event fired for it,
|
230
|
+
# then this networkId will be the same as the requestId present in the requestWillBeSent event.
|
231
|
+
optional Network.RequestId networkId
|
232
|
+
# If the request is due to a redirect response from the server, the id of the request that
|
233
|
+
# has caused the redirect.
|
234
|
+
experimental optional RequestId redirectedRequestId
|
235
|
+
|
236
|
+
# Issued when the domain is enabled with handleAuthRequests set to true.
|
237
|
+
# The request is paused until client responds with continueWithAuth.
|
238
|
+
event authRequired
|
239
|
+
parameters
|
240
|
+
# Each request the page makes will have a unique id.
|
241
|
+
RequestId requestId
|
242
|
+
# The details of the request.
|
243
|
+
Network.Request request
|
244
|
+
# The id of the frame that initiated the request.
|
245
|
+
Page.FrameId frameId
|
246
|
+
# How the requested resource will be used.
|
247
|
+
Network.ResourceType resourceType
|
248
|
+
# Details of the Authorization Challenge encountered.
|
249
|
+
# If this is set, client should respond with continueRequest that
|
250
|
+
# contains AuthChallengeResponse.
|
251
|
+
AuthChallenge authChallenge
|
@@ -0,0 +1,41 @@
|
|
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
|
+
experimental domain FileSystem
|
8
|
+
depends on Network
|
9
|
+
depends on Storage
|
10
|
+
|
11
|
+
type File extends object
|
12
|
+
properties
|
13
|
+
string name
|
14
|
+
# Timestamp
|
15
|
+
Network.TimeSinceEpoch lastModified
|
16
|
+
# Size in bytes
|
17
|
+
number size
|
18
|
+
string type
|
19
|
+
|
20
|
+
type Directory extends object
|
21
|
+
properties
|
22
|
+
string name
|
23
|
+
array of string nestedDirectories
|
24
|
+
# Files that are directly nested under this directory.
|
25
|
+
array of File nestedFiles
|
26
|
+
|
27
|
+
type BucketFileSystemLocator extends object
|
28
|
+
properties
|
29
|
+
# Storage key
|
30
|
+
Storage.SerializedStorageKey storageKey
|
31
|
+
# Bucket name. Not passing a `bucketName` will retrieve the default Bucket. (https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#storage_buckets)
|
32
|
+
optional string bucketName
|
33
|
+
# Path to the directory using each path component as an array item.
|
34
|
+
array of string pathComponents
|
35
|
+
|
36
|
+
command getDirectory
|
37
|
+
parameters
|
38
|
+
BucketFileSystemLocator bucketFileSystemLocator
|
39
|
+
returns
|
40
|
+
# Returns the directory object at the path.
|
41
|
+
Directory directory
|
@@ -0,0 +1,56 @@
|
|
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 experimental commands only supported in headless mode.
|
8
|
+
experimental domain HeadlessExperimental
|
9
|
+
depends on Page
|
10
|
+
depends on Runtime
|
11
|
+
|
12
|
+
# Encoding options for a screenshot.
|
13
|
+
type ScreenshotParams extends object
|
14
|
+
properties
|
15
|
+
# Image compression format (defaults to png).
|
16
|
+
optional enum format
|
17
|
+
jpeg
|
18
|
+
png
|
19
|
+
webp
|
20
|
+
# Compression quality from range [0..100] (jpeg and webp only).
|
21
|
+
optional integer quality
|
22
|
+
# Optimize image encoding for speed, not for resulting size (defaults to false)
|
23
|
+
optional boolean optimizeForSpeed
|
24
|
+
|
25
|
+
# Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a
|
26
|
+
# screenshot from the resulting frame. Requires that the target was created with enabled
|
27
|
+
# BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also
|
28
|
+
# https://goo.gle/chrome-headless-rendering for more background.
|
29
|
+
command beginFrame
|
30
|
+
parameters
|
31
|
+
# Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set,
|
32
|
+
# the current time will be used.
|
33
|
+
optional number frameTimeTicks
|
34
|
+
# The interval between BeginFrames that is reported to the compositor, in milliseconds.
|
35
|
+
# Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds.
|
36
|
+
optional number interval
|
37
|
+
# Whether updates should not be committed and drawn onto the display. False by default. If
|
38
|
+
# true, only side effects of the BeginFrame will be run, such as layout and animations, but
|
39
|
+
# any visual updates may not be visible on the display or in screenshots.
|
40
|
+
optional boolean noDisplayUpdates
|
41
|
+
# If set, a screenshot of the frame will be captured and returned in the response. Otherwise,
|
42
|
+
# no screenshot will be captured. Note that capturing a screenshot can fail, for example,
|
43
|
+
# during renderer initialization. In such a case, no screenshot data will be returned.
|
44
|
+
optional ScreenshotParams screenshot
|
45
|
+
returns
|
46
|
+
# Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the
|
47
|
+
# display. Reported for diagnostic uses, may be removed in the future.
|
48
|
+
boolean hasDamage
|
49
|
+
# Base64-encoded image data of the screenshot, if one was requested and successfully taken.
|
50
|
+
optional binary screenshotData
|
51
|
+
|
52
|
+
# Disables headless events for the target.
|
53
|
+
deprecated command disable
|
54
|
+
|
55
|
+
# Enables headless events for the target.
|
56
|
+
deprecated command enable
|
@@ -0,0 +1,45 @@
|
|
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
|
+
# Input/Output operations for streams produced by DevTools.
|
8
|
+
domain IO
|
9
|
+
|
10
|
+
# This is either obtained from another method or specified as `blob:<uuid>` where
|
11
|
+
# `<uuid>` is an UUID of a Blob.
|
12
|
+
type StreamHandle extends string
|
13
|
+
|
14
|
+
# Close the stream, discard any temporary backing storage.
|
15
|
+
command close
|
16
|
+
parameters
|
17
|
+
# Handle of the stream to close.
|
18
|
+
StreamHandle handle
|
19
|
+
|
20
|
+
# Read a chunk of the stream
|
21
|
+
command read
|
22
|
+
parameters
|
23
|
+
# Handle of the stream to read.
|
24
|
+
StreamHandle handle
|
25
|
+
# Seek to the specified offset before reading (if not specified, proceed with offset
|
26
|
+
# following the last read). Some types of streams may only support sequential reads.
|
27
|
+
optional integer offset
|
28
|
+
# Maximum number of bytes to read (left upon the agent discretion if not specified).
|
29
|
+
optional integer size
|
30
|
+
returns
|
31
|
+
# Set if the data is base64-encoded
|
32
|
+
optional boolean base64Encoded
|
33
|
+
# Data that were read.
|
34
|
+
string data
|
35
|
+
# Set if the end-of-file condition occurred while reading.
|
36
|
+
boolean eof
|
37
|
+
|
38
|
+
# Return UUID of Blob object specified by a remote object id.
|
39
|
+
command resolveBlob
|
40
|
+
parameters
|
41
|
+
# Object id of a Blob object wrapper.
|
42
|
+
Runtime.RemoteObjectId objectId
|
43
|
+
returns
|
44
|
+
# UUID of the specified Blob.
|
45
|
+
string uuid
|