devtools-protocol 0.0.972883 → 0.0.974265
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.
@@ -2877,6 +2877,16 @@
|
|
2877
2877
|
"items": {
|
2878
2878
|
"$ref": "CSSSupports"
|
2879
2879
|
}
|
2880
|
+
},
|
2881
|
+
{
|
2882
|
+
"name": "layers",
|
2883
|
+
"description": "Cascade layer array. Contains the layer hierarchy that this rule belongs to starting\nwith the innermost layer and going outwards.",
|
2884
|
+
"experimental": true,
|
2885
|
+
"optional": true,
|
2886
|
+
"type": "array",
|
2887
|
+
"items": {
|
2888
|
+
"$ref": "CSSLayer"
|
2889
|
+
}
|
2880
2890
|
}
|
2881
2891
|
]
|
2882
2892
|
},
|
@@ -3226,6 +3236,58 @@
|
|
3226
3236
|
}
|
3227
3237
|
]
|
3228
3238
|
},
|
3239
|
+
{
|
3240
|
+
"id": "CSSLayer",
|
3241
|
+
"description": "CSS Layer at-rule descriptor.",
|
3242
|
+
"experimental": true,
|
3243
|
+
"type": "object",
|
3244
|
+
"properties": [
|
3245
|
+
{
|
3246
|
+
"name": "text",
|
3247
|
+
"description": "Layer name.",
|
3248
|
+
"type": "string"
|
3249
|
+
},
|
3250
|
+
{
|
3251
|
+
"name": "range",
|
3252
|
+
"description": "The associated rule header range in the enclosing stylesheet (if\navailable).",
|
3253
|
+
"optional": true,
|
3254
|
+
"$ref": "SourceRange"
|
3255
|
+
},
|
3256
|
+
{
|
3257
|
+
"name": "styleSheetId",
|
3258
|
+
"description": "Identifier of the stylesheet containing this object (if exists).",
|
3259
|
+
"optional": true,
|
3260
|
+
"$ref": "StyleSheetId"
|
3261
|
+
}
|
3262
|
+
]
|
3263
|
+
},
|
3264
|
+
{
|
3265
|
+
"id": "CSSLayerData",
|
3266
|
+
"description": "CSS Layer data.",
|
3267
|
+
"experimental": true,
|
3268
|
+
"type": "object",
|
3269
|
+
"properties": [
|
3270
|
+
{
|
3271
|
+
"name": "name",
|
3272
|
+
"description": "Layer name.",
|
3273
|
+
"type": "string"
|
3274
|
+
},
|
3275
|
+
{
|
3276
|
+
"name": "subLayers",
|
3277
|
+
"description": "Direct sub-layers",
|
3278
|
+
"optional": true,
|
3279
|
+
"type": "array",
|
3280
|
+
"items": {
|
3281
|
+
"$ref": "CSSLayerData"
|
3282
|
+
}
|
3283
|
+
},
|
3284
|
+
{
|
3285
|
+
"name": "order",
|
3286
|
+
"description": "Layer order. The order determines the order of the layer in the cascade order.\nA higher number has higher priority in the cascade order.",
|
3287
|
+
"type": "number"
|
3288
|
+
}
|
3289
|
+
]
|
3290
|
+
},
|
3229
3291
|
{
|
3230
3292
|
"id": "PlatformFontUsage",
|
3231
3293
|
"description": "Information about amount of glyphs that were rendered with given font.",
|
@@ -3688,6 +3750,23 @@
|
|
3688
3750
|
}
|
3689
3751
|
]
|
3690
3752
|
},
|
3753
|
+
{
|
3754
|
+
"name": "getLayersForNode",
|
3755
|
+
"description": "Returns all layers parsed by the rendering engine for the tree scope of a node.\nGiven a DOM element identified by nodeId, getLayersForNode returns the root\nlayer for the nearest ancestor document or shadow root. The layer root contains\nthe full layer tree for the tree scope and their ordering.",
|
3756
|
+
"experimental": true,
|
3757
|
+
"parameters": [
|
3758
|
+
{
|
3759
|
+
"name": "nodeId",
|
3760
|
+
"$ref": "DOM.NodeId"
|
3761
|
+
}
|
3762
|
+
],
|
3763
|
+
"returns": [
|
3764
|
+
{
|
3765
|
+
"name": "rootLayer",
|
3766
|
+
"$ref": "CSSLayerData"
|
3767
|
+
}
|
3768
|
+
]
|
3769
|
+
},
|
3691
3770
|
{
|
3692
3771
|
"name": "trackComputedStyleUpdates",
|
3693
3772
|
"description": "Starts tracking the given computed styles for updates. The specified array of properties\nreplaces the one previously specified. Pass empty array to disable tracking.\nUse takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.\nThe changes to computed style properties are only tracked for nodes pushed to the front-end\nby the DOM agent. If no changes to the tracked properties occur after the node has been pushed\nto the front-end, no updates will be issued for the node.",
|
@@ -4429,10 +4508,11 @@
|
|
4429
4508
|
"scrollbar-corner",
|
4430
4509
|
"resizer",
|
4431
4510
|
"input-list-button",
|
4432
|
-
"transition",
|
4433
|
-
"transition-container",
|
4434
|
-
"transition-
|
4435
|
-
"transition-
|
4511
|
+
"page-transition",
|
4512
|
+
"page-transition-container",
|
4513
|
+
"page-transition-image-wrapper",
|
4514
|
+
"page-transition-outgoing-image",
|
4515
|
+
"page-transition-incoming-image"
|
4436
4516
|
]
|
4437
4517
|
},
|
4438
4518
|
{
|
@@ -8149,6 +8229,18 @@
|
|
8149
8229
|
"$ref": "UserAgentMetadata"
|
8150
8230
|
}
|
8151
8231
|
]
|
8232
|
+
},
|
8233
|
+
{
|
8234
|
+
"name": "setAutomationOverride",
|
8235
|
+
"description": "Allows overriding the automation flag.",
|
8236
|
+
"experimental": true,
|
8237
|
+
"parameters": [
|
8238
|
+
{
|
8239
|
+
"name": "enabled",
|
8240
|
+
"description": "Whether the override should be enabled.",
|
8241
|
+
"type": "boolean"
|
8242
|
+
}
|
8243
|
+
]
|
8152
8244
|
}
|
8153
8245
|
],
|
8154
8246
|
"events": [
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -1388,6 +1388,9 @@ experimental domain CSS
|
|
1388
1388
|
# @supports CSS at-rule array.
|
1389
1389
|
# The array enumerates @supports at-rules starting with the innermost one, going outwards.
|
1390
1390
|
experimental optional array of CSSSupports supports
|
1391
|
+
# Cascade layer array. Contains the layer hierarchy that this rule belongs to starting
|
1392
|
+
# with the innermost layer and going outwards.
|
1393
|
+
experimental optional array of CSSLayer layers
|
1391
1394
|
|
1392
1395
|
# CSS coverage information.
|
1393
1396
|
type RuleUsage extends object
|
@@ -1535,6 +1538,28 @@ experimental domain CSS
|
|
1535
1538
|
# Identifier of the stylesheet containing this object (if exists).
|
1536
1539
|
optional StyleSheetId styleSheetId
|
1537
1540
|
|
1541
|
+
# CSS Layer at-rule descriptor.
|
1542
|
+
experimental type CSSLayer extends object
|
1543
|
+
properties
|
1544
|
+
# Layer name.
|
1545
|
+
string text
|
1546
|
+
# The associated rule header range in the enclosing stylesheet (if
|
1547
|
+
# available).
|
1548
|
+
optional SourceRange range
|
1549
|
+
# Identifier of the stylesheet containing this object (if exists).
|
1550
|
+
optional StyleSheetId styleSheetId
|
1551
|
+
|
1552
|
+
# CSS Layer data.
|
1553
|
+
experimental type CSSLayerData extends object
|
1554
|
+
properties
|
1555
|
+
# Layer name.
|
1556
|
+
string name
|
1557
|
+
# Direct sub-layers
|
1558
|
+
optional array of CSSLayerData subLayers
|
1559
|
+
# Layer order. The order determines the order of the layer in the cascade order.
|
1560
|
+
# A higher number has higher priority in the cascade order.
|
1561
|
+
number order
|
1562
|
+
|
1538
1563
|
# Information about amount of glyphs that were rendered with given font.
|
1539
1564
|
type PlatformFontUsage extends object
|
1540
1565
|
properties
|
@@ -1736,6 +1761,16 @@ experimental domain CSS
|
|
1736
1761
|
# The stylesheet text.
|
1737
1762
|
string text
|
1738
1763
|
|
1764
|
+
# Returns all layers parsed by the rendering engine for the tree scope of a node.
|
1765
|
+
# Given a DOM element identified by nodeId, getLayersForNode returns the root
|
1766
|
+
# layer for the nearest ancestor document or shadow root. The layer root contains
|
1767
|
+
# the full layer tree for the tree scope and their ordering.
|
1768
|
+
experimental command getLayersForNode
|
1769
|
+
parameters
|
1770
|
+
DOM.NodeId nodeId
|
1771
|
+
returns
|
1772
|
+
CSSLayerData rootLayer
|
1773
|
+
|
1739
1774
|
# Starts tracking the given computed styles for updates. The specified array of properties
|
1740
1775
|
# replaces the one previously specified. Pass empty array to disable tracking.
|
1741
1776
|
# Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.
|
@@ -2096,10 +2131,11 @@ domain DOM
|
|
2096
2131
|
scrollbar-corner
|
2097
2132
|
resizer
|
2098
2133
|
input-list-button
|
2099
|
-
transition
|
2100
|
-
transition-container
|
2101
|
-
transition-
|
2102
|
-
transition-
|
2134
|
+
page-transition
|
2135
|
+
page-transition-container
|
2136
|
+
page-transition-image-wrapper
|
2137
|
+
page-transition-outgoing-image
|
2138
|
+
page-transition-incoming-image
|
2103
2139
|
|
2104
2140
|
# Shadow root type.
|
2105
2141
|
type ShadowRootType extends string
|
@@ -3722,6 +3758,12 @@ domain Emulation
|
|
3722
3758
|
# To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
|
3723
3759
|
experimental optional UserAgentMetadata userAgentMetadata
|
3724
3760
|
|
3761
|
+
# Allows overriding the automation flag.
|
3762
|
+
experimental command setAutomationOverride
|
3763
|
+
parameters
|
3764
|
+
# Whether the override should be enabled.
|
3765
|
+
boolean enabled
|
3766
|
+
|
3725
3767
|
# This domain provides experimental commands only supported in headless mode.
|
3726
3768
|
experimental domain HeadlessExperimental
|
3727
3769
|
depends on Page
|
@@ -1634,6 +1634,16 @@ export namespace ProtocolMapping {
|
|
1634
1634
|
paramsType: [Protocol.CSS.GetStyleSheetTextRequest];
|
1635
1635
|
returnType: Protocol.CSS.GetStyleSheetTextResponse;
|
1636
1636
|
};
|
1637
|
+
/**
|
1638
|
+
* Returns all layers parsed by the rendering engine for the tree scope of a node.
|
1639
|
+
* Given a DOM element identified by nodeId, getLayersForNode returns the root
|
1640
|
+
* layer for the nearest ancestor document or shadow root. The layer root contains
|
1641
|
+
* the full layer tree for the tree scope and their ordering.
|
1642
|
+
*/
|
1643
|
+
'CSS.getLayersForNode': {
|
1644
|
+
paramsType: [Protocol.CSS.GetLayersForNodeRequest];
|
1645
|
+
returnType: Protocol.CSS.GetLayersForNodeResponse;
|
1646
|
+
};
|
1637
1647
|
/**
|
1638
1648
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
1639
1649
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -2547,6 +2557,13 @@ export namespace ProtocolMapping {
|
|
2547
2557
|
paramsType: [Protocol.Emulation.SetUserAgentOverrideRequest];
|
2548
2558
|
returnType: void;
|
2549
2559
|
};
|
2560
|
+
/**
|
2561
|
+
* Allows overriding the automation flag.
|
2562
|
+
*/
|
2563
|
+
'Emulation.setAutomationOverride': {
|
2564
|
+
paramsType: [Protocol.Emulation.SetAutomationOverrideRequest];
|
2565
|
+
returnType: void;
|
2566
|
+
};
|
2550
2567
|
/**
|
2551
2568
|
* Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a
|
2552
2569
|
* screenshot from the resulting frame. Requires that the target was created with enabled
|
@@ -963,6 +963,14 @@ export namespace ProtocolProxyApi {
|
|
963
963
|
*/
|
964
964
|
getStyleSheetText(params: Protocol.CSS.GetStyleSheetTextRequest): Promise<Protocol.CSS.GetStyleSheetTextResponse>;
|
965
965
|
|
966
|
+
/**
|
967
|
+
* Returns all layers parsed by the rendering engine for the tree scope of a node.
|
968
|
+
* Given a DOM element identified by nodeId, getLayersForNode returns the root
|
969
|
+
* layer for the nearest ancestor document or shadow root. The layer root contains
|
970
|
+
* the full layer tree for the tree scope and their ordering.
|
971
|
+
*/
|
972
|
+
getLayersForNode(params: Protocol.CSS.GetLayersForNodeRequest): Promise<Protocol.CSS.GetLayersForNodeResponse>;
|
973
|
+
|
966
974
|
/**
|
967
975
|
* Starts tracking the given computed styles for updates. The specified array of properties
|
968
976
|
* replaces the one previously specified. Pass empty array to disable tracking.
|
@@ -1770,6 +1778,11 @@ export namespace ProtocolProxyApi {
|
|
1770
1778
|
*/
|
1771
1779
|
setUserAgentOverride(params: Protocol.Emulation.SetUserAgentOverrideRequest): Promise<void>;
|
1772
1780
|
|
1781
|
+
/**
|
1782
|
+
* Allows overriding the automation flag.
|
1783
|
+
*/
|
1784
|
+
setAutomationOverride(params: Protocol.Emulation.SetAutomationOverrideRequest): Promise<void>;
|
1785
|
+
|
1773
1786
|
/**
|
1774
1787
|
* Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
|
1775
1788
|
*/
|
package/types/protocol.d.ts
CHANGED
@@ -4115,6 +4115,11 @@ export namespace Protocol {
|
|
4115
4115
|
* The array enumerates @supports at-rules starting with the innermost one, going outwards.
|
4116
4116
|
*/
|
4117
4117
|
supports?: CSSSupports[];
|
4118
|
+
/**
|
4119
|
+
* Cascade layer array. Contains the layer hierarchy that this rule belongs to starting
|
4120
|
+
* with the innermost layer and going outwards.
|
4121
|
+
*/
|
4122
|
+
layers?: CSSLayer[];
|
4118
4123
|
}
|
4119
4124
|
|
4120
4125
|
/**
|
@@ -4376,6 +4381,44 @@ export namespace Protocol {
|
|
4376
4381
|
styleSheetId?: StyleSheetId;
|
4377
4382
|
}
|
4378
4383
|
|
4384
|
+
/**
|
4385
|
+
* CSS Layer at-rule descriptor.
|
4386
|
+
*/
|
4387
|
+
export interface CSSLayer {
|
4388
|
+
/**
|
4389
|
+
* Layer name.
|
4390
|
+
*/
|
4391
|
+
text: string;
|
4392
|
+
/**
|
4393
|
+
* The associated rule header range in the enclosing stylesheet (if
|
4394
|
+
* available).
|
4395
|
+
*/
|
4396
|
+
range?: SourceRange;
|
4397
|
+
/**
|
4398
|
+
* Identifier of the stylesheet containing this object (if exists).
|
4399
|
+
*/
|
4400
|
+
styleSheetId?: StyleSheetId;
|
4401
|
+
}
|
4402
|
+
|
4403
|
+
/**
|
4404
|
+
* CSS Layer data.
|
4405
|
+
*/
|
4406
|
+
export interface CSSLayerData {
|
4407
|
+
/**
|
4408
|
+
* Layer name.
|
4409
|
+
*/
|
4410
|
+
name: string;
|
4411
|
+
/**
|
4412
|
+
* Direct sub-layers
|
4413
|
+
*/
|
4414
|
+
subLayers?: CSSLayerData[];
|
4415
|
+
/**
|
4416
|
+
* Layer order. The order determines the order of the layer in the cascade order.
|
4417
|
+
* A higher number has higher priority in the cascade order.
|
4418
|
+
*/
|
4419
|
+
order: number;
|
4420
|
+
}
|
4421
|
+
|
4379
4422
|
/**
|
4380
4423
|
* Information about amount of glyphs that were rendered with given font.
|
4381
4424
|
*/
|
@@ -4686,6 +4729,14 @@ export namespace Protocol {
|
|
4686
4729
|
text: string;
|
4687
4730
|
}
|
4688
4731
|
|
4732
|
+
export interface GetLayersForNodeRequest {
|
4733
|
+
nodeId: DOM.NodeId;
|
4734
|
+
}
|
4735
|
+
|
4736
|
+
export interface GetLayersForNodeResponse {
|
4737
|
+
rootLayer: CSSLayerData;
|
4738
|
+
}
|
4739
|
+
|
4689
4740
|
export interface TrackComputedStyleUpdatesRequest {
|
4690
4741
|
propertiesToTrack: CSSComputedStyleProperty[];
|
4691
4742
|
}
|
@@ -5114,7 +5165,7 @@ export namespace Protocol {
|
|
5114
5165
|
/**
|
5115
5166
|
* Pseudo element type.
|
5116
5167
|
*/
|
5117
|
-
export type PseudoType = ('first-line' | 'first-letter' | 'before' | 'after' | 'marker' | 'backdrop' | 'selection' | 'target-text' | 'spelling-error' | 'grammar-error' | 'highlight' | 'first-line-inherited' | 'scrollbar' | 'scrollbar-thumb' | 'scrollbar-button' | 'scrollbar-track' | 'scrollbar-track-piece' | 'scrollbar-corner' | 'resizer' | 'input-list-button' | 'transition' | 'transition-container' | 'transition-
|
5168
|
+
export type PseudoType = ('first-line' | 'first-letter' | 'before' | 'after' | 'marker' | 'backdrop' | 'selection' | 'target-text' | 'spelling-error' | 'grammar-error' | 'highlight' | 'first-line-inherited' | 'scrollbar' | 'scrollbar-thumb' | 'scrollbar-button' | 'scrollbar-track' | 'scrollbar-track-piece' | 'scrollbar-corner' | 'resizer' | 'input-list-button' | 'page-transition' | 'page-transition-container' | 'page-transition-image-wrapper' | 'page-transition-outgoing-image' | 'page-transition-incoming-image');
|
5118
5169
|
|
5119
5170
|
/**
|
5120
5171
|
* Shadow root type.
|
@@ -7487,6 +7538,13 @@ export namespace Protocol {
|
|
7487
7538
|
*/
|
7488
7539
|
userAgentMetadata?: UserAgentMetadata;
|
7489
7540
|
}
|
7541
|
+
|
7542
|
+
export interface SetAutomationOverrideRequest {
|
7543
|
+
/**
|
7544
|
+
* Whether the override should be enabled.
|
7545
|
+
*/
|
7546
|
+
enabled: boolean;
|
7547
|
+
}
|
7490
7548
|
}
|
7491
7549
|
|
7492
7550
|
/**
|