devtools-protocol 0.0.1673900 → 0.0.1676105
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 +51 -0
- package/json/js_protocol.json +7 -0
- package/package.json +1 -1
- package/pdl/domains/Page.pdl +20 -0
- package/pdl/js_protocol.pdl +2 -0
- package/types/protocol-mapping.d.ts +16 -0
- package/types/protocol-proxy-api.d.ts +12 -0
- package/types/protocol-tests-proxy-api.d.ts +12 -0
- package/types/protocol.d.ts +37 -0
|
@@ -24400,6 +24400,57 @@
|
|
|
24400
24400
|
}
|
|
24401
24401
|
]
|
|
24402
24402
|
},
|
|
24403
|
+
{
|
|
24404
|
+
"name": "startScreenRecording",
|
|
24405
|
+
"description": "Starts screencast video recording.",
|
|
24406
|
+
"experimental": true,
|
|
24407
|
+
"parameters": [
|
|
24408
|
+
{
|
|
24409
|
+
"name": "audio",
|
|
24410
|
+
"optional": true,
|
|
24411
|
+
"type": "boolean"
|
|
24412
|
+
},
|
|
24413
|
+
{
|
|
24414
|
+
"name": "maxWidth",
|
|
24415
|
+
"description": "Maximum frame width in pixels.",
|
|
24416
|
+
"optional": true,
|
|
24417
|
+
"type": "integer"
|
|
24418
|
+
},
|
|
24419
|
+
{
|
|
24420
|
+
"name": "maxHeight",
|
|
24421
|
+
"description": "Maximum frame height in pixels.",
|
|
24422
|
+
"optional": true,
|
|
24423
|
+
"type": "integer"
|
|
24424
|
+
},
|
|
24425
|
+
{
|
|
24426
|
+
"name": "frameRate",
|
|
24427
|
+
"description": "Maximum frame rate in frames per second.",
|
|
24428
|
+
"optional": true,
|
|
24429
|
+
"type": "integer"
|
|
24430
|
+
}
|
|
24431
|
+
],
|
|
24432
|
+
"returns": [
|
|
24433
|
+
{
|
|
24434
|
+
"name": "stream",
|
|
24435
|
+
"description": "A handle of the stream that holds resulting screencast data.",
|
|
24436
|
+
"experimental": true,
|
|
24437
|
+
"$ref": "IO.StreamHandle"
|
|
24438
|
+
}
|
|
24439
|
+
]
|
|
24440
|
+
},
|
|
24441
|
+
{
|
|
24442
|
+
"name": "stopScreenRecording",
|
|
24443
|
+
"description": "Stops screencast video recording.",
|
|
24444
|
+
"experimental": true,
|
|
24445
|
+
"returns": [
|
|
24446
|
+
{
|
|
24447
|
+
"name": "stream",
|
|
24448
|
+
"description": "A handle of the stream that holds resulting screencast data.",
|
|
24449
|
+
"experimental": true,
|
|
24450
|
+
"$ref": "IO.StreamHandle"
|
|
24451
|
+
}
|
|
24452
|
+
]
|
|
24453
|
+
},
|
|
24403
24454
|
{
|
|
24404
24455
|
"name": "stopLoading",
|
|
24405
24456
|
"description": "Force the page stop all navigations and pending resource fetches."
|
package/json/js_protocol.json
CHANGED
|
@@ -507,6 +507,13 @@
|
|
|
507
507
|
"experimental": true,
|
|
508
508
|
"optional": true,
|
|
509
509
|
"$ref": "Runtime.TimeDelta"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"name": "scopeNumber",
|
|
513
|
+
"description": "Specifies the scope number to evaluate the expression in (default: 0, innermost scope).",
|
|
514
|
+
"experimental": true,
|
|
515
|
+
"optional": true,
|
|
516
|
+
"type": "integer"
|
|
510
517
|
}
|
|
511
518
|
],
|
|
512
519
|
"returns": [
|
package/package.json
CHANGED
package/pdl/domains/Page.pdl
CHANGED
|
@@ -1175,6 +1175,26 @@ domain Page
|
|
|
1175
1175
|
# Send every n-th frame.
|
|
1176
1176
|
optional integer everyNthFrame
|
|
1177
1177
|
|
|
1178
|
+
# Starts screencast video recording.
|
|
1179
|
+
experimental command startScreenRecording
|
|
1180
|
+
parameters
|
|
1181
|
+
optional boolean audio
|
|
1182
|
+
# Maximum frame width in pixels.
|
|
1183
|
+
optional integer maxWidth
|
|
1184
|
+
# Maximum frame height in pixels.
|
|
1185
|
+
optional integer maxHeight
|
|
1186
|
+
# Maximum frame rate in frames per second.
|
|
1187
|
+
optional integer frameRate
|
|
1188
|
+
returns
|
|
1189
|
+
# A handle of the stream that holds resulting screencast data.
|
|
1190
|
+
experimental IO.StreamHandle stream
|
|
1191
|
+
|
|
1192
|
+
# Stops screencast video recording.
|
|
1193
|
+
experimental command stopScreenRecording
|
|
1194
|
+
returns
|
|
1195
|
+
# A handle of the stream that holds resulting screencast data.
|
|
1196
|
+
experimental IO.StreamHandle stream
|
|
1197
|
+
|
|
1178
1198
|
# Force the page stop all navigations and pending resource fetches.
|
|
1179
1199
|
command stopLoading
|
|
1180
1200
|
|
package/pdl/js_protocol.pdl
CHANGED
|
@@ -212,6 +212,8 @@ domain Debugger
|
|
|
212
212
|
optional boolean throwOnSideEffect
|
|
213
213
|
# Terminate execution after timing out (number of milliseconds).
|
|
214
214
|
experimental optional Runtime.TimeDelta timeout
|
|
215
|
+
# Specifies the scope number to evaluate the expression in (default: 0, innermost scope).
|
|
216
|
+
experimental optional integer scopeNumber
|
|
215
217
|
returns
|
|
216
218
|
# Object wrapper for the evaluation result.
|
|
217
219
|
Runtime.RemoteObject result
|
|
@@ -5203,6 +5203,22 @@ export namespace ProtocolMapping {
|
|
|
5203
5203
|
paramsType: [Protocol.Page.StartScreencastRequest?];
|
|
5204
5204
|
returnType: void;
|
|
5205
5205
|
};
|
|
5206
|
+
/**
|
|
5207
|
+
* Starts screencast video recording.
|
|
5208
|
+
* @experimental
|
|
5209
|
+
*/
|
|
5210
|
+
'Page.startScreenRecording': {
|
|
5211
|
+
paramsType: [Protocol.Page.StartScreenRecordingRequest?];
|
|
5212
|
+
returnType: Protocol.Page.StartScreenRecordingResponse;
|
|
5213
|
+
};
|
|
5214
|
+
/**
|
|
5215
|
+
* Stops screencast video recording.
|
|
5216
|
+
* @experimental
|
|
5217
|
+
*/
|
|
5218
|
+
'Page.stopScreenRecording': {
|
|
5219
|
+
paramsType: [];
|
|
5220
|
+
returnType: Protocol.Page.StopScreenRecordingResponse;
|
|
5221
|
+
};
|
|
5206
5222
|
/**
|
|
5207
5223
|
* Force the page stop all navigations and pending resource fetches.
|
|
5208
5224
|
*/
|
|
@@ -4057,6 +4057,18 @@ export namespace ProtocolProxyApi {
|
|
|
4057
4057
|
*/
|
|
4058
4058
|
startScreencast(params: Protocol.Page.StartScreencastRequest): Promise<void>;
|
|
4059
4059
|
|
|
4060
|
+
/**
|
|
4061
|
+
* Starts screencast video recording.
|
|
4062
|
+
* @experimental
|
|
4063
|
+
*/
|
|
4064
|
+
startScreenRecording(params: Protocol.Page.StartScreenRecordingRequest): Promise<Protocol.Page.StartScreenRecordingResponse>;
|
|
4065
|
+
|
|
4066
|
+
/**
|
|
4067
|
+
* Stops screencast video recording.
|
|
4068
|
+
* @experimental
|
|
4069
|
+
*/
|
|
4070
|
+
stopScreenRecording(): Promise<Protocol.Page.StopScreenRecordingResponse>;
|
|
4071
|
+
|
|
4060
4072
|
/**
|
|
4061
4073
|
* Force the page stop all navigations and pending resource fetches.
|
|
4062
4074
|
*/
|
|
@@ -4331,6 +4331,18 @@ export namespace ProtocolTestsProxyApi {
|
|
|
4331
4331
|
*/
|
|
4332
4332
|
startScreencast(params: Protocol.Page.StartScreencastRequest): Promise<{id: number, result: void, sessionId: string}>;
|
|
4333
4333
|
|
|
4334
|
+
/**
|
|
4335
|
+
* Starts screencast video recording.
|
|
4336
|
+
* @experimental
|
|
4337
|
+
*/
|
|
4338
|
+
startScreenRecording(params: Protocol.Page.StartScreenRecordingRequest): Promise<{id: number, result: Protocol.Page.StartScreenRecordingResponse, sessionId: string}>;
|
|
4339
|
+
|
|
4340
|
+
/**
|
|
4341
|
+
* Stops screencast video recording.
|
|
4342
|
+
* @experimental
|
|
4343
|
+
*/
|
|
4344
|
+
stopScreenRecording(): Promise<{id: number, result: Protocol.Page.StopScreenRecordingResponse, sessionId: string}>;
|
|
4345
|
+
|
|
4334
4346
|
/**
|
|
4335
4347
|
* Force the page stop all navigations and pending resource fetches.
|
|
4336
4348
|
*/
|
package/types/protocol.d.ts
CHANGED
|
@@ -381,6 +381,11 @@ export namespace Protocol {
|
|
|
381
381
|
* @experimental
|
|
382
382
|
*/
|
|
383
383
|
timeout?: Runtime.TimeDelta;
|
|
384
|
+
/**
|
|
385
|
+
* Specifies the scope number to evaluate the expression in (default: 0, innermost scope).
|
|
386
|
+
* @experimental
|
|
387
|
+
*/
|
|
388
|
+
scopeNumber?: integer;
|
|
384
389
|
}
|
|
385
390
|
|
|
386
391
|
export interface EvaluateOnCallFrameResponse {
|
|
@@ -18161,6 +18166,38 @@ export namespace Protocol {
|
|
|
18161
18166
|
everyNthFrame?: integer;
|
|
18162
18167
|
}
|
|
18163
18168
|
|
|
18169
|
+
export interface StartScreenRecordingRequest {
|
|
18170
|
+
audio?: boolean;
|
|
18171
|
+
/**
|
|
18172
|
+
* Maximum frame width in pixels.
|
|
18173
|
+
*/
|
|
18174
|
+
maxWidth?: integer;
|
|
18175
|
+
/**
|
|
18176
|
+
* Maximum frame height in pixels.
|
|
18177
|
+
*/
|
|
18178
|
+
maxHeight?: integer;
|
|
18179
|
+
/**
|
|
18180
|
+
* Maximum frame rate in frames per second.
|
|
18181
|
+
*/
|
|
18182
|
+
frameRate?: integer;
|
|
18183
|
+
}
|
|
18184
|
+
|
|
18185
|
+
export interface StartScreenRecordingResponse {
|
|
18186
|
+
/**
|
|
18187
|
+
* A handle of the stream that holds resulting screencast data.
|
|
18188
|
+
* @experimental
|
|
18189
|
+
*/
|
|
18190
|
+
stream: IO.StreamHandle;
|
|
18191
|
+
}
|
|
18192
|
+
|
|
18193
|
+
export interface StopScreenRecordingResponse {
|
|
18194
|
+
/**
|
|
18195
|
+
* A handle of the stream that holds resulting screencast data.
|
|
18196
|
+
* @experimental
|
|
18197
|
+
*/
|
|
18198
|
+
stream: IO.StreamHandle;
|
|
18199
|
+
}
|
|
18200
|
+
|
|
18164
18201
|
export const enum SetWebLifecycleStateRequestState {
|
|
18165
18202
|
Frozen = 'frozen',
|
|
18166
18203
|
Active = 'active',
|