Skip to content

Commit 71879bd

Browse files
committed
Roll protocol to r1495869
1 parent db8c7d5 commit 71879bd

File tree

8 files changed

+70
-14
lines changed

8 files changed

+70
-14
lines changed

json/browser_protocol.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21741,7 +21741,7 @@
2174121741
},
2174221742
{
2174321743
"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.",
2174521745
"experimental": true,
2174621746
"parameters": [
2174721747
{
@@ -25634,6 +25634,25 @@
2563425634
}
2563525635
}
2563625636
]
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+
]
2563725656
}
2563825657
],
2563925658
"events": [

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devtools-protocol",
3-
"version": "0.0.1495237",
3+
"version": "0.0.1495869",
44
"description": "The Chrome DevTools Protocol JSON",
55
"repository": "https://github.com/ChromeDevTools/devtools-protocol",
66
"author": "The Chromium Authors",

pdl/browser_protocol.pdl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10296,8 +10296,7 @@ domain Page
1029610296
# Whether or not it was triggered by user gesture.
1029710297
boolean userGesture
1029810298

10299-
# Issued for every compilation cache generated. Is only available
10300-
# if Page.setGenerateCompilationCache is enabled.
10299+
# Issued for every compilation cache generated.
1030110300
experimental event compilationCacheProduced
1030210301
parameters
1030310302
string url
@@ -12097,6 +12096,15 @@ domain Target
1209712096
parameters
1209812097
TargetInfo targetInfo
1209912098

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+
1210012108
# The Tethering domain defines methods and events for browser port binding.
1210112109
experimental domain Tethering
1210212110

types/protocol-mapping.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,7 @@ export namespace ProtocolMapping {
588588
*/
589589
'Page.windowOpen': [Protocol.Page.WindowOpenEvent];
590590
/**
591-
* Issued for every compilation cache generated. Is only available
592-
* if Page.setGenerateCompilationCache is enabled.
591+
* Issued for every compilation cache generated.
593592
*/
594593
'Page.compilationCacheProduced': [Protocol.Page.CompilationCacheProducedEvent];
595594
/**
@@ -4964,6 +4963,13 @@ export namespace ProtocolMapping {
49644963
paramsType: [Protocol.Target.SetRemoteLocationsRequest];
49654964
returnType: void;
49664965
};
4966+
/**
4967+
* Opens a DevTools window for the target.
4968+
*/
4969+
'Target.openDevTools': {
4970+
paramsType: [Protocol.Target.OpenDevToolsRequest];
4971+
returnType: Protocol.Target.OpenDevToolsResponse;
4972+
};
49674973
/**
49684974
* Request browser port binding.
49694975
*/

types/protocol-proxy-api.d.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3801,8 +3801,7 @@ export namespace ProtocolProxyApi {
38013801
on(event: 'windowOpen', listener: (params: Protocol.Page.WindowOpenEvent) => void): void;
38023802

38033803
/**
3804-
* Issued for every compilation cache generated. Is only available
3805-
* if Page.setGenerateCompilationCache is enabled.
3804+
* Issued for every compilation cache generated.
38063805
* @experimental
38073806
*/
38083807
on(event: 'compilationCacheProduced', listener: (params: Protocol.Page.CompilationCacheProducedEvent) => void): void;
@@ -4363,6 +4362,12 @@ export namespace ProtocolProxyApi {
43634362
*/
43644363
setRemoteLocations(params: Protocol.Target.SetRemoteLocationsRequest): Promise<void>;
43654364

4365+
/**
4366+
* Opens a DevTools window for the target.
4367+
* @experimental
4368+
*/
4369+
openDevTools(params: Protocol.Target.OpenDevToolsRequest): Promise<Protocol.Target.OpenDevToolsResponse>;
4370+
43664371
/**
43674372
* Issued when attached to target because of auto-attach or `attachToTarget` command.
43684373
* @experimental

types/protocol-tests-proxy-api.d.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4091,8 +4091,7 @@ export namespace ProtocolTestsProxyApi {
40914091
onceWindowOpen(eventMatcher?: (event: { params: Protocol.Page.WindowOpenEvent }) => boolean): Promise<{ params: Protocol.Page.WindowOpenEvent }>;
40924092

40934093
/**
4094-
* Issued for every compilation cache generated. Is only available
4095-
* if Page.setGenerateCompilationCache is enabled.
4094+
* Issued for every compilation cache generated.
40964095
* @experimental
40974096
*/
40984097
onCompilationCacheProduced(listener: (event: { params: Protocol.Page.CompilationCacheProducedEvent }) => void): void;
@@ -4701,6 +4700,12 @@ export namespace ProtocolTestsProxyApi {
47014700
*/
47024701
setRemoteLocations(params: Protocol.Target.SetRemoteLocationsRequest): Promise<{id: number, result: void, sessionId: string}>;
47034702

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+
47044709
/**
47054710
* Issued when attached to target because of auto-attach or `attachToTarget` command.
47064711
* @experimental

types/protocol.d.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16608,8 +16608,7 @@ export namespace Protocol {
1660816608
}
1660916609

1661016610
/**
16611-
* Issued for every compilation cache generated. Is only available
16612-
* if Page.setGenerateCompilationCache is enabled.
16611+
* Issued for every compilation cache generated.
1661316612
* @experimental
1661416613
*/
1661516614
export interface CompilationCacheProducedEvent {
@@ -18899,6 +18898,20 @@ export namespace Protocol {
1889918898
locations: RemoteLocation[];
1890018899
}
1890118900

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+
1890218915
/**
1890318916
* Issued when attached to target because of auto-attach or `attachToTarget` command.
1890418917
* @experimental

0 commit comments

Comments
 (0)