devtools-protocol 0.0.1304863 → 0.0.1305504
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.
@@ -26247,6 +26247,33 @@
|
|
26247
26247
|
"$ref": "Target.TargetID"
|
26248
26248
|
}
|
26249
26249
|
]
|
26250
|
+
},
|
26251
|
+
{
|
26252
|
+
"name": "launchFilesInApp",
|
26253
|
+
"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.",
|
26254
|
+
"parameters": [
|
26255
|
+
{
|
26256
|
+
"name": "manifestId",
|
26257
|
+
"type": "string"
|
26258
|
+
},
|
26259
|
+
{
|
26260
|
+
"name": "files",
|
26261
|
+
"type": "array",
|
26262
|
+
"items": {
|
26263
|
+
"type": "string"
|
26264
|
+
}
|
26265
|
+
}
|
26266
|
+
],
|
26267
|
+
"returns": [
|
26268
|
+
{
|
26269
|
+
"name": "targetIds",
|
26270
|
+
"description": "IDs of the tab targets created as the result.",
|
26271
|
+
"type": "array",
|
26272
|
+
"items": {
|
26273
|
+
"$ref": "Target.TargetID"
|
26274
|
+
}
|
26275
|
+
}
|
26276
|
+
]
|
26250
26277
|
}
|
26251
26278
|
]
|
26252
26279
|
}
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -12401,3 +12401,25 @@ experimental domain PWA
|
|
12401
12401
|
returns
|
12402
12402
|
# ID of the tab target created as a result.
|
12403
12403
|
Target.TargetID targetId
|
12404
|
+
|
12405
|
+
# Opens one or more local files from an installed web app identified by its
|
12406
|
+
# manifestId. The web app needs to have file handlers registered to process
|
12407
|
+
# the files. The API returns one or more tabs / web contents' based
|
12408
|
+
# Target.TargetIDs which can be used to attach to via Target.attachToTarget or
|
12409
|
+
# similar APIs.
|
12410
|
+
# If some files in the parameters cannot be handled by the web app, they will
|
12411
|
+
# be ignored. If none of the files can be handled, this API returns an error.
|
12412
|
+
# If no files provided as the parameter, this API also returns an error.
|
12413
|
+
#
|
12414
|
+
# According to the definition of the file handlers in the manifest file, one
|
12415
|
+
# Target.TargetID may represent a tab handling one or more files. The order of
|
12416
|
+
# the returned Target.TargetIDs is also not guaranteed.
|
12417
|
+
#
|
12418
|
+
# TODO(crbug.com/339454034): Check the existences of the input files.
|
12419
|
+
command launchFilesInApp
|
12420
|
+
parameters
|
12421
|
+
string manifestId
|
12422
|
+
array of string files
|
12423
|
+
returns
|
12424
|
+
# IDs of the tab targets created as the result.
|
12425
|
+
array of Target.TargetID targetIds
|
@@ -4992,6 +4992,26 @@ export namespace ProtocolMapping {
|
|
4992
4992
|
paramsType: [Protocol.PWA.LaunchRequest];
|
4993
4993
|
returnType: Protocol.PWA.LaunchResponse;
|
4994
4994
|
};
|
4995
|
+
/**
|
4996
|
+
* Opens one or more local files from an installed web app identified by its
|
4997
|
+
* manifestId. The web app needs to have file handlers registered to process
|
4998
|
+
* the files. The API returns one or more tabs / web contents' based
|
4999
|
+
* Target.TargetIDs which can be used to attach to via Target.attachToTarget or
|
5000
|
+
* similar APIs.
|
5001
|
+
* If some files in the parameters cannot be handled by the web app, they will
|
5002
|
+
* be ignored. If none of the files can be handled, this API returns an error.
|
5003
|
+
* If no files provided as the parameter, this API also returns an error.
|
5004
|
+
*
|
5005
|
+
* According to the definition of the file handlers in the manifest file, one
|
5006
|
+
* Target.TargetID may represent a tab handling one or more files. The order of
|
5007
|
+
* the returned Target.TargetIDs is also not guaranteed.
|
5008
|
+
*
|
5009
|
+
* TODO(crbug.com/339454034): Check the existences of the input files.
|
5010
|
+
*/
|
5011
|
+
'PWA.launchFilesInApp': {
|
5012
|
+
paramsType: [Protocol.PWA.LaunchFilesInAppRequest];
|
5013
|
+
returnType: Protocol.PWA.LaunchFilesInAppResponse;
|
5014
|
+
};
|
4995
5015
|
}
|
4996
5016
|
}
|
4997
5017
|
|
@@ -4261,6 +4261,24 @@ export namespace ProtocolProxyApi {
|
|
4261
4261
|
*/
|
4262
4262
|
launch(params: Protocol.PWA.LaunchRequest): Promise<Protocol.PWA.LaunchResponse>;
|
4263
4263
|
|
4264
|
+
/**
|
4265
|
+
* Opens one or more local files from an installed web app identified by its
|
4266
|
+
* manifestId. The web app needs to have file handlers registered to process
|
4267
|
+
* the files. The API returns one or more tabs / web contents' based
|
4268
|
+
* Target.TargetIDs which can be used to attach to via Target.attachToTarget or
|
4269
|
+
* similar APIs.
|
4270
|
+
* If some files in the parameters cannot be handled by the web app, they will
|
4271
|
+
* be ignored. If none of the files can be handled, this API returns an error.
|
4272
|
+
* If no files provided as the parameter, this API also returns an error.
|
4273
|
+
*
|
4274
|
+
* According to the definition of the file handlers in the manifest file, one
|
4275
|
+
* Target.TargetID may represent a tab handling one or more files. The order of
|
4276
|
+
* the returned Target.TargetIDs is also not guaranteed.
|
4277
|
+
*
|
4278
|
+
* TODO(crbug.com/339454034): Check the existences of the input files.
|
4279
|
+
*/
|
4280
|
+
launchFilesInApp(params: Protocol.PWA.LaunchFilesInAppRequest): Promise<Protocol.PWA.LaunchFilesInAppResponse>;
|
4281
|
+
|
4264
4282
|
}
|
4265
4283
|
}
|
4266
4284
|
|
@@ -4645,6 +4645,24 @@ export namespace ProtocolTestsProxyApi {
|
|
4645
4645
|
*/
|
4646
4646
|
launch(params: Protocol.PWA.LaunchRequest): Promise<{id: number, result: Protocol.PWA.LaunchResponse, sessionId: string}>;
|
4647
4647
|
|
4648
|
+
/**
|
4649
|
+
* Opens one or more local files from an installed web app identified by its
|
4650
|
+
* manifestId. The web app needs to have file handlers registered to process
|
4651
|
+
* the files. The API returns one or more tabs / web contents' based
|
4652
|
+
* Target.TargetIDs which can be used to attach to via Target.attachToTarget or
|
4653
|
+
* similar APIs.
|
4654
|
+
* If some files in the parameters cannot be handled by the web app, they will
|
4655
|
+
* be ignored. If none of the files can be handled, this API returns an error.
|
4656
|
+
* If no files provided as the parameter, this API also returns an error.
|
4657
|
+
*
|
4658
|
+
* According to the definition of the file handlers in the manifest file, one
|
4659
|
+
* Target.TargetID may represent a tab handling one or more files. The order of
|
4660
|
+
* the returned Target.TargetIDs is also not guaranteed.
|
4661
|
+
*
|
4662
|
+
* TODO(crbug.com/339454034): Check the existences of the input files.
|
4663
|
+
*/
|
4664
|
+
launchFilesInApp(params: Protocol.PWA.LaunchFilesInAppRequest): Promise<{id: number, result: Protocol.PWA.LaunchFilesInAppResponse, sessionId: string}>;
|
4665
|
+
|
4648
4666
|
}
|
4649
4667
|
}
|
4650
4668
|
|
package/types/protocol.d.ts
CHANGED
@@ -18569,6 +18569,18 @@ export namespace Protocol {
|
|
18569
18569
|
*/
|
18570
18570
|
targetId: Target.TargetID;
|
18571
18571
|
}
|
18572
|
+
|
18573
|
+
export interface LaunchFilesInAppRequest {
|
18574
|
+
manifestId: string;
|
18575
|
+
files: string[];
|
18576
|
+
}
|
18577
|
+
|
18578
|
+
export interface LaunchFilesInAppResponse {
|
18579
|
+
/**
|
18580
|
+
* IDs of the tab targets created as the result.
|
18581
|
+
*/
|
18582
|
+
targetIds: Target.TargetID[];
|
18583
|
+
}
|
18572
18584
|
}
|
18573
18585
|
}
|
18574
18586
|
|