devtools-protocol 0.0.868034 → 0.0.869402
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/changelog.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## Roll protocol to r868034
|
|
4
|
+
###### _2021-03-31 03:16:20_ | Diff: [3948369...a3a5f92](https://github.com/ChromeDevTools/devtools-protocol/compare/3948369...a3a5f92)
|
|
5
|
+
#### `Overlay`: new command
|
|
6
|
+
* [`Overlay.setShowScrollSnapOverlays`](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#method-setShowScrollSnapOverlays)
|
|
7
|
+
#### `Overlay`: new types
|
|
8
|
+
* [`Overlay.ScrollSnapContainerHighlightConfig`](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#type-ScrollSnapContainerHighlightConfig)
|
|
9
|
+
* [`Overlay.ScrollSnapHighlightConfig`](https://chromedevtools.github.io/devtools-protocol/tot/Overlay/#type-ScrollSnapHighlightConfig)
|
|
10
|
+
|
|
11
|
+
|
|
3
12
|
## Roll protocol to r867593
|
|
4
13
|
###### _2021-03-30 07:16:08_ | Diff: [154b166...3948369](https://github.com/ChromeDevTools/devtools-protocol/compare/154b166...3948369)
|
|
5
14
|
#### `Overlay`: removed command
|
|
@@ -8295,9 +8295,95 @@
|
|
|
8295
8295
|
"id": "TimeSinceEpoch",
|
|
8296
8296
|
"description": "UTC time in seconds, counted from January 1, 1970.",
|
|
8297
8297
|
"type": "number"
|
|
8298
|
+
},
|
|
8299
|
+
{
|
|
8300
|
+
"id": "DragDataItem",
|
|
8301
|
+
"experimental": true,
|
|
8302
|
+
"type": "object",
|
|
8303
|
+
"properties": [
|
|
8304
|
+
{
|
|
8305
|
+
"name": "mimeType",
|
|
8306
|
+
"description": "Mime type of the dragged data.",
|
|
8307
|
+
"type": "string"
|
|
8308
|
+
},
|
|
8309
|
+
{
|
|
8310
|
+
"name": "data",
|
|
8311
|
+
"description": "Depending of the value of `mimeType`, it contains the dragged link,\ntext, HTML markup or any other data.",
|
|
8312
|
+
"type": "string"
|
|
8313
|
+
},
|
|
8314
|
+
{
|
|
8315
|
+
"name": "title",
|
|
8316
|
+
"description": "Title associated with a link. Only valid when `mimeType` == \"text/uri-list\".",
|
|
8317
|
+
"optional": true,
|
|
8318
|
+
"type": "string"
|
|
8319
|
+
},
|
|
8320
|
+
{
|
|
8321
|
+
"name": "baseURL",
|
|
8322
|
+
"description": "Stores the base URL for the contained markup. Only valid when `mimeType`\n== \"text/html\".",
|
|
8323
|
+
"optional": true,
|
|
8324
|
+
"type": "string"
|
|
8325
|
+
}
|
|
8326
|
+
]
|
|
8327
|
+
},
|
|
8328
|
+
{
|
|
8329
|
+
"id": "DragData",
|
|
8330
|
+
"experimental": true,
|
|
8331
|
+
"type": "object",
|
|
8332
|
+
"properties": [
|
|
8333
|
+
{
|
|
8334
|
+
"name": "items",
|
|
8335
|
+
"type": "array",
|
|
8336
|
+
"items": {
|
|
8337
|
+
"$ref": "DragDataItem"
|
|
8338
|
+
}
|
|
8339
|
+
},
|
|
8340
|
+
{
|
|
8341
|
+
"name": "dragOperationsMask",
|
|
8342
|
+
"description": "Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16",
|
|
8343
|
+
"type": "integer"
|
|
8344
|
+
}
|
|
8345
|
+
]
|
|
8298
8346
|
}
|
|
8299
8347
|
],
|
|
8300
8348
|
"commands": [
|
|
8349
|
+
{
|
|
8350
|
+
"name": "dispatchDragEvent",
|
|
8351
|
+
"description": "Dispatches a drag event into the page.",
|
|
8352
|
+
"experimental": true,
|
|
8353
|
+
"parameters": [
|
|
8354
|
+
{
|
|
8355
|
+
"name": "type",
|
|
8356
|
+
"description": "Type of the drag event.",
|
|
8357
|
+
"type": "string",
|
|
8358
|
+
"enum": [
|
|
8359
|
+
"dragEnter",
|
|
8360
|
+
"dragOver",
|
|
8361
|
+
"drop",
|
|
8362
|
+
"dragCancel"
|
|
8363
|
+
]
|
|
8364
|
+
},
|
|
8365
|
+
{
|
|
8366
|
+
"name": "x",
|
|
8367
|
+
"description": "X coordinate of the event relative to the main frame's viewport in CSS pixels.",
|
|
8368
|
+
"type": "number"
|
|
8369
|
+
},
|
|
8370
|
+
{
|
|
8371
|
+
"name": "y",
|
|
8372
|
+
"description": "Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to\nthe top of the viewport and Y increases as it proceeds towards the bottom of the viewport.",
|
|
8373
|
+
"type": "number"
|
|
8374
|
+
},
|
|
8375
|
+
{
|
|
8376
|
+
"name": "data",
|
|
8377
|
+
"$ref": "DragData"
|
|
8378
|
+
},
|
|
8379
|
+
{
|
|
8380
|
+
"name": "modifiers",
|
|
8381
|
+
"description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8\n(default: 0).",
|
|
8382
|
+
"optional": true,
|
|
8383
|
+
"type": "integer"
|
|
8384
|
+
}
|
|
8385
|
+
]
|
|
8386
|
+
},
|
|
8301
8387
|
{
|
|
8302
8388
|
"name": "dispatchKeyEvent",
|
|
8303
8389
|
"description": "Dispatches a key event to the page.",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
|
@@ -3766,6 +3766,47 @@ domain Input
|
|
|
3766
3766
|
# UTC time in seconds, counted from January 1, 1970.
|
|
3767
3767
|
type TimeSinceEpoch extends number
|
|
3768
3768
|
|
|
3769
|
+
experimental type DragDataItem extends object
|
|
3770
|
+
properties
|
|
3771
|
+
# Mime type of the dragged data.
|
|
3772
|
+
string mimeType
|
|
3773
|
+
# Depending of the value of `mimeType`, it contains the dragged link,
|
|
3774
|
+
# text, HTML markup or any other data.
|
|
3775
|
+
string data
|
|
3776
|
+
|
|
3777
|
+
# Title associated with a link. Only valid when `mimeType` == "text/uri-list".
|
|
3778
|
+
optional string title
|
|
3779
|
+
|
|
3780
|
+
# Stores the base URL for the contained markup. Only valid when `mimeType`
|
|
3781
|
+
# == "text/html".
|
|
3782
|
+
optional string baseURL
|
|
3783
|
+
|
|
3784
|
+
|
|
3785
|
+
experimental type DragData extends object
|
|
3786
|
+
properties
|
|
3787
|
+
array of DragDataItem items
|
|
3788
|
+
# Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16
|
|
3789
|
+
integer dragOperationsMask
|
|
3790
|
+
|
|
3791
|
+
# Dispatches a drag event into the page.
|
|
3792
|
+
experimental command dispatchDragEvent
|
|
3793
|
+
parameters
|
|
3794
|
+
# Type of the drag event.
|
|
3795
|
+
enum type
|
|
3796
|
+
dragEnter
|
|
3797
|
+
dragOver
|
|
3798
|
+
drop
|
|
3799
|
+
dragCancel
|
|
3800
|
+
# X coordinate of the event relative to the main frame's viewport in CSS pixels.
|
|
3801
|
+
number x
|
|
3802
|
+
# Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
|
|
3803
|
+
# the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
|
|
3804
|
+
number y
|
|
3805
|
+
DragData data
|
|
3806
|
+
# Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
|
|
3807
|
+
# (default: 0).
|
|
3808
|
+
optional integer modifiers
|
|
3809
|
+
|
|
3769
3810
|
# Dispatches a key event to the page.
|
|
3770
3811
|
command dispatchKeyEvent
|
|
3771
3812
|
parameters
|
|
@@ -2593,6 +2593,13 @@ export namespace ProtocolMapping {
|
|
|
2593
2593
|
paramsType: [Protocol.IndexedDB.RequestDatabaseNamesRequest];
|
|
2594
2594
|
returnType: Protocol.IndexedDB.RequestDatabaseNamesResponse;
|
|
2595
2595
|
};
|
|
2596
|
+
/**
|
|
2597
|
+
* Dispatches a drag event into the page.
|
|
2598
|
+
*/
|
|
2599
|
+
'Input.dispatchDragEvent': {
|
|
2600
|
+
paramsType: [Protocol.Input.DispatchDragEventRequest];
|
|
2601
|
+
returnType: void;
|
|
2602
|
+
};
|
|
2596
2603
|
/**
|
|
2597
2604
|
* Dispatches a key event to the page.
|
|
2598
2605
|
*/
|
|
@@ -1851,6 +1851,11 @@ export namespace ProtocolProxyApi {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
|
|
1853
1853
|
export interface InputApi {
|
|
1854
|
+
/**
|
|
1855
|
+
* Dispatches a drag event into the page.
|
|
1856
|
+
*/
|
|
1857
|
+
dispatchDragEvent(params: Protocol.Input.DispatchDragEventRequest): Promise<void>;
|
|
1858
|
+
|
|
1854
1859
|
/**
|
|
1855
1860
|
* Dispatches a key event to the page.
|
|
1856
1861
|
*/
|
package/types/protocol.d.ts
CHANGED
|
@@ -7700,6 +7700,64 @@ export namespace Protocol {
|
|
|
7700
7700
|
*/
|
|
7701
7701
|
export type TimeSinceEpoch = number;
|
|
7702
7702
|
|
|
7703
|
+
export interface DragDataItem {
|
|
7704
|
+
/**
|
|
7705
|
+
* Mime type of the dragged data.
|
|
7706
|
+
*/
|
|
7707
|
+
mimeType: string;
|
|
7708
|
+
/**
|
|
7709
|
+
* Depending of the value of `mimeType`, it contains the dragged link,
|
|
7710
|
+
* text, HTML markup or any other data.
|
|
7711
|
+
*/
|
|
7712
|
+
data: string;
|
|
7713
|
+
/**
|
|
7714
|
+
* Title associated with a link. Only valid when `mimeType` == "text/uri-list".
|
|
7715
|
+
*/
|
|
7716
|
+
title?: string;
|
|
7717
|
+
/**
|
|
7718
|
+
* Stores the base URL for the contained markup. Only valid when `mimeType`
|
|
7719
|
+
* == "text/html".
|
|
7720
|
+
*/
|
|
7721
|
+
baseURL?: string;
|
|
7722
|
+
}
|
|
7723
|
+
|
|
7724
|
+
export interface DragData {
|
|
7725
|
+
items: DragDataItem[];
|
|
7726
|
+
/**
|
|
7727
|
+
* Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16
|
|
7728
|
+
*/
|
|
7729
|
+
dragOperationsMask: integer;
|
|
7730
|
+
}
|
|
7731
|
+
|
|
7732
|
+
export const enum DispatchDragEventRequestType {
|
|
7733
|
+
DragEnter = 'dragEnter',
|
|
7734
|
+
DragOver = 'dragOver',
|
|
7735
|
+
Drop = 'drop',
|
|
7736
|
+
DragCancel = 'dragCancel',
|
|
7737
|
+
}
|
|
7738
|
+
|
|
7739
|
+
export interface DispatchDragEventRequest {
|
|
7740
|
+
/**
|
|
7741
|
+
* Type of the drag event. (DispatchDragEventRequestType enum)
|
|
7742
|
+
*/
|
|
7743
|
+
type: ('dragEnter' | 'dragOver' | 'drop' | 'dragCancel');
|
|
7744
|
+
/**
|
|
7745
|
+
* X coordinate of the event relative to the main frame's viewport in CSS pixels.
|
|
7746
|
+
*/
|
|
7747
|
+
x: number;
|
|
7748
|
+
/**
|
|
7749
|
+
* Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to
|
|
7750
|
+
* the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
|
|
7751
|
+
*/
|
|
7752
|
+
y: number;
|
|
7753
|
+
data: DragData;
|
|
7754
|
+
/**
|
|
7755
|
+
* Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
|
|
7756
|
+
* (default: 0).
|
|
7757
|
+
*/
|
|
7758
|
+
modifiers?: integer;
|
|
7759
|
+
}
|
|
7760
|
+
|
|
7703
7761
|
export const enum DispatchKeyEventRequestType {
|
|
7704
7762
|
KeyDown = 'keyDown',
|
|
7705
7763
|
KeyUp = 'keyUp',
|