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.
Files changed (54) hide show
  1. package/json/browser_protocol.json +17905 -17687
  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 +8064 -7914
@@ -0,0 +1,178 @@
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 LayerTree
8
+ depends on DOM
9
+
10
+ # Unique Layer identifier.
11
+ type LayerId extends string
12
+
13
+ # Unique snapshot identifier.
14
+ type SnapshotId extends string
15
+
16
+ # Rectangle where scrolling happens on the main thread.
17
+ type ScrollRect extends object
18
+ properties
19
+ # Rectangle itself.
20
+ DOM.Rect rect
21
+ # Reason for rectangle to force scrolling on the main thread
22
+ enum type
23
+ RepaintsOnScroll
24
+ TouchEventHandler
25
+ WheelEventHandler
26
+
27
+ # Sticky position constraints.
28
+ type StickyPositionConstraint extends object
29
+ properties
30
+ # Layout rectangle of the sticky element before being shifted
31
+ DOM.Rect stickyBoxRect
32
+ # Layout rectangle of the containing block of the sticky element
33
+ DOM.Rect containingBlockRect
34
+ # The nearest sticky layer that shifts the sticky box
35
+ optional LayerId nearestLayerShiftingStickyBox
36
+ # The nearest sticky layer that shifts the containing block
37
+ optional LayerId nearestLayerShiftingContainingBlock
38
+
39
+ # Serialized fragment of layer picture along with its offset within the layer.
40
+ type PictureTile extends object
41
+ properties
42
+ # Offset from owning layer left boundary
43
+ number x
44
+ # Offset from owning layer top boundary
45
+ number y
46
+ # Base64-encoded snapshot data.
47
+ binary picture
48
+
49
+ # Information about a compositing layer.
50
+ type Layer extends object
51
+ properties
52
+ # The unique id for this layer.
53
+ LayerId layerId
54
+ # The id of parent (not present for root).
55
+ optional LayerId parentLayerId
56
+ # The backend id for the node associated with this layer.
57
+ optional DOM.BackendNodeId backendNodeId
58
+ # Offset from parent layer, X coordinate.
59
+ number offsetX
60
+ # Offset from parent layer, Y coordinate.
61
+ number offsetY
62
+ # Layer width.
63
+ number width
64
+ # Layer height.
65
+ number height
66
+ # Transformation matrix for layer, default is identity matrix
67
+ optional array of number transform
68
+ # Transform anchor point X, absent if no transform specified
69
+ optional number anchorX
70
+ # Transform anchor point Y, absent if no transform specified
71
+ optional number anchorY
72
+ # Transform anchor point Z, absent if no transform specified
73
+ optional number anchorZ
74
+ # Indicates how many time this layer has painted.
75
+ integer paintCount
76
+ # Indicates whether this layer hosts any content, rather than being used for
77
+ # transform/scrolling purposes only.
78
+ boolean drawsContent
79
+ # Set if layer is not visible.
80
+ optional boolean invisible
81
+ # Rectangles scrolling on main thread only.
82
+ optional array of ScrollRect scrollRects
83
+ # Sticky position constraint information
84
+ optional StickyPositionConstraint stickyPositionConstraint
85
+
86
+ # Array of timings, one per paint step.
87
+ type PaintProfile extends array of number
88
+
89
+ # Provides the reasons why the given layer was composited.
90
+ command compositingReasons
91
+ parameters
92
+ # The id of the layer for which we want to get the reasons it was composited.
93
+ LayerId layerId
94
+ returns
95
+ # A list of strings specifying reasons for the given layer to become composited.
96
+ array of string compositingReasons
97
+ # A list of strings specifying reason IDs for the given layer to become composited.
98
+ array of string compositingReasonIds
99
+
100
+ # Disables compositing tree inspection.
101
+ command disable
102
+
103
+ # Enables compositing tree inspection.
104
+ command enable
105
+
106
+ # Returns the snapshot identifier.
107
+ command loadSnapshot
108
+ parameters
109
+ # An array of tiles composing the snapshot.
110
+ array of PictureTile tiles
111
+ returns
112
+ # The id of the snapshot.
113
+ SnapshotId snapshotId
114
+
115
+ # Returns the layer snapshot identifier.
116
+ command makeSnapshot
117
+ parameters
118
+ # The id of the layer.
119
+ LayerId layerId
120
+ returns
121
+ # The id of the layer snapshot.
122
+ SnapshotId snapshotId
123
+
124
+ command profileSnapshot
125
+ parameters
126
+ # The id of the layer snapshot.
127
+ SnapshotId snapshotId
128
+ # The maximum number of times to replay the snapshot (1, if not specified).
129
+ optional integer minRepeatCount
130
+ # The minimum duration (in seconds) to replay the snapshot.
131
+ optional number minDuration
132
+ # The clip rectangle to apply when replaying the snapshot.
133
+ optional DOM.Rect clipRect
134
+ returns
135
+ # The array of paint profiles, one per run.
136
+ array of PaintProfile timings
137
+
138
+ # Releases layer snapshot captured by the back-end.
139
+ command releaseSnapshot
140
+ parameters
141
+ # The id of the layer snapshot.
142
+ SnapshotId snapshotId
143
+
144
+ # Replays the layer snapshot and returns the resulting bitmap.
145
+ command replaySnapshot
146
+ parameters
147
+ # The id of the layer snapshot.
148
+ SnapshotId snapshotId
149
+ # The first step to replay from (replay from the very start if not specified).
150
+ optional integer fromStep
151
+ # The last step to replay to (replay till the end if not specified).
152
+ optional integer toStep
153
+ # The scale to apply while replaying (defaults to 1).
154
+ optional number scale
155
+ returns
156
+ # A data: URL for resulting image.
157
+ string dataURL
158
+
159
+ # Replays the layer snapshot and returns canvas log.
160
+ command snapshotCommandLog
161
+ parameters
162
+ # The id of the layer snapshot.
163
+ SnapshotId snapshotId
164
+ returns
165
+ # The array of canvas function calls.
166
+ array of object commandLog
167
+
168
+ event layerPainted
169
+ parameters
170
+ # The id of the painted layer.
171
+ LayerId layerId
172
+ # Clip rectangle.
173
+ DOM.Rect clip
174
+
175
+ event layerTreeDidChange
176
+ parameters
177
+ # Layer tree, absent if not in the compositing mode.
178
+ optional array of Layer layers
@@ -0,0 +1,93 @@
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
+ # Provides access to log entries.
8
+ domain Log
9
+ depends on Runtime
10
+ depends on Network
11
+
12
+ # Log entry.
13
+ type LogEntry extends object
14
+ properties
15
+ # Log entry source.
16
+ enum source
17
+ xml
18
+ javascript
19
+ network
20
+ storage
21
+ appcache
22
+ rendering
23
+ security
24
+ deprecation
25
+ worker
26
+ violation
27
+ intervention
28
+ recommendation
29
+ other
30
+ # Log entry severity.
31
+ enum level
32
+ verbose
33
+ info
34
+ warning
35
+ error
36
+ # Logged text.
37
+ string text
38
+ optional enum category
39
+ cors
40
+ # Timestamp when this entry was added.
41
+ Runtime.Timestamp timestamp
42
+ # URL of the resource if known.
43
+ optional string url
44
+ # Line number in the resource.
45
+ optional integer lineNumber
46
+ # JavaScript stack trace.
47
+ optional Runtime.StackTrace stackTrace
48
+ # Identifier of the network request associated with this entry.
49
+ optional Network.RequestId networkRequestId
50
+ # Identifier of the worker associated with this entry.
51
+ optional string workerId
52
+ # Call arguments.
53
+ optional array of Runtime.RemoteObject args
54
+
55
+ # Violation configuration setting.
56
+ type ViolationSetting extends object
57
+ properties
58
+ # Violation type.
59
+ enum name
60
+ longTask
61
+ longLayout
62
+ blockedEvent
63
+ blockedParser
64
+ discouragedAPIUse
65
+ handler
66
+ recurringHandler
67
+ # Time threshold to trigger upon.
68
+ number threshold
69
+
70
+ # Clears the log.
71
+ command clear
72
+
73
+ # Disables log domain, prevents further log entries from being reported to the client.
74
+ command disable
75
+
76
+ # Enables log domain, sends the entries collected so far to the client by means of the
77
+ # `entryAdded` notification.
78
+ command enable
79
+
80
+ # start violation reporting.
81
+ command startViolationsReport
82
+ parameters
83
+ # Configuration for violations.
84
+ array of ViolationSetting config
85
+
86
+ # Stop violation reporting.
87
+ command stopViolationsReport
88
+
89
+ # Issued when new message was logged.
90
+ event entryAdded
91
+ parameters
92
+ # The entry.
93
+ LogEntry entry
@@ -0,0 +1,106 @@
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 detailed inspection of media elements.
8
+ experimental domain Media
9
+
10
+ # Players will get an ID that is unique within the agent context.
11
+ type PlayerId extends string
12
+
13
+ type Timestamp extends number
14
+
15
+ # Have one type per entry in MediaLogRecord::Type
16
+ # Corresponds to kMessage
17
+ type PlayerMessage extends object
18
+ properties
19
+ # Keep in sync with MediaLogMessageLevel
20
+ # We are currently keeping the message level 'error' separate from the
21
+ # PlayerError type because right now they represent different things,
22
+ # this one being a DVLOG(ERROR) style log message that gets printed
23
+ # based on what log level is selected in the UI, and the other is a
24
+ # representation of a media::PipelineStatus object. Soon however we're
25
+ # going to be moving away from using PipelineStatus for errors and
26
+ # introducing a new error type which should hopefully let us integrate
27
+ # the error log level into the PlayerError type.
28
+ enum level
29
+ error
30
+ warning
31
+ info
32
+ debug
33
+ string message
34
+
35
+ # Corresponds to kMediaPropertyChange
36
+ type PlayerProperty extends object
37
+ properties
38
+ string name
39
+ string value
40
+
41
+ # Corresponds to kMediaEventTriggered
42
+ type PlayerEvent extends object
43
+ properties
44
+ Timestamp timestamp
45
+ string value
46
+
47
+ # Represents logged source line numbers reported in an error.
48
+ # NOTE: file and line are from chromium c++ implementation code, not js.
49
+ type PlayerErrorSourceLocation extends object
50
+ properties
51
+ string file
52
+ integer line
53
+
54
+ # Corresponds to kMediaError
55
+ type PlayerError extends object
56
+ properties
57
+ string errorType
58
+ # Code is the numeric enum entry for a specific set of error codes, such
59
+ # as PipelineStatusCodes in media/base/pipeline_status.h
60
+ integer code
61
+ # A trace of where this error was caused / where it passed through.
62
+ array of PlayerErrorSourceLocation stack
63
+ # Errors potentially have a root cause error, ie, a DecoderError might be
64
+ # caused by an WindowsError
65
+ array of PlayerError cause
66
+ # Extra data attached to an error, such as an HRESULT, Video Codec, etc.
67
+ object data
68
+
69
+ # This can be called multiple times, and can be used to set / override /
70
+ # remove player properties. A null propValue indicates removal.
71
+ event playerPropertiesChanged
72
+ parameters
73
+ PlayerId playerId
74
+ array of PlayerProperty properties
75
+
76
+ # Send events as a list, allowing them to be batched on the browser for less
77
+ # congestion. If batched, events must ALWAYS be in chronological order.
78
+ event playerEventsAdded
79
+ parameters
80
+ PlayerId playerId
81
+ array of PlayerEvent events
82
+
83
+ # Send a list of any messages that need to be delivered.
84
+ event playerMessagesLogged
85
+ parameters
86
+ PlayerId playerId
87
+ array of PlayerMessage messages
88
+
89
+ # Send a list of any errors that need to be delivered.
90
+ event playerErrorsRaised
91
+ parameters
92
+ PlayerId playerId
93
+ array of PlayerError errors
94
+
95
+ # Called whenever a player is created, or when a new agent joins and receives
96
+ # a list of active players. If an agent is restored, it will receive the full
97
+ # list of player ids and all events again.
98
+ event playersCreated
99
+ parameters
100
+ array of PlayerId players
101
+
102
+ # Enables the Media domain
103
+ command enable
104
+
105
+ # Disables the Media domain.
106
+ command disable
@@ -0,0 +1,112 @@
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 Memory
8
+
9
+ # Memory pressure level.
10
+ type PressureLevel extends string
11
+ enum
12
+ moderate
13
+ critical
14
+
15
+ # Retruns current DOM object counters.
16
+ command getDOMCounters
17
+ returns
18
+ integer documents
19
+ integer nodes
20
+ integer jsEventListeners
21
+
22
+ # Retruns DOM object counters after preparing renderer for leak detection.
23
+ command getDOMCountersForLeakDetection
24
+ returns
25
+ # DOM object counters.
26
+ array of DOMCounter counters
27
+
28
+ # Prepares for leak detection by terminating workers, stopping spellcheckers,
29
+ # dropping non-essential internal caches, running garbage collections, etc.
30
+ command prepareForLeakDetection
31
+
32
+ # Simulate OomIntervention by purging V8 memory.
33
+ command forciblyPurgeJavaScriptMemory
34
+
35
+ # Enable/disable suppressing memory pressure notifications in all processes.
36
+ command setPressureNotificationsSuppressed
37
+ parameters
38
+ # If true, memory pressure notifications will be suppressed.
39
+ boolean suppressed
40
+
41
+ # Simulate a memory pressure notification in all processes.
42
+ command simulatePressureNotification
43
+ parameters
44
+ # Memory pressure level of the notification.
45
+ PressureLevel level
46
+
47
+ # Start collecting native memory profile.
48
+ command startSampling
49
+ parameters
50
+ # Average number of bytes between samples.
51
+ optional integer samplingInterval
52
+ # Do not randomize intervals between samples.
53
+ optional boolean suppressRandomness
54
+
55
+ # Stop collecting native memory profile.
56
+ command stopSampling
57
+
58
+ # Retrieve native memory allocations profile
59
+ # collected since renderer process startup.
60
+ command getAllTimeSamplingProfile
61
+ returns
62
+ SamplingProfile profile
63
+
64
+ # Retrieve native memory allocations profile
65
+ # collected since browser process startup.
66
+ command getBrowserSamplingProfile
67
+ returns
68
+ SamplingProfile profile
69
+
70
+ # Retrieve native memory allocations profile collected since last
71
+ # `startSampling` call.
72
+ command getSamplingProfile
73
+ returns
74
+ SamplingProfile profile
75
+
76
+ # Heap profile sample.
77
+ type SamplingProfileNode extends object
78
+ properties
79
+ # Size of the sampled allocation.
80
+ number size
81
+ # Total bytes attributed to this sample.
82
+ number total
83
+ # Execution stack at the point of allocation.
84
+ array of string stack
85
+
86
+ # Array of heap profile samples.
87
+ type SamplingProfile extends object
88
+ properties
89
+ array of SamplingProfileNode samples
90
+ array of Module modules
91
+
92
+ # Executable module information
93
+ type Module extends object
94
+ properties
95
+ # Name of the module.
96
+ string name
97
+ # UUID of the module.
98
+ string uuid
99
+ # Base address where the module is loaded into memory. Encoded as a decimal
100
+ # or hexadecimal (0x prefixed) string.
101
+ string baseAddress
102
+ # Size of the module in bytes.
103
+ number size
104
+
105
+ # DOM object counter data.
106
+ type DOMCounter extends object
107
+ properties
108
+ # Object name. Note: object names should be presumed volatile and clients should not expect
109
+ # the returned names to be consistent across runs.
110
+ string name
111
+ # Object count.
112
+ integer count