@@ -735,6 +735,11 @@ some CSP errors in the future.
735
735
frame : AffectedFrame ;
736
736
}
737
737
export type ContentSecurityPolicyViolationType = "kInlineViolation" | "kEvalViolation" | "kURLViolation" | "kTrustedTypesSinkViolation" | "kTrustedTypesPolicyViolation" ;
738
+ export interface SourceCodeLocation {
739
+ url : string ;
740
+ lineNumber : number ;
741
+ columnNumber : number ;
742
+ }
738
743
export interface ContentSecurityPolicyIssueDetails {
739
744
/**
740
745
* The url not included in allowed sources.
@@ -746,6 +751,7 @@ some CSP errors in the future.
746
751
violatedDirective : string ;
747
752
contentSecurityPolicyViolationType : ContentSecurityPolicyViolationType ;
748
753
frameAncestor ?: AffectedFrame ;
754
+ sourceCodeLocation ?: SourceCodeLocation ;
749
755
}
750
756
/**
751
757
* A unique identifier for the type of issue. Each type may use one of the
@@ -1670,8 +1676,34 @@ available).
1670
1676
*/
1671
1677
glyphCount : number ;
1672
1678
}
1679
+ /**
1680
+ * Information about font variation axes for variable fonts
1681
+ */
1682
+ export interface FontVariationAxis {
1683
+ /**
1684
+ * The font-variation-setting tag (a.k.a. "axis tag").
1685
+ */
1686
+ tag : string ;
1687
+ /**
1688
+ * Human-readable variation name in the default language (normally, "en").
1689
+ */
1690
+ name : string ;
1691
+ /**
1692
+ * The minimum value (inclusive) the font supports for this tag.
1693
+ */
1694
+ minValue : number ;
1695
+ /**
1696
+ * The maximum value (inclusive) the font supports for this tag.
1697
+ */
1698
+ maxValue : number ;
1699
+ /**
1700
+ * The default value.
1701
+ */
1702
+ defaultValue : number ;
1703
+ }
1673
1704
/**
1674
1705
* Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions
1706
+ and additional information such as platformFontFamily and fontVariationAxes.
1675
1707
*/
1676
1708
export interface FontFace {
1677
1709
/**
@@ -1706,6 +1738,10 @@ available).
1706
1738
* The resolved platform font family
1707
1739
*/
1708
1740
platformFontFamily : string ;
1741
+ /**
1742
+ * Available variation settings (a.k.a. "axes").
1743
+ */
1744
+ fontVariationAxes ?: FontVariationAxis [ ] ;
1709
1745
}
1710
1746
/**
1711
1747
* CSS keyframes rule representation.
@@ -4494,6 +4530,23 @@ flattened.
4494
4530
*/
4495
4531
angle : number ;
4496
4532
}
4533
+ export interface DisplayFeature {
4534
+ /**
4535
+ * Orientation of a display feature in relation to screen
4536
+ */
4537
+ orientation : "vertical" | "horizontal" ;
4538
+ /**
4539
+ * The offset from the screen origin in either the x (for vertical
4540
+ orientation) or y (for horizontal orientation) direction.
4541
+ */
4542
+ offset : number ;
4543
+ /**
4544
+ * A display feature may mask content such that it is not physically
4545
+ displayed - this length along with the offset describes this area.
4546
+ A display feature that only splits content will have a 0 mask_length.
4547
+ */
4548
+ maskLength : number ;
4549
+ }
4497
4550
export interface MediaFeature {
4498
4551
name : string ;
4499
4552
value : string ;
@@ -4653,6 +4706,11 @@ autosizing and more.
4653
4706
change is not observed by the page, e.g. viewport-relative elements do not change positions.
4654
4707
*/
4655
4708
viewport ?: Page . Viewport ;
4709
+ /**
4710
+ * If set, the display feature of a multi-segment screen. If not set, multi-segment support
4711
+ is turned-off.
4712
+ */
4713
+ displayFeature ?: DisplayFeature ;
4656
4714
}
4657
4715
export type setDeviceMetricsOverrideReturnValue = {
4658
4716
}
@@ -6447,6 +6505,12 @@ milliseconds relatively to this requestTime.
6447
6505
* Loading priority of a resource request.
6448
6506
*/
6449
6507
export type ResourcePriority = "VeryLow" | "Low" | "Medium" | "High" | "VeryHigh" ;
6508
+ /**
6509
+ * Post data entry for HTTP request
6510
+ */
6511
+ export interface PostDataEntry {
6512
+ bytes ?: binary ;
6513
+ }
6450
6514
/**
6451
6515
* HTTP request data.
6452
6516
*/
@@ -6475,6 +6539,10 @@ milliseconds relatively to this requestTime.
6475
6539
* True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.
6476
6540
*/
6477
6541
hasPostData ?: boolean ;
6542
+ /**
6543
+ * Request body elements. This will be converted from base64 to binary
6544
+ */
6545
+ postDataEntries ?: PostDataEntry [ ] ;
6478
6546
/**
6479
6547
* The mixed content type of the request.
6480
6548
*/
@@ -8047,6 +8115,14 @@ continueInterceptedRequest call.
8047
8115
* Show area name labels (default: false).
8048
8116
*/
8049
8117
showAreaNames ?: boolean ;
8118
+ /**
8119
+ * Show line name labels (default: false).
8120
+ */
8121
+ showLineNames ?: boolean ;
8122
+ /**
8123
+ * Show track size labels (default: false).
8124
+ */
8125
+ showTrackSizes ?: boolean ;
8050
8126
/**
8051
8127
* The grid container border highlight color (default: transparent).
8052
8128
*/
@@ -8150,6 +8226,19 @@ continueInterceptedRequest call.
8150
8226
gridHighlightConfig ?: GridHighlightConfig ;
8151
8227
}
8152
8228
export type ColorFormat = "rgb" | "hsl" | "hex" ;
8229
+ /**
8230
+ * Configurations for Persistent Grid Highlight
8231
+ */
8232
+ export interface GridNodeHighlightConfig {
8233
+ /**
8234
+ * A descriptor for the highlight appearance.
8235
+ */
8236
+ gridHighlightConfig : GridHighlightConfig ;
8237
+ /**
8238
+ * Identifier of the node to highlight.
8239
+ */
8240
+ nodeId : DOM . NodeId ;
8241
+ }
8153
8242
/**
8154
8243
* Configuration for dual screen hinge
8155
8244
*/
@@ -8244,6 +8333,21 @@ user manually inspects an element.
8244
8333
*/
8245
8334
highlight : { [ key : string ] : string } ;
8246
8335
}
8336
+ /**
8337
+ * For Persistent Grid testing.
8338
+ */
8339
+ export type getGridHighlightObjectsForTestParameters = {
8340
+ /**
8341
+ * Ids of the node to get highlight object for.
8342
+ */
8343
+ nodeIds : DOM . NodeId [ ] ;
8344
+ }
8345
+ export type getGridHighlightObjectsForTestReturnValue = {
8346
+ /**
8347
+ * Grid Highlight data for the node ids provided.
8348
+ */
8349
+ highlights : { [ key : string ] : string } ;
8350
+ }
8247
8351
/**
8248
8352
* Hides any highlight.
8249
8353
*/
@@ -8406,6 +8510,17 @@ Backend then generates 'inspectNodeRequested' event upon element selection.
8406
8510
}
8407
8511
export type setShowFPSCounterReturnValue = {
8408
8512
}
8513
+ /**
8514
+ * Highlight multiple elements with the CSS Grid overlay.
8515
+ */
8516
+ export type setShowGridOverlaysParameters = {
8517
+ /**
8518
+ * An array of node identifiers and descriptors for the highlight appearance.
8519
+ */
8520
+ gridNodeHighlightConfigs : GridNodeHighlightConfig [ ] ;
8521
+ }
8522
+ export type setShowGridOverlaysReturnValue = {
8523
+ }
8409
8524
/**
8410
8525
* Requests that backend shows paint rectangles
8411
8526
*/
@@ -8482,6 +8597,10 @@ Backend then generates 'inspectNodeRequested' event upon element selection.
8482
8597
* Unique frame identifier.
8483
8598
*/
8484
8599
export type FrameId = string ;
8600
+ /**
8601
+ * Indicates whether a frame has been identified as an ad.
8602
+ */
8603
+ export type AdFrameType = "none" | "child" | "root" ;
8485
8604
/**
8486
8605
* Information about the Frame on the page.
8487
8606
*/
@@ -8522,6 +8641,10 @@ Backend then generates 'inspectNodeRequested' event upon element selection.
8522
8641
* If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.
8523
8642
*/
8524
8643
unreachableUrl ?: string ;
8644
+ /**
8645
+ * Indicates whether this frame was tagged as an ad.
8646
+ */
8647
+ adFrameType ?: AdFrameType ;
8525
8648
}
8526
8649
/**
8527
8650
* Information about the Resource on the page.
@@ -15184,6 +15307,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
15184
15307
"Overlay.disable" : Overlay . disableParameters ;
15185
15308
"Overlay.enable" : Overlay . enableParameters ;
15186
15309
"Overlay.getHighlightObjectForTest" : Overlay . getHighlightObjectForTestParameters ;
15310
+ "Overlay.getGridHighlightObjectsForTest" : Overlay . getGridHighlightObjectsForTestParameters ;
15187
15311
"Overlay.hideHighlight" : Overlay . hideHighlightParameters ;
15188
15312
"Overlay.highlightFrame" : Overlay . highlightFrameParameters ;
15189
15313
"Overlay.highlightNode" : Overlay . highlightNodeParameters ;
@@ -15194,6 +15318,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
15194
15318
"Overlay.setPausedInDebuggerMessage" : Overlay . setPausedInDebuggerMessageParameters ;
15195
15319
"Overlay.setShowDebugBorders" : Overlay . setShowDebugBordersParameters ;
15196
15320
"Overlay.setShowFPSCounter" : Overlay . setShowFPSCounterParameters ;
15321
+ "Overlay.setShowGridOverlays" : Overlay . setShowGridOverlaysParameters ;
15197
15322
"Overlay.setShowPaintRects" : Overlay . setShowPaintRectsParameters ;
15198
15323
"Overlay.setShowLayoutShiftRegions" : Overlay . setShowLayoutShiftRegionsParameters ;
15199
15324
"Overlay.setShowScrollBottleneckRects" : Overlay . setShowScrollBottleneckRectsParameters ;
@@ -15667,6 +15792,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
15667
15792
"Overlay.disable" : Overlay . disableReturnValue ;
15668
15793
"Overlay.enable" : Overlay . enableReturnValue ;
15669
15794
"Overlay.getHighlightObjectForTest" : Overlay . getHighlightObjectForTestReturnValue ;
15795
+ "Overlay.getGridHighlightObjectsForTest" : Overlay . getGridHighlightObjectsForTestReturnValue ;
15670
15796
"Overlay.hideHighlight" : Overlay . hideHighlightReturnValue ;
15671
15797
"Overlay.highlightFrame" : Overlay . highlightFrameReturnValue ;
15672
15798
"Overlay.highlightNode" : Overlay . highlightNodeReturnValue ;
@@ -15677,6 +15803,7 @@ unsubscribes current runtime agent from Runtime.bindingCalled notifications.
15677
15803
"Overlay.setPausedInDebuggerMessage" : Overlay . setPausedInDebuggerMessageReturnValue ;
15678
15804
"Overlay.setShowDebugBorders" : Overlay . setShowDebugBordersReturnValue ;
15679
15805
"Overlay.setShowFPSCounter" : Overlay . setShowFPSCounterReturnValue ;
15806
+ "Overlay.setShowGridOverlays" : Overlay . setShowGridOverlaysReturnValue ;
15680
15807
"Overlay.setShowPaintRects" : Overlay . setShowPaintRectsReturnValue ;
15681
15808
"Overlay.setShowLayoutShiftRegions" : Overlay . setShowLayoutShiftRegionsReturnValue ;
15682
15809
"Overlay.setShowScrollBottleneckRects" : Overlay . setShowScrollBottleneckRectsReturnValue ;
0 commit comments