devtools-protocol 0.0.1395251 → 0.0.1399977

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.
@@ -1017,11 +1017,11 @@
1017
1017
  {
1018
1018
  "name": "requestId",
1019
1019
  "description": "The unique request id.",
1020
+ "optional": true,
1020
1021
  "$ref": "Network.RequestId"
1021
1022
  },
1022
1023
  {
1023
1024
  "name": "url",
1024
- "optional": true,
1025
1025
  "type": "string"
1026
1026
  }
1027
1027
  ]
@@ -4684,6 +4684,22 @@
4684
4684
  }
4685
4685
  ]
4686
4686
  },
4687
+ {
4688
+ "name": "forceStartingStyle",
4689
+ "description": "Ensures that the given node is in its starting-style state.",
4690
+ "parameters": [
4691
+ {
4692
+ "name": "nodeId",
4693
+ "description": "The element id for which to force the starting-style state.",
4694
+ "$ref": "DOM.NodeId"
4695
+ },
4696
+ {
4697
+ "name": "forced",
4698
+ "description": "Boolean indicating if this is on or off.",
4699
+ "type": "boolean"
4700
+ }
4701
+ ]
4702
+ },
4687
4703
  {
4688
4704
  "name": "getBackgroundColors",
4689
4705
  "parameters": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1395251",
3
+ "version": "0.0.1399977",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -499,8 +499,8 @@ experimental domain Audits
499
499
  type AffectedRequest extends object
500
500
  properties
501
501
  # The unique request id.
502
- Network.RequestId requestId
503
- optional string url
502
+ optional Network.RequestId requestId
503
+ string url
504
504
 
505
505
  # Information about the frame affected by an inspector issue.
506
506
  type AffectedFrame extends object
@@ -2255,6 +2255,14 @@ experimental domain CSS
2255
2255
  # Element pseudo classes to force when computing the element's style.
2256
2256
  array of string forcedPseudoClasses
2257
2257
 
2258
+ # Ensures that the given node is in its starting-style state.
2259
+ command forceStartingStyle
2260
+ parameters
2261
+ # The element id for which to force the starting-style state.
2262
+ DOM.NodeId nodeId
2263
+ # Boolean indicating if this is on or off.
2264
+ boolean forced
2265
+
2258
2266
  command getBackgroundColors
2259
2267
  parameters
2260
2268
  # Id of the node to get background colors for.
@@ -1807,6 +1807,13 @@ export namespace ProtocolMapping {
1807
1807
  paramsType: [Protocol.CSS.ForcePseudoStateRequest];
1808
1808
  returnType: void;
1809
1809
  };
1810
+ /**
1811
+ * Ensures that the given node is in its starting-style state.
1812
+ */
1813
+ 'CSS.forceStartingStyle': {
1814
+ paramsType: [Protocol.CSS.ForceStartingStyleRequest];
1815
+ returnType: void;
1816
+ };
1810
1817
  'CSS.getBackgroundColors': {
1811
1818
  paramsType: [Protocol.CSS.GetBackgroundColorsRequest];
1812
1819
  returnType: Protocol.CSS.GetBackgroundColorsResponse;
@@ -1054,6 +1054,11 @@ export namespace ProtocolProxyApi {
1054
1054
  */
1055
1055
  forcePseudoState(params: Protocol.CSS.ForcePseudoStateRequest): Promise<void>;
1056
1056
 
1057
+ /**
1058
+ * Ensures that the given node is in its starting-style state.
1059
+ */
1060
+ forceStartingStyle(params: Protocol.CSS.ForceStartingStyleRequest): Promise<void>;
1061
+
1057
1062
  getBackgroundColors(params: Protocol.CSS.GetBackgroundColorsRequest): Promise<Protocol.CSS.GetBackgroundColorsResponse>;
1058
1063
 
1059
1064
  /**
@@ -1122,6 +1122,11 @@ export namespace ProtocolTestsProxyApi {
1122
1122
  */
1123
1123
  forcePseudoState(params: Protocol.CSS.ForcePseudoStateRequest): Promise<{id: number, result: void, sessionId: string}>;
1124
1124
 
1125
+ /**
1126
+ * Ensures that the given node is in its starting-style state.
1127
+ */
1128
+ forceStartingStyle(params: Protocol.CSS.ForceStartingStyleRequest): Promise<{id: number, result: void, sessionId: string}>;
1129
+
1125
1130
  getBackgroundColors(params: Protocol.CSS.GetBackgroundColorsRequest): Promise<{id: number, result: Protocol.CSS.GetBackgroundColorsResponse, sessionId: string}>;
1126
1131
 
1127
1132
  /**
@@ -3314,8 +3314,8 @@ export namespace Protocol {
3314
3314
  /**
3315
3315
  * The unique request id.
3316
3316
  */
3317
- requestId: Network.RequestId;
3318
- url?: string;
3317
+ requestId?: Network.RequestId;
3318
+ url: string;
3319
3319
  }
3320
3320
 
3321
3321
  /**
@@ -5474,6 +5474,17 @@ export namespace Protocol {
5474
5474
  forcedPseudoClasses: string[];
5475
5475
  }
5476
5476
 
5477
+ export interface ForceStartingStyleRequest {
5478
+ /**
5479
+ * The element id for which to force the starting-style state.
5480
+ */
5481
+ nodeId: DOM.NodeId;
5482
+ /**
5483
+ * Boolean indicating if this is on or off.
5484
+ */
5485
+ forced: boolean;
5486
+ }
5487
+
5477
5488
  export interface GetBackgroundColorsRequest {
5478
5489
  /**
5479
5490
  * Id of the node to get background colors for.