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,608 @@
|
|
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 emulates different environments for the page.
|
8
|
+
domain Emulation
|
9
|
+
depends on DOM
|
10
|
+
depends on Page
|
11
|
+
depends on Runtime
|
12
|
+
|
13
|
+
experimental type SafeAreaInsets extends object
|
14
|
+
properties
|
15
|
+
# Overrides safe-area-inset-top.
|
16
|
+
optional integer top
|
17
|
+
# Overrides safe-area-max-inset-top.
|
18
|
+
optional integer topMax
|
19
|
+
# Overrides safe-area-inset-left.
|
20
|
+
optional integer left
|
21
|
+
# Overrides safe-area-max-inset-left.
|
22
|
+
optional integer leftMax
|
23
|
+
# Overrides safe-area-inset-bottom.
|
24
|
+
optional integer bottom
|
25
|
+
# Overrides safe-area-max-inset-bottom.
|
26
|
+
optional integer bottomMax
|
27
|
+
# Overrides safe-area-inset-right.
|
28
|
+
optional integer right
|
29
|
+
# Overrides safe-area-max-inset-right.
|
30
|
+
optional integer rightMax
|
31
|
+
|
32
|
+
# Screen orientation.
|
33
|
+
type ScreenOrientation extends object
|
34
|
+
properties
|
35
|
+
# Orientation type.
|
36
|
+
enum type
|
37
|
+
portraitPrimary
|
38
|
+
portraitSecondary
|
39
|
+
landscapePrimary
|
40
|
+
landscapeSecondary
|
41
|
+
# Orientation angle.
|
42
|
+
integer angle
|
43
|
+
|
44
|
+
type DisplayFeature extends object
|
45
|
+
properties
|
46
|
+
# Orientation of a display feature in relation to screen
|
47
|
+
enum orientation
|
48
|
+
vertical
|
49
|
+
horizontal
|
50
|
+
# The offset from the screen origin in either the x (for vertical
|
51
|
+
# orientation) or y (for horizontal orientation) direction.
|
52
|
+
integer offset
|
53
|
+
# A display feature may mask content such that it is not physically
|
54
|
+
# displayed - this length along with the offset describes this area.
|
55
|
+
# A display feature that only splits content will have a 0 mask_length.
|
56
|
+
integer maskLength
|
57
|
+
|
58
|
+
type DevicePosture extends object
|
59
|
+
properties
|
60
|
+
# Current posture of the device
|
61
|
+
enum type
|
62
|
+
continuous
|
63
|
+
folded
|
64
|
+
|
65
|
+
type MediaFeature extends object
|
66
|
+
properties
|
67
|
+
string name
|
68
|
+
string value
|
69
|
+
|
70
|
+
# advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to
|
71
|
+
# allow the next delayed task (if any) to run; pause: The virtual time base may not advance;
|
72
|
+
# pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending
|
73
|
+
# resource fetches.
|
74
|
+
experimental type VirtualTimePolicy extends string
|
75
|
+
enum
|
76
|
+
advance
|
77
|
+
pause
|
78
|
+
pauseIfNetworkFetchesPending
|
79
|
+
|
80
|
+
# Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints
|
81
|
+
experimental type UserAgentBrandVersion extends object
|
82
|
+
properties
|
83
|
+
string brand
|
84
|
+
string version
|
85
|
+
|
86
|
+
# Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints
|
87
|
+
# Missing optional values will be filled in by the target with what it would normally use.
|
88
|
+
experimental type UserAgentMetadata extends object
|
89
|
+
properties
|
90
|
+
# Brands appearing in Sec-CH-UA.
|
91
|
+
optional array of UserAgentBrandVersion brands
|
92
|
+
# Brands appearing in Sec-CH-UA-Full-Version-List.
|
93
|
+
optional array of UserAgentBrandVersion fullVersionList
|
94
|
+
deprecated optional string fullVersion
|
95
|
+
string platform
|
96
|
+
string platformVersion
|
97
|
+
string architecture
|
98
|
+
string model
|
99
|
+
boolean mobile
|
100
|
+
optional string bitness
|
101
|
+
optional boolean wow64
|
102
|
+
# Used to specify User Agent form-factor values.
|
103
|
+
# See https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors
|
104
|
+
optional array of string formFactors
|
105
|
+
|
106
|
+
# Used to specify sensor types to emulate.
|
107
|
+
# See https://w3c.github.io/sensors/#automation for more information.
|
108
|
+
experimental type SensorType extends string
|
109
|
+
enum
|
110
|
+
absolute-orientation
|
111
|
+
accelerometer
|
112
|
+
ambient-light
|
113
|
+
gravity
|
114
|
+
gyroscope
|
115
|
+
linear-acceleration
|
116
|
+
magnetometer
|
117
|
+
relative-orientation
|
118
|
+
|
119
|
+
experimental type SensorMetadata extends object
|
120
|
+
properties
|
121
|
+
optional boolean available
|
122
|
+
optional number minimumFrequency
|
123
|
+
optional number maximumFrequency
|
124
|
+
|
125
|
+
experimental type SensorReadingSingle extends object
|
126
|
+
properties
|
127
|
+
number value
|
128
|
+
|
129
|
+
experimental type SensorReadingXYZ extends object
|
130
|
+
properties
|
131
|
+
number x
|
132
|
+
number y
|
133
|
+
number z
|
134
|
+
|
135
|
+
experimental type SensorReadingQuaternion extends object
|
136
|
+
properties
|
137
|
+
number x
|
138
|
+
number y
|
139
|
+
number z
|
140
|
+
number w
|
141
|
+
|
142
|
+
experimental type SensorReading extends object
|
143
|
+
properties
|
144
|
+
optional SensorReadingSingle single
|
145
|
+
optional SensorReadingXYZ xyz
|
146
|
+
optional SensorReadingQuaternion quaternion
|
147
|
+
|
148
|
+
experimental type PressureSource extends string
|
149
|
+
enum
|
150
|
+
cpu
|
151
|
+
|
152
|
+
experimental type PressureState extends string
|
153
|
+
enum
|
154
|
+
nominal
|
155
|
+
fair
|
156
|
+
serious
|
157
|
+
critical
|
158
|
+
|
159
|
+
experimental type PressureMetadata extends object
|
160
|
+
properties
|
161
|
+
optional boolean available
|
162
|
+
|
163
|
+
experimental type WorkAreaInsets extends object
|
164
|
+
properties
|
165
|
+
# Work area top inset in pixels. Default is 0;
|
166
|
+
optional integer top
|
167
|
+
# Work area left inset in pixels. Default is 0;
|
168
|
+
optional integer left
|
169
|
+
# Work area bottom inset in pixels. Default is 0;
|
170
|
+
optional integer bottom
|
171
|
+
# Work area right inset in pixels. Default is 0;
|
172
|
+
optional integer right
|
173
|
+
|
174
|
+
experimental type ScreenId extends string
|
175
|
+
|
176
|
+
# Screen information similar to the one returned by window.getScreenDetails() method,
|
177
|
+
# see https://w3c.github.io/window-management/#screendetailed.
|
178
|
+
experimental type ScreenInfo extends object
|
179
|
+
properties
|
180
|
+
# Offset of the left edge of the screen.
|
181
|
+
integer left
|
182
|
+
# Offset of the top edge of the screen.
|
183
|
+
integer top
|
184
|
+
# Width of the screen.
|
185
|
+
integer width
|
186
|
+
# Height of the screen.
|
187
|
+
integer height
|
188
|
+
# Offset of the left edge of the available screen area.
|
189
|
+
integer availLeft
|
190
|
+
# Offset of the top edge of the available screen area.
|
191
|
+
integer availTop
|
192
|
+
# Width of the available screen area.
|
193
|
+
integer availWidth
|
194
|
+
# Height of the available screen area.
|
195
|
+
integer availHeight
|
196
|
+
# Specifies the screen's device pixel ratio.
|
197
|
+
number devicePixelRatio
|
198
|
+
# Specifies the screen's orientation.
|
199
|
+
ScreenOrientation orientation
|
200
|
+
# Specifies the screen's color depth in bits.
|
201
|
+
integer colorDepth
|
202
|
+
# Indicates whether the device has multiple screens.
|
203
|
+
boolean isExtended
|
204
|
+
# Indicates whether the screen is internal to the device or external, attached to the device.
|
205
|
+
boolean isInternal
|
206
|
+
# Indicates whether the screen is set as the the operating system primary screen.
|
207
|
+
boolean isPrimary
|
208
|
+
# Specifies the descriptive label for the screen.
|
209
|
+
string label
|
210
|
+
# Specifies the unique identifier of the screen.
|
211
|
+
ScreenId id
|
212
|
+
|
213
|
+
# Tells whether emulation is supported.
|
214
|
+
deprecated command canEmulate
|
215
|
+
returns
|
216
|
+
# True if emulation is supported.
|
217
|
+
boolean result
|
218
|
+
|
219
|
+
# Clears the overridden device metrics.
|
220
|
+
command clearDeviceMetricsOverride
|
221
|
+
|
222
|
+
# Clears the overridden Geolocation Position and Error.
|
223
|
+
command clearGeolocationOverride
|
224
|
+
|
225
|
+
# Requests that page scale factor is reset to initial values.
|
226
|
+
experimental command resetPageScaleFactor
|
227
|
+
|
228
|
+
# Enables or disables simulating a focused and active page.
|
229
|
+
experimental command setFocusEmulationEnabled
|
230
|
+
parameters
|
231
|
+
# Whether to enable to disable focus emulation.
|
232
|
+
boolean enabled
|
233
|
+
|
234
|
+
# Automatically render all web contents using a dark theme.
|
235
|
+
experimental command setAutoDarkModeOverride
|
236
|
+
parameters
|
237
|
+
# Whether to enable or disable automatic dark mode.
|
238
|
+
# If not specified, any existing override will be cleared.
|
239
|
+
optional boolean enabled
|
240
|
+
|
241
|
+
# Enables CPU throttling to emulate slow CPUs.
|
242
|
+
command setCPUThrottlingRate
|
243
|
+
parameters
|
244
|
+
# Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).
|
245
|
+
number rate
|
246
|
+
|
247
|
+
# Sets or clears an override of the default background color of the frame. This override is used
|
248
|
+
# if the content does not specify one.
|
249
|
+
command setDefaultBackgroundColorOverride
|
250
|
+
parameters
|
251
|
+
# RGBA of the default background color. If not specified, any existing override will be
|
252
|
+
# cleared.
|
253
|
+
optional DOM.RGBA color
|
254
|
+
|
255
|
+
# Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the
|
256
|
+
# respective variables to be undefined, even if previously overridden.
|
257
|
+
experimental command setSafeAreaInsetsOverride
|
258
|
+
parameters
|
259
|
+
SafeAreaInsets insets
|
260
|
+
|
261
|
+
# Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
|
262
|
+
# window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
|
263
|
+
# query results).
|
264
|
+
command setDeviceMetricsOverride
|
265
|
+
parameters
|
266
|
+
# Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
|
267
|
+
integer width
|
268
|
+
# Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
|
269
|
+
integer height
|
270
|
+
# Overriding device scale factor value. 0 disables the override.
|
271
|
+
number deviceScaleFactor
|
272
|
+
# Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text
|
273
|
+
# autosizing and more.
|
274
|
+
boolean mobile
|
275
|
+
# Scale to apply to resulting view image.
|
276
|
+
experimental optional number scale
|
277
|
+
# Overriding screen width value in pixels (minimum 0, maximum 10000000).
|
278
|
+
experimental optional integer screenWidth
|
279
|
+
# Overriding screen height value in pixels (minimum 0, maximum 10000000).
|
280
|
+
experimental optional integer screenHeight
|
281
|
+
# Overriding view X position on screen in pixels (minimum 0, maximum 10000000).
|
282
|
+
experimental optional integer positionX
|
283
|
+
# Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).
|
284
|
+
experimental optional integer positionY
|
285
|
+
# Do not set visible view size, rely upon explicit setVisibleSize call.
|
286
|
+
experimental optional boolean dontSetVisibleSize
|
287
|
+
# Screen orientation override.
|
288
|
+
optional ScreenOrientation screenOrientation
|
289
|
+
# If set, the visible area of the page will be overridden to this viewport. This viewport
|
290
|
+
# change is not observed by the page, e.g. viewport-relative elements do not change positions.
|
291
|
+
experimental optional Page.Viewport viewport
|
292
|
+
# If set, the display feature of a multi-segment screen. If not set, multi-segment support
|
293
|
+
# is turned-off.
|
294
|
+
# Deprecated, use Emulation.setDisplayFeaturesOverride.
|
295
|
+
experimental deprecated optional DisplayFeature displayFeature
|
296
|
+
# If set, the posture of a foldable device. If not set the posture is set
|
297
|
+
# to continuous.
|
298
|
+
# Deprecated, use Emulation.setDevicePostureOverride.
|
299
|
+
experimental deprecated optional DevicePosture devicePosture
|
300
|
+
|
301
|
+
# Start reporting the given posture value to the Device Posture API.
|
302
|
+
# This override can also be set in setDeviceMetricsOverride().
|
303
|
+
experimental command setDevicePostureOverride
|
304
|
+
parameters
|
305
|
+
DevicePosture posture
|
306
|
+
|
307
|
+
# Clears a device posture override set with either setDeviceMetricsOverride()
|
308
|
+
# or setDevicePostureOverride() and starts using posture information from the
|
309
|
+
# platform again.
|
310
|
+
# Does nothing if no override is set.
|
311
|
+
experimental command clearDevicePostureOverride
|
312
|
+
|
313
|
+
# Start using the given display features to pupulate the Viewport Segments API.
|
314
|
+
# This override can also be set in setDeviceMetricsOverride().
|
315
|
+
experimental command setDisplayFeaturesOverride
|
316
|
+
parameters
|
317
|
+
array of DisplayFeature features
|
318
|
+
|
319
|
+
# Clears the display features override set with either setDeviceMetricsOverride()
|
320
|
+
# or setDisplayFeaturesOverride() and starts using display features from the
|
321
|
+
# platform again.
|
322
|
+
# Does nothing if no override is set.
|
323
|
+
experimental command clearDisplayFeaturesOverride
|
324
|
+
|
325
|
+
experimental command setScrollbarsHidden
|
326
|
+
parameters
|
327
|
+
# Whether scrollbars should be always hidden.
|
328
|
+
boolean hidden
|
329
|
+
|
330
|
+
experimental command setDocumentCookieDisabled
|
331
|
+
parameters
|
332
|
+
# Whether document.coookie API should be disabled.
|
333
|
+
boolean disabled
|
334
|
+
|
335
|
+
experimental command setEmitTouchEventsForMouse
|
336
|
+
parameters
|
337
|
+
# Whether touch emulation based on mouse input should be enabled.
|
338
|
+
boolean enabled
|
339
|
+
# Touch/gesture events configuration. Default: current platform.
|
340
|
+
optional enum configuration
|
341
|
+
mobile
|
342
|
+
desktop
|
343
|
+
|
344
|
+
# Emulates the given media type or media feature for CSS media queries.
|
345
|
+
command setEmulatedMedia
|
346
|
+
parameters
|
347
|
+
# Media type to emulate. Empty string disables the override.
|
348
|
+
optional string media
|
349
|
+
# Media features to emulate.
|
350
|
+
optional array of MediaFeature features
|
351
|
+
|
352
|
+
# Emulates the given vision deficiency.
|
353
|
+
command setEmulatedVisionDeficiency
|
354
|
+
parameters
|
355
|
+
# Vision deficiency to emulate. Order: best-effort emulations come first, followed by any
|
356
|
+
# physiologically accurate emulations for medically recognized color vision deficiencies.
|
357
|
+
enum type
|
358
|
+
none
|
359
|
+
blurredVision
|
360
|
+
reducedContrast
|
361
|
+
achromatopsia
|
362
|
+
deuteranopia
|
363
|
+
protanopia
|
364
|
+
tritanopia
|
365
|
+
|
366
|
+
# Emulates the given OS text scale.
|
367
|
+
command setEmulatedOSTextScale
|
368
|
+
parameters
|
369
|
+
optional number scale
|
370
|
+
|
371
|
+
# Overrides the Geolocation Position or Error. Omitting latitude, longitude or
|
372
|
+
# accuracy emulates position unavailable.
|
373
|
+
command setGeolocationOverride
|
374
|
+
parameters
|
375
|
+
# Mock latitude
|
376
|
+
optional number latitude
|
377
|
+
# Mock longitude
|
378
|
+
optional number longitude
|
379
|
+
# Mock accuracy
|
380
|
+
optional number accuracy
|
381
|
+
# Mock altitude
|
382
|
+
optional number altitude
|
383
|
+
# Mock altitudeAccuracy
|
384
|
+
optional number altitudeAccuracy
|
385
|
+
# Mock heading
|
386
|
+
optional number heading
|
387
|
+
# Mock speed
|
388
|
+
optional number speed
|
389
|
+
|
390
|
+
experimental command getOverriddenSensorInformation
|
391
|
+
parameters
|
392
|
+
SensorType type
|
393
|
+
returns
|
394
|
+
number requestedSamplingFrequency
|
395
|
+
|
396
|
+
# Overrides a platform sensor of a given type. If |enabled| is true, calls to
|
397
|
+
# Sensor.start() will use a virtual sensor as backend rather than fetching
|
398
|
+
# data from a real hardware sensor. Otherwise, existing virtual
|
399
|
+
# sensor-backend Sensor objects will fire an error event and new calls to
|
400
|
+
# Sensor.start() will attempt to use a real sensor instead.
|
401
|
+
experimental command setSensorOverrideEnabled
|
402
|
+
parameters
|
403
|
+
boolean enabled
|
404
|
+
SensorType type
|
405
|
+
optional SensorMetadata metadata
|
406
|
+
|
407
|
+
# Updates the sensor readings reported by a sensor type previously overridden
|
408
|
+
# by setSensorOverrideEnabled.
|
409
|
+
experimental command setSensorOverrideReadings
|
410
|
+
parameters
|
411
|
+
SensorType type
|
412
|
+
SensorReading reading
|
413
|
+
|
414
|
+
# Overrides a pressure source of a given type, as used by the Compute
|
415
|
+
# Pressure API, so that updates to PressureObserver.observe() are provided
|
416
|
+
# via setPressureStateOverride instead of being retrieved from
|
417
|
+
# platform-provided telemetry data.
|
418
|
+
experimental command setPressureSourceOverrideEnabled
|
419
|
+
parameters
|
420
|
+
boolean enabled
|
421
|
+
PressureSource source
|
422
|
+
optional PressureMetadata metadata
|
423
|
+
|
424
|
+
# TODO: OBSOLETE: To remove when setPressureDataOverride is merged.
|
425
|
+
# Provides a given pressure state that will be processed and eventually be
|
426
|
+
# delivered to PressureObserver users. |source| must have been previously
|
427
|
+
# overridden by setPressureSourceOverrideEnabled.
|
428
|
+
experimental command setPressureStateOverride
|
429
|
+
parameters
|
430
|
+
PressureSource source
|
431
|
+
PressureState state
|
432
|
+
|
433
|
+
# Provides a given pressure data set that will be processed and eventually be
|
434
|
+
# delivered to PressureObserver users. |source| must have been previously
|
435
|
+
# overridden by setPressureSourceOverrideEnabled.
|
436
|
+
experimental command setPressureDataOverride
|
437
|
+
parameters
|
438
|
+
PressureSource source
|
439
|
+
PressureState state
|
440
|
+
optional number ownContributionEstimate
|
441
|
+
|
442
|
+
# Overrides the Idle state.
|
443
|
+
command setIdleOverride
|
444
|
+
parameters
|
445
|
+
# Mock isUserActive
|
446
|
+
boolean isUserActive
|
447
|
+
# Mock isScreenUnlocked
|
448
|
+
boolean isScreenUnlocked
|
449
|
+
|
450
|
+
# Clears Idle state overrides.
|
451
|
+
command clearIdleOverride
|
452
|
+
|
453
|
+
# Overrides value returned by the javascript navigator object.
|
454
|
+
experimental deprecated command setNavigatorOverrides
|
455
|
+
parameters
|
456
|
+
# The platform navigator.platform should return.
|
457
|
+
string platform
|
458
|
+
|
459
|
+
# Sets a specified page scale factor.
|
460
|
+
experimental command setPageScaleFactor
|
461
|
+
parameters
|
462
|
+
# Page scale factor.
|
463
|
+
number pageScaleFactor
|
464
|
+
|
465
|
+
# Switches script execution in the page.
|
466
|
+
command setScriptExecutionDisabled
|
467
|
+
parameters
|
468
|
+
# Whether script execution should be disabled in the page.
|
469
|
+
boolean value
|
470
|
+
|
471
|
+
# Enables touch on platforms which do not support them.
|
472
|
+
command setTouchEmulationEnabled
|
473
|
+
parameters
|
474
|
+
# Whether the touch event emulation should be enabled.
|
475
|
+
boolean enabled
|
476
|
+
# Maximum touch points supported. Defaults to one.
|
477
|
+
optional integer maxTouchPoints
|
478
|
+
|
479
|
+
# Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets
|
480
|
+
# the current virtual time policy. Note this supersedes any previous time budget.
|
481
|
+
experimental command setVirtualTimePolicy
|
482
|
+
parameters
|
483
|
+
VirtualTimePolicy policy
|
484
|
+
# If set, after this many virtual milliseconds have elapsed virtual time will be paused and a
|
485
|
+
# virtualTimeBudgetExpired event is sent.
|
486
|
+
optional number budget
|
487
|
+
# If set this specifies the maximum number of tasks that can be run before virtual is forced
|
488
|
+
# forwards to prevent deadlock.
|
489
|
+
optional integer maxVirtualTimeTaskStarvationCount
|
490
|
+
# If set, base::Time::Now will be overridden to initially return this value.
|
491
|
+
optional Network.TimeSinceEpoch initialVirtualTime
|
492
|
+
returns
|
493
|
+
# Absolute timestamp at which virtual time was first enabled (up time in milliseconds).
|
494
|
+
number virtualTimeTicksBase
|
495
|
+
|
496
|
+
# Overrides default host system locale with the specified one.
|
497
|
+
experimental command setLocaleOverride
|
498
|
+
parameters
|
499
|
+
# ICU style C locale (e.g. "en_US"). If not specified or empty, disables the override and
|
500
|
+
# restores default host system locale.
|
501
|
+
optional string locale
|
502
|
+
|
503
|
+
# Overrides default host system timezone with the specified one.
|
504
|
+
command setTimezoneOverride
|
505
|
+
parameters
|
506
|
+
# The timezone identifier. List of supported timezones:
|
507
|
+
# https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txt
|
508
|
+
# If empty, disables the override and restores default host system timezone.
|
509
|
+
string timezoneId
|
510
|
+
|
511
|
+
# Resizes the frame/viewport of the page. Note that this does not affect the frame's container
|
512
|
+
# (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported
|
513
|
+
# on Android.
|
514
|
+
experimental deprecated command setVisibleSize
|
515
|
+
parameters
|
516
|
+
# Frame width (DIP).
|
517
|
+
integer width
|
518
|
+
# Frame height (DIP).
|
519
|
+
integer height
|
520
|
+
|
521
|
+
# Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
|
522
|
+
experimental event virtualTimeBudgetExpired
|
523
|
+
|
524
|
+
# Enum of image types that can be disabled.
|
525
|
+
experimental type DisabledImageType extends string
|
526
|
+
enum
|
527
|
+
avif
|
528
|
+
webp
|
529
|
+
|
530
|
+
experimental command setDisabledImageTypes
|
531
|
+
parameters
|
532
|
+
# Image types to disable.
|
533
|
+
array of DisabledImageType imageTypes
|
534
|
+
|
535
|
+
|
536
|
+
# Override the value of navigator.connection.saveData
|
537
|
+
experimental command setDataSaverOverride
|
538
|
+
parameters
|
539
|
+
# Override value. Omitting the parameter disables the override.
|
540
|
+
optional boolean dataSaverEnabled
|
541
|
+
|
542
|
+
experimental command setHardwareConcurrencyOverride
|
543
|
+
parameters
|
544
|
+
# Hardware concurrency to report
|
545
|
+
integer hardwareConcurrency
|
546
|
+
|
547
|
+
# Allows overriding user agent with the given string.
|
548
|
+
# `userAgentMetadata` must be set for Client Hint headers to be sent.
|
549
|
+
command setUserAgentOverride
|
550
|
+
parameters
|
551
|
+
# User agent to use.
|
552
|
+
string userAgent
|
553
|
+
# Browser language to emulate.
|
554
|
+
optional string acceptLanguage
|
555
|
+
# The platform navigator.platform should return.
|
556
|
+
optional string platform
|
557
|
+
# To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
|
558
|
+
experimental optional UserAgentMetadata userAgentMetadata
|
559
|
+
|
560
|
+
# Allows overriding the automation flag.
|
561
|
+
experimental command setAutomationOverride
|
562
|
+
parameters
|
563
|
+
# Whether the override should be enabled.
|
564
|
+
boolean enabled
|
565
|
+
|
566
|
+
# Allows overriding the difference between the small and large viewport sizes, which determine the
|
567
|
+
# value of the `svh` and `lvh` unit, respectively. Only supported for top-level frames.
|
568
|
+
experimental command setSmallViewportHeightDifferenceOverride
|
569
|
+
parameters
|
570
|
+
# This will cause an element of size 100svh to be `difference` pixels smaller than an element
|
571
|
+
# of size 100lvh.
|
572
|
+
integer difference
|
573
|
+
|
574
|
+
# Returns device's screen configuration.
|
575
|
+
experimental command getScreenInfos
|
576
|
+
returns
|
577
|
+
array of ScreenInfo screenInfos
|
578
|
+
|
579
|
+
# Add a new screen to the device. Only supported in headless mode.
|
580
|
+
experimental command addScreen
|
581
|
+
parameters
|
582
|
+
# Offset of the left edge of the screen in pixels.
|
583
|
+
integer left
|
584
|
+
# Offset of the top edge of the screen in pixels.
|
585
|
+
integer top
|
586
|
+
# The width of the screen in pixels.
|
587
|
+
integer width
|
588
|
+
# The height of the screen in pixels.
|
589
|
+
integer height
|
590
|
+
# Specifies the screen's work area. Default is entire screen.
|
591
|
+
optional WorkAreaInsets workAreaInsets
|
592
|
+
# Specifies the screen's device pixel ratio. Default is 1.
|
593
|
+
optional number devicePixelRatio
|
594
|
+
# Specifies the screen's rotation angle. Available values are 0, 90, 180 and 270. Default is 0.
|
595
|
+
optional integer rotation
|
596
|
+
# Specifies the screen's color depth in bits. Default is 24.
|
597
|
+
optional integer colorDepth
|
598
|
+
# Specifies the descriptive label for the screen. Default is none.
|
599
|
+
optional string label
|
600
|
+
# Indicates whether the screen is internal to the device or external, attached to the device. Default is false.
|
601
|
+
optional boolean isInternal
|
602
|
+
returns
|
603
|
+
ScreenInfo screenInfo
|
604
|
+
|
605
|
+
# Remove screen from the device. Only supported in headless mode.
|
606
|
+
experimental command removeScreen
|
607
|
+
parameters
|
608
|
+
ScreenId screenId
|
@@ -0,0 +1,24 @@
|
|
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
|
+
# EventBreakpoints permits setting JavaScript breakpoints on operations and events
|
8
|
+
# occurring in native code invoked from JavaScript. Once breakpoint is hit, it is
|
9
|
+
# reported through Debugger domain, similarly to regular breakpoints being hit.
|
10
|
+
experimental domain EventBreakpoints
|
11
|
+
# Sets breakpoint on particular native event.
|
12
|
+
command setInstrumentationBreakpoint
|
13
|
+
parameters
|
14
|
+
# Instrumentation name to stop on.
|
15
|
+
string eventName
|
16
|
+
|
17
|
+
# Removes breakpoint on particular native event.
|
18
|
+
command removeInstrumentationBreakpoint
|
19
|
+
parameters
|
20
|
+
# Instrumentation name to stop on.
|
21
|
+
string eventName
|
22
|
+
|
23
|
+
# Removes all breakpoints
|
24
|
+
command disable
|
@@ -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
|
+
# Defines commands and events for browser extensions.
|
8
|
+
experimental domain Extensions
|
9
|
+
# Storage areas.
|
10
|
+
type StorageArea extends string
|
11
|
+
enum
|
12
|
+
session
|
13
|
+
local
|
14
|
+
sync
|
15
|
+
managed
|
16
|
+
# Installs an unpacked extension from the filesystem similar to
|
17
|
+
# --load-extension CLI flags. Returns extension ID once the extension
|
18
|
+
# has been installed. Available if the client is connected using the
|
19
|
+
# --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging
|
20
|
+
# flag is set.
|
21
|
+
command loadUnpacked
|
22
|
+
parameters
|
23
|
+
# Absolute file path.
|
24
|
+
string path
|
25
|
+
returns
|
26
|
+
# Extension id.
|
27
|
+
string id
|
28
|
+
# Uninstalls an unpacked extension (others not supported) from the profile.
|
29
|
+
# Available if the client is connected using the --remote-debugging-pipe flag
|
30
|
+
# and the --enable-unsafe-extension-debugging.
|
31
|
+
command uninstall
|
32
|
+
parameters
|
33
|
+
# Extension id.
|
34
|
+
string id
|
35
|
+
# Gets data from extension storage in the given `storageArea`. If `keys` is
|
36
|
+
# specified, these are used to filter the result.
|
37
|
+
command getStorageItems
|
38
|
+
parameters
|
39
|
+
# ID of extension.
|
40
|
+
string id
|
41
|
+
# StorageArea to retrieve data from.
|
42
|
+
StorageArea storageArea
|
43
|
+
# Keys to retrieve.
|
44
|
+
optional array of string keys
|
45
|
+
returns
|
46
|
+
object data
|
47
|
+
# Removes `keys` from extension storage in the given `storageArea`.
|
48
|
+
command removeStorageItems
|
49
|
+
parameters
|
50
|
+
# ID of extension.
|
51
|
+
string id
|
52
|
+
# StorageArea to remove data from.
|
53
|
+
StorageArea storageArea
|
54
|
+
# Keys to remove.
|
55
|
+
array of string keys
|
56
|
+
# Clears extension storage in the given `storageArea`.
|
57
|
+
command clearStorageItems
|
58
|
+
parameters
|
59
|
+
# ID of extension.
|
60
|
+
string id
|
61
|
+
# StorageArea to remove data from.
|
62
|
+
StorageArea storageArea
|
63
|
+
# Sets `values` in extension storage in the given `storageArea`. The provided `values`
|
64
|
+
# will be merged with existing values in the storage area.
|
65
|
+
command setStorageItems
|
66
|
+
parameters
|
67
|
+
# ID of extension.
|
68
|
+
string id
|
69
|
+
# StorageArea to set data in.
|
70
|
+
StorageArea storageArea
|
71
|
+
# Values to set.
|
72
|
+
object values
|