devtools-protocol 0.0.1427544 → 0.0.1428127

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.
@@ -9386,6 +9386,61 @@
9386
9386
  "Runtime"
9387
9387
  ],
9388
9388
  "types": [
9389
+ {
9390
+ "id": "SafeAreaInsets",
9391
+ "experimental": true,
9392
+ "type": "object",
9393
+ "properties": [
9394
+ {
9395
+ "name": "top",
9396
+ "description": "Overrides safe-area-inset-top.",
9397
+ "optional": true,
9398
+ "type": "integer"
9399
+ },
9400
+ {
9401
+ "name": "topMax",
9402
+ "description": "Overrides safe-area-max-inset-top.",
9403
+ "optional": true,
9404
+ "type": "integer"
9405
+ },
9406
+ {
9407
+ "name": "left",
9408
+ "description": "Overrides safe-area-inset-left.",
9409
+ "optional": true,
9410
+ "type": "integer"
9411
+ },
9412
+ {
9413
+ "name": "leftMax",
9414
+ "description": "Overrides safe-area-max-inset-left.",
9415
+ "optional": true,
9416
+ "type": "integer"
9417
+ },
9418
+ {
9419
+ "name": "bottom",
9420
+ "description": "Overrides safe-area-inset-bottom.",
9421
+ "optional": true,
9422
+ "type": "integer"
9423
+ },
9424
+ {
9425
+ "name": "bottomMax",
9426
+ "description": "Overrides safe-area-max-inset-bottom.",
9427
+ "optional": true,
9428
+ "type": "integer"
9429
+ },
9430
+ {
9431
+ "name": "right",
9432
+ "description": "Overrides safe-area-inset-right.",
9433
+ "optional": true,
9434
+ "type": "integer"
9435
+ },
9436
+ {
9437
+ "name": "rightMax",
9438
+ "description": "Overrides safe-area-max-inset-right.",
9439
+ "optional": true,
9440
+ "type": "integer"
9441
+ }
9442
+ ]
9443
+ },
9389
9444
  {
9390
9445
  "id": "ScreenOrientation",
9391
9446
  "description": "Screen orientation.",
@@ -9781,6 +9836,17 @@
9781
9836
  }
9782
9837
  ]
9783
9838
  },
9839
+ {
9840
+ "name": "setSafeAreaInsetsOverride",
9841
+ "description": "Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the\nrespective variables to be undefined, even if previously overridden.",
9842
+ "experimental": true,
9843
+ "parameters": [
9844
+ {
9845
+ "name": "insets",
9846
+ "$ref": "SafeAreaInsets"
9847
+ }
9848
+ ]
9849
+ },
9784
9850
  {
9785
9851
  "name": "setDeviceMetricsOverride",
9786
9852
  "description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height,\nwindow.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media\nquery results).",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1427544",
3
+ "version": "0.0.1428127",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -4346,6 +4346,25 @@ domain Emulation
4346
4346
  depends on Page
4347
4347
  depends on Runtime
4348
4348
 
4349
+ experimental type SafeAreaInsets extends object
4350
+ properties
4351
+ # Overrides safe-area-inset-top.
4352
+ optional integer top
4353
+ # Overrides safe-area-max-inset-top.
4354
+ optional integer topMax
4355
+ # Overrides safe-area-inset-left.
4356
+ optional integer left
4357
+ # Overrides safe-area-max-inset-left.
4358
+ optional integer leftMax
4359
+ # Overrides safe-area-inset-bottom.
4360
+ optional integer bottom
4361
+ # Overrides safe-area-max-inset-bottom.
4362
+ optional integer bottomMax
4363
+ # Overrides safe-area-inset-right.
4364
+ optional integer right
4365
+ # Overrides safe-area-max-inset-right.
4366
+ optional integer rightMax
4367
+
4349
4368
  # Screen orientation.
4350
4369
  type ScreenOrientation extends object
4351
4370
  properties
@@ -4516,6 +4535,12 @@ domain Emulation
4516
4535
  # cleared.
4517
4536
  optional DOM.RGBA color
4518
4537
 
4538
+ # Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the
4539
+ # respective variables to be undefined, even if previously overridden.
4540
+ experimental command setSafeAreaInsetsOverride
4541
+ parameters
4542
+ SafeAreaInsets insets
4543
+
4519
4544
  # Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
4520
4545
  # window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
4521
4546
  # query results).
@@ -2752,6 +2752,14 @@ export namespace ProtocolMapping {
2752
2752
  paramsType: [Protocol.Emulation.SetDefaultBackgroundColorOverrideRequest?];
2753
2753
  returnType: void;
2754
2754
  };
2755
+ /**
2756
+ * Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the
2757
+ * respective variables to be undefined, even if previously overridden.
2758
+ */
2759
+ 'Emulation.setSafeAreaInsetsOverride': {
2760
+ paramsType: [Protocol.Emulation.SetSafeAreaInsetsOverrideRequest];
2761
+ returnType: void;
2762
+ };
2755
2763
  /**
2756
2764
  * Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
2757
2765
  * window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
@@ -1891,6 +1891,12 @@ export namespace ProtocolProxyApi {
1891
1891
  */
1892
1892
  setDefaultBackgroundColorOverride(params: Protocol.Emulation.SetDefaultBackgroundColorOverrideRequest): Promise<void>;
1893
1893
 
1894
+ /**
1895
+ * Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the
1896
+ * respective variables to be undefined, even if previously overridden.
1897
+ */
1898
+ setSafeAreaInsetsOverride(params: Protocol.Emulation.SetSafeAreaInsetsOverrideRequest): Promise<void>;
1899
+
1894
1900
  /**
1895
1901
  * Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
1896
1902
  * window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
@@ -2015,6 +2015,12 @@ export namespace ProtocolTestsProxyApi {
2015
2015
  */
2016
2016
  setDefaultBackgroundColorOverride(params: Protocol.Emulation.SetDefaultBackgroundColorOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2017
2017
 
2018
+ /**
2019
+ * Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the
2020
+ * respective variables to be undefined, even if previously overridden.
2021
+ */
2022
+ setSafeAreaInsetsOverride(params: Protocol.Emulation.SetSafeAreaInsetsOverrideRequest): Promise<{id: number, result: void, sessionId: string}>;
2023
+
2018
2024
  /**
2019
2025
  * Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
2020
2026
  * window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
@@ -8395,6 +8395,41 @@ export namespace Protocol {
8395
8395
  */
8396
8396
  export namespace Emulation {
8397
8397
 
8398
+ export interface SafeAreaInsets {
8399
+ /**
8400
+ * Overrides safe-area-inset-top.
8401
+ */
8402
+ top?: integer;
8403
+ /**
8404
+ * Overrides safe-area-max-inset-top.
8405
+ */
8406
+ topMax?: integer;
8407
+ /**
8408
+ * Overrides safe-area-inset-left.
8409
+ */
8410
+ left?: integer;
8411
+ /**
8412
+ * Overrides safe-area-max-inset-left.
8413
+ */
8414
+ leftMax?: integer;
8415
+ /**
8416
+ * Overrides safe-area-inset-bottom.
8417
+ */
8418
+ bottom?: integer;
8419
+ /**
8420
+ * Overrides safe-area-max-inset-bottom.
8421
+ */
8422
+ bottomMax?: integer;
8423
+ /**
8424
+ * Overrides safe-area-inset-right.
8425
+ */
8426
+ right?: integer;
8427
+ /**
8428
+ * Overrides safe-area-max-inset-right.
8429
+ */
8430
+ rightMax?: integer;
8431
+ }
8432
+
8398
8433
  export const enum ScreenOrientationType {
8399
8434
  PortraitPrimary = 'portraitPrimary',
8400
8435
  PortraitSecondary = 'portraitSecondary',
@@ -8580,6 +8615,10 @@ export namespace Protocol {
8580
8615
  color?: DOM.RGBA;
8581
8616
  }
8582
8617
 
8618
+ export interface SetSafeAreaInsetsOverrideRequest {
8619
+ insets: SafeAreaInsets;
8620
+ }
8621
+
8583
8622
  export interface SetDeviceMetricsOverrideRequest {
8584
8623
  /**
8585
8624
  * Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.