diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs
index 8cc82001d6..67a0e4c404 100644
--- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs
+++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs
@@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
//
// **This code was generated by a tool, do not change directly**
-// CHROMIUM VERSION 120.0.6099.109
+// CHROMIUM VERSION 121.0.6167.160
using System.Runtime.Serialization;
namespace CefSharp.DevTools.Accessibility
@@ -1701,6 +1701,11 @@ public enum MixedContentResourceType
[EnumMember(Value = ("SharedWorker"))]
SharedWorker,
///
+ /// SpeculationRules
+ ///
+ [EnumMember(Value = ("SpeculationRules"))]
+ SpeculationRules,
+ ///
/// Stylesheet
///
[EnumMember(Value = ("Stylesheet"))]
@@ -4647,7 +4652,7 @@ public enum PermissionSetting
///
/// Definition of PermissionDescriptor defined in the Permissions API:
- /// https://w3c.github.io/permissions/#dictdef-permissiondescriptor.
+ /// https://w3c.github.io/permissions/#dom-permissiondescriptor.
///
[System.Runtime.Serialization.DataContractAttribute]
public partial class PermissionDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase
@@ -6397,6 +6402,16 @@ public string FamilyName
set;
}
+ ///
+ /// Font's PostScript name reported by platform.
+ ///
+ [DataMember(Name = ("postScriptName"), IsRequired = (true))]
+ public string PostScriptName
+ {
+ get;
+ set;
+ }
+
///
/// Indicates if the font was downloaded or resolved locally.
///
@@ -6738,6 +6753,70 @@ public string Syntax
}
}
+ ///
+ /// CSS font-palette-values rule representation.
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public partial class CSSFontPaletteValuesRule : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// The css style sheet identifier (absent for user agent stylesheet and user-specified
+ /// stylesheet rules) this rule came from.
+ ///
+ [DataMember(Name = ("styleSheetId"), IsRequired = (false))]
+ public string StyleSheetId
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Parent stylesheet's origin.
+ ///
+ public CefSharp.DevTools.CSS.StyleSheetOrigin Origin
+ {
+ get
+ {
+ return (CefSharp.DevTools.CSS.StyleSheetOrigin)(StringToEnum(typeof(CefSharp.DevTools.CSS.StyleSheetOrigin), origin));
+ }
+
+ set
+ {
+ this.origin = (EnumToString(value));
+ }
+ }
+
+ ///
+ /// Parent stylesheet's origin.
+ ///
+ [DataMember(Name = ("origin"), IsRequired = (true))]
+ internal string origin
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Associated font palette name.
+ ///
+ [DataMember(Name = ("fontPaletteName"), IsRequired = (true))]
+ public CefSharp.DevTools.CSS.Value FontPaletteName
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Associated style declaration.
+ ///
+ [DataMember(Name = ("style"), IsRequired = (true))]
+ public CefSharp.DevTools.CSS.CSSStyle Style
+ {
+ get;
+ set;
+ }
+ }
+
///
/// CSS property at-rule representation.
///
@@ -10146,6 +10225,56 @@ public int MaskLength
}
}
+ ///
+ /// Current posture of the device
+ ///
+ public enum DevicePostureType
+ {
+ ///
+ /// continuous
+ ///
+ [EnumMember(Value = ("continuous"))]
+ Continuous,
+ ///
+ /// folded
+ ///
+ [EnumMember(Value = ("folded"))]
+ Folded
+ }
+
+ ///
+ /// DevicePosture
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public partial class DevicePosture : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// Current posture of the device
+ ///
+ public CefSharp.DevTools.Emulation.DevicePostureType Type
+ {
+ get
+ {
+ return (CefSharp.DevTools.Emulation.DevicePostureType)(StringToEnum(typeof(CefSharp.DevTools.Emulation.DevicePostureType), type));
+ }
+
+ set
+ {
+ this.type = (EnumToString(value));
+ }
+ }
+
+ ///
+ /// Current posture of the device
+ ///
+ [DataMember(Name = ("type"), IsRequired = (true))]
+ internal string type
+ {
+ get;
+ set;
+ }
+ }
+
///
/// MediaFeature
///
@@ -13771,6 +13900,23 @@ public enum AlternateProtocolUsage
UnspecifiedReason
}
+ ///
+ /// ServiceWorkerRouterInfo
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public partial class ServiceWorkerRouterInfo : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// RuleIdMatched
+ ///
+ [DataMember(Name = ("ruleIdMatched"), IsRequired = (true))]
+ public int RuleIdMatched
+ {
+ get;
+ set;
+ }
+ }
+
///
/// HTTP response data.
///
@@ -13927,6 +14073,16 @@ public bool? FromPrefetchCache
set;
}
+ ///
+ /// Infomation about how Service Worker Static Router was used.
+ ///
+ [DataMember(Name = ("serviceWorkerRouterInfo"), IsRequired = (false))]
+ public CefSharp.DevTools.Network.ServiceWorkerRouterInfo ServiceWorkerRouterInfo
+ {
+ get;
+ set;
+ }
+
///
/// Total number of bytes received for this request so far.
///
@@ -19801,11 +19957,21 @@ public enum PermissionsPolicyFeature
[EnumMember(Value = ("usb"))]
Usb,
///
+ /// usb-unrestricted
+ ///
+ [EnumMember(Value = ("usb-unrestricted"))]
+ UsbUnrestricted,
+ ///
/// vertical-scroll
///
[EnumMember(Value = ("vertical-scroll"))]
VerticalScroll,
///
+ /// web-printing
+ ///
+ [EnumMember(Value = ("web-printing"))]
+ WebPrinting,
+ ///
/// web-share
///
[EnumMember(Value = ("web-share"))]
@@ -24549,6 +24715,16 @@ public string TargetId
get;
set;
}
+
+ ///
+ /// RouterRules
+ ///
+ [DataMember(Name = ("routerRules"), IsRequired = (false))]
+ public string RouterRules
+ {
+ get;
+ set;
+ }
}
///
@@ -25553,6 +25729,34 @@ public int[] Ends
}
}
+ ///
+ /// AttributionReportingTriggerSpec
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public partial class AttributionReportingTriggerSpec : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// number instead of integer because not all uint32 can be represented by
+ /// int
+ ///
+ [DataMember(Name = ("triggerData"), IsRequired = (true))]
+ public double[] TriggerData
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// EventReportWindows
+ ///
+ [DataMember(Name = ("eventReportWindows"), IsRequired = (true))]
+ public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows
+ {
+ get;
+ set;
+ }
+ }
+
///
/// AttributionReportingTriggerDataMatching
///
@@ -25597,10 +25801,10 @@ public int Expiry
}
///
- /// EventReportWindows
+ /// TriggerSpecs
///
- [DataMember(Name = ("eventReportWindows"), IsRequired = (true))]
- public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows
+ [DataMember(Name = ("triggerSpecs"), IsRequired = (true))]
+ public System.Collections.Generic.IList TriggerSpecs
{
get;
set;
@@ -29065,6 +29269,30 @@ public bool? IsUserVerified
get;
set;
}
+
+ ///
+ /// Credentials created by this authenticator will have the backup
+ /// eligibility (BE) flag set to this value. Defaults to false.
+ /// https://w3c.github.io/webauthn/#sctn-credential-backup
+ ///
+ [DataMember(Name = ("defaultBackupEligibility"), IsRequired = (false))]
+ public bool? DefaultBackupEligibility
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Credentials created by this authenticator will have the backup state
+ /// (BS) flag set to this value. Defaults to false.
+ /// https://w3c.github.io/webauthn/#sctn-credential-backup
+ ///
+ [DataMember(Name = ("defaultBackupState"), IsRequired = (false))]
+ public bool? DefaultBackupState
+ {
+ get;
+ set;
+ }
}
///
@@ -30459,6 +30687,43 @@ public enum PrefetchStatus
PrefetchNotUsedProbeFailed
}
+ ///
+ /// Information of headers to be displayed when the header mismatch occurred.
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public partial class PrerenderMismatchedHeaders : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// HeaderName
+ ///
+ [DataMember(Name = ("headerName"), IsRequired = (true))]
+ public string HeaderName
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// InitialValue
+ ///
+ [DataMember(Name = ("initialValue"), IsRequired = (false))]
+ public string InitialValue
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// ActivationValue
+ ///
+ [DataMember(Name = ("activationValue"), IsRequired = (false))]
+ public string ActivationValue
+ {
+ get;
+ set;
+ }
+ }
+
///
/// Upsert. Currently, it is only emitted when a rule set added.
///
@@ -30727,6 +30992,16 @@ public string DisallowedMojoInterface
get;
private set;
}
+
+ ///
+ /// MismatchedHeaders
+ ///
+ [DataMember(Name = ("mismatchedHeaders"), IsRequired = (false))]
+ public System.Collections.Generic.IList MismatchedHeaders
+ {
+ get;
+ private set;
+ }
}
///
@@ -30778,7 +31053,7 @@ public enum LoginState
}
///
- /// Whether the dialog shown is an account chooser or an auto re-authentication dialog.
+ /// The types of FedCM dialogs.
///
public enum DialogType
{
@@ -30796,7 +31071,34 @@ public enum DialogType
/// ConfirmIdpLogin
///
[EnumMember(Value = ("ConfirmIdpLogin"))]
- ConfirmIdpLogin
+ ConfirmIdpLogin,
+ ///
+ /// Error
+ ///
+ [EnumMember(Value = ("Error"))]
+ Error
+ }
+
+ ///
+ /// The buttons on the FedCM dialog.
+ ///
+ public enum DialogButton
+ {
+ ///
+ /// ConfirmIdpLoginContinue
+ ///
+ [EnumMember(Value = ("ConfirmIdpLoginContinue"))]
+ ConfirmIdpLoginContinue,
+ ///
+ /// ErrorGotIt
+ ///
+ [EnumMember(Value = ("ErrorGotIt"))]
+ ErrorGotIt,
+ ///
+ /// ErrorMoreDetails
+ ///
+ [EnumMember(Value = ("ErrorMoreDetails"))]
+ ErrorMoreDetails
}
///
@@ -30995,6 +31297,24 @@ public string Subtitle
private set;
}
}
+
+ ///
+ /// Triggered when a dialog is closed, either by user action, JS abort,
+ /// or a command below.
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public class DialogClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase
+ {
+ ///
+ /// DialogId
+ ///
+ [DataMember(Name = ("dialogId"), IsRequired = (true))]
+ public string DialogId
+ {
+ get;
+ private set;
+ }
+ }
}
namespace CefSharp.DevTools.Debugger
@@ -36984,6 +37304,24 @@ public System.Collections.Generic.IList
+ /// cssFontPaletteValuesRule
+ ///
+ public CefSharp.DevTools.CSS.CSSFontPaletteValuesRule CssFontPaletteValuesRule
+ {
+ get
+ {
+ return cssFontPaletteValuesRule;
+ }
+ }
+
[DataMember]
internal int? parentLayoutNodeId
{
@@ -41536,7 +41874,7 @@ public System.Threading.Tasks.Task SetDefaultBackgroundC
return _client.ExecuteDevToolsMethodAsync("Emulation.setDefaultBackgroundColorOverride", dict);
}
- partial void ValidateSetDeviceMetricsOverride(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null);
+ partial void ValidateSetDeviceMetricsOverride(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null);
///
/// Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
/// window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
@@ -41555,10 +41893,11 @@ public System.Threading.Tasks.Task SetDefaultBackgroundC
/// Screen orientation override.
/// If set, the visible area of the page will be overridden to this viewport. This viewportchange is not observed by the page, e.g. viewport-relative elements do not change positions.
/// If set, the display feature of a multi-segment screen. If not set, multi-segment supportis turned-off.
+ /// If set, the posture of a foldable device. If not set the posture is setto continuous.
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
- public System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null)
+ public System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null)
{
- ValidateSetDeviceMetricsOverride(width, height, deviceScaleFactor, mobile, scale, screenWidth, screenHeight, positionX, positionY, dontSetVisibleSize, screenOrientation, viewport, displayFeature);
+ ValidateSetDeviceMetricsOverride(width, height, deviceScaleFactor, mobile, scale, screenWidth, screenHeight, positionX, positionY, dontSetVisibleSize, screenOrientation, viewport, displayFeature, devicePosture);
var dict = new System.Collections.Generic.Dictionary();
dict.Add("width", width);
dict.Add("height", height);
@@ -41609,6 +41948,11 @@ public System.Threading.Tasks.Task SetDeviceMetricsOverr
dict.Add("displayFeature", displayFeature.ToDictionary());
}
+ if ((devicePosture) != (null))
+ {
+ dict.Add("devicePosture", devicePosture.ToDictionary());
+ }
+
return _client.ExecuteDevToolsMethodAsync("Emulation.setDeviceMetricsOverride", dict);
}
@@ -41958,7 +42302,7 @@ public System.Threading.Tasks.Task SetHardwareConcurrenc
/// Allows overriding user agent with the given string.
///
/// User agent to use.
- /// Browser langugage to emulate.
+ /// Browser language to emulate.
/// The platform navigator.platform should return.
/// To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
@@ -45556,7 +45900,7 @@ public System.Threading.Tasks.Task SetAttachDebugStackAs
/// Allows overriding user agent with the given string.
///
/// User agent to use.
- /// Browser langugage to emulate.
+ /// Browser language to emulate.
/// The platform navigator.platform should return.
/// To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
@@ -47851,7 +48195,7 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr
return _client.ExecuteDevToolsMethodAsync("Page.navigateToHistoryEntry", dict);
}
- partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null);
+ partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null, bool? generateDocumentOutline = null);
///
/// Print page as PDF.
///
@@ -47871,10 +48215,11 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr
/// Whether or not to prefer page size as defined by css. Defaults to false,in which case the content will be scaled to fit the paper size.
/// return as stream
/// Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice.
+ /// Whether or not to embed the document outline into the PDF.
/// returns System.Threading.Tasks.Task<PrintToPDFResponse>
- public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null)
+ public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null, bool? generateDocumentOutline = null)
{
- ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF);
+ ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF, generateDocumentOutline);
var dict = new System.Collections.Generic.Dictionary();
if (landscape.HasValue)
{
@@ -47956,6 +48301,11 @@ public System.Threading.Tasks.Task PrintToPDFAsync(bool? lan
dict.Add("generateTaggedPDF", generateTaggedPDF.Value);
}
+ if (generateDocumentOutline.HasValue)
+ {
+ dict.Add("generateDocumentOutline", generateDocumentOutline.Value);
+ }
+
return _client.ExecuteDevToolsMethodAsync("Page.printToPDF", dict);
}
@@ -52507,6 +52857,23 @@ public event System.EventHandler DialogShown
}
}
+ ///
+ /// Triggered when a dialog is closed, either by user action, JS abort,
+ /// or a command below.
+ ///
+ public event System.EventHandler DialogClosed
+ {
+ add
+ {
+ _client.AddEventHandler("FedCm.dialogClosed", value);
+ }
+
+ remove
+ {
+ _client.RemoveEventHandler("FedCm.dialogClosed", value);
+ }
+ }
+
partial void ValidateEnable(bool? disableRejectionDelay = null);
///
/// Enable
@@ -52551,19 +52918,20 @@ public System.Threading.Tasks.Task SelectAccountAsync(st
return _client.ExecuteDevToolsMethodAsync("FedCm.selectAccount", dict);
}
- partial void ValidateConfirmIdpLogin(string dialogId);
+ partial void ValidateClickDialogButton(string dialogId, CefSharp.DevTools.FedCm.DialogButton dialogButton);
///
- /// Only valid if the dialog type is ConfirmIdpLogin. Acts as if the user had
- /// clicked the continue button.
+ /// ClickDialogButton
///
/// dialogId
+ /// dialogButton
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
- public System.Threading.Tasks.Task ConfirmIdpLoginAsync(string dialogId)
+ public System.Threading.Tasks.Task ClickDialogButtonAsync(string dialogId, CefSharp.DevTools.FedCm.DialogButton dialogButton)
{
- ValidateConfirmIdpLogin(dialogId);
+ ValidateClickDialogButton(dialogId, dialogButton);
var dict = new System.Collections.Generic.Dictionary();
dict.Add("dialogId", dialogId);
- return _client.ExecuteDevToolsMethodAsync("FedCm.confirmIdpLogin", dict);
+ dict.Add("dialogButton", EnumToString(dialogButton));
+ return _client.ExecuteDevToolsMethodAsync("FedCm.clickDialogButton", dict);
}
partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null);
diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs
index c5e3cc0649..7af82177e4 100644
--- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs
+++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs
@@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
//
// **This code was generated by a tool, do not change directly**
-// CHROMIUM VERSION 120.0.6099.109
+// CHROMIUM VERSION 121.0.6167.160
using System.Text.Json.Serialization;
namespace CefSharp.DevTools.Accessibility
@@ -1580,6 +1580,11 @@ public enum MixedContentResourceType
[JsonPropertyName("SharedWorker")]
SharedWorker,
///
+ /// SpeculationRules
+ ///
+ [JsonPropertyName("SpeculationRules")]
+ SpeculationRules,
+ ///
/// Stylesheet
///
[JsonPropertyName("Stylesheet")]
@@ -4226,7 +4231,7 @@ public enum PermissionSetting
///
/// Definition of PermissionDescriptor defined in the Permissions API:
- /// https://w3c.github.io/permissions/#dictdef-permissiondescriptor.
+ /// https://w3c.github.io/permissions/#dom-permissiondescriptor.
///
public partial class PermissionDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase
{
@@ -5864,6 +5869,17 @@ public string FamilyName
set;
}
+ ///
+ /// Font's PostScript name reported by platform.
+ ///
+ [JsonPropertyName("postScriptName")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public string PostScriptName
+ {
+ get;
+ set;
+ }
+
///
/// Indicates if the font was downloaded or resolved locally.
///
@@ -6201,6 +6217,55 @@ public string Syntax
}
}
+ ///
+ /// CSS font-palette-values rule representation.
+ ///
+ public partial class CSSFontPaletteValuesRule : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// The css style sheet identifier (absent for user agent stylesheet and user-specified
+ /// stylesheet rules) this rule came from.
+ ///
+ [JsonPropertyName("styleSheetId")]
+ public string StyleSheetId
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Parent stylesheet's origin.
+ ///
+ [JsonPropertyName("origin")]
+ public CefSharp.DevTools.CSS.StyleSheetOrigin Origin
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Associated font palette name.
+ ///
+ [JsonPropertyName("fontPaletteName")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public CefSharp.DevTools.CSS.Value FontPaletteName
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Associated style declaration.
+ ///
+ [JsonPropertyName("style")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public CefSharp.DevTools.CSS.CSSStyle Style
+ {
+ get;
+ set;
+ }
+ }
+
///
/// CSS property at-rule representation.
///
@@ -9508,6 +9573,39 @@ public int MaskLength
}
}
+ ///
+ /// Current posture of the device
+ ///
+ public enum DevicePostureType
+ {
+ ///
+ /// continuous
+ ///
+ [JsonPropertyName("continuous")]
+ Continuous,
+ ///
+ /// folded
+ ///
+ [JsonPropertyName("folded")]
+ Folded
+ }
+
+ ///
+ /// DevicePosture
+ ///
+ public partial class DevicePosture : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// Current posture of the device
+ ///
+ [JsonPropertyName("type")]
+ public CefSharp.DevTools.Emulation.DevicePostureType Type
+ {
+ get;
+ set;
+ }
+ }
+
///
/// MediaFeature
///
@@ -12914,6 +13012,22 @@ public enum AlternateProtocolUsage
UnspecifiedReason
}
+ ///
+ /// ServiceWorkerRouterInfo
+ ///
+ public partial class ServiceWorkerRouterInfo : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// RuleIdMatched
+ ///
+ [JsonPropertyName("ruleIdMatched")]
+ public int RuleIdMatched
+ {
+ get;
+ set;
+ }
+ }
+
///
/// HTTP response data.
///
@@ -13073,6 +13187,16 @@ public bool? FromPrefetchCache
set;
}
+ ///
+ /// Infomation about how Service Worker Static Router was used.
+ ///
+ [JsonPropertyName("serviceWorkerRouterInfo")]
+ public CefSharp.DevTools.Network.ServiceWorkerRouterInfo ServiceWorkerRouterInfo
+ {
+ get;
+ set;
+ }
+
///
/// Total number of bytes received for this request so far.
///
@@ -18437,11 +18561,21 @@ public enum PermissionsPolicyFeature
[JsonPropertyName("usb")]
Usb,
///
+ /// usb-unrestricted
+ ///
+ [JsonPropertyName("usb-unrestricted")]
+ UsbUnrestricted,
+ ///
/// vertical-scroll
///
[JsonPropertyName("vertical-scroll")]
VerticalScroll,
///
+ /// web-printing
+ ///
+ [JsonPropertyName("web-printing")]
+ WebPrinting,
+ ///
/// web-share
///
[JsonPropertyName("web-share")]
@@ -22826,6 +22960,16 @@ public string TargetId
get;
set;
}
+
+ ///
+ /// RouterRules
+ ///
+ [JsonPropertyName("routerRules")]
+ public string RouterRules
+ {
+ get;
+ set;
+ }
}
///
@@ -23811,6 +23955,34 @@ public int[] Ends
}
}
+ ///
+ /// AttributionReportingTriggerSpec
+ ///
+ public partial class AttributionReportingTriggerSpec : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// number instead of integer because not all uint32 can be represented by
+ /// int
+ ///
+ [JsonPropertyName("triggerData")]
+ public double[] TriggerData
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// EventReportWindows
+ ///
+ [JsonPropertyName("eventReportWindows")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows
+ {
+ get;
+ set;
+ }
+ }
+
///
/// AttributionReportingTriggerDataMatching
///
@@ -23854,11 +24026,11 @@ public int Expiry
}
///
- /// EventReportWindows
+ /// TriggerSpecs
///
- [JsonPropertyName("eventReportWindows")]
+ [JsonPropertyName("triggerSpecs")]
[System.Diagnostics.CodeAnalysis.DisallowNull]
- public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows
+ public System.Collections.Generic.IList TriggerSpecs
{
get;
set;
@@ -27074,6 +27246,30 @@ public bool? IsUserVerified
get;
set;
}
+
+ ///
+ /// Credentials created by this authenticator will have the backup
+ /// eligibility (BE) flag set to this value. Defaults to false.
+ /// https://w3c.github.io/webauthn/#sctn-credential-backup
+ ///
+ [JsonPropertyName("defaultBackupEligibility")]
+ public bool? DefaultBackupEligibility
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Credentials created by this authenticator will have the backup state
+ /// (BS) flag set to this value. Defaults to false.
+ /// https://w3c.github.io/webauthn/#sctn-credential-backup
+ ///
+ [JsonPropertyName("defaultBackupState")]
+ public bool? DefaultBackupState
+ {
+ get;
+ set;
+ }
}
///
@@ -28427,6 +28623,43 @@ public enum PrefetchStatus
PrefetchNotUsedProbeFailed
}
+ ///
+ /// Information of headers to be displayed when the header mismatch occurred.
+ ///
+ public partial class PrerenderMismatchedHeaders : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// HeaderName
+ ///
+ [JsonPropertyName("headerName")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public string HeaderName
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// InitialValue
+ ///
+ [JsonPropertyName("initialValue")]
+ public string InitialValue
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// ActivationValue
+ ///
+ [JsonPropertyName("activationValue")]
+ public string ActivationValue
+ {
+ get;
+ set;
+ }
+ }
+
///
/// Upsert. Currently, it is only emitted when a rule set added.
///
@@ -28650,6 +28883,17 @@ public string DisallowedMojoInterface
get;
private set;
}
+
+ ///
+ /// MismatchedHeaders
+ ///
+ [JsonInclude]
+ [JsonPropertyName("mismatchedHeaders")]
+ public System.Collections.Generic.IList MismatchedHeaders
+ {
+ get;
+ private set;
+ }
}
///
@@ -28704,7 +28948,7 @@ public enum LoginState
}
///
- /// Whether the dialog shown is an account chooser or an auto re-authentication dialog.
+ /// The types of FedCM dialogs.
///
public enum DialogType
{
@@ -28722,7 +28966,34 @@ public enum DialogType
/// ConfirmIdpLogin
///
[JsonPropertyName("ConfirmIdpLogin")]
- ConfirmIdpLogin
+ ConfirmIdpLogin,
+ ///
+ /// Error
+ ///
+ [JsonPropertyName("Error")]
+ Error
+ }
+
+ ///
+ /// The buttons on the FedCM dialog.
+ ///
+ public enum DialogButton
+ {
+ ///
+ /// ConfirmIdpLoginContinue
+ ///
+ [JsonPropertyName("ConfirmIdpLoginContinue")]
+ ConfirmIdpLoginContinue,
+ ///
+ /// ErrorGotIt
+ ///
+ [JsonPropertyName("ErrorGotIt")]
+ ErrorGotIt,
+ ///
+ /// ErrorMoreDetails
+ ///
+ [JsonPropertyName("ErrorMoreDetails")]
+ ErrorMoreDetails
}
///
@@ -28902,6 +29173,25 @@ public string Subtitle
private set;
}
}
+
+ ///
+ /// Triggered when a dialog is closed, either by user action, JS abort,
+ /// or a command below.
+ ///
+ public class DialogClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase
+ {
+ ///
+ /// DialogId
+ ///
+ [JsonInclude]
+ [JsonPropertyName("dialogId")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public string DialogId
+ {
+ get;
+ private set;
+ }
+ }
}
namespace CefSharp.DevTools.Debugger
@@ -34420,6 +34710,17 @@ public System.Collections.Generic.IList
+ /// cssFontPaletteValuesRule
+ ///
+ [JsonInclude]
+ [JsonPropertyName("cssFontPaletteValuesRule")]
+ public CefSharp.DevTools.CSS.CSSFontPaletteValuesRule CssFontPaletteValuesRule
+ {
+ get;
+ private set;
+ }
+
///
/// parentLayoutNodeId
///
@@ -38470,7 +38771,7 @@ public System.Threading.Tasks.Task SetDefaultBackgroundC
return _client.ExecuteDevToolsMethodAsync("Emulation.setDefaultBackgroundColorOverride", dict);
}
- partial void ValidateSetDeviceMetricsOverride(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null);
+ partial void ValidateSetDeviceMetricsOverride(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null);
///
/// Overrides the values of device screen dimensions (window.screen.width, window.screen.height,
/// window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media
@@ -38489,10 +38790,11 @@ public System.Threading.Tasks.Task SetDefaultBackgroundC
/// Screen orientation override.
/// If set, the visible area of the page will be overridden to this viewport. This viewportchange is not observed by the page, e.g. viewport-relative elements do not change positions.
/// If set, the display feature of a multi-segment screen. If not set, multi-segment supportis turned-off.
+ /// If set, the posture of a foldable device. If not set the posture is setto continuous.
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
- public System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null)
+ public System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null)
{
- ValidateSetDeviceMetricsOverride(width, height, deviceScaleFactor, mobile, scale, screenWidth, screenHeight, positionX, positionY, dontSetVisibleSize, screenOrientation, viewport, displayFeature);
+ ValidateSetDeviceMetricsOverride(width, height, deviceScaleFactor, mobile, scale, screenWidth, screenHeight, positionX, positionY, dontSetVisibleSize, screenOrientation, viewport, displayFeature, devicePosture);
var dict = new System.Collections.Generic.Dictionary();
dict.Add("width", width);
dict.Add("height", height);
@@ -38543,6 +38845,11 @@ public System.Threading.Tasks.Task SetDeviceMetricsOverr
dict.Add("displayFeature", displayFeature.ToDictionary());
}
+ if ((devicePosture) != (null))
+ {
+ dict.Add("devicePosture", devicePosture.ToDictionary());
+ }
+
return _client.ExecuteDevToolsMethodAsync("Emulation.setDeviceMetricsOverride", dict);
}
@@ -38892,7 +39199,7 @@ public System.Threading.Tasks.Task SetHardwareConcurrenc
/// Allows overriding user agent with the given string.
///
/// User agent to use.
- /// Browser langugage to emulate.
+ /// Browser language to emulate.
/// The platform navigator.platform should return.
/// To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
@@ -42204,7 +42511,7 @@ public System.Threading.Tasks.Task SetAttachDebugStackAs
/// Allows overriding user agent with the given string.
///
/// User agent to use.
- /// Browser langugage to emulate.
+ /// Browser language to emulate.
/// The platform navigator.platform should return.
/// To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
@@ -44233,7 +44540,7 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr
return _client.ExecuteDevToolsMethodAsync("Page.navigateToHistoryEntry", dict);
}
- partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null);
+ partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null, bool? generateDocumentOutline = null);
///
/// Print page as PDF.
///
@@ -44253,10 +44560,11 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr
/// Whether or not to prefer page size as defined by css. Defaults to false,in which case the content will be scaled to fit the paper size.
/// return as stream
/// Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice.
+ /// Whether or not to embed the document outline into the PDF.
/// returns System.Threading.Tasks.Task<PrintToPDFResponse>
- public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null)
+ public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null, bool? generateDocumentOutline = null)
{
- ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF);
+ ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF, generateDocumentOutline);
var dict = new System.Collections.Generic.Dictionary();
if (landscape.HasValue)
{
@@ -44338,6 +44646,11 @@ public System.Threading.Tasks.Task PrintToPDFAsync(bool? lan
dict.Add("generateTaggedPDF", generateTaggedPDF.Value);
}
+ if (generateDocumentOutline.HasValue)
+ {
+ dict.Add("generateDocumentOutline", generateDocumentOutline.Value);
+ }
+
return _client.ExecuteDevToolsMethodAsync("Page.printToPDF", dict);
}
@@ -48601,6 +48914,23 @@ public event System.EventHandler DialogShown
}
}
+ ///
+ /// Triggered when a dialog is closed, either by user action, JS abort,
+ /// or a command below.
+ ///
+ public event System.EventHandler DialogClosed
+ {
+ add
+ {
+ _client.AddEventHandler("FedCm.dialogClosed", value);
+ }
+
+ remove
+ {
+ _client.RemoveEventHandler("FedCm.dialogClosed", value);
+ }
+ }
+
partial void ValidateEnable(bool? disableRejectionDelay = null);
///
/// Enable
@@ -48645,19 +48975,20 @@ public System.Threading.Tasks.Task SelectAccountAsync(st
return _client.ExecuteDevToolsMethodAsync("FedCm.selectAccount", dict);
}
- partial void ValidateConfirmIdpLogin(string dialogId);
+ partial void ValidateClickDialogButton(string dialogId, CefSharp.DevTools.FedCm.DialogButton dialogButton);
///
- /// Only valid if the dialog type is ConfirmIdpLogin. Acts as if the user had
- /// clicked the continue button.
+ /// ClickDialogButton
///
/// dialogId
+ /// dialogButton
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
- public System.Threading.Tasks.Task ConfirmIdpLoginAsync(string dialogId)
+ public System.Threading.Tasks.Task ClickDialogButtonAsync(string dialogId, CefSharp.DevTools.FedCm.DialogButton dialogButton)
{
- ValidateConfirmIdpLogin(dialogId);
+ ValidateClickDialogButton(dialogId, dialogButton);
var dict = new System.Collections.Generic.Dictionary();
dict.Add("dialogId", dialogId);
- return _client.ExecuteDevToolsMethodAsync("FedCm.confirmIdpLogin", dict);
+ dict.Add("dialogButton", EnumToString(dialogButton));
+ return _client.ExecuteDevToolsMethodAsync("FedCm.clickDialogButton", dict);
}
partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null);