devtools-protocol 0.0.1349043 → 0.0.1349977
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.
@@ -5930,6 +5930,12 @@
|
|
5930
5930
|
"name": "assignedSlot",
|
5931
5931
|
"optional": true,
|
5932
5932
|
"$ref": "BackendNode"
|
5933
|
+
},
|
5934
|
+
{
|
5935
|
+
"name": "isScrollable",
|
5936
|
+
"experimental": true,
|
5937
|
+
"optional": true,
|
5938
|
+
"type": "boolean"
|
5933
5939
|
}
|
5934
5940
|
]
|
5935
5941
|
},
|
@@ -7400,6 +7406,23 @@
|
|
7400
7406
|
"description": "Called when top layer elements are changed.",
|
7401
7407
|
"experimental": true
|
7402
7408
|
},
|
7409
|
+
{
|
7410
|
+
"name": "scrollableFlagUpdated",
|
7411
|
+
"description": "Fired when a node's scrollability state changes.",
|
7412
|
+
"experimental": true,
|
7413
|
+
"parameters": [
|
7414
|
+
{
|
7415
|
+
"name": "nodeId",
|
7416
|
+
"description": "The id of the node.",
|
7417
|
+
"$ref": "DOM.NodeId"
|
7418
|
+
},
|
7419
|
+
{
|
7420
|
+
"name": "isScrollable",
|
7421
|
+
"description": "If the node is scrollable.",
|
7422
|
+
"type": "boolean"
|
7423
|
+
}
|
7424
|
+
]
|
7425
|
+
},
|
7403
7426
|
{
|
7404
7427
|
"name": "pseudoElementRemoved",
|
7405
7428
|
"description": "Called when a pseudo element is removed from an element.",
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -2807,6 +2807,7 @@ domain DOM
|
|
2807
2807
|
optional boolean isSVG
|
2808
2808
|
optional CompatibilityMode compatibilityMode
|
2809
2809
|
optional BackendNode assignedSlot
|
2810
|
+
experimental optional boolean isScrollable
|
2810
2811
|
|
2811
2812
|
# A structure to hold the top-level node of a detached tree and an array of its retained descendants.
|
2812
2813
|
type DetachedElementInfo extends object
|
@@ -3496,6 +3497,14 @@ domain DOM
|
|
3496
3497
|
# Called when top layer elements are changed.
|
3497
3498
|
experimental event topLayerElementsUpdated
|
3498
3499
|
|
3500
|
+
# Fired when a node's scrollability state changes.
|
3501
|
+
experimental event scrollableFlagUpdated
|
3502
|
+
parameters
|
3503
|
+
# The id of the node.
|
3504
|
+
DOM.NodeId nodeId
|
3505
|
+
# If the node is scrollable.
|
3506
|
+
boolean isScrollable
|
3507
|
+
|
3499
3508
|
# Called when a pseudo element is removed from an element.
|
3500
3509
|
experimental event pseudoElementRemoved
|
3501
3510
|
parameters
|
@@ -215,6 +215,10 @@ export namespace ProtocolMapping {
|
|
215
215
|
* Called when top layer elements are changed.
|
216
216
|
*/
|
217
217
|
'DOM.topLayerElementsUpdated': [];
|
218
|
+
/**
|
219
|
+
* Fired when a node's scrollability state changes.
|
220
|
+
*/
|
221
|
+
'DOM.scrollableFlagUpdated': [Protocol.DOM.ScrollableFlagUpdatedEvent];
|
218
222
|
/**
|
219
223
|
* Called when a pseudo element is removed from an element.
|
220
224
|
*/
|
@@ -1632,6 +1632,11 @@ export namespace ProtocolProxyApi {
|
|
1632
1632
|
*/
|
1633
1633
|
on(event: 'topLayerElementsUpdated', listener: () => void): void;
|
1634
1634
|
|
1635
|
+
/**
|
1636
|
+
* Fired when a node's scrollability state changes.
|
1637
|
+
*/
|
1638
|
+
on(event: 'scrollableFlagUpdated', listener: (params: Protocol.DOM.ScrollableFlagUpdatedEvent) => void): void;
|
1639
|
+
|
1635
1640
|
/**
|
1636
1641
|
* Called when a pseudo element is removed from an element.
|
1637
1642
|
*/
|
@@ -1736,6 +1736,13 @@ export namespace ProtocolTestsProxyApi {
|
|
1736
1736
|
offTopLayerElementsUpdated(listener: (event: ) => void): void;
|
1737
1737
|
onceTopLayerElementsUpdated(eventMatcher?: (event: ) => boolean): Promise<>;
|
1738
1738
|
|
1739
|
+
/**
|
1740
|
+
* Fired when a node's scrollability state changes.
|
1741
|
+
*/
|
1742
|
+
onScrollableFlagUpdated(listener: (event: { params: Protocol.DOM.ScrollableFlagUpdatedEvent }) => void): void;
|
1743
|
+
offScrollableFlagUpdated(listener: (event: { params: Protocol.DOM.ScrollableFlagUpdatedEvent }) => void): void;
|
1744
|
+
onceScrollableFlagUpdated(eventMatcher?: (event: { params: Protocol.DOM.ScrollableFlagUpdatedEvent }) => boolean): Promise<{ params: Protocol.DOM.ScrollableFlagUpdatedEvent }>;
|
1745
|
+
|
1739
1746
|
/**
|
1740
1747
|
* Called when a pseudo element is removed from an element.
|
1741
1748
|
*/
|
package/types/protocol.d.ts
CHANGED
@@ -6172,6 +6172,7 @@ export namespace Protocol {
|
|
6172
6172
|
isSVG?: boolean;
|
6173
6173
|
compatibilityMode?: CompatibilityMode;
|
6174
6174
|
assignedSlot?: BackendNode;
|
6175
|
+
isScrollable?: boolean;
|
6175
6176
|
}
|
6176
6177
|
|
6177
6178
|
/**
|
@@ -7174,6 +7175,20 @@ export namespace Protocol {
|
|
7174
7175
|
pseudoElement: Node;
|
7175
7176
|
}
|
7176
7177
|
|
7178
|
+
/**
|
7179
|
+
* Fired when a node's scrollability state changes.
|
7180
|
+
*/
|
7181
|
+
export interface ScrollableFlagUpdatedEvent {
|
7182
|
+
/**
|
7183
|
+
* The id of the node.
|
7184
|
+
*/
|
7185
|
+
nodeId: DOM.NodeId;
|
7186
|
+
/**
|
7187
|
+
* If the node is scrollable.
|
7188
|
+
*/
|
7189
|
+
isScrollable: boolean;
|
7190
|
+
}
|
7191
|
+
|
7177
7192
|
/**
|
7178
7193
|
* Called when a pseudo element is removed from an element.
|
7179
7194
|
*/
|