Skip to content

Commit d6db955

Browse files
fix: re-generate types based on spec updates (#330)
1 parent 7dbb930 commit d6db955

4 files changed

Lines changed: 68 additions & 0 deletions

File tree

out/gen/main.d.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ export declare namespace BrowsingContext {
548548
navigation: BrowsingContext.Navigation | null;
549549
timestamp: JsUint;
550550
url: string;
551+
userContext?: Browser.UserContext;
551552
};
552553
}
553554
export declare namespace BrowsingContext {
@@ -677,6 +678,7 @@ export declare namespace BrowsingContext {
677678
export declare namespace BrowsingContext {
678679
type CreateResult = {
679680
context: BrowsingContext.BrowsingContext;
681+
userContext?: Browser.UserContext;
680682
};
681683
}
682684
export declare namespace BrowsingContext {
@@ -927,6 +929,7 @@ export declare namespace BrowsingContext {
927929
context: BrowsingContext.BrowsingContext;
928930
timestamp: JsUint;
929931
url: string;
932+
userContext?: Browser.UserContext;
930933
};
931934
}
932935
export declare namespace BrowsingContext {
@@ -1003,6 +1006,7 @@ export declare namespace BrowsingContext {
10031006
context: BrowsingContext.BrowsingContext;
10041007
accepted: boolean;
10051008
type: BrowsingContext.UserPromptType;
1009+
userContext?: Browser.UserContext;
10061010
userText?: string;
10071011
};
10081012
}
@@ -1018,6 +1022,7 @@ export declare namespace BrowsingContext {
10181022
handler: Session.UserPromptHandlerType;
10191023
message: string;
10201024
type: BrowsingContext.UserPromptType;
1025+
userContext?: Browser.UserContext;
10211026
defaultValue?: string;
10221027
};
10231028
}
@@ -1029,6 +1034,7 @@ export type EmulationCommand =
10291034
| Emulation.SetScreenOrientationOverride
10301035
| Emulation.SetScreenSettingsOverride
10311036
| Emulation.SetScriptingEnabled
1037+
| Emulation.SetScrollbarTypeOverride
10321038
| Emulation.SetTimezoneOverride
10331039
| Emulation.SetTouchOverride
10341040
| Emulation.SetUserAgentOverride;
@@ -1038,6 +1044,7 @@ export type EmulationResult =
10381044
| Emulation.SetLocaleOverrideResult
10391045
| Emulation.SetScreenOrientationOverrideResult
10401046
| Emulation.SetScriptingEnabledResult
1047+
| Emulation.SetScrollbarTypeOverrideResult
10411048
| Emulation.SetTimezoneOverrideResult
10421049
| Emulation.SetTouchOverrideResult
10431050
| Emulation.SetUserAgentOverrideResult;
@@ -1283,6 +1290,25 @@ export declare namespace Emulation {
12831290
export declare namespace Emulation {
12841291
type SetScriptingEnabledResult = EmptyResult;
12851292
}
1293+
export declare namespace Emulation {
1294+
type SetScrollbarTypeOverride = {
1295+
method: 'emulation.setScrollbarTypeOverride';
1296+
params: Emulation.SetScrollbarTypeOverrideParameters;
1297+
};
1298+
}
1299+
export declare namespace Emulation {
1300+
type SetScrollbarTypeOverrideParameters = {
1301+
scrollbarType: 'classic' | 'overlay' | null;
1302+
contexts?: [
1303+
BrowsingContext.BrowsingContext,
1304+
...BrowsingContext.BrowsingContext[],
1305+
];
1306+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1307+
};
1308+
}
1309+
export declare namespace Emulation {
1310+
type SetScrollbarTypeOverrideResult = EmptyResult;
1311+
}
12861312
export declare namespace Emulation {
12871313
type SetTimezoneOverride = {
12881314
method: 'emulation.setTimezoneOverride';
@@ -1379,6 +1405,7 @@ export declare namespace Network {
13791405
redirectCount: JsUint;
13801406
request: Network.RequestData;
13811407
timestamp: JsUint;
1408+
userContext?: Browser.UserContext | null;
13821409
intercepts?: [Network.Intercept, ...Network.Intercept[]];
13831410
};
13841411
}
@@ -2057,6 +2084,7 @@ export declare namespace Script {
20572084
type WindowRealmInfo = Script.BaseRealmInfo & {
20582085
type: 'window';
20592086
context: BrowsingContext.BrowsingContext;
2087+
userContext?: Browser.UserContext;
20602088
sandbox?: string;
20612089
};
20622090
}
@@ -2363,6 +2391,7 @@ export declare namespace Script {
23632391
type Source = {
23642392
realm: Script.Realm;
23652393
context?: BrowsingContext.BrowsingContext;
2394+
userContext?: Browser.UserContext;
23662395
};
23672396
}
23682397
export declare namespace Script {
@@ -2910,6 +2939,7 @@ export declare namespace Input {
29102939
export declare namespace Input {
29112940
type FileDialogInfo = {
29122941
context: BrowsingContext.BrowsingContext;
2942+
userContext?: Browser.UserContext;
29132943
element?: Script.SharedReference;
29142944
multiple: boolean;
29152945
};

out/gen/mapping.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ export interface Commands {
155155
params: Bidi.Emulation.SetScriptingEnabledParameters;
156156
returnType: Bidi.Emulation.SetScriptingEnabledResult;
157157
};
158+
'emulation.setScrollbarTypeOverride': {
159+
params: Bidi.Emulation.SetScrollbarTypeOverrideParameters;
160+
returnType: Bidi.Emulation.SetScrollbarTypeOverrideResult;
161+
};
158162
'emulation.setTimezoneOverride': {
159163
params: Bidi.Emulation.SetTimezoneOverrideParameters;
160164
returnType: Bidi.Emulation.SetTimezoneOverrideResult;

src/gen/main.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ export namespace BrowsingContext {
550550
navigation: BrowsingContext.Navigation | null;
551551
timestamp: JsUint;
552552
url: string;
553+
userContext?: Browser.UserContext;
553554
};
554555
}
555556
export namespace BrowsingContext {
@@ -679,6 +680,7 @@ export namespace BrowsingContext {
679680
export namespace BrowsingContext {
680681
export type CreateResult = {
681682
context: BrowsingContext.BrowsingContext;
683+
userContext?: Browser.UserContext;
682684
};
683685
}
684686
export namespace BrowsingContext {
@@ -929,6 +931,7 @@ export namespace BrowsingContext {
929931
context: BrowsingContext.BrowsingContext;
930932
timestamp: JsUint;
931933
url: string;
934+
userContext?: Browser.UserContext;
932935
};
933936
}
934937
export namespace BrowsingContext {
@@ -1005,6 +1008,7 @@ export namespace BrowsingContext {
10051008
context: BrowsingContext.BrowsingContext;
10061009
accepted: boolean;
10071010
type: BrowsingContext.UserPromptType;
1011+
userContext?: Browser.UserContext;
10081012
userText?: string;
10091013
};
10101014
}
@@ -1020,6 +1024,7 @@ export namespace BrowsingContext {
10201024
handler: Session.UserPromptHandlerType;
10211025
message: string;
10221026
type: BrowsingContext.UserPromptType;
1027+
userContext?: Browser.UserContext;
10231028
defaultValue?: string;
10241029
};
10251030
}
@@ -1031,6 +1036,7 @@ export type EmulationCommand =
10311036
| Emulation.SetScreenOrientationOverride
10321037
| Emulation.SetScreenSettingsOverride
10331038
| Emulation.SetScriptingEnabled
1039+
| Emulation.SetScrollbarTypeOverride
10341040
| Emulation.SetTimezoneOverride
10351041
| Emulation.SetTouchOverride
10361042
| Emulation.SetUserAgentOverride;
@@ -1040,6 +1046,7 @@ export type EmulationResult =
10401046
| Emulation.SetLocaleOverrideResult
10411047
| Emulation.SetScreenOrientationOverrideResult
10421048
| Emulation.SetScriptingEnabledResult
1049+
| Emulation.SetScrollbarTypeOverrideResult
10431050
| Emulation.SetTimezoneOverrideResult
10441051
| Emulation.SetTouchOverrideResult
10451052
| Emulation.SetUserAgentOverrideResult;
@@ -1285,6 +1292,25 @@ export namespace Emulation {
12851292
export namespace Emulation {
12861293
export type SetScriptingEnabledResult = EmptyResult;
12871294
}
1295+
export namespace Emulation {
1296+
export type SetScrollbarTypeOverride = {
1297+
method: 'emulation.setScrollbarTypeOverride';
1298+
params: Emulation.SetScrollbarTypeOverrideParameters;
1299+
};
1300+
}
1301+
export namespace Emulation {
1302+
export type SetScrollbarTypeOverrideParameters = {
1303+
scrollbarType: 'classic' | 'overlay' | null;
1304+
contexts?: [
1305+
BrowsingContext.BrowsingContext,
1306+
...BrowsingContext.BrowsingContext[],
1307+
];
1308+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1309+
};
1310+
}
1311+
export namespace Emulation {
1312+
export type SetScrollbarTypeOverrideResult = EmptyResult;
1313+
}
12881314
export namespace Emulation {
12891315
export type SetTimezoneOverride = {
12901316
method: 'emulation.setTimezoneOverride';
@@ -1381,6 +1407,7 @@ export namespace Network {
13811407
redirectCount: JsUint;
13821408
request: Network.RequestData;
13831409
timestamp: JsUint;
1410+
userContext?: Browser.UserContext | null;
13841411
intercepts?: [Network.Intercept, ...Network.Intercept[]];
13851412
};
13861413
}
@@ -2059,6 +2086,7 @@ export namespace Script {
20592086
export type WindowRealmInfo = Script.BaseRealmInfo & {
20602087
type: 'window';
20612088
context: BrowsingContext.BrowsingContext;
2089+
userContext?: Browser.UserContext;
20622090
sandbox?: string;
20632091
};
20642092
}
@@ -2367,6 +2395,7 @@ export namespace Script {
23672395
export type Source = {
23682396
realm: Script.Realm;
23692397
context?: BrowsingContext.BrowsingContext;
2398+
userContext?: Browser.UserContext;
23702399
};
23712400
}
23722401
export namespace Script {
@@ -2914,6 +2943,7 @@ export namespace Input {
29142943
export namespace Input {
29152944
export type FileDialogInfo = {
29162945
context: BrowsingContext.BrowsingContext;
2946+
userContext?: Browser.UserContext;
29172947
element?: Script.SharedReference;
29182948
multiple: boolean;
29192949
};

src/gen/mapping.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ export interface Commands {
156156
params: Bidi.Emulation.SetScriptingEnabledParameters;
157157
returnType: Bidi.Emulation.SetScriptingEnabledResult;
158158
};
159+
'emulation.setScrollbarTypeOverride': {
160+
params: Bidi.Emulation.SetScrollbarTypeOverrideParameters;
161+
returnType: Bidi.Emulation.SetScrollbarTypeOverrideResult;
162+
};
159163
'emulation.setTimezoneOverride': {
160164
params: Bidi.Emulation.SetTimezoneOverrideParameters;
161165
returnType: Bidi.Emulation.SetTimezoneOverrideResult;

0 commit comments

Comments
 (0)