devtools-protocol 0.0.1590631 → 0.0.1591961

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.
@@ -11691,6 +11691,17 @@
11691
11691
  "$ref": "ScreenId"
11692
11692
  }
11693
11693
  ]
11694
+ },
11695
+ {
11696
+ "name": "setPrimaryScreen",
11697
+ "description": "Set primary screen. Only supported in headless mode.\nNote that this changes the coordinate system origin to the top-left\nof the new primary screen, updating the bounds and work areas\nof all existing screens accordingly.",
11698
+ "experimental": true,
11699
+ "parameters": [
11700
+ {
11701
+ "name": "screenId",
11702
+ "$ref": "ScreenId"
11703
+ }
11704
+ ]
11694
11705
  }
11695
11706
  ],
11696
11707
  "events": [
@@ -15503,7 +15514,7 @@
15503
15514
  },
15504
15515
  {
15505
15516
  "id": "RenderBlockingBehavior",
15506
- "description": "The render blocking behavior of a resource request.",
15517
+ "description": "The render-blocking behavior of a resource request.",
15507
15518
  "experimental": true,
15508
15519
  "type": "string",
15509
15520
  "enum": [
@@ -19013,7 +19024,7 @@
19013
19024
  },
19014
19025
  {
19015
19026
  "name": "renderBlockingBehavior",
19016
- "description": "The render blocking behavior of the request.",
19027
+ "description": "The render-blocking behavior of the request.",
19017
19028
  "experimental": true,
19018
19029
  "optional": true,
19019
19030
  "$ref": "RenderBlockingBehavior"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1590631",
3
+ "version": "0.0.1591961",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -617,3 +617,11 @@ domain Emulation
617
617
  experimental command removeScreen
618
618
  parameters
619
619
  ScreenId screenId
620
+
621
+ # Set primary screen. Only supported in headless mode.
622
+ # Note that this changes the coordinate system origin to the top-left
623
+ # of the new primary screen, updating the bounds and work areas
624
+ # of all existing screens accordingly.
625
+ experimental command setPrimaryScreen
626
+ parameters
627
+ ScreenId screenId
@@ -166,7 +166,7 @@ domain Network
166
166
  High
167
167
  VeryHigh
168
168
 
169
- # The render blocking behavior of a resource request.
169
+ # The render-blocking behavior of a resource request.
170
170
  experimental type RenderBlockingBehavior extends string
171
171
  enum
172
172
  Blocking
@@ -1477,7 +1477,7 @@ domain Network
1477
1477
  optional Page.FrameId frameId
1478
1478
  # Whether the request is initiated by a user gesture. Defaults to false.
1479
1479
  optional boolean hasUserGesture
1480
- # The render blocking behavior of the request.
1480
+ # The render-blocking behavior of the request.
1481
1481
  experimental optional RenderBlockingBehavior renderBlockingBehavior
1482
1482
 
1483
1483
  # Fired when resource loading priority is changed
@@ -3591,6 +3591,17 @@ export namespace ProtocolMapping {
3591
3591
  paramsType: [Protocol.Emulation.RemoveScreenRequest];
3592
3592
  returnType: void;
3593
3593
  };
3594
+ /**
3595
+ * Set primary screen. Only supported in headless mode.
3596
+ * Note that this changes the coordinate system origin to the top-left
3597
+ * of the new primary screen, updating the bounds and work areas
3598
+ * of all existing screens accordingly.
3599
+ * @experimental
3600
+ */
3601
+ 'Emulation.setPrimaryScreen': {
3602
+ paramsType: [Protocol.Emulation.SetPrimaryScreenRequest];
3603
+ returnType: void;
3604
+ };
3594
3605
  /**
3595
3606
  * Sets breakpoint on particular native event.
3596
3607
  */
@@ -2390,6 +2390,15 @@ export namespace ProtocolProxyApi {
2390
2390
  */
2391
2391
  removeScreen(params: Protocol.Emulation.RemoveScreenRequest): Promise<void>;
2392
2392
 
2393
+ /**
2394
+ * Set primary screen. Only supported in headless mode.
2395
+ * Note that this changes the coordinate system origin to the top-left
2396
+ * of the new primary screen, updating the bounds and work areas
2397
+ * of all existing screens accordingly.
2398
+ * @experimental
2399
+ */
2400
+ setPrimaryScreen(params: Protocol.Emulation.SetPrimaryScreenRequest): Promise<void>;
2401
+
2393
2402
  /**
2394
2403
  * Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
2395
2404
  * @experimental
@@ -2528,6 +2528,15 @@ export namespace ProtocolTestsProxyApi {
2528
2528
  */
2529
2529
  removeScreen(params: Protocol.Emulation.RemoveScreenRequest): Promise<{id: number, result: void, sessionId: string}>;
2530
2530
 
2531
+ /**
2532
+ * Set primary screen. Only supported in headless mode.
2533
+ * Note that this changes the coordinate system origin to the top-left
2534
+ * of the new primary screen, updating the bounds and work areas
2535
+ * of all existing screens accordingly.
2536
+ * @experimental
2537
+ */
2538
+ setPrimaryScreen(params: Protocol.Emulation.SetPrimaryScreenRequest): Promise<{id: number, result: void, sessionId: string}>;
2539
+
2531
2540
  /**
2532
2541
  * Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.
2533
2542
  * @experimental
@@ -9868,6 +9868,10 @@ export namespace Protocol {
9868
9868
  export interface RemoveScreenRequest {
9869
9869
  screenId: ScreenId;
9870
9870
  }
9871
+
9872
+ export interface SetPrimaryScreenRequest {
9873
+ screenId: ScreenId;
9874
+ }
9871
9875
  }
9872
9876
 
9873
9877
  /**
@@ -12420,7 +12424,7 @@ export namespace Protocol {
12420
12424
  export type ResourcePriority = ('VeryLow' | 'Low' | 'Medium' | 'High' | 'VeryHigh');
12421
12425
 
12422
12426
  /**
12423
- * The render blocking behavior of a resource request.
12427
+ * The render-blocking behavior of a resource request.
12424
12428
  * @experimental
12425
12429
  */
12426
12430
  export type RenderBlockingBehavior = ('Blocking' | 'InBodyParserBlocking' | 'NonBlocking' | 'NonBlockingDynamic' | 'PotentiallyBlocking');
@@ -14818,7 +14822,7 @@ export namespace Protocol {
14818
14822
  */
14819
14823
  hasUserGesture?: boolean;
14820
14824
  /**
14821
- * The render blocking behavior of the request.
14825
+ * The render-blocking behavior of the request.
14822
14826
  * @experimental
14823
14827
  */
14824
14828
  renderBlockingBehavior?: RenderBlockingBehavior;