devtools-protocol 0.0.1317765 → 0.0.1323165

Sign up to get free protection for your applications and to get access to all the features.
@@ -4217,6 +4217,10 @@
4217
4217
  "name": "style",
4218
4218
  "description": "Associated style declaration.",
4219
4219
  "$ref": "CSSStyle"
4220
+ },
4221
+ {
4222
+ "name": "active",
4223
+ "type": "boolean"
4220
4224
  }
4221
4225
  ]
4222
4226
  },
@@ -26244,6 +26248,15 @@
26244
26248
  "type": "string"
26245
26249
  }
26246
26250
  ]
26251
+ },
26252
+ {
26253
+ "id": "DisplayMode",
26254
+ "description": "If user prefers opening the app in browser or an app window.",
26255
+ "type": "string",
26256
+ "enum": [
26257
+ "standalone",
26258
+ "browser"
26259
+ ]
26247
26260
  }
26248
26261
  ],
26249
26262
  "commands": [
@@ -26289,7 +26302,7 @@
26289
26302
  },
26290
26303
  {
26291
26304
  "name": "uninstall",
26292
- "description": "Uninstals the given manifest_id and closes any opened app windows.",
26305
+ "description": "Uninstalls the given manifest_id and closes any opened app windows.",
26293
26306
  "parameters": [
26294
26307
  {
26295
26308
  "name": "manifestId",
@@ -26321,7 +26334,7 @@
26321
26334
  },
26322
26335
  {
26323
26336
  "name": "launchFilesInApp",
26324
- "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.",
26337
+ "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 are 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.",
26325
26338
  "parameters": [
26326
26339
  {
26327
26340
  "name": "manifestId",
@@ -26348,11 +26361,32 @@
26348
26361
  },
26349
26362
  {
26350
26363
  "name": "openCurrentPageInApp",
26351
- "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.",
26364
+ "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 to finish loading.",
26365
+ "parameters": [
26366
+ {
26367
+ "name": "manifestId",
26368
+ "type": "string"
26369
+ }
26370
+ ]
26371
+ },
26372
+ {
26373
+ "name": "changeAppUserSettings",
26374
+ "description": "Changes user settings of the web app identified by its manifestId. If the\napp was not installed, this command returns an error. Unset parameters will\nbe ignored; unrecognized values will cause an error.\n\nUnlike the ones defined in the manifest files of the web apps, these\nsettings are provided by the browser and controlled by the users, they\nimpact the way the browser handling the web apps.\n\nSee the comment of each parameter.",
26352
26375
  "parameters": [
26353
26376
  {
26354
26377
  "name": "manifestId",
26355
26378
  "type": "string"
26379
+ },
26380
+ {
26381
+ "name": "linkCapturing",
26382
+ "description": "If user allows the links clicked on by the user in the app's scope, or\nextended scope if the manifest has scope extensions and the flags\n`DesktopPWAsLinkCapturingWithScopeExtensions` and\n`WebAppEnableScopeExtensions` are enabled.\n\nNote, the API does not support resetting the linkCapturing to the\ninitial value, uninstalling and installing the web app again will reset\nit.\n\nTODO(crbug.com/339453269): Setting this value on ChromeOS is not\nsupported yet.",
26383
+ "optional": true,
26384
+ "type": "boolean"
26385
+ },
26386
+ {
26387
+ "name": "displayMode",
26388
+ "optional": true,
26389
+ "$ref": "DisplayMode"
26356
26390
  }
26357
26391
  ]
26358
26392
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1317765",
3
+ "version": "0.0.1323165",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -2031,6 +2031,7 @@ experimental domain CSS
2031
2031
  StyleSheetOrigin origin
2032
2032
  # Associated style declaration.
2033
2033
  CSSStyle style
2034
+ boolean active
2034
2035
 
2035
2036
  # CSS keyframes rule representation.
2036
2037
  type CSSKeyframesRule extends object
@@ -12426,7 +12427,7 @@ experimental domain PWA
12426
12427
  # manifestId.
12427
12428
  optional string installUrlOrBundleUrl
12428
12429
 
12429
- # Uninstals the given manifest_id and closes any opened app windows.
12430
+ # Uninstalls the given manifest_id and closes any opened app windows.
12430
12431
  command uninstall
12431
12432
  parameters
12432
12433
  string manifestId
@@ -12448,7 +12449,7 @@ experimental domain PWA
12448
12449
  # used to attach to via Target.attachToTarget or similar APIs.
12449
12450
  # If some files in the parameters cannot be handled by the web app, they will
12450
12451
  # be ignored. If none of the files can be handled, this API returns an error.
12451
- # If no files provided as the parameter, this API also returns an error.
12452
+ # If no files are provided as the parameter, this API also returns an error.
12452
12453
  #
12453
12454
  # According to the definition of the file handlers in the manifest file, one
12454
12455
  # Target.TargetID may represent a page handling one or more files. The order
@@ -12465,7 +12466,39 @@ experimental domain PWA
12465
12466
 
12466
12467
  # Opens the current page in its web app identified by the manifest id, needs
12467
12468
  # to be called on a page target. This function returns immediately without
12468
- # waiting for the app finishing loading.
12469
+ # waiting for the app to finish loading.
12469
12470
  command openCurrentPageInApp
12470
12471
  parameters
12471
12472
  string manifestId
12473
+
12474
+ # If user prefers opening the app in browser or an app window.
12475
+ type DisplayMode extends string
12476
+ enum
12477
+ standalone
12478
+ browser
12479
+
12480
+ # Changes user settings of the web app identified by its manifestId. If the
12481
+ # app was not installed, this command returns an error. Unset parameters will
12482
+ # be ignored; unrecognized values will cause an error.
12483
+ #
12484
+ # Unlike the ones defined in the manifest files of the web apps, these
12485
+ # settings are provided by the browser and controlled by the users, they
12486
+ # impact the way the browser handling the web apps.
12487
+ #
12488
+ # See the comment of each parameter.
12489
+ command changeAppUserSettings
12490
+ parameters
12491
+ string manifestId
12492
+ # If user allows the links clicked on by the user in the app's scope, or
12493
+ # extended scope if the manifest has scope extensions and the flags
12494
+ # `DesktopPWAsLinkCapturingWithScopeExtensions` and
12495
+ # `WebAppEnableScopeExtensions` are enabled.
12496
+ #
12497
+ # Note, the API does not support resetting the linkCapturing to the
12498
+ # initial value, uninstalling and installing the web app again will reset
12499
+ # it.
12500
+ #
12501
+ # TODO(crbug.com/339453269): Setting this value on ChromeOS is not
12502
+ # supported yet.
12503
+ optional boolean linkCapturing
12504
+ optional DisplayMode displayMode
@@ -4988,7 +4988,7 @@ export namespace ProtocolMapping {
4988
4988
  returnType: void;
4989
4989
  };
4990
4990
  /**
4991
- * Uninstals the given manifest_id and closes any opened app windows.
4991
+ * Uninstalls the given manifest_id and closes any opened app windows.
4992
4992
  */
4993
4993
  'PWA.uninstall': {
4994
4994
  paramsType: [Protocol.PWA.UninstallRequest];
@@ -5010,7 +5010,7 @@ export namespace ProtocolMapping {
5010
5010
  * used to attach to via Target.attachToTarget or similar APIs.
5011
5011
  * If some files in the parameters cannot be handled by the web app, they will
5012
5012
  * be ignored. If none of the files can be handled, this API returns an error.
5013
- * If no files provided as the parameter, this API also returns an error.
5013
+ * If no files are provided as the parameter, this API also returns an error.
5014
5014
  *
5015
5015
  * According to the definition of the file handlers in the manifest file, one
5016
5016
  * Target.TargetID may represent a page handling one or more files. The order
@@ -5025,12 +5025,27 @@ export namespace ProtocolMapping {
5025
5025
  /**
5026
5026
  * Opens the current page in its web app identified by the manifest id, needs
5027
5027
  * to be called on a page target. This function returns immediately without
5028
- * waiting for the app finishing loading.
5028
+ * waiting for the app to finish loading.
5029
5029
  */
5030
5030
  'PWA.openCurrentPageInApp': {
5031
5031
  paramsType: [Protocol.PWA.OpenCurrentPageInAppRequest];
5032
5032
  returnType: void;
5033
5033
  };
5034
+ /**
5035
+ * Changes user settings of the web app identified by its manifestId. If the
5036
+ * app was not installed, this command returns an error. Unset parameters will
5037
+ * be ignored; unrecognized values will cause an error.
5038
+ *
5039
+ * Unlike the ones defined in the manifest files of the web apps, these
5040
+ * settings are provided by the browser and controlled by the users, they
5041
+ * impact the way the browser handling the web apps.
5042
+ *
5043
+ * See the comment of each parameter.
5044
+ */
5045
+ 'PWA.changeAppUserSettings': {
5046
+ paramsType: [Protocol.PWA.ChangeAppUserSettingsRequest];
5047
+ returnType: void;
5048
+ };
5034
5049
  }
5035
5050
  }
5036
5051
 
@@ -4260,7 +4260,7 @@ export namespace ProtocolProxyApi {
4260
4260
  install(params: Protocol.PWA.InstallRequest): Promise<void>;
4261
4261
 
4262
4262
  /**
4263
- * Uninstals the given manifest_id and closes any opened app windows.
4263
+ * Uninstalls the given manifest_id and closes any opened app windows.
4264
4264
  */
4265
4265
  uninstall(params: Protocol.PWA.UninstallRequest): Promise<void>;
4266
4266
 
@@ -4278,7 +4278,7 @@ export namespace ProtocolProxyApi {
4278
4278
  * used to attach to via Target.attachToTarget or similar APIs.
4279
4279
  * If some files in the parameters cannot be handled by the web app, they will
4280
4280
  * be ignored. If none of the files can be handled, this API returns an error.
4281
- * If no files provided as the parameter, this API also returns an error.
4281
+ * If no files are provided as the parameter, this API also returns an error.
4282
4282
  *
4283
4283
  * According to the definition of the file handlers in the manifest file, one
4284
4284
  * Target.TargetID may represent a page handling one or more files. The order
@@ -4291,10 +4291,23 @@ export namespace ProtocolProxyApi {
4291
4291
  /**
4292
4292
  * Opens the current page in its web app identified by the manifest id, needs
4293
4293
  * to be called on a page target. This function returns immediately without
4294
- * waiting for the app finishing loading.
4294
+ * waiting for the app to finish loading.
4295
4295
  */
4296
4296
  openCurrentPageInApp(params: Protocol.PWA.OpenCurrentPageInAppRequest): Promise<void>;
4297
4297
 
4298
+ /**
4299
+ * Changes user settings of the web app identified by its manifestId. If the
4300
+ * app was not installed, this command returns an error. Unset parameters will
4301
+ * be ignored; unrecognized values will cause an error.
4302
+ *
4303
+ * Unlike the ones defined in the manifest files of the web apps, these
4304
+ * settings are provided by the browser and controlled by the users, they
4305
+ * impact the way the browser handling the web apps.
4306
+ *
4307
+ * See the comment of each parameter.
4308
+ */
4309
+ changeAppUserSettings(params: Protocol.PWA.ChangeAppUserSettingsRequest): Promise<void>;
4310
+
4298
4311
  }
4299
4312
  }
4300
4313
 
@@ -4646,7 +4646,7 @@ export namespace ProtocolTestsProxyApi {
4646
4646
  install(params: Protocol.PWA.InstallRequest): Promise<{id: number, result: void, sessionId: string}>;
4647
4647
 
4648
4648
  /**
4649
- * Uninstals the given manifest_id and closes any opened app windows.
4649
+ * Uninstalls the given manifest_id and closes any opened app windows.
4650
4650
  */
4651
4651
  uninstall(params: Protocol.PWA.UninstallRequest): Promise<{id: number, result: void, sessionId: string}>;
4652
4652
 
@@ -4664,7 +4664,7 @@ export namespace ProtocolTestsProxyApi {
4664
4664
  * used to attach to via Target.attachToTarget or similar APIs.
4665
4665
  * If some files in the parameters cannot be handled by the web app, they will
4666
4666
  * be ignored. If none of the files can be handled, this API returns an error.
4667
- * If no files provided as the parameter, this API also returns an error.
4667
+ * If no files are provided as the parameter, this API also returns an error.
4668
4668
  *
4669
4669
  * According to the definition of the file handlers in the manifest file, one
4670
4670
  * Target.TargetID may represent a page handling one or more files. The order
@@ -4677,10 +4677,23 @@ export namespace ProtocolTestsProxyApi {
4677
4677
  /**
4678
4678
  * Opens the current page in its web app identified by the manifest id, needs
4679
4679
  * to be called on a page target. This function returns immediately without
4680
- * waiting for the app finishing loading.
4680
+ * waiting for the app to finish loading.
4681
4681
  */
4682
4682
  openCurrentPageInApp(params: Protocol.PWA.OpenCurrentPageInAppRequest): Promise<{id: number, result: void, sessionId: string}>;
4683
4683
 
4684
+ /**
4685
+ * Changes user settings of the web app identified by its manifestId. If the
4686
+ * app was not installed, this command returns an error. Unset parameters will
4687
+ * be ignored; unrecognized values will cause an error.
4688
+ *
4689
+ * Unlike the ones defined in the manifest files of the web apps, these
4690
+ * settings are provided by the browser and controlled by the users, they
4691
+ * impact the way the browser handling the web apps.
4692
+ *
4693
+ * See the comment of each parameter.
4694
+ */
4695
+ changeAppUserSettings(params: Protocol.PWA.ChangeAppUserSettingsRequest): Promise<{id: number, result: void, sessionId: string}>;
4696
+
4684
4697
  }
4685
4698
  }
4686
4699
 
@@ -5154,6 +5154,7 @@ export namespace Protocol {
5154
5154
  * Associated style declaration.
5155
5155
  */
5156
5156
  style: CSSStyle;
5157
+ active: boolean;
5157
5158
  }
5158
5159
 
5159
5160
  /**
@@ -18567,6 +18568,11 @@ export namespace Protocol {
18567
18568
  displayName: string;
18568
18569
  }
18569
18570
 
18571
+ /**
18572
+ * If user prefers opening the app in browser or an app window.
18573
+ */
18574
+ export type DisplayMode = ('standalone' | 'browser');
18575
+
18570
18576
  export interface GetOsAppStateRequest {
18571
18577
  /**
18572
18578
  * The id from the webapp's manifest file, commonly it's the url of the
@@ -18621,6 +18627,25 @@ export namespace Protocol {
18621
18627
  export interface OpenCurrentPageInAppRequest {
18622
18628
  manifestId: string;
18623
18629
  }
18630
+
18631
+ export interface ChangeAppUserSettingsRequest {
18632
+ manifestId: string;
18633
+ /**
18634
+ * If user allows the links clicked on by the user in the app's scope, or
18635
+ * extended scope if the manifest has scope extensions and the flags
18636
+ * `DesktopPWAsLinkCapturingWithScopeExtensions` and
18637
+ * `WebAppEnableScopeExtensions` are enabled.
18638
+ *
18639
+ * Note, the API does not support resetting the linkCapturing to the
18640
+ * initial value, uninstalling and installing the web app again will reset
18641
+ * it.
18642
+ *
18643
+ * TODO(crbug.com/339453269): Setting this value on ChromeOS is not
18644
+ * supported yet.
18645
+ */
18646
+ linkCapturing?: boolean;
18647
+ displayMode?: DisplayMode;
18648
+ }
18624
18649
  }
18625
18650
  }
18626
18651