devtools-protocol 0.0.1304863 → 0.0.1306150

Sign up to get free protection for your applications and to get access to all the features.
@@ -7071,6 +7071,31 @@
7071
7071
  }
7072
7072
  }
7073
7073
  ]
7074
+ },
7075
+ {
7076
+ "name": "getAnchorElement",
7077
+ "description": "Returns the target anchor element of the given anchor query according to\nhttps://www.w3.org/TR/css-anchor-position-1/#target.",
7078
+ "experimental": true,
7079
+ "parameters": [
7080
+ {
7081
+ "name": "nodeId",
7082
+ "description": "Id of the positioned element from which to find the anchor.",
7083
+ "$ref": "NodeId"
7084
+ },
7085
+ {
7086
+ "name": "anchorSpecifier",
7087
+ "description": "An optional anchor specifier, as defined in\nhttps://www.w3.org/TR/css-anchor-position-1/#anchor-specifier.\nIf not provided, it will return the implicit anchor element for\nthe given positioned element.",
7088
+ "optional": true,
7089
+ "type": "string"
7090
+ }
7091
+ ],
7092
+ "returns": [
7093
+ {
7094
+ "name": "nodeId",
7095
+ "description": "The anchor element of the given anchor query.",
7096
+ "$ref": "NodeId"
7097
+ }
7098
+ ]
7074
7099
  }
7075
7100
  ],
7076
7101
  "events": [
@@ -26247,6 +26272,33 @@
26247
26272
  "$ref": "Target.TargetID"
26248
26273
  }
26249
26274
  ]
26275
+ },
26276
+ {
26277
+ "name": "launchFilesInApp",
26278
+ "description": "Opens one or more local files from an installed web app identified by its\nmanifestId. The web app needs to have file handlers registered to process\nthe files. The API returns one or more tabs / web contents' based\nTarget.TargetIDs which can be used to attach to via Target.attachToTarget or\nsimilar APIs.\nIf some files in the parameters cannot be handled by the web app, they will\nbe ignored. If none of the files can be handled, this API returns an error.\nIf no files provided as the parameter, this API also returns an error.\n\nAccording to the definition of the file handlers in the manifest file, one\nTarget.TargetID may represent a tab handling one or more files. The order of\nthe returned Target.TargetIDs is also not guaranteed.\n\nTODO(crbug.com/339454034): Check the existences of the input files.",
26279
+ "parameters": [
26280
+ {
26281
+ "name": "manifestId",
26282
+ "type": "string"
26283
+ },
26284
+ {
26285
+ "name": "files",
26286
+ "type": "array",
26287
+ "items": {
26288
+ "type": "string"
26289
+ }
26290
+ }
26291
+ ],
26292
+ "returns": [
26293
+ {
26294
+ "name": "targetIds",
26295
+ "description": "IDs of the tab targets created as the result.",
26296
+ "type": "array",
26297
+ "items": {
26298
+ "$ref": "Target.TargetID"
26299
+ }
26300
+ }
26301
+ ]
26250
26302
  }
26251
26303
  ]
26252
26304
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1304863",
3
+ "version": "0.0.1306150",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -3337,6 +3337,21 @@ domain DOM
3337
3337
  # Descendant nodes with container queries against the given container.
3338
3338
  array of NodeId nodeIds
3339
3339
 
3340
+ # Returns the target anchor element of the given anchor query according to
3341
+ # https://www.w3.org/TR/css-anchor-position-1/#target.
3342
+ experimental command getAnchorElement
3343
+ parameters
3344
+ # Id of the positioned element from which to find the anchor.
3345
+ NodeId nodeId
3346
+ # An optional anchor specifier, as defined in
3347
+ # https://www.w3.org/TR/css-anchor-position-1/#anchor-specifier.
3348
+ # If not provided, it will return the implicit anchor element for
3349
+ # the given positioned element.
3350
+ optional string anchorSpecifier
3351
+ returns
3352
+ # The anchor element of the given anchor query.
3353
+ NodeId nodeId
3354
+
3340
3355
  # Fired when `Element`'s attribute is modified.
3341
3356
  event attributeModified
3342
3357
  parameters
@@ -12401,3 +12416,25 @@ experimental domain PWA
12401
12416
  returns
12402
12417
  # ID of the tab target created as a result.
12403
12418
  Target.TargetID targetId
12419
+
12420
+ # Opens one or more local files from an installed web app identified by its
12421
+ # manifestId. The web app needs to have file handlers registered to process
12422
+ # the files. The API returns one or more tabs / web contents' based
12423
+ # Target.TargetIDs which can be used to attach to via Target.attachToTarget or
12424
+ # similar APIs.
12425
+ # If some files in the parameters cannot be handled by the web app, they will
12426
+ # be ignored. If none of the files can be handled, this API returns an error.
12427
+ # If no files provided as the parameter, this API also returns an error.
12428
+ #
12429
+ # According to the definition of the file handlers in the manifest file, one
12430
+ # Target.TargetID may represent a tab handling one or more files. The order of
12431
+ # the returned Target.TargetIDs is also not guaranteed.
12432
+ #
12433
+ # TODO(crbug.com/339454034): Check the existences of the input files.
12434
+ command launchFilesInApp
12435
+ parameters
12436
+ string manifestId
12437
+ array of string files
12438
+ returns
12439
+ # IDs of the tab targets created as the result.
12440
+ array of Target.TargetID targetIds
@@ -2384,6 +2384,14 @@ export namespace ProtocolMapping {
2384
2384
  paramsType: [Protocol.DOM.GetQueryingDescendantsForContainerRequest];
2385
2385
  returnType: Protocol.DOM.GetQueryingDescendantsForContainerResponse;
2386
2386
  };
2387
+ /**
2388
+ * Returns the target anchor element of the given anchor query according to
2389
+ * https://www.w3.org/TR/css-anchor-position-1/#target.
2390
+ */
2391
+ 'DOM.getAnchorElement': {
2392
+ paramsType: [Protocol.DOM.GetAnchorElementRequest];
2393
+ returnType: Protocol.DOM.GetAnchorElementResponse;
2394
+ };
2387
2395
  /**
2388
2396
  * Returns event listeners of the given object.
2389
2397
  */
@@ -4992,6 +5000,26 @@ export namespace ProtocolMapping {
4992
5000
  paramsType: [Protocol.PWA.LaunchRequest];
4993
5001
  returnType: Protocol.PWA.LaunchResponse;
4994
5002
  };
5003
+ /**
5004
+ * Opens one or more local files from an installed web app identified by its
5005
+ * manifestId. The web app needs to have file handlers registered to process
5006
+ * the files. The API returns one or more tabs / web contents' based
5007
+ * Target.TargetIDs which can be used to attach to via Target.attachToTarget or
5008
+ * similar APIs.
5009
+ * If some files in the parameters cannot be handled by the web app, they will
5010
+ * be ignored. If none of the files can be handled, this API returns an error.
5011
+ * If no files provided as the parameter, this API also returns an error.
5012
+ *
5013
+ * According to the definition of the file handlers in the manifest file, one
5014
+ * Target.TargetID may represent a tab handling one or more files. The order of
5015
+ * the returned Target.TargetIDs is also not guaranteed.
5016
+ *
5017
+ * TODO(crbug.com/339454034): Check the existences of the input files.
5018
+ */
5019
+ 'PWA.launchFilesInApp': {
5020
+ paramsType: [Protocol.PWA.LaunchFilesInAppRequest];
5021
+ returnType: Protocol.PWA.LaunchFilesInAppResponse;
5022
+ };
4995
5023
  }
4996
5024
  }
4997
5025
 
@@ -1538,6 +1538,12 @@ export namespace ProtocolProxyApi {
1538
1538
  */
1539
1539
  getQueryingDescendantsForContainer(params: Protocol.DOM.GetQueryingDescendantsForContainerRequest): Promise<Protocol.DOM.GetQueryingDescendantsForContainerResponse>;
1540
1540
 
1541
+ /**
1542
+ * Returns the target anchor element of the given anchor query according to
1543
+ * https://www.w3.org/TR/css-anchor-position-1/#target.
1544
+ */
1545
+ getAnchorElement(params: Protocol.DOM.GetAnchorElementRequest): Promise<Protocol.DOM.GetAnchorElementResponse>;
1546
+
1541
1547
  /**
1542
1548
  * Fired when `Element`'s attribute is modified.
1543
1549
  */
@@ -4261,6 +4267,24 @@ export namespace ProtocolProxyApi {
4261
4267
  */
4262
4268
  launch(params: Protocol.PWA.LaunchRequest): Promise<Protocol.PWA.LaunchResponse>;
4263
4269
 
4270
+ /**
4271
+ * Opens one or more local files from an installed web app identified by its
4272
+ * manifestId. The web app needs to have file handlers registered to process
4273
+ * the files. The API returns one or more tabs / web contents' based
4274
+ * Target.TargetIDs which can be used to attach to via Target.attachToTarget or
4275
+ * similar APIs.
4276
+ * If some files in the parameters cannot be handled by the web app, they will
4277
+ * be ignored. If none of the files can be handled, this API returns an error.
4278
+ * If no files provided as the parameter, this API also returns an error.
4279
+ *
4280
+ * According to the definition of the file handlers in the manifest file, one
4281
+ * Target.TargetID may represent a tab handling one or more files. The order of
4282
+ * the returned Target.TargetIDs is also not guaranteed.
4283
+ *
4284
+ * TODO(crbug.com/339454034): Check the existences of the input files.
4285
+ */
4286
+ launchFilesInApp(params: Protocol.PWA.LaunchFilesInAppRequest): Promise<Protocol.PWA.LaunchFilesInAppResponse>;
4287
+
4264
4288
  }
4265
4289
  }
4266
4290
 
@@ -1620,6 +1620,12 @@ export namespace ProtocolTestsProxyApi {
1620
1620
  */
1621
1621
  getQueryingDescendantsForContainer(params: Protocol.DOM.GetQueryingDescendantsForContainerRequest): Promise<{id: number, result: Protocol.DOM.GetQueryingDescendantsForContainerResponse, sessionId: string}>;
1622
1622
 
1623
+ /**
1624
+ * Returns the target anchor element of the given anchor query according to
1625
+ * https://www.w3.org/TR/css-anchor-position-1/#target.
1626
+ */
1627
+ getAnchorElement(params: Protocol.DOM.GetAnchorElementRequest): Promise<{id: number, result: Protocol.DOM.GetAnchorElementResponse, sessionId: string}>;
1628
+
1623
1629
  /**
1624
1630
  * Fired when `Element`'s attribute is modified.
1625
1631
  */
@@ -4645,6 +4651,24 @@ export namespace ProtocolTestsProxyApi {
4645
4651
  */
4646
4652
  launch(params: Protocol.PWA.LaunchRequest): Promise<{id: number, result: Protocol.PWA.LaunchResponse, sessionId: string}>;
4647
4653
 
4654
+ /**
4655
+ * Opens one or more local files from an installed web app identified by its
4656
+ * manifestId. The web app needs to have file handlers registered to process
4657
+ * the files. The API returns one or more tabs / web contents' based
4658
+ * Target.TargetIDs which can be used to attach to via Target.attachToTarget or
4659
+ * similar APIs.
4660
+ * If some files in the parameters cannot be handled by the web app, they will
4661
+ * be ignored. If none of the files can be handled, this API returns an error.
4662
+ * If no files provided as the parameter, this API also returns an error.
4663
+ *
4664
+ * According to the definition of the file handlers in the manifest file, one
4665
+ * Target.TargetID may represent a tab handling one or more files. The order of
4666
+ * the returned Target.TargetIDs is also not guaranteed.
4667
+ *
4668
+ * TODO(crbug.com/339454034): Check the existences of the input files.
4669
+ */
4670
+ launchFilesInApp(params: Protocol.PWA.LaunchFilesInAppRequest): Promise<{id: number, result: Protocol.PWA.LaunchFilesInAppResponse, sessionId: string}>;
4671
+
4648
4672
  }
4649
4673
  }
4650
4674
 
@@ -6950,6 +6950,27 @@ export namespace Protocol {
6950
6950
  nodeIds: NodeId[];
6951
6951
  }
6952
6952
 
6953
+ export interface GetAnchorElementRequest {
6954
+ /**
6955
+ * Id of the positioned element from which to find the anchor.
6956
+ */
6957
+ nodeId: NodeId;
6958
+ /**
6959
+ * An optional anchor specifier, as defined in
6960
+ * https://www.w3.org/TR/css-anchor-position-1/#anchor-specifier.
6961
+ * If not provided, it will return the implicit anchor element for
6962
+ * the given positioned element.
6963
+ */
6964
+ anchorSpecifier?: string;
6965
+ }
6966
+
6967
+ export interface GetAnchorElementResponse {
6968
+ /**
6969
+ * The anchor element of the given anchor query.
6970
+ */
6971
+ nodeId: NodeId;
6972
+ }
6973
+
6953
6974
  /**
6954
6975
  * Fired when `Element`'s attribute is modified.
6955
6976
  */
@@ -18569,6 +18590,18 @@ export namespace Protocol {
18569
18590
  */
18570
18591
  targetId: Target.TargetID;
18571
18592
  }
18593
+
18594
+ export interface LaunchFilesInAppRequest {
18595
+ manifestId: string;
18596
+ files: string[];
18597
+ }
18598
+
18599
+ export interface LaunchFilesInAppResponse {
18600
+ /**
18601
+ * IDs of the tab targets created as the result.
18602
+ */
18603
+ targetIds: Target.TargetID[];
18604
+ }
18572
18605
  }
18573
18606
  }
18574
18607