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,128 @@
|
|
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
|
+
# DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript
|
8
|
+
# execution will stop on these operations as if there was a regular breakpoint set.
|
9
|
+
domain DOMDebugger
|
10
|
+
depends on DOM
|
11
|
+
depends on Runtime
|
12
|
+
|
13
|
+
# DOM breakpoint type.
|
14
|
+
type DOMBreakpointType extends string
|
15
|
+
enum
|
16
|
+
subtree-modified
|
17
|
+
attribute-modified
|
18
|
+
node-removed
|
19
|
+
|
20
|
+
# CSP Violation type.
|
21
|
+
experimental type CSPViolationType extends string
|
22
|
+
enum
|
23
|
+
trustedtype-sink-violation
|
24
|
+
trustedtype-policy-violation
|
25
|
+
|
26
|
+
# Object event listener.
|
27
|
+
type EventListener extends object
|
28
|
+
properties
|
29
|
+
# `EventListener`'s type.
|
30
|
+
string type
|
31
|
+
# `EventListener`'s useCapture.
|
32
|
+
boolean useCapture
|
33
|
+
# `EventListener`'s passive flag.
|
34
|
+
boolean passive
|
35
|
+
# `EventListener`'s once flag.
|
36
|
+
boolean once
|
37
|
+
# Script id of the handler code.
|
38
|
+
Runtime.ScriptId scriptId
|
39
|
+
# Line number in the script (0-based).
|
40
|
+
integer lineNumber
|
41
|
+
# Column number in the script (0-based).
|
42
|
+
integer columnNumber
|
43
|
+
# Event handler function value.
|
44
|
+
optional Runtime.RemoteObject handler
|
45
|
+
# Event original handler function value.
|
46
|
+
optional Runtime.RemoteObject originalHandler
|
47
|
+
# Node the listener is added to (if any).
|
48
|
+
optional DOM.BackendNodeId backendNodeId
|
49
|
+
|
50
|
+
# Returns event listeners of the given object.
|
51
|
+
command getEventListeners
|
52
|
+
parameters
|
53
|
+
# Identifier of the object to return listeners for.
|
54
|
+
Runtime.RemoteObjectId objectId
|
55
|
+
# The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the
|
56
|
+
# entire subtree or provide an integer larger than 0.
|
57
|
+
optional integer depth
|
58
|
+
# Whether or not iframes and shadow roots should be traversed when returning the subtree
|
59
|
+
# (default is false). Reports listeners for all contexts if pierce is enabled.
|
60
|
+
optional boolean pierce
|
61
|
+
returns
|
62
|
+
# Array of relevant listeners.
|
63
|
+
array of EventListener listeners
|
64
|
+
|
65
|
+
# Removes DOM breakpoint that was set using `setDOMBreakpoint`.
|
66
|
+
command removeDOMBreakpoint
|
67
|
+
parameters
|
68
|
+
# Identifier of the node to remove breakpoint from.
|
69
|
+
DOM.NodeId nodeId
|
70
|
+
# Type of the breakpoint to remove.
|
71
|
+
DOMBreakpointType type
|
72
|
+
|
73
|
+
# Removes breakpoint on particular DOM event.
|
74
|
+
command removeEventListenerBreakpoint
|
75
|
+
parameters
|
76
|
+
# Event name.
|
77
|
+
string eventName
|
78
|
+
# EventTarget interface name.
|
79
|
+
experimental optional string targetName
|
80
|
+
|
81
|
+
# Removes breakpoint on particular native event.
|
82
|
+
experimental deprecated command removeInstrumentationBreakpoint
|
83
|
+
redirect EventBreakpoints
|
84
|
+
parameters
|
85
|
+
# Instrumentation name to stop on.
|
86
|
+
string eventName
|
87
|
+
|
88
|
+
# Removes breakpoint from XMLHttpRequest.
|
89
|
+
command removeXHRBreakpoint
|
90
|
+
parameters
|
91
|
+
# Resource URL substring.
|
92
|
+
string url
|
93
|
+
|
94
|
+
# Sets breakpoint on particular CSP violations.
|
95
|
+
experimental command setBreakOnCSPViolation
|
96
|
+
parameters
|
97
|
+
# CSP Violations to stop upon.
|
98
|
+
array of CSPViolationType violationTypes
|
99
|
+
|
100
|
+
# Sets breakpoint on particular operation with DOM.
|
101
|
+
command setDOMBreakpoint
|
102
|
+
parameters
|
103
|
+
# Identifier of the node to set breakpoint on.
|
104
|
+
DOM.NodeId nodeId
|
105
|
+
# Type of the operation to stop upon.
|
106
|
+
DOMBreakpointType type
|
107
|
+
|
108
|
+
# Sets breakpoint on particular DOM event.
|
109
|
+
command setEventListenerBreakpoint
|
110
|
+
parameters
|
111
|
+
# DOM Event name to stop on (any DOM event will do).
|
112
|
+
string eventName
|
113
|
+
# EventTarget interface name to stop on. If equal to `"*"` or not provided, will stop on any
|
114
|
+
# EventTarget.
|
115
|
+
experimental optional string targetName
|
116
|
+
|
117
|
+
# Sets breakpoint on particular native event.
|
118
|
+
experimental deprecated command setInstrumentationBreakpoint
|
119
|
+
redirect EventBreakpoints
|
120
|
+
parameters
|
121
|
+
# Instrumentation name to stop on.
|
122
|
+
string eventName
|
123
|
+
|
124
|
+
# Sets breakpoint on XMLHttpRequest.
|
125
|
+
command setXHRBreakpoint
|
126
|
+
parameters
|
127
|
+
# Resource URL substring. All XHRs having this substring in the URL will get stopped upon.
|
128
|
+
string url
|
@@ -0,0 +1,319 @@
|
|
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 facilitates obtaining document snapshots with DOM, layout, and style information.
|
8
|
+
experimental domain DOMSnapshot
|
9
|
+
depends on CSS
|
10
|
+
depends on DOM
|
11
|
+
depends on DOMDebugger
|
12
|
+
depends on Page
|
13
|
+
|
14
|
+
# A Node in the DOM tree.
|
15
|
+
type DOMNode extends object
|
16
|
+
properties
|
17
|
+
# `Node`'s nodeType.
|
18
|
+
integer nodeType
|
19
|
+
# `Node`'s nodeName.
|
20
|
+
string nodeName
|
21
|
+
# `Node`'s nodeValue.
|
22
|
+
string nodeValue
|
23
|
+
# Only set for textarea elements, contains the text value.
|
24
|
+
optional string textValue
|
25
|
+
# Only set for input elements, contains the input's associated text value.
|
26
|
+
optional string inputValue
|
27
|
+
# Only set for radio and checkbox input elements, indicates if the element has been checked
|
28
|
+
optional boolean inputChecked
|
29
|
+
# Only set for option elements, indicates if the element has been selected
|
30
|
+
optional boolean optionSelected
|
31
|
+
# `Node`'s id, corresponds to DOM.Node.backendNodeId.
|
32
|
+
DOM.BackendNodeId backendNodeId
|
33
|
+
# The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if
|
34
|
+
# any.
|
35
|
+
optional array of integer childNodeIndexes
|
36
|
+
# Attributes of an `Element` node.
|
37
|
+
optional array of NameValue attributes
|
38
|
+
# Indexes of pseudo elements associated with this node in the `domNodes` array returned by
|
39
|
+
# `getSnapshot`, if any.
|
40
|
+
optional array of integer pseudoElementIndexes
|
41
|
+
# The index of the node's related layout tree node in the `layoutTreeNodes` array returned by
|
42
|
+
# `getSnapshot`, if any.
|
43
|
+
optional integer layoutNodeIndex
|
44
|
+
# Document URL that `Document` or `FrameOwner` node points to.
|
45
|
+
optional string documentURL
|
46
|
+
# Base URL that `Document` or `FrameOwner` node uses for URL completion.
|
47
|
+
optional string baseURL
|
48
|
+
# Only set for documents, contains the document's content language.
|
49
|
+
optional string contentLanguage
|
50
|
+
# Only set for documents, contains the document's character set encoding.
|
51
|
+
optional string documentEncoding
|
52
|
+
# `DocumentType` node's publicId.
|
53
|
+
optional string publicId
|
54
|
+
# `DocumentType` node's systemId.
|
55
|
+
optional string systemId
|
56
|
+
# Frame ID for frame owner elements and also for the document node.
|
57
|
+
optional Page.FrameId frameId
|
58
|
+
# The index of a frame owner element's content document in the `domNodes` array returned by
|
59
|
+
# `getSnapshot`, if any.
|
60
|
+
optional integer contentDocumentIndex
|
61
|
+
# Type of a pseudo element node.
|
62
|
+
optional DOM.PseudoType pseudoType
|
63
|
+
# Shadow root type.
|
64
|
+
optional DOM.ShadowRootType shadowRootType
|
65
|
+
# Whether this DOM node responds to mouse clicks. This includes nodes that have had click
|
66
|
+
# event listeners attached via JavaScript as well as anchor tags that naturally navigate when
|
67
|
+
# clicked.
|
68
|
+
optional boolean isClickable
|
69
|
+
# Details of the node's event listeners, if any.
|
70
|
+
optional array of DOMDebugger.EventListener eventListeners
|
71
|
+
# The selected url for nodes with a srcset attribute.
|
72
|
+
optional string currentSourceURL
|
73
|
+
# The url of the script (if any) that generates this node.
|
74
|
+
optional string originURL
|
75
|
+
# Scroll offsets, set when this node is a Document.
|
76
|
+
optional number scrollOffsetX
|
77
|
+
optional number scrollOffsetY
|
78
|
+
|
79
|
+
# Details of post layout rendered text positions. The exact layout should not be regarded as
|
80
|
+
# stable and may change between versions.
|
81
|
+
type InlineTextBox extends object
|
82
|
+
properties
|
83
|
+
# The bounding box in document coordinates. Note that scroll offset of the document is ignored.
|
84
|
+
DOM.Rect boundingBox
|
85
|
+
# The starting index in characters, for this post layout textbox substring. Characters that
|
86
|
+
# would be represented as a surrogate pair in UTF-16 have length 2.
|
87
|
+
integer startCharacterIndex
|
88
|
+
# The number of characters in this post layout textbox substring. Characters that would be
|
89
|
+
# represented as a surrogate pair in UTF-16 have length 2.
|
90
|
+
integer numCharacters
|
91
|
+
|
92
|
+
# Details of an element in the DOM tree with a LayoutObject.
|
93
|
+
type LayoutTreeNode extends object
|
94
|
+
properties
|
95
|
+
# The index of the related DOM node in the `domNodes` array returned by `getSnapshot`.
|
96
|
+
integer domNodeIndex
|
97
|
+
# The bounding box in document coordinates. Note that scroll offset of the document is ignored.
|
98
|
+
DOM.Rect boundingBox
|
99
|
+
# Contents of the LayoutText, if any.
|
100
|
+
optional string layoutText
|
101
|
+
# The post-layout inline text nodes, if any.
|
102
|
+
optional array of InlineTextBox inlineTextNodes
|
103
|
+
# Index into the `computedStyles` array returned by `getSnapshot`.
|
104
|
+
optional integer styleIndex
|
105
|
+
# Global paint order index, which is determined by the stacking order of the nodes. Nodes
|
106
|
+
# that are painted together will have the same index. Only provided if includePaintOrder in
|
107
|
+
# getSnapshot was true.
|
108
|
+
optional integer paintOrder
|
109
|
+
# Set to true to indicate the element begins a new stacking context.
|
110
|
+
optional boolean isStackingContext
|
111
|
+
|
112
|
+
# A subset of the full ComputedStyle as defined by the request whitelist.
|
113
|
+
type ComputedStyle extends object
|
114
|
+
properties
|
115
|
+
# Name/value pairs of computed style properties.
|
116
|
+
array of NameValue properties
|
117
|
+
|
118
|
+
# A name/value pair.
|
119
|
+
type NameValue extends object
|
120
|
+
properties
|
121
|
+
# Attribute/property name.
|
122
|
+
string name
|
123
|
+
# Attribute/property value.
|
124
|
+
string value
|
125
|
+
|
126
|
+
# Index of the string in the strings table.
|
127
|
+
type StringIndex extends integer
|
128
|
+
|
129
|
+
# Index of the string in the strings table.
|
130
|
+
type ArrayOfStrings extends array of StringIndex
|
131
|
+
|
132
|
+
# Data that is only present on rare nodes.
|
133
|
+
type RareStringData extends object
|
134
|
+
properties
|
135
|
+
array of integer index
|
136
|
+
array of StringIndex value
|
137
|
+
|
138
|
+
type RareBooleanData extends object
|
139
|
+
properties
|
140
|
+
array of integer index
|
141
|
+
|
142
|
+
type RareIntegerData extends object
|
143
|
+
properties
|
144
|
+
array of integer index
|
145
|
+
array of integer value
|
146
|
+
|
147
|
+
type Rectangle extends array of number
|
148
|
+
|
149
|
+
# Document snapshot.
|
150
|
+
type DocumentSnapshot extends object
|
151
|
+
properties
|
152
|
+
# Document URL that `Document` or `FrameOwner` node points to.
|
153
|
+
StringIndex documentURL
|
154
|
+
# Document title.
|
155
|
+
StringIndex title
|
156
|
+
# Base URL that `Document` or `FrameOwner` node uses for URL completion.
|
157
|
+
StringIndex baseURL
|
158
|
+
# Contains the document's content language.
|
159
|
+
StringIndex contentLanguage
|
160
|
+
# Contains the document's character set encoding.
|
161
|
+
StringIndex encodingName
|
162
|
+
# `DocumentType` node's publicId.
|
163
|
+
StringIndex publicId
|
164
|
+
# `DocumentType` node's systemId.
|
165
|
+
StringIndex systemId
|
166
|
+
# Frame ID for frame owner elements and also for the document node.
|
167
|
+
StringIndex frameId
|
168
|
+
# A table with dom nodes.
|
169
|
+
NodeTreeSnapshot nodes
|
170
|
+
# The nodes in the layout tree.
|
171
|
+
LayoutTreeSnapshot layout
|
172
|
+
# The post-layout inline text nodes.
|
173
|
+
TextBoxSnapshot textBoxes
|
174
|
+
# Horizontal scroll offset.
|
175
|
+
optional number scrollOffsetX
|
176
|
+
# Vertical scroll offset.
|
177
|
+
optional number scrollOffsetY
|
178
|
+
# Document content width.
|
179
|
+
optional number contentWidth
|
180
|
+
# Document content height.
|
181
|
+
optional number contentHeight
|
182
|
+
|
183
|
+
# Table containing nodes.
|
184
|
+
type NodeTreeSnapshot extends object
|
185
|
+
properties
|
186
|
+
# Parent node index.
|
187
|
+
optional array of integer parentIndex
|
188
|
+
# `Node`'s nodeType.
|
189
|
+
optional array of integer nodeType
|
190
|
+
# Type of the shadow root the `Node` is in. String values are equal to the `ShadowRootType` enum.
|
191
|
+
optional RareStringData shadowRootType
|
192
|
+
# `Node`'s nodeName.
|
193
|
+
optional array of StringIndex nodeName
|
194
|
+
# `Node`'s nodeValue.
|
195
|
+
optional array of StringIndex nodeValue
|
196
|
+
# `Node`'s id, corresponds to DOM.Node.backendNodeId.
|
197
|
+
optional array of DOM.BackendNodeId backendNodeId
|
198
|
+
# Attributes of an `Element` node. Flatten name, value pairs.
|
199
|
+
optional array of ArrayOfStrings attributes
|
200
|
+
# Only set for textarea elements, contains the text value.
|
201
|
+
optional RareStringData textValue
|
202
|
+
# Only set for input elements, contains the input's associated text value.
|
203
|
+
optional RareStringData inputValue
|
204
|
+
# Only set for radio and checkbox input elements, indicates if the element has been checked
|
205
|
+
optional RareBooleanData inputChecked
|
206
|
+
# Only set for option elements, indicates if the element has been selected
|
207
|
+
optional RareBooleanData optionSelected
|
208
|
+
# The index of the document in the list of the snapshot documents.
|
209
|
+
optional RareIntegerData contentDocumentIndex
|
210
|
+
# Type of a pseudo element node.
|
211
|
+
optional RareStringData pseudoType
|
212
|
+
# Pseudo element identifier for this node. Only present if there is a
|
213
|
+
# valid pseudoType.
|
214
|
+
optional RareStringData pseudoIdentifier
|
215
|
+
# Whether this DOM node responds to mouse clicks. This includes nodes that have had click
|
216
|
+
# event listeners attached via JavaScript as well as anchor tags that naturally navigate when
|
217
|
+
# clicked.
|
218
|
+
optional RareBooleanData isClickable
|
219
|
+
# The selected url for nodes with a srcset attribute.
|
220
|
+
optional RareStringData currentSourceURL
|
221
|
+
# The url of the script (if any) that generates this node.
|
222
|
+
optional RareStringData originURL
|
223
|
+
|
224
|
+
# Table of details of an element in the DOM tree with a LayoutObject.
|
225
|
+
type LayoutTreeSnapshot extends object
|
226
|
+
properties
|
227
|
+
# Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.
|
228
|
+
array of integer nodeIndex
|
229
|
+
# Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`.
|
230
|
+
array of ArrayOfStrings styles
|
231
|
+
# The absolute position bounding box.
|
232
|
+
array of Rectangle bounds
|
233
|
+
# Contents of the LayoutText, if any.
|
234
|
+
array of StringIndex text
|
235
|
+
# Stacking context information.
|
236
|
+
RareBooleanData stackingContexts
|
237
|
+
# Global paint order index, which is determined by the stacking order of the nodes. Nodes
|
238
|
+
# that are painted together will have the same index. Only provided if includePaintOrder in
|
239
|
+
# captureSnapshot was true.
|
240
|
+
optional array of integer paintOrders
|
241
|
+
# The offset rect of nodes. Only available when includeDOMRects is set to true
|
242
|
+
optional array of Rectangle offsetRects
|
243
|
+
# The scroll rect of nodes. Only available when includeDOMRects is set to true
|
244
|
+
optional array of Rectangle scrollRects
|
245
|
+
# The client rect of nodes. Only available when includeDOMRects is set to true
|
246
|
+
optional array of Rectangle clientRects
|
247
|
+
# The list of background colors that are blended with colors of overlapping elements.
|
248
|
+
experimental optional array of StringIndex blendedBackgroundColors
|
249
|
+
# The list of computed text opacities.
|
250
|
+
experimental optional array of number textColorOpacities
|
251
|
+
|
252
|
+
# Table of details of the post layout rendered text positions. The exact layout should not be regarded as
|
253
|
+
# stable and may change between versions.
|
254
|
+
type TextBoxSnapshot extends object
|
255
|
+
properties
|
256
|
+
# Index of the layout tree node that owns this box collection.
|
257
|
+
array of integer layoutIndex
|
258
|
+
# The absolute position bounding box.
|
259
|
+
array of Rectangle bounds
|
260
|
+
# The starting index in characters, for this post layout textbox substring. Characters that
|
261
|
+
# would be represented as a surrogate pair in UTF-16 have length 2.
|
262
|
+
array of integer start
|
263
|
+
# The number of characters in this post layout textbox substring. Characters that would be
|
264
|
+
# represented as a surrogate pair in UTF-16 have length 2.
|
265
|
+
array of integer length
|
266
|
+
|
267
|
+
# Disables DOM snapshot agent for the given page.
|
268
|
+
command disable
|
269
|
+
|
270
|
+
# Enables DOM snapshot agent for the given page.
|
271
|
+
command enable
|
272
|
+
|
273
|
+
# Returns a document snapshot, including the full DOM tree of the root node (including iframes,
|
274
|
+
# template contents, and imported documents) in a flattened array, as well as layout and
|
275
|
+
# white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is
|
276
|
+
# flattened.
|
277
|
+
deprecated command getSnapshot
|
278
|
+
parameters
|
279
|
+
# Whitelist of computed styles to return.
|
280
|
+
array of string computedStyleWhitelist
|
281
|
+
# Whether or not to retrieve details of DOM listeners (default false).
|
282
|
+
optional boolean includeEventListeners
|
283
|
+
# Whether to determine and include the paint order index of LayoutTreeNodes (default false).
|
284
|
+
optional boolean includePaintOrder
|
285
|
+
# Whether to include UA shadow tree in the snapshot (default false).
|
286
|
+
optional boolean includeUserAgentShadowTree
|
287
|
+
returns
|
288
|
+
# The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.
|
289
|
+
array of DOMNode domNodes
|
290
|
+
# The nodes in the layout tree.
|
291
|
+
array of LayoutTreeNode layoutTreeNodes
|
292
|
+
# Whitelisted ComputedStyle properties for each node in the layout tree.
|
293
|
+
array of ComputedStyle computedStyles
|
294
|
+
|
295
|
+
# Returns a document snapshot, including the full DOM tree of the root node (including iframes,
|
296
|
+
# template contents, and imported documents) in a flattened array, as well as layout and
|
297
|
+
# white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is
|
298
|
+
# flattened.
|
299
|
+
command captureSnapshot
|
300
|
+
parameters
|
301
|
+
# Whitelist of computed styles to return.
|
302
|
+
array of string computedStyles
|
303
|
+
# Whether to include layout object paint orders into the snapshot.
|
304
|
+
optional boolean includePaintOrder
|
305
|
+
# Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot
|
306
|
+
optional boolean includeDOMRects
|
307
|
+
# Whether to include blended background colors in the snapshot (default: false).
|
308
|
+
# Blended background color is achieved by blending background colors of all elements
|
309
|
+
# that overlap with the current element.
|
310
|
+
experimental optional boolean includeBlendedBackgroundColors
|
311
|
+
# Whether to include text color opacity in the snapshot (default: false).
|
312
|
+
# An element might have the opacity property set that affects the text color of the element.
|
313
|
+
# The final text color opacity is computed based on the opacity of all overlapping elements.
|
314
|
+
experimental optional boolean includeTextColorOpacities
|
315
|
+
returns
|
316
|
+
# The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.
|
317
|
+
array of DocumentSnapshot documents
|
318
|
+
# Shared string table that all string properties refer to with indexes.
|
319
|
+
array of string strings
|
@@ -0,0 +1,72 @@
|
|
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
|
+
# Query and modify DOM storage.
|
8
|
+
experimental domain DOMStorage
|
9
|
+
|
10
|
+
type SerializedStorageKey extends string
|
11
|
+
|
12
|
+
# DOM Storage identifier.
|
13
|
+
type StorageId extends object
|
14
|
+
properties
|
15
|
+
# Security origin for the storage.
|
16
|
+
optional string securityOrigin
|
17
|
+
# Represents a key by which DOM Storage keys its CachedStorageAreas
|
18
|
+
optional SerializedStorageKey storageKey
|
19
|
+
# Whether the storage is local storage (not session storage).
|
20
|
+
boolean isLocalStorage
|
21
|
+
|
22
|
+
# DOM Storage item.
|
23
|
+
type Item extends array of string
|
24
|
+
|
25
|
+
command clear
|
26
|
+
parameters
|
27
|
+
StorageId storageId
|
28
|
+
|
29
|
+
# Disables storage tracking, prevents storage events from being sent to the client.
|
30
|
+
command disable
|
31
|
+
|
32
|
+
# Enables storage tracking, storage events will now be delivered to the client.
|
33
|
+
command enable
|
34
|
+
|
35
|
+
command getDOMStorageItems
|
36
|
+
parameters
|
37
|
+
StorageId storageId
|
38
|
+
returns
|
39
|
+
array of Item entries
|
40
|
+
|
41
|
+
command removeDOMStorageItem
|
42
|
+
parameters
|
43
|
+
StorageId storageId
|
44
|
+
string key
|
45
|
+
|
46
|
+
command setDOMStorageItem
|
47
|
+
parameters
|
48
|
+
StorageId storageId
|
49
|
+
string key
|
50
|
+
string value
|
51
|
+
|
52
|
+
event domStorageItemAdded
|
53
|
+
parameters
|
54
|
+
StorageId storageId
|
55
|
+
string key
|
56
|
+
string newValue
|
57
|
+
|
58
|
+
event domStorageItemRemoved
|
59
|
+
parameters
|
60
|
+
StorageId storageId
|
61
|
+
string key
|
62
|
+
|
63
|
+
event domStorageItemUpdated
|
64
|
+
parameters
|
65
|
+
StorageId storageId
|
66
|
+
string key
|
67
|
+
string oldValue
|
68
|
+
string newValue
|
69
|
+
|
70
|
+
event domStorageItemsCleared
|
71
|
+
parameters
|
72
|
+
StorageId storageId
|
@@ -0,0 +1,43 @@
|
|
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 DeviceAccess
|
8
|
+
# Device request id.
|
9
|
+
type RequestId extends string
|
10
|
+
|
11
|
+
# A device id.
|
12
|
+
type DeviceId extends string
|
13
|
+
|
14
|
+
# Device information displayed in a user prompt to select a device.
|
15
|
+
type PromptDevice extends object
|
16
|
+
properties
|
17
|
+
DeviceId id
|
18
|
+
# Display name as it appears in a device request user prompt.
|
19
|
+
string name
|
20
|
+
|
21
|
+
# Enable events in this domain.
|
22
|
+
command enable
|
23
|
+
|
24
|
+
# Disable events in this domain.
|
25
|
+
command disable
|
26
|
+
|
27
|
+
# Select a device in response to a DeviceAccess.deviceRequestPrompted event.
|
28
|
+
command selectPrompt
|
29
|
+
parameters
|
30
|
+
RequestId id
|
31
|
+
DeviceId deviceId
|
32
|
+
|
33
|
+
# Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.
|
34
|
+
command cancelPrompt
|
35
|
+
parameters
|
36
|
+
RequestId id
|
37
|
+
|
38
|
+
# A device request opened a user prompt to select a device. Respond with the
|
39
|
+
# selectPrompt or cancelPrompt command.
|
40
|
+
event deviceRequestPrompted
|
41
|
+
parameters
|
42
|
+
RequestId id
|
43
|
+
array of PromptDevice devices
|
@@ -0,0 +1,20 @@
|
|
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 DeviceOrientation
|
8
|
+
|
9
|
+
# Clears the overridden Device Orientation.
|
10
|
+
command clearDeviceOrientationOverride
|
11
|
+
|
12
|
+
# Overrides the Device Orientation.
|
13
|
+
command setDeviceOrientationOverride
|
14
|
+
parameters
|
15
|
+
# Mock alpha
|
16
|
+
number alpha
|
17
|
+
# Mock beta
|
18
|
+
number beta
|
19
|
+
# Mock gamma
|
20
|
+
number gamma
|