devtools-protocol 0.0.1308459 → 0.0.1309774
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.
@@ -26253,7 +26253,7 @@
|
|
26253
26253
|
},
|
26254
26254
|
{
|
26255
26255
|
"name": "launch",
|
26256
|
-
"description": "Launches the installed web app, or an url in the same web app instead of the\ndefault start url if it is provided. Returns a
|
26256
|
+
"description": "Launches the installed web app, or an url in the same web app instead of the\ndefault start url if it is provided. Returns a page Target.TargetID which\ncan be used to attach to via Target.attachToTarget or similar APIs.",
|
26257
26257
|
"parameters": [
|
26258
26258
|
{
|
26259
26259
|
"name": "manifestId",
|
@@ -26275,7 +26275,7 @@
|
|
26275
26275
|
},
|
26276
26276
|
{
|
26277
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
|
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 page Target.TargetIDs which can be\nused to attach to via Target.attachToTarget or similar 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 page handling one or more files. The order\nof the returned Target.TargetIDs is not guaranteed.\n\nTODO(crbug.com/339454034): Check the existences of the input files.",
|
26279
26279
|
"parameters": [
|
26280
26280
|
{
|
26281
26281
|
"name": "manifestId",
|
@@ -26299,6 +26299,16 @@
|
|
26299
26299
|
}
|
26300
26300
|
}
|
26301
26301
|
]
|
26302
|
+
},
|
26303
|
+
{
|
26304
|
+
"name": "openCurrentPageInApp",
|
26305
|
+
"description": "Opens the current page in its web app identified by the manifest id, needs\nto be called on a page target. This function returns immediately without\nwaiting for the app finishing loading.",
|
26306
|
+
"parameters": [
|
26307
|
+
{
|
26308
|
+
"name": "manifestId",
|
26309
|
+
"type": "string"
|
26310
|
+
}
|
26311
|
+
]
|
26302
26312
|
}
|
26303
26313
|
]
|
26304
26314
|
}
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -12406,9 +12406,8 @@ experimental domain PWA
|
|
12406
12406
|
string manifestId
|
12407
12407
|
|
12408
12408
|
# Launches the installed web app, or an url in the same web app instead of the
|
12409
|
-
# default start url if it is provided. Returns a
|
12410
|
-
#
|
12411
|
-
# similar APIs.
|
12409
|
+
# default start url if it is provided. Returns a page Target.TargetID which
|
12410
|
+
# can be used to attach to via Target.attachToTarget or similar APIs.
|
12412
12411
|
command launch
|
12413
12412
|
parameters
|
12414
12413
|
string manifestId
|
@@ -12419,16 +12418,15 @@ experimental domain PWA
|
|
12419
12418
|
|
12420
12419
|
# Opens one or more local files from an installed web app identified by its
|
12421
12420
|
# manifestId. The web app needs to have file handlers registered to process
|
12422
|
-
# the files. The API returns one or more
|
12423
|
-
#
|
12424
|
-
# similar APIs.
|
12421
|
+
# the files. The API returns one or more page Target.TargetIDs which can be
|
12422
|
+
# used to attach to via Target.attachToTarget or similar APIs.
|
12425
12423
|
# If some files in the parameters cannot be handled by the web app, they will
|
12426
12424
|
# be ignored. If none of the files can be handled, this API returns an error.
|
12427
12425
|
# If no files provided as the parameter, this API also returns an error.
|
12428
12426
|
#
|
12429
12427
|
# According to the definition of the file handlers in the manifest file, one
|
12430
|
-
# Target.TargetID may represent a
|
12431
|
-
# the returned Target.TargetIDs is
|
12428
|
+
# Target.TargetID may represent a page handling one or more files. The order
|
12429
|
+
# of the returned Target.TargetIDs is not guaranteed.
|
12432
12430
|
#
|
12433
12431
|
# TODO(crbug.com/339454034): Check the existences of the input files.
|
12434
12432
|
command launchFilesInApp
|
@@ -12438,3 +12436,10 @@ experimental domain PWA
|
|
12438
12436
|
returns
|
12439
12437
|
# IDs of the tab targets created as the result.
|
12440
12438
|
array of Target.TargetID targetIds
|
12439
|
+
|
12440
|
+
# Opens the current page in its web app identified by the manifest id, needs
|
12441
|
+
# to be called on a page target. This function returns immediately without
|
12442
|
+
# waiting for the app finishing loading.
|
12443
|
+
command openCurrentPageInApp
|
12444
|
+
parameters
|
12445
|
+
string manifestId
|
@@ -4992,9 +4992,8 @@ export namespace ProtocolMapping {
|
|
4992
4992
|
};
|
4993
4993
|
/**
|
4994
4994
|
* Launches the installed web app, or an url in the same web app instead of the
|
4995
|
-
* default start url if it is provided. Returns a
|
4996
|
-
*
|
4997
|
-
* similar APIs.
|
4995
|
+
* default start url if it is provided. Returns a page Target.TargetID which
|
4996
|
+
* can be used to attach to via Target.attachToTarget or similar APIs.
|
4998
4997
|
*/
|
4999
4998
|
'PWA.launch': {
|
5000
4999
|
paramsType: [Protocol.PWA.LaunchRequest];
|
@@ -5003,16 +5002,15 @@ export namespace ProtocolMapping {
|
|
5003
5002
|
/**
|
5004
5003
|
* Opens one or more local files from an installed web app identified by its
|
5005
5004
|
* manifestId. The web app needs to have file handlers registered to process
|
5006
|
-
* the files. The API returns one or more
|
5007
|
-
*
|
5008
|
-
* similar APIs.
|
5005
|
+
* the files. The API returns one or more page Target.TargetIDs which can be
|
5006
|
+
* used to attach to via Target.attachToTarget or similar APIs.
|
5009
5007
|
* If some files in the parameters cannot be handled by the web app, they will
|
5010
5008
|
* be ignored. If none of the files can be handled, this API returns an error.
|
5011
5009
|
* If no files provided as the parameter, this API also returns an error.
|
5012
5010
|
*
|
5013
5011
|
* According to the definition of the file handlers in the manifest file, one
|
5014
|
-
* Target.TargetID may represent a
|
5015
|
-
* the returned Target.TargetIDs is
|
5012
|
+
* Target.TargetID may represent a page handling one or more files. The order
|
5013
|
+
* of the returned Target.TargetIDs is not guaranteed.
|
5016
5014
|
*
|
5017
5015
|
* TODO(crbug.com/339454034): Check the existences of the input files.
|
5018
5016
|
*/
|
@@ -5020,6 +5018,15 @@ export namespace ProtocolMapping {
|
|
5020
5018
|
paramsType: [Protocol.PWA.LaunchFilesInAppRequest];
|
5021
5019
|
returnType: Protocol.PWA.LaunchFilesInAppResponse;
|
5022
5020
|
};
|
5021
|
+
/**
|
5022
|
+
* Opens the current page in its web app identified by the manifest id, needs
|
5023
|
+
* to be called on a page target. This function returns immediately without
|
5024
|
+
* waiting for the app finishing loading.
|
5025
|
+
*/
|
5026
|
+
'PWA.openCurrentPageInApp': {
|
5027
|
+
paramsType: [Protocol.PWA.OpenCurrentPageInAppRequest];
|
5028
|
+
returnType: void;
|
5029
|
+
};
|
5023
5030
|
}
|
5024
5031
|
}
|
5025
5032
|
|
@@ -4261,30 +4261,35 @@ export namespace ProtocolProxyApi {
|
|
4261
4261
|
|
4262
4262
|
/**
|
4263
4263
|
* Launches the installed web app, or an url in the same web app instead of the
|
4264
|
-
* default start url if it is provided. Returns a
|
4265
|
-
*
|
4266
|
-
* similar APIs.
|
4264
|
+
* default start url if it is provided. Returns a page Target.TargetID which
|
4265
|
+
* can be used to attach to via Target.attachToTarget or similar APIs.
|
4267
4266
|
*/
|
4268
4267
|
launch(params: Protocol.PWA.LaunchRequest): Promise<Protocol.PWA.LaunchResponse>;
|
4269
4268
|
|
4270
4269
|
/**
|
4271
4270
|
* Opens one or more local files from an installed web app identified by its
|
4272
4271
|
* manifestId. The web app needs to have file handlers registered to process
|
4273
|
-
* the files. The API returns one or more
|
4274
|
-
*
|
4275
|
-
* similar APIs.
|
4272
|
+
* the files. The API returns one or more page Target.TargetIDs which can be
|
4273
|
+
* used to attach to via Target.attachToTarget or similar APIs.
|
4276
4274
|
* If some files in the parameters cannot be handled by the web app, they will
|
4277
4275
|
* be ignored. If none of the files can be handled, this API returns an error.
|
4278
4276
|
* If no files provided as the parameter, this API also returns an error.
|
4279
4277
|
*
|
4280
4278
|
* According to the definition of the file handlers in the manifest file, one
|
4281
|
-
* Target.TargetID may represent a
|
4282
|
-
* the returned Target.TargetIDs is
|
4279
|
+
* Target.TargetID may represent a page handling one or more files. The order
|
4280
|
+
* of the returned Target.TargetIDs is not guaranteed.
|
4283
4281
|
*
|
4284
4282
|
* TODO(crbug.com/339454034): Check the existences of the input files.
|
4285
4283
|
*/
|
4286
4284
|
launchFilesInApp(params: Protocol.PWA.LaunchFilesInAppRequest): Promise<Protocol.PWA.LaunchFilesInAppResponse>;
|
4287
4285
|
|
4286
|
+
/**
|
4287
|
+
* Opens the current page in its web app identified by the manifest id, needs
|
4288
|
+
* to be called on a page target. This function returns immediately without
|
4289
|
+
* waiting for the app finishing loading.
|
4290
|
+
*/
|
4291
|
+
openCurrentPageInApp(params: Protocol.PWA.OpenCurrentPageInAppRequest): Promise<void>;
|
4292
|
+
|
4288
4293
|
}
|
4289
4294
|
}
|
4290
4295
|
|
@@ -4645,30 +4645,35 @@ export namespace ProtocolTestsProxyApi {
|
|
4645
4645
|
|
4646
4646
|
/**
|
4647
4647
|
* Launches the installed web app, or an url in the same web app instead of the
|
4648
|
-
* default start url if it is provided. Returns a
|
4649
|
-
*
|
4650
|
-
* similar APIs.
|
4648
|
+
* default start url if it is provided. Returns a page Target.TargetID which
|
4649
|
+
* can be used to attach to via Target.attachToTarget or similar APIs.
|
4651
4650
|
*/
|
4652
4651
|
launch(params: Protocol.PWA.LaunchRequest): Promise<{id: number, result: Protocol.PWA.LaunchResponse, sessionId: string}>;
|
4653
4652
|
|
4654
4653
|
/**
|
4655
4654
|
* Opens one or more local files from an installed web app identified by its
|
4656
4655
|
* manifestId. The web app needs to have file handlers registered to process
|
4657
|
-
* the files. The API returns one or more
|
4658
|
-
*
|
4659
|
-
* similar APIs.
|
4656
|
+
* the files. The API returns one or more page Target.TargetIDs which can be
|
4657
|
+
* used to attach to via Target.attachToTarget or similar APIs.
|
4660
4658
|
* If some files in the parameters cannot be handled by the web app, they will
|
4661
4659
|
* be ignored. If none of the files can be handled, this API returns an error.
|
4662
4660
|
* If no files provided as the parameter, this API also returns an error.
|
4663
4661
|
*
|
4664
4662
|
* According to the definition of the file handlers in the manifest file, one
|
4665
|
-
* Target.TargetID may represent a
|
4666
|
-
* the returned Target.TargetIDs is
|
4663
|
+
* Target.TargetID may represent a page handling one or more files. The order
|
4664
|
+
* of the returned Target.TargetIDs is not guaranteed.
|
4667
4665
|
*
|
4668
4666
|
* TODO(crbug.com/339454034): Check the existences of the input files.
|
4669
4667
|
*/
|
4670
4668
|
launchFilesInApp(params: Protocol.PWA.LaunchFilesInAppRequest): Promise<{id: number, result: Protocol.PWA.LaunchFilesInAppResponse, sessionId: string}>;
|
4671
4669
|
|
4670
|
+
/**
|
4671
|
+
* Opens the current page in its web app identified by the manifest id, needs
|
4672
|
+
* to be called on a page target. This function returns immediately without
|
4673
|
+
* waiting for the app finishing loading.
|
4674
|
+
*/
|
4675
|
+
openCurrentPageInApp(params: Protocol.PWA.OpenCurrentPageInAppRequest): Promise<{id: number, result: void, sessionId: string}>;
|
4676
|
+
|
4672
4677
|
}
|
4673
4678
|
}
|
4674
4679
|
|
package/types/protocol.d.ts
CHANGED
@@ -18602,6 +18602,10 @@ export namespace Protocol {
|
|
18602
18602
|
*/
|
18603
18603
|
targetIds: Target.TargetID[];
|
18604
18604
|
}
|
18605
|
+
|
18606
|
+
export interface OpenCurrentPageInAppRequest {
|
18607
|
+
manifestId: string;
|
18608
|
+
}
|
18605
18609
|
}
|
18606
18610
|
}
|
18607
18611
|
|