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.
Files changed (54) hide show
  1. package/json/browser_protocol.json +17895 -17678
  2. package/package.json +1 -1
  3. package/pdl/browser_protocol.pdl +47 -13824
  4. package/pdl/domains/Accessibility.pdl +290 -0
  5. package/pdl/domains/Animation.pdl +195 -0
  6. package/pdl/domains/Audits.pdl +755 -0
  7. package/pdl/domains/Autofill.pdl +106 -0
  8. package/pdl/domains/BackgroundService.pdl +77 -0
  9. package/pdl/domains/BluetoothEmulation.pdl +227 -0
  10. package/pdl/domains/Browser.pdl +345 -0
  11. package/pdl/domains/CSS.pdl +996 -0
  12. package/pdl/domains/CacheStorage.pdl +125 -0
  13. package/pdl/domains/Cast.pdl +62 -0
  14. package/pdl/domains/DOM.pdl +932 -0
  15. package/pdl/domains/DOMDebugger.pdl +128 -0
  16. package/pdl/domains/DOMSnapshot.pdl +319 -0
  17. package/pdl/domains/DOMStorage.pdl +72 -0
  18. package/pdl/domains/DeviceAccess.pdl +43 -0
  19. package/pdl/domains/DeviceOrientation.pdl +20 -0
  20. package/pdl/domains/Emulation.pdl +608 -0
  21. package/pdl/domains/EventBreakpoints.pdl +24 -0
  22. package/pdl/domains/Extensions.pdl +72 -0
  23. package/pdl/domains/FedCm.pdl +100 -0
  24. package/pdl/domains/Fetch.pdl +251 -0
  25. package/pdl/domains/FileSystem.pdl +41 -0
  26. package/pdl/domains/HeadlessExperimental.pdl +56 -0
  27. package/pdl/domains/IO.pdl +45 -0
  28. package/pdl/domains/IndexedDB.pdl +226 -0
  29. package/pdl/domains/Input.pdl +336 -0
  30. package/pdl/domains/Inspector.pdl +25 -0
  31. package/pdl/domains/LayerTree.pdl +178 -0
  32. package/pdl/domains/Log.pdl +93 -0
  33. package/pdl/domains/Media.pdl +106 -0
  34. package/pdl/domains/Memory.pdl +112 -0
  35. package/pdl/domains/Network.pdl +2039 -0
  36. package/pdl/domains/Overlay.pdl +498 -0
  37. package/pdl/domains/PWA.pdl +142 -0
  38. package/pdl/domains/Page.pdl +1767 -0
  39. package/pdl/domains/Performance.pdl +54 -0
  40. package/pdl/domains/PerformanceTimeline.pdl +71 -0
  41. package/pdl/domains/Preload.pdl +290 -0
  42. package/pdl/domains/Security.pdl +196 -0
  43. package/pdl/domains/ServiceWorker.pdl +121 -0
  44. package/pdl/domains/Storage.pdl +913 -0
  45. package/pdl/domains/SystemInfo.pdl +145 -0
  46. package/pdl/domains/Target.pdl +325 -0
  47. package/pdl/domains/Tethering.pdl +28 -0
  48. package/pdl/domains/Tracing.pdl +157 -0
  49. package/pdl/domains/WebAudio.pdl +205 -0
  50. package/pdl/domains/WebAuthn.pdl +230 -0
  51. package/types/protocol-mapping.d.ts +659 -635
  52. package/types/protocol-proxy-api.d.ts +543 -522
  53. package/types/protocol-tests-proxy-api.d.ts +628 -607
  54. package/types/protocol.d.ts +8062 -7911
@@ -0,0 +1,290 @@
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 Accessibility
8
+ depends on DOM
9
+
10
+ # Unique accessibility node identifier.
11
+ type AXNodeId extends string
12
+
13
+ # Enum of possible property types.
14
+ type AXValueType extends string
15
+ enum
16
+ boolean
17
+ tristate
18
+ booleanOrUndefined
19
+ idref
20
+ idrefList
21
+ integer
22
+ node
23
+ nodeList
24
+ number
25
+ string
26
+ computedString
27
+ token
28
+ tokenList
29
+ domRelation
30
+ role
31
+ internalRole
32
+ valueUndefined
33
+
34
+ # Enum of possible property sources.
35
+ type AXValueSourceType extends string
36
+ enum
37
+ attribute
38
+ implicit
39
+ style
40
+ contents
41
+ placeholder
42
+ relatedElement
43
+
44
+ # Enum of possible native property sources (as a subtype of a particular AXValueSourceType).
45
+ type AXValueNativeSourceType extends string
46
+ enum
47
+ description
48
+ figcaption
49
+ label
50
+ labelfor
51
+ labelwrapped
52
+ legend
53
+ rubyannotation
54
+ tablecaption
55
+ title
56
+ other
57
+
58
+ # A single source for a computed AX property.
59
+ type AXValueSource extends object
60
+ properties
61
+ # What type of source this is.
62
+ AXValueSourceType type
63
+ # The value of this property source.
64
+ optional AXValue value
65
+ # The name of the relevant attribute, if any.
66
+ optional string attribute
67
+ # The value of the relevant attribute, if any.
68
+ optional AXValue attributeValue
69
+ # Whether this source is superseded by a higher priority source.
70
+ optional boolean superseded
71
+ # The native markup source for this value, e.g. a `<label>` element.
72
+ optional AXValueNativeSourceType nativeSource
73
+ # The value, such as a node or node list, of the native source.
74
+ optional AXValue nativeSourceValue
75
+ # Whether the value for this property is invalid.
76
+ optional boolean invalid
77
+ # Reason for the value being invalid, if it is.
78
+ optional string invalidReason
79
+
80
+ type AXRelatedNode extends object
81
+ properties
82
+ # The BackendNodeId of the related DOM node.
83
+ DOM.BackendNodeId backendDOMNodeId
84
+ # The IDRef value provided, if any.
85
+ optional string idref
86
+ # The text alternative of this node in the current context.
87
+ optional string text
88
+
89
+ type AXProperty extends object
90
+ properties
91
+ # The name of this property.
92
+ AXPropertyName name
93
+ # The value of this property.
94
+ AXValue value
95
+
96
+ # A single computed AX property.
97
+ type AXValue extends object
98
+ properties
99
+ # The type of this value.
100
+ AXValueType type
101
+ # The computed value of this property.
102
+ optional any value
103
+ # One or more related nodes, if applicable.
104
+ optional array of AXRelatedNode relatedNodes
105
+ # The sources which contributed to the computation of this property.
106
+ optional array of AXValueSource sources
107
+
108
+ # Values of AXProperty name:
109
+ # - from 'busy' to 'roledescription': states which apply to every AX node
110
+ # - from 'live' to 'root': attributes which apply to nodes in live regions
111
+ # - from 'autocomplete' to 'valuetext': attributes which apply to widgets
112
+ # - from 'checked' to 'selected': states which apply to widgets
113
+ # - from 'activedescendant' to 'owns' - relationships between elements other than parent/child/sibling.
114
+ type AXPropertyName extends string
115
+ enum
116
+ actions
117
+ busy
118
+ disabled
119
+ editable
120
+ focusable
121
+ focused
122
+ hidden
123
+ hiddenRoot
124
+ invalid
125
+ keyshortcuts
126
+ settable
127
+ roledescription
128
+ live
129
+ atomic
130
+ relevant
131
+ root
132
+ autocomplete
133
+ hasPopup
134
+ level
135
+ multiselectable
136
+ orientation
137
+ multiline
138
+ readonly
139
+ required
140
+ valuemin
141
+ valuemax
142
+ valuetext
143
+ checked
144
+ expanded
145
+ modal
146
+ pressed
147
+ selected
148
+ activedescendant
149
+ controls
150
+ describedby
151
+ details
152
+ errormessage
153
+ flowto
154
+ labelledby
155
+ owns
156
+ url
157
+
158
+ # A node in the accessibility tree.
159
+ type AXNode extends object
160
+ properties
161
+ # Unique identifier for this node.
162
+ AXNodeId nodeId
163
+ # Whether this node is ignored for accessibility
164
+ boolean ignored
165
+ # Collection of reasons why this node is hidden.
166
+ optional array of AXProperty ignoredReasons
167
+ # This `Node`'s role, whether explicit or implicit.
168
+ optional AXValue role
169
+ # This `Node`'s Chrome raw role.
170
+ optional AXValue chromeRole
171
+ # The accessible name for this `Node`.
172
+ optional AXValue name
173
+ # The accessible description for this `Node`.
174
+ optional AXValue description
175
+ # The value for this `Node`.
176
+ optional AXValue value
177
+ # All other properties
178
+ optional array of AXProperty properties
179
+ # ID for this node's parent.
180
+ optional AXNodeId parentId
181
+ # IDs for each of this node's child nodes.
182
+ optional array of AXNodeId childIds
183
+ # The backend ID for the associated DOM node, if any.
184
+ optional DOM.BackendNodeId backendDOMNodeId
185
+ # The frame ID for the frame associated with this nodes document.
186
+ optional Page.FrameId frameId
187
+
188
+ # Disables the accessibility domain.
189
+ command disable
190
+
191
+ # Enables the accessibility domain which causes `AXNodeId`s to remain consistent between method calls.
192
+ # This turns on accessibility for the page, which can impact performance until accessibility is disabled.
193
+ command enable
194
+
195
+ # Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.
196
+ experimental command getPartialAXTree
197
+ parameters
198
+ # Identifier of the node to get the partial accessibility tree for.
199
+ optional DOM.NodeId nodeId
200
+ # Identifier of the backend node to get the partial accessibility tree for.
201
+ optional DOM.BackendNodeId backendNodeId
202
+ # JavaScript object id of the node wrapper to get the partial accessibility tree for.
203
+ optional Runtime.RemoteObjectId objectId
204
+ # Whether to fetch this node's ancestors, siblings and children. Defaults to true.
205
+ optional boolean fetchRelatives
206
+ returns
207
+ # The `Accessibility.AXNode` for this DOM node, if it exists, plus its ancestors, siblings and
208
+ # children, if requested.
209
+ array of AXNode nodes
210
+
211
+ # Fetches the entire accessibility tree for the root Document
212
+ experimental command getFullAXTree
213
+ parameters
214
+ # The maximum depth at which descendants of the root node should be retrieved.
215
+ # If omitted, the full tree is returned.
216
+ optional integer depth
217
+ # The frame for whose document the AX tree should be retrieved.
218
+ # If omitted, the root frame is used.
219
+ optional Page.FrameId frameId
220
+ returns
221
+ array of AXNode nodes
222
+
223
+ # Fetches the root node.
224
+ # Requires `enable()` to have been called previously.
225
+ experimental command getRootAXNode
226
+ parameters
227
+ # The frame in whose document the node resides.
228
+ # If omitted, the root frame is used.
229
+ optional Page.FrameId frameId
230
+ returns
231
+ AXNode node
232
+
233
+ # Fetches a node and all ancestors up to and including the root.
234
+ # Requires `enable()` to have been called previously.
235
+ experimental command getAXNodeAndAncestors
236
+ parameters
237
+ # Identifier of the node to get.
238
+ optional DOM.NodeId nodeId
239
+ # Identifier of the backend node to get.
240
+ optional DOM.BackendNodeId backendNodeId
241
+ # JavaScript object id of the node wrapper to get.
242
+ optional Runtime.RemoteObjectId objectId
243
+ returns
244
+ array of AXNode nodes
245
+
246
+ # Fetches a particular accessibility node by AXNodeId.
247
+ # Requires `enable()` to have been called previously.
248
+ experimental command getChildAXNodes
249
+ parameters
250
+ AXNodeId id
251
+ # The frame in whose document the node resides.
252
+ # If omitted, the root frame is used.
253
+ optional Page.FrameId frameId
254
+ returns
255
+ array of AXNode nodes
256
+
257
+ # Query a DOM node's accessibility subtree for accessible name and role.
258
+ # This command computes the name and role for all nodes in the subtree, including those that are
259
+ # ignored for accessibility, and returns those that match the specified name and role. If no DOM
260
+ # node is specified, or the DOM node does not exist, the command returns an error. If neither
261
+ # `accessibleName` or `role` is specified, it returns all the accessibility nodes in the subtree.
262
+ experimental command queryAXTree
263
+ parameters
264
+ # Identifier of the node for the root to query.
265
+ optional DOM.NodeId nodeId
266
+ # Identifier of the backend node for the root to query.
267
+ optional DOM.BackendNodeId backendNodeId
268
+ # JavaScript object id of the node wrapper for the root to query.
269
+ optional Runtime.RemoteObjectId objectId
270
+ # Find nodes with this computed name.
271
+ optional string accessibleName
272
+ # Find nodes with this computed role.
273
+ optional string role
274
+ returns
275
+ # A list of `Accessibility.AXNode` matching the specified attributes,
276
+ # including nodes that are ignored for accessibility.
277
+ array of AXNode nodes
278
+
279
+ # The loadComplete event mirrors the load complete event sent by the browser to assistive
280
+ # technology when the web page has finished loading.
281
+ experimental event loadComplete
282
+ parameters
283
+ # New document root node.
284
+ AXNode root
285
+
286
+ # The nodesUpdated event is sent every time a previously requested node has changed the in tree.
287
+ experimental event nodesUpdated
288
+ parameters
289
+ # Updated node data.
290
+ array of AXNode nodes
@@ -0,0 +1,195 @@
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 Animation
8
+ depends on Runtime
9
+ depends on DOM
10
+
11
+ # Animation instance.
12
+ type Animation extends object
13
+ properties
14
+ # `Animation`'s id.
15
+ string id
16
+ # `Animation`'s name.
17
+ string name
18
+ # `Animation`'s internal paused state.
19
+ boolean pausedState
20
+ # `Animation`'s play state.
21
+ string playState
22
+ # `Animation`'s playback rate.
23
+ number playbackRate
24
+ # `Animation`'s start time.
25
+ # Milliseconds for time based animations and
26
+ # percentage [0 - 100] for scroll driven animations
27
+ # (i.e. when viewOrScrollTimeline exists).
28
+ number startTime
29
+ # `Animation`'s current time.
30
+ number currentTime
31
+ # Animation type of `Animation`.
32
+ enum type
33
+ CSSTransition
34
+ CSSAnimation
35
+ WebAnimation
36
+ # `Animation`'s source animation node.
37
+ optional AnimationEffect source
38
+ # A unique ID for `Animation` representing the sources that triggered this CSS
39
+ # animation/transition.
40
+ optional string cssId
41
+ # View or scroll timeline
42
+ optional ViewOrScrollTimeline viewOrScrollTimeline
43
+
44
+ # Timeline instance
45
+ type ViewOrScrollTimeline extends object
46
+ properties
47
+ # Scroll container node
48
+ optional DOM.BackendNodeId sourceNodeId
49
+ # Represents the starting scroll position of the timeline
50
+ # as a length offset in pixels from scroll origin.
51
+ optional number startOffset
52
+ # Represents the ending scroll position of the timeline
53
+ # as a length offset in pixels from scroll origin.
54
+ optional number endOffset
55
+ # The element whose principal box's visibility in the
56
+ # scrollport defined the progress of the timeline.
57
+ # Does not exist for animations with ScrollTimeline
58
+ optional DOM.BackendNodeId subjectNodeId
59
+ # Orientation of the scroll
60
+ DOM.ScrollOrientation axis
61
+
62
+ # AnimationEffect instance
63
+ type AnimationEffect extends object
64
+ properties
65
+ # `AnimationEffect`'s delay.
66
+ number delay
67
+ # `AnimationEffect`'s end delay.
68
+ number endDelay
69
+ # `AnimationEffect`'s iteration start.
70
+ number iterationStart
71
+ # `AnimationEffect`'s iterations.
72
+ number iterations
73
+ # `AnimationEffect`'s iteration duration.
74
+ # Milliseconds for time based animations and
75
+ # percentage [0 - 100] for scroll driven animations
76
+ # (i.e. when viewOrScrollTimeline exists).
77
+ number duration
78
+ # `AnimationEffect`'s playback direction.
79
+ string direction
80
+ # `AnimationEffect`'s fill mode.
81
+ string fill
82
+ # `AnimationEffect`'s target node.
83
+ optional DOM.BackendNodeId backendNodeId
84
+ # `AnimationEffect`'s keyframes.
85
+ optional KeyframesRule keyframesRule
86
+ # `AnimationEffect`'s timing function.
87
+ string easing
88
+
89
+ # Keyframes Rule
90
+ type KeyframesRule extends object
91
+ properties
92
+ # CSS keyframed animation's name.
93
+ optional string name
94
+ # List of animation keyframes.
95
+ array of KeyframeStyle keyframes
96
+
97
+ # Keyframe Style
98
+ type KeyframeStyle extends object
99
+ properties
100
+ # Keyframe's time offset.
101
+ string offset
102
+ # `AnimationEffect`'s timing function.
103
+ string easing
104
+
105
+ # Disables animation domain notifications.
106
+ command disable
107
+
108
+ # Enables animation domain notifications.
109
+ command enable
110
+
111
+ # Returns the current time of the an animation.
112
+ command getCurrentTime
113
+ parameters
114
+ # Id of animation.
115
+ string id
116
+ returns
117
+ # Current time of the page.
118
+ number currentTime
119
+
120
+ # Gets the playback rate of the document timeline.
121
+ command getPlaybackRate
122
+ returns
123
+ # Playback rate for animations on page.
124
+ number playbackRate
125
+
126
+ # Releases a set of animations to no longer be manipulated.
127
+ command releaseAnimations
128
+ parameters
129
+ # List of animation ids to seek.
130
+ array of string animations
131
+
132
+ # Gets the remote object of the Animation.
133
+ command resolveAnimation
134
+ parameters
135
+ # Animation id.
136
+ string animationId
137
+ returns
138
+ # Corresponding remote object.
139
+ Runtime.RemoteObject remoteObject
140
+
141
+ # Seek a set of animations to a particular time within each animation.
142
+ command seekAnimations
143
+ parameters
144
+ # List of animation ids to seek.
145
+ array of string animations
146
+ # Set the current time of each animation.
147
+ number currentTime
148
+
149
+ # Sets the paused state of a set of animations.
150
+ command setPaused
151
+ parameters
152
+ # Animations to set the pause state of.
153
+ array of string animations
154
+ # Paused state to set to.
155
+ boolean paused
156
+
157
+ # Sets the playback rate of the document timeline.
158
+ command setPlaybackRate
159
+ parameters
160
+ # Playback rate for animations on page
161
+ number playbackRate
162
+
163
+ # Sets the timing of an animation node.
164
+ command setTiming
165
+ parameters
166
+ # Animation id.
167
+ string animationId
168
+ # Duration of the animation.
169
+ number duration
170
+ # Delay of the animation.
171
+ number delay
172
+
173
+ # Event for when an animation has been cancelled.
174
+ event animationCanceled
175
+ parameters
176
+ # Id of the animation that was cancelled.
177
+ string id
178
+
179
+ # Event for each animation that has been created.
180
+ event animationCreated
181
+ parameters
182
+ # Id of the animation that was created.
183
+ string id
184
+
185
+ # Event for animation that has been started.
186
+ event animationStarted
187
+ parameters
188
+ # Animation that was started.
189
+ Animation animation
190
+
191
+ # Event for animation that has been updated.
192
+ event animationUpdated
193
+ parameters
194
+ # Animation that was updated.
195
+ Animation animation