Roll deps and update protocol definitions
This CL contains the result of running:
scripts/deps/roll_deps.py && npm run generate-protocol-resources
DISABLE_THIRD_PARTY_CHECK=protocol update
Bug: 1145997
Change-Id: I604eb0af3b1ba1ba124335a9c06b6afd2d8873d2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2544139
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>
diff --git a/front_end/generated/InspectorBackendCommands.js b/front_end/generated/InspectorBackendCommands.js
index 9246c55..80278a9 100644
--- a/front_end/generated/InspectorBackendCommands.js
+++ b/front_end/generated/InspectorBackendCommands.js
@@ -1735,6 +1735,8 @@
inspectorBackend.registerCommand(
'Overlay.setShowGridOverlays', [{'name': 'gridNodeHighlightConfigs', 'type': 'object', 'optional': false}], []);
inspectorBackend.registerCommand(
+ 'Overlay.setShowFlexOverlays', [{'name': 'flexNodeHighlightConfigs', 'type': 'object', 'optional': false}], []);
+ inspectorBackend.registerCommand(
'Overlay.setShowPaintRects', [{'name': 'result', 'type': 'boolean', 'optional': false}], []);
inspectorBackend.registerCommand(
'Overlay.setShowLayoutShiftRegions', [{'name': 'result', 'type': 'boolean', 'optional': false}], []);
@@ -1808,7 +1810,7 @@
inspectorBackend.registerEvent('Page.fileChooserOpened', ['frameId', 'backendNodeId', 'mode']);
inspectorBackend.registerEvent('Page.frameAttached', ['frameId', 'parentFrameId', 'stack']);
inspectorBackend.registerEvent('Page.frameClearedScheduledNavigation', ['frameId']);
- inspectorBackend.registerEvent('Page.frameDetached', ['frameId']);
+ inspectorBackend.registerEvent('Page.frameDetached', ['frameId', 'reason']);
inspectorBackend.registerEvent('Page.frameNavigated', ['frame']);
inspectorBackend.registerEvent('Page.documentOpened', ['frame']);
inspectorBackend.registerEvent('Page.frameResized', []);
diff --git a/front_end/generated/protocol-mapping.d.ts b/front_end/generated/protocol-mapping.d.ts
index 87e6891..5d0623e 100644
--- a/front_end/generated/protocol-mapping.d.ts
+++ b/front_end/generated/protocol-mapping.d.ts
@@ -1920,6 +1920,7 @@
* Highlight multiple elements with the CSS Grid overlay.
*/
'Overlay.setShowGridOverlays': {paramsType: [Protocol.Overlay.SetShowGridOverlaysRequest]; returnType: void;};
+ 'Overlay.setShowFlexOverlays': {paramsType: [Protocol.Overlay.SetShowFlexOverlaysRequest]; returnType: void;};
/**
* Requests that backend shows paint rectangles
*/
diff --git a/front_end/generated/protocol-proxy-api.d.ts b/front_end/generated/protocol-proxy-api.d.ts
index cc8cdbc..17e1553 100644
--- a/front_end/generated/protocol-proxy-api.d.ts
+++ b/front_end/generated/protocol-proxy-api.d.ts
@@ -2018,6 +2018,9 @@
invoke_setShowGridOverlays(params: Protocol.Overlay.SetShowGridOverlaysRequest):
Promise<Protocol.ProtocolResponseWithError>;
+ invoke_setShowFlexOverlays(params: Protocol.Overlay.SetShowFlexOverlaysRequest):
+ Promise<Protocol.ProtocolResponseWithError>;
+
/**
* Requests that backend shows paint rectangles
*/
diff --git a/front_end/generated/protocol.d.ts b/front_end/generated/protocol.d.ts
index de78f79..ad91cac 100644
--- a/front_end/generated/protocol.d.ts
+++ b/front_end/generated/protocol.d.ts
@@ -8463,6 +8463,17 @@
nodeId: DOM.NodeId;
}
+ export interface FlexNodeHighlightConfig {
+ /**
+ * A descriptor for the highlight appearance of flex containers.
+ */
+ flexContainerHighlightConfig: FlexContainerHighlightConfig;
+ /**
+ * Identifier of the node to highlight.
+ */
+ nodeId: DOM.NodeId;
+ }
+
/**
* Configuration for dual screen hinge
*/
@@ -8693,6 +8704,13 @@
gridNodeHighlightConfigs: GridNodeHighlightConfig[];
}
+ export interface SetShowFlexOverlaysRequest {
+ /**
+ * An array of node identifiers and descriptors for the highlight appearance.
+ */
+ flexNodeHighlightConfigs: FlexNodeHighlightConfig[];
+ }
+
export interface SetShowPaintRectsRequest {
/**
* True for showing paint rectangles
@@ -9953,6 +9971,11 @@
frameId: FrameId;
}
+ export enum FrameDetachedEventReason {
+ Remove = 'remove',
+ Swap = 'swap',
+ }
+
/**
* Fired when frame has been detached from its parent.
*/
@@ -9961,6 +9984,7 @@
* Id of the frame that has been detached.
*/
frameId: FrameId;
+ reason: FrameDetachedEventReason;
}
/**
diff --git a/third_party/blink/public/devtools_protocol/browser_protocol.json b/third_party/blink/public/devtools_protocol/browser_protocol.json
index d1cc17c..b72c107 100644
--- a/third_party/blink/public/devtools_protocol/browser_protocol.json
+++ b/third_party/blink/public/devtools_protocol/browser_protocol.json
@@ -12380,6 +12380,22 @@
]
},
{
+ "id": "FlexNodeHighlightConfig",
+ "type": "object",
+ "properties": [
+ {
+ "name": "flexContainerHighlightConfig",
+ "description": "A descriptor for the highlight appearance of flex containers.",
+ "$ref": "FlexContainerHighlightConfig"
+ },
+ {
+ "name": "nodeId",
+ "description": "Identifier of the node to highlight.",
+ "$ref": "DOM.NodeId"
+ }
+ ]
+ },
+ {
"id": "HingeConfig",
"description": "Configuration for dual screen hinge",
"type": "object",
@@ -12733,6 +12749,19 @@
]
},
{
+ "name": "setShowFlexOverlays",
+ "parameters": [
+ {
+ "name": "flexNodeHighlightConfigs",
+ "description": "An array of node identifiers and descriptors for the highlight appearance.",
+ "type": "array",
+ "items": {
+ "$ref": "FlexNodeHighlightConfig"
+ }
+ }
+ ]
+ },
+ {
"name": "setShowPaintRects",
"description": "Requests that backend shows paint rectangles",
"parameters": [
@@ -14630,6 +14659,15 @@
"name": "frameId",
"description": "Id of the frame that has been detached.",
"$ref": "FrameId"
+ },
+ {
+ "name": "reason",
+ "experimental": true,
+ "type": "string",
+ "enum": [
+ "remove",
+ "swap"
+ ]
}
]
},
diff --git a/third_party/blink/public/devtools_protocol/browser_protocol.pdl b/third_party/blink/public/devtools_protocol/browser_protocol.pdl
index f3078b3..2d24f41 100644
--- a/third_party/blink/public/devtools_protocol/browser_protocol.pdl
+++ b/third_party/blink/public/devtools_protocol/browser_protocol.pdl
@@ -5701,6 +5701,13 @@
# Identifier of the node to highlight.
DOM.NodeId nodeId
+ type FlexNodeHighlightConfig extends object
+ properties
+ # A descriptor for the highlight appearance of flex containers.
+ FlexContainerHighlightConfig flexContainerHighlightConfig
+ # Identifier of the node to highlight.
+ DOM.NodeId nodeId
+
# Configuration for dual screen hinge
type HingeConfig extends object
properties
@@ -5866,6 +5873,11 @@
# An array of node identifiers and descriptors for the highlight appearance.
array of GridNodeHighlightConfig gridNodeHighlightConfigs
+ command setShowFlexOverlays
+ parameters
+ # An array of node identifiers and descriptors for the highlight appearance.
+ array of FlexNodeHighlightConfig flexNodeHighlightConfigs
+
# Requests that backend shows paint rectangles
command setShowPaintRects
parameters
@@ -6768,6 +6780,12 @@
parameters
# Id of the frame that has been detached.
FrameId frameId
+ experimental enum reason
+ # The frame is removed from the DOM.
+ remove
+ # The frame is being swapped out in favor of an out-of-process iframe.
+ # A new frame target will be created (see Target.attachedToTarget).
+ swap
# Fired once navigation of the frame has completed. Frame is now associated with the new loader.
event frameNavigated