devtools-protocol 0.0.1495237 → 0.0.1495869

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.
@@ -21741,7 +21741,7 @@
21741
21741
  },
21742
21742
  {
21743
21743
  "name": "compilationCacheProduced",
21744
- "description": "Issued for every compilation cache generated. Is only available\nif Page.setGenerateCompilationCache is enabled.",
21744
+ "description": "Issued for every compilation cache generated.",
21745
21745
  "experimental": true,
21746
21746
  "parameters": [
21747
21747
  {
@@ -25634,6 +25634,25 @@
25634
25634
  }
25635
25635
  }
25636
25636
  ]
25637
+ },
25638
+ {
25639
+ "name": "openDevTools",
25640
+ "description": "Opens a DevTools window for the target.",
25641
+ "experimental": true,
25642
+ "parameters": [
25643
+ {
25644
+ "name": "targetId",
25645
+ "description": "This can be the page or tab target ID.",
25646
+ "$ref": "TargetID"
25647
+ }
25648
+ ],
25649
+ "returns": [
25650
+ {
25651
+ "name": "targetId",
25652
+ "description": "The targetId of DevTools page target.",
25653
+ "$ref": "TargetID"
25654
+ }
25655
+ ]
25637
25656
  }
25638
25657
  ],
25639
25658
  "events": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devtools-protocol",
3
- "version": "0.0.1495237",
3
+ "version": "0.0.1495869",
4
4
  "description": "The Chrome DevTools Protocol JSON",
5
5
  "repository": "https://github.com/ChromeDevTools/devtools-protocol",
6
6
  "author": "The Chromium Authors",
@@ -10296,8 +10296,7 @@ domain Page
10296
10296
  # Whether or not it was triggered by user gesture.
10297
10297
  boolean userGesture
10298
10298
 
10299
- # Issued for every compilation cache generated. Is only available
10300
- # if Page.setGenerateCompilationCache is enabled.
10299
+ # Issued for every compilation cache generated.
10301
10300
  experimental event compilationCacheProduced
10302
10301
  parameters
10303
10302
  string url
@@ -12097,6 +12096,15 @@ domain Target
12097
12096
  parameters
12098
12097
  TargetInfo targetInfo
12099
12098
 
12099
+ # Opens a DevTools window for the target.
12100
+ experimental command openDevTools
12101
+ parameters
12102
+ # This can be the page or tab target ID.
12103
+ TargetID targetId
12104
+ returns
12105
+ # The targetId of DevTools page target.
12106
+ TargetID targetId
12107
+
12100
12108
  # The Tethering domain defines methods and events for browser port binding.
12101
12109
  experimental domain Tethering
12102
12110
 
@@ -588,8 +588,7 @@ export namespace ProtocolMapping {
588
588
  */
589
589
  'Page.windowOpen': [Protocol.Page.WindowOpenEvent];
590
590
  /**
591
- * Issued for every compilation cache generated. Is only available
592
- * if Page.setGenerateCompilationCache is enabled.
591
+ * Issued for every compilation cache generated.
593
592
  */
594
593
  'Page.compilationCacheProduced': [Protocol.Page.CompilationCacheProducedEvent];
595
594
  /**
@@ -4964,6 +4963,13 @@ export namespace ProtocolMapping {
4964
4963
  paramsType: [Protocol.Target.SetRemoteLocationsRequest];
4965
4964
  returnType: void;
4966
4965
  };
4966
+ /**
4967
+ * Opens a DevTools window for the target.
4968
+ */
4969
+ 'Target.openDevTools': {
4970
+ paramsType: [Protocol.Target.OpenDevToolsRequest];
4971
+ returnType: Protocol.Target.OpenDevToolsResponse;
4972
+ };
4967
4973
  /**
4968
4974
  * Request browser port binding.
4969
4975
  */
@@ -3801,8 +3801,7 @@ export namespace ProtocolProxyApi {
3801
3801
  on(event: 'windowOpen', listener: (params: Protocol.Page.WindowOpenEvent) => void): void;
3802
3802
 
3803
3803
  /**
3804
- * Issued for every compilation cache generated. Is only available
3805
- * if Page.setGenerateCompilationCache is enabled.
3804
+ * Issued for every compilation cache generated.
3806
3805
  * @experimental
3807
3806
  */
3808
3807
  on(event: 'compilationCacheProduced', listener: (params: Protocol.Page.CompilationCacheProducedEvent) => void): void;
@@ -4363,6 +4362,12 @@ export namespace ProtocolProxyApi {
4363
4362
  */
4364
4363
  setRemoteLocations(params: Protocol.Target.SetRemoteLocationsRequest): Promise<void>;
4365
4364
 
4365
+ /**
4366
+ * Opens a DevTools window for the target.
4367
+ * @experimental
4368
+ */
4369
+ openDevTools(params: Protocol.Target.OpenDevToolsRequest): Promise<Protocol.Target.OpenDevToolsResponse>;
4370
+
4366
4371
  /**
4367
4372
  * Issued when attached to target because of auto-attach or `attachToTarget` command.
4368
4373
  * @experimental
@@ -4091,8 +4091,7 @@ export namespace ProtocolTestsProxyApi {
4091
4091
  onceWindowOpen(eventMatcher?: (event: { params: Protocol.Page.WindowOpenEvent }) => boolean): Promise<{ params: Protocol.Page.WindowOpenEvent }>;
4092
4092
 
4093
4093
  /**
4094
- * Issued for every compilation cache generated. Is only available
4095
- * if Page.setGenerateCompilationCache is enabled.
4094
+ * Issued for every compilation cache generated.
4096
4095
  * @experimental
4097
4096
  */
4098
4097
  onCompilationCacheProduced(listener: (event: { params: Protocol.Page.CompilationCacheProducedEvent }) => void): void;
@@ -4701,6 +4700,12 @@ export namespace ProtocolTestsProxyApi {
4701
4700
  */
4702
4701
  setRemoteLocations(params: Protocol.Target.SetRemoteLocationsRequest): Promise<{id: number, result: void, sessionId: string}>;
4703
4702
 
4703
+ /**
4704
+ * Opens a DevTools window for the target.
4705
+ * @experimental
4706
+ */
4707
+ openDevTools(params: Protocol.Target.OpenDevToolsRequest): Promise<{id: number, result: Protocol.Target.OpenDevToolsResponse, sessionId: string}>;
4708
+
4704
4709
  /**
4705
4710
  * Issued when attached to target because of auto-attach or `attachToTarget` command.
4706
4711
  * @experimental
@@ -16608,8 +16608,7 @@ export namespace Protocol {
16608
16608
  }
16609
16609
 
16610
16610
  /**
16611
- * Issued for every compilation cache generated. Is only available
16612
- * if Page.setGenerateCompilationCache is enabled.
16611
+ * Issued for every compilation cache generated.
16613
16612
  * @experimental
16614
16613
  */
16615
16614
  export interface CompilationCacheProducedEvent {
@@ -18899,6 +18898,20 @@ export namespace Protocol {
18899
18898
  locations: RemoteLocation[];
18900
18899
  }
18901
18900
 
18901
+ export interface OpenDevToolsRequest {
18902
+ /**
18903
+ * This can be the page or tab target ID.
18904
+ */
18905
+ targetId: TargetID;
18906
+ }
18907
+
18908
+ export interface OpenDevToolsResponse {
18909
+ /**
18910
+ * The targetId of DevTools page target.
18911
+ */
18912
+ targetId: TargetID;
18913
+ }
18914
+
18902
18915
  /**
18903
18916
  * Issued when attached to target because of auto-attach or `attachToTarget` command.
18904
18917
  * @experimental