devtools-protocol 0.0.1485358 → 0.0.1488040

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.
@@ -5365,6 +5365,17 @@
5365
5365
  }
5366
5366
  ]
5367
5367
  },
5368
+ {
5369
+ "name": "getEnvironmentVariables",
5370
+ "description": "Returns the values of the default UA-defined environment variables used in env()",
5371
+ "experimental": true,
5372
+ "returns": [
5373
+ {
5374
+ "name": "environmentVariables",
5375
+ "type": "object"
5376
+ }
5377
+ ]
5378
+ },
5368
5379
  {
5369
5380
  "name": "getMediaQueries",
5370
5381
  "description": "Returns all media queries parsed by the rendering engine.",
@@ -7892,6 +7903,33 @@
7892
7903
  "$ref": "NodeId"
7893
7904
  }
7894
7905
  ]
7906
+ },
7907
+ {
7908
+ "name": "forceShowPopover",
7909
+ "description": "When enabling, this API force-opens the popover identified by nodeId\nand keeps it open until disabled.",
7910
+ "experimental": true,
7911
+ "parameters": [
7912
+ {
7913
+ "name": "nodeId",
7914
+ "description": "Id of the popover HTMLElement",
7915
+ "$ref": "NodeId"
7916
+ },
7917
+ {
7918
+ "name": "enable",
7919
+ "description": "If true, opens the popover and keeps it open. If false, closes the\npopover if it was previously force-opened.",
7920
+ "type": "boolean"
7921
+ }
7922
+ ],
7923
+ "returns": [
7924
+ {
7925
+ "name": "nodeIds",
7926
+ "description": "List of popovers that were closed in order to respect popover stacking order.",
7927
+ "type": "array",
7928
+ "items": {
7929
+ "$ref": "NodeId"
7930
+ }
7931
+ }
7932
+ ]
7895
7933
  }
7896
7934
  ],
7897
7935
  "events": [
@@ -20373,6 +20411,13 @@
20373
20411
  "description": "User friendly error message, present if and only if navigation has failed.",
20374
20412
  "optional": true,
20375
20413
  "type": "string"
20414
+ },
20415
+ {
20416
+ "name": "isDownload",
20417
+ "description": "Whether the navigation resulted in a download.",
20418
+ "experimental": true,
20419
+ "optional": true,
20420
+ "type": "boolean"
20376
20421
  }
20377
20422
  ]
20378
20423
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1485358",
3
+ "version": "0.0.1488040",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -2559,6 +2559,11 @@ experimental domain CSS
2559
2559
  # A list of CSS at-function rules referenced by styles of this node.
2560
2560
  experimental optional array of CSSFunctionRule cssFunctionRules
2561
2561
 
2562
+ # Returns the values of the default UA-defined environment variables used in env()
2563
+ experimental command getEnvironmentVariables
2564
+ returns
2565
+ object environmentVariables
2566
+
2562
2567
  # Returns all media queries parsed by the rendering engine.
2563
2568
  command getMediaQueries
2564
2569
  returns
@@ -3751,6 +3756,19 @@ domain DOM
3751
3756
  # The anchor element of the given anchor query.
3752
3757
  NodeId nodeId
3753
3758
 
3759
+ # When enabling, this API force-opens the popover identified by nodeId
3760
+ # and keeps it open until disabled.
3761
+ experimental command forceShowPopover
3762
+ parameters
3763
+ # Id of the popover HTMLElement
3764
+ NodeId nodeId
3765
+ # If true, opens the popover and keeps it open. If false, closes the
3766
+ # popover if it was previously force-opened.
3767
+ boolean enable
3768
+ returns
3769
+ # List of popovers that were closed in order to respect popover stacking order.
3770
+ array of NodeId nodeIds
3771
+
3754
3772
  # Fired when `Element`'s attribute is modified.
3755
3773
  event attributeModified
3756
3774
  parameters
@@ -9434,6 +9452,8 @@ domain Page
9434
9452
  optional Network.LoaderId loaderId
9435
9453
  # User friendly error message, present if and only if navigation has failed.
9436
9454
  optional string errorText
9455
+ # Whether the navigation resulted in a download.
9456
+ experimental optional boolean isDownload
9437
9457
 
9438
9458
  # Navigates current page to the given history entry.
9439
9459
  command navigateToHistoryEntry
@@ -1975,6 +1975,13 @@ export namespace ProtocolMapping {
1975
1975
  paramsType: [Protocol.CSS.GetMatchedStylesForNodeRequest];
1976
1976
  returnType: Protocol.CSS.GetMatchedStylesForNodeResponse;
1977
1977
  };
1978
+ /**
1979
+ * Returns the values of the default UA-defined environment variables used in env()
1980
+ */
1981
+ 'CSS.getEnvironmentVariables': {
1982
+ paramsType: [];
1983
+ returnType: Protocol.CSS.GetEnvironmentVariablesResponse;
1984
+ };
1978
1985
  /**
1979
1986
  * Returns all media queries parsed by the rendering engine.
1980
1987
  */
@@ -2620,6 +2627,14 @@ export namespace ProtocolMapping {
2620
2627
  paramsType: [Protocol.DOM.GetAnchorElementRequest];
2621
2628
  returnType: Protocol.DOM.GetAnchorElementResponse;
2622
2629
  };
2630
+ /**
2631
+ * When enabling, this API force-opens the popover identified by nodeId
2632
+ * and keeps it open until disabled.
2633
+ */
2634
+ 'DOM.forceShowPopover': {
2635
+ paramsType: [Protocol.DOM.ForceShowPopoverRequest];
2636
+ returnType: Protocol.DOM.ForceShowPopoverResponse;
2637
+ };
2623
2638
  /**
2624
2639
  * Returns event listeners of the given object.
2625
2640
  */
@@ -1117,6 +1117,11 @@ export namespace ProtocolProxyApi {
1117
1117
  */
1118
1118
  getMatchedStylesForNode(params: Protocol.CSS.GetMatchedStylesForNodeRequest): Promise<Protocol.CSS.GetMatchedStylesForNodeResponse>;
1119
1119
 
1120
+ /**
1121
+ * Returns the values of the default UA-defined environment variables used in env()
1122
+ */
1123
+ getEnvironmentVariables(): Promise<Protocol.CSS.GetEnvironmentVariablesResponse>;
1124
+
1120
1125
  /**
1121
1126
  * Returns all media queries parsed by the rendering engine.
1122
1127
  */
@@ -1642,6 +1647,12 @@ export namespace ProtocolProxyApi {
1642
1647
  */
1643
1648
  getAnchorElement(params: Protocol.DOM.GetAnchorElementRequest): Promise<Protocol.DOM.GetAnchorElementResponse>;
1644
1649
 
1650
+ /**
1651
+ * When enabling, this API force-opens the popover identified by nodeId
1652
+ * and keeps it open until disabled.
1653
+ */
1654
+ forceShowPopover(params: Protocol.DOM.ForceShowPopoverRequest): Promise<Protocol.DOM.ForceShowPopoverResponse>;
1655
+
1645
1656
  /**
1646
1657
  * Fired when `Element`'s attribute is modified.
1647
1658
  */
@@ -1185,6 +1185,11 @@ export namespace ProtocolTestsProxyApi {
1185
1185
  */
1186
1186
  getMatchedStylesForNode(params: Protocol.CSS.GetMatchedStylesForNodeRequest): Promise<{id: number, result: Protocol.CSS.GetMatchedStylesForNodeResponse, sessionId: string}>;
1187
1187
 
1188
+ /**
1189
+ * Returns the values of the default UA-defined environment variables used in env()
1190
+ */
1191
+ getEnvironmentVariables(): Promise<{id: number, result: Protocol.CSS.GetEnvironmentVariablesResponse, sessionId: string}>;
1192
+
1188
1193
  /**
1189
1194
  * Returns all media queries parsed by the rendering engine.
1190
1195
  */
@@ -1726,6 +1731,12 @@ export namespace ProtocolTestsProxyApi {
1726
1731
  */
1727
1732
  getAnchorElement(params: Protocol.DOM.GetAnchorElementRequest): Promise<{id: number, result: Protocol.DOM.GetAnchorElementResponse, sessionId: string}>;
1728
1733
 
1734
+ /**
1735
+ * When enabling, this API force-opens the popover identified by nodeId
1736
+ * and keeps it open until disabled.
1737
+ */
1738
+ forceShowPopover(params: Protocol.DOM.ForceShowPopoverRequest): Promise<{id: number, result: Protocol.DOM.ForceShowPopoverResponse, sessionId: string}>;
1739
+
1729
1740
  /**
1730
1741
  * Fired when `Element`'s attribute is modified.
1731
1742
  */
@@ -5868,6 +5868,10 @@ export namespace Protocol {
5868
5868
  cssFunctionRules?: CSSFunctionRule[];
5869
5869
  }
5870
5870
 
5871
+ export interface GetEnvironmentVariablesResponse {
5872
+ environmentVariables: any;
5873
+ }
5874
+
5871
5875
  export interface GetMediaQueriesResponse {
5872
5876
  medias: CSSMedia[];
5873
5877
  }
@@ -7434,6 +7438,25 @@ export namespace Protocol {
7434
7438
  nodeId: NodeId;
7435
7439
  }
7436
7440
 
7441
+ export interface ForceShowPopoverRequest {
7442
+ /**
7443
+ * Id of the popover HTMLElement
7444
+ */
7445
+ nodeId: NodeId;
7446
+ /**
7447
+ * If true, opens the popover and keeps it open. If false, closes the
7448
+ * popover if it was previously force-opened.
7449
+ */
7450
+ enable: boolean;
7451
+ }
7452
+
7453
+ export interface ForceShowPopoverResponse {
7454
+ /**
7455
+ * List of popovers that were closed in order to respect popover stacking order.
7456
+ */
7457
+ nodeIds: NodeId[];
7458
+ }
7459
+
7437
7460
  /**
7438
7461
  * Fired when `Element`'s attribute is modified.
7439
7462
  */
@@ -15099,6 +15122,10 @@ export namespace Protocol {
15099
15122
  * User friendly error message, present if and only if navigation has failed.
15100
15123
  */
15101
15124
  errorText?: string;
15125
+ /**
15126
+ * Whether the navigation resulted in a download.
15127
+ */
15128
+ isDownload?: boolean;
15102
15129
  }
15103
15130
 
15104
15131
  export interface NavigateToHistoryEntryRequest {