File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -950,10 +950,33 @@ export declare namespace BrowsingContext {
950
950
} ;
951
951
}
952
952
export type EmulationCommand =
953
+ | Emulation . SetForcedColorsModeThemeOverride
953
954
| Emulation . SetGeolocationOverride
954
955
| Emulation . SetLocaleOverride
955
956
| Emulation . SetScreenOrientationOverride
956
957
| Emulation . SetTimezoneOverride ;
958
+ export declare namespace Emulation {
959
+ type SetForcedColorsModeThemeOverride = {
960
+ method : 'emulation.setForcedColorsModeThemeOverride' ;
961
+ params : Emulation . SetForcedColorsModeThemeOverrideParameters ;
962
+ } ;
963
+ }
964
+ export declare namespace Emulation {
965
+ type SetForcedColorsModeThemeOverrideParameters = {
966
+ theme : Emulation . ForcedColorsModeTheme | null ;
967
+ contexts ?: [
968
+ BrowsingContext . BrowsingContext ,
969
+ ...BrowsingContext . BrowsingContext [ ] ,
970
+ ] ;
971
+ userContexts ?: [ Browser . UserContext , ...Browser . UserContext [ ] ] ;
972
+ } ;
973
+ }
974
+ export declare namespace Emulation {
975
+ const enum ForcedColorsModeTheme {
976
+ Light = 'light' ,
977
+ Dark = 'dark' ,
978
+ }
979
+ }
957
980
export declare namespace Emulation {
958
981
type SetGeolocationOverride = {
959
982
method : 'emulation.setGeolocationOverride' ;
Original file line number Diff line number Diff line change @@ -952,10 +952,33 @@ export namespace BrowsingContext {
952
952
} ;
953
953
}
954
954
export type EmulationCommand =
955
+ | Emulation . SetForcedColorsModeThemeOverride
955
956
| Emulation . SetGeolocationOverride
956
957
| Emulation . SetLocaleOverride
957
958
| Emulation . SetScreenOrientationOverride
958
959
| Emulation . SetTimezoneOverride ;
960
+ export namespace Emulation {
961
+ export type SetForcedColorsModeThemeOverride = {
962
+ method : 'emulation.setForcedColorsModeThemeOverride' ;
963
+ params : Emulation . SetForcedColorsModeThemeOverrideParameters ;
964
+ } ;
965
+ }
966
+ export namespace Emulation {
967
+ export type SetForcedColorsModeThemeOverrideParameters = {
968
+ theme : Emulation . ForcedColorsModeTheme | null ;
969
+ contexts ?: [
970
+ BrowsingContext . BrowsingContext ,
971
+ ...BrowsingContext . BrowsingContext [ ] ,
972
+ ] ;
973
+ userContexts ?: [ Browser . UserContext , ...Browser . UserContext [ ] ] ;
974
+ } ;
975
+ }
976
+ export namespace Emulation {
977
+ export const enum ForcedColorsModeTheme {
978
+ Light = 'light' ,
979
+ Dark = 'dark' ,
980
+ }
981
+ }
959
982
export namespace Emulation {
960
983
export type SetGeolocationOverride = {
961
984
method : 'emulation.setGeolocationOverride' ;
You can’t perform that action at this time.
0 commit comments