diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 06d1bef1c..681f08f35 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 132.0.6834.83 +// CHROMIUM VERSION 133.0.6943.99 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -1375,7 +1375,7 @@ namespace CefSharp.DevTools.Audits /// /// The unique request id. /// - [DataMember(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (false))] public string RequestId { get; @@ -1385,7 +1385,7 @@ namespace CefSharp.DevTools.Audits /// /// Url /// - [DataMember(Name = ("url"), IsRequired = (false))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -1566,6 +1566,71 @@ namespace CefSharp.DevTools.Audits ReadCookie } + /// + /// Represents the category of insight that a cookie issue falls under. + /// + public enum InsightType + { + /// + /// GitHubResource + /// + [EnumMember(Value = ("GitHubResource"))] + GitHubResource, + /// + /// GracePeriod + /// + [EnumMember(Value = ("GracePeriod"))] + GracePeriod, + /// + /// Heuristics + /// + [EnumMember(Value = ("Heuristics"))] + Heuristics + } + + /// + /// Information about the suggested solution to a cookie issue. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CookieIssueInsight : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Type + /// + public CefSharp.DevTools.Audits.InsightType Type + { + get + { + return (CefSharp.DevTools.Audits.InsightType)(StringToEnum(typeof(CefSharp.DevTools.Audits.InsightType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Type + /// + [DataMember(Name = ("type"), IsRequired = (true))] + internal string type + { + get; + set; + } + + /// + /// Link to table entry in third-party cookie migration readiness list. + /// + [DataMember(Name = ("tableEntryUrl"), IsRequired = (false))] + public string TableEntryUrl + { + get; + set; + } + } + /// /// This information is currently necessary, as the front-end has a difficult /// time finding a specific cookie. With this, we can convey specific error @@ -1706,6 +1771,16 @@ namespace CefSharp.DevTools.Audits get; set; } + + /// + /// The recommended solution to the issue. + /// + [DataMember(Name = ("insight"), IsRequired = (false))] + public CefSharp.DevTools.Audits.CookieIssueInsight Insight + { + get; + set; + } } /// @@ -2028,7 +2103,12 @@ namespace CefSharp.DevTools.Audits /// CorpNotSameSite /// [EnumMember(Value = ("CorpNotSameSite"))] - CorpNotSameSite + CorpNotSameSite, + /// + /// SRIMessageSignatureMismatch + /// + [EnumMember(Value = ("SRIMessageSignatureMismatch"))] + SRIMessageSignatureMismatch } /// @@ -3764,6 +3844,91 @@ namespace CefSharp.DevTools.Audits } } + /// + /// SelectElementAccessibilityIssueReason + /// + public enum SelectElementAccessibilityIssueReason + { + /// + /// DisallowedSelectChild + /// + [EnumMember(Value = ("DisallowedSelectChild"))] + DisallowedSelectChild, + /// + /// DisallowedOptGroupChild + /// + [EnumMember(Value = ("DisallowedOptGroupChild"))] + DisallowedOptGroupChild, + /// + /// NonPhrasingContentOptionChild + /// + [EnumMember(Value = ("NonPhrasingContentOptionChild"))] + NonPhrasingContentOptionChild, + /// + /// InteractiveContentOptionChild + /// + [EnumMember(Value = ("InteractiveContentOptionChild"))] + InteractiveContentOptionChild, + /// + /// InteractiveContentLegendChild + /// + [EnumMember(Value = ("InteractiveContentLegendChild"))] + InteractiveContentLegendChild + } + + /// + /// This isue warns about errors in the select element content model. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SelectElementAccessibilityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// NodeId + /// + [DataMember(Name = ("nodeId"), IsRequired = (true))] + public int NodeId + { + get; + set; + } + + /// + /// SelectElementAccessibilityIssueReason + /// + public CefSharp.DevTools.Audits.SelectElementAccessibilityIssueReason SelectElementAccessibilityIssueReason + { + get + { + return (CefSharp.DevTools.Audits.SelectElementAccessibilityIssueReason)(StringToEnum(typeof(CefSharp.DevTools.Audits.SelectElementAccessibilityIssueReason), selectElementAccessibilityIssueReason)); + } + + set + { + this.selectElementAccessibilityIssueReason = (EnumToString(value)); + } + } + + /// + /// SelectElementAccessibilityIssueReason + /// + [DataMember(Name = ("selectElementAccessibilityIssueReason"), IsRequired = (true))] + internal string selectElementAccessibilityIssueReason + { + get; + set; + } + + /// + /// HasDisallowedAttributes + /// + [DataMember(Name = ("hasDisallowedAttributes"), IsRequired = (true))] + public bool HasDisallowedAttributes + { + get; + set; + } + } + /// /// StyleSheetLoadingIssueReason /// @@ -4026,7 +4191,12 @@ namespace CefSharp.DevTools.Audits /// SharedDictionaryIssue /// [EnumMember(Value = ("SharedDictionaryIssue"))] - SharedDictionaryIssue + SharedDictionaryIssue, + /// + /// SelectElementAccessibilityIssue + /// + [EnumMember(Value = ("SelectElementAccessibilityIssue"))] + SelectElementAccessibilityIssue } /// @@ -4246,6 +4416,16 @@ namespace CefSharp.DevTools.Audits get; set; } + + /// + /// SelectElementAccessibilityIssueDetails + /// + [DataMember(Name = ("selectElementAccessibilityIssueDetails"), IsRequired = (false))] + public CefSharp.DevTools.Audits.SelectElementAccessibilityIssueDetails SelectElementAccessibilityIssueDetails + { + get; + set; + } } /// @@ -4983,26 +5163,36 @@ namespace CefSharp.DevTools.Browser public enum PermissionType { /// - /// accessibilityEvents + /// ar /// - [EnumMember(Value = ("accessibilityEvents"))] - AccessibilityEvents, + [EnumMember(Value = ("ar"))] + Ar, /// /// audioCapture /// [EnumMember(Value = ("audioCapture"))] AudioCapture, /// - /// backgroundSync + /// automaticFullscreen /// - [EnumMember(Value = ("backgroundSync"))] - BackgroundSync, + [EnumMember(Value = ("automaticFullscreen"))] + AutomaticFullscreen, /// /// backgroundFetch /// [EnumMember(Value = ("backgroundFetch"))] BackgroundFetch, /// + /// backgroundSync + /// + [EnumMember(Value = ("backgroundSync"))] + BackgroundSync, + /// + /// cameraPanTiltZoom + /// + [EnumMember(Value = ("cameraPanTiltZoom"))] + CameraPanTiltZoom, + /// /// capturedSurfaceControl /// [EnumMember(Value = ("capturedSurfaceControl"))] @@ -5028,21 +5218,26 @@ namespace CefSharp.DevTools.Browser [EnumMember(Value = ("durableStorage"))] DurableStorage, /// - /// flash - /// - [EnumMember(Value = ("flash"))] - Flash, - /// /// geolocation /// [EnumMember(Value = ("geolocation"))] Geolocation, /// + /// handTracking + /// + [EnumMember(Value = ("handTracking"))] + HandTracking, + /// /// idleDetection /// [EnumMember(Value = ("idleDetection"))] IdleDetection, /// + /// keyboardLock + /// + [EnumMember(Value = ("keyboardLock"))] + KeyboardLock, + /// /// localFonts /// [EnumMember(Value = ("localFonts"))] @@ -5078,6 +5273,11 @@ namespace CefSharp.DevTools.Browser [EnumMember(Value = ("periodicBackgroundSync"))] PeriodicBackgroundSync, /// + /// pointerLock + /// + [EnumMember(Value = ("pointerLock"))] + PointerLock, + /// /// protectedMediaIdentifier /// [EnumMember(Value = ("protectedMediaIdentifier"))] @@ -5088,16 +5288,21 @@ namespace CefSharp.DevTools.Browser [EnumMember(Value = ("sensors"))] Sensors, /// - /// storageAccess + /// smartCard /// - [EnumMember(Value = ("storageAccess"))] - StorageAccess, + [EnumMember(Value = ("smartCard"))] + SmartCard, /// /// speakerSelection /// [EnumMember(Value = ("speakerSelection"))] SpeakerSelection, /// + /// storageAccess + /// + [EnumMember(Value = ("storageAccess"))] + StorageAccess, + /// /// topLevelStorageAccess /// [EnumMember(Value = ("topLevelStorageAccess"))] @@ -5108,10 +5313,10 @@ namespace CefSharp.DevTools.Browser [EnumMember(Value = ("videoCapture"))] VideoCapture, /// - /// videoCapturePanTiltZoom + /// vr /// - [EnumMember(Value = ("videoCapturePanTiltZoom"))] - VideoCapturePanTiltZoom, + [EnumMember(Value = ("vr"))] + Vr, /// /// wakeLockScreen /// @@ -5128,6 +5333,11 @@ namespace CefSharp.DevTools.Browser [EnumMember(Value = ("webAppInstallation"))] WebAppInstallation, /// + /// webPrinting + /// + [EnumMember(Value = ("webPrinting"))] + WebPrinting, + /// /// windowManagement /// [EnumMember(Value = ("windowManagement"))] @@ -5544,6 +5754,33 @@ namespace CefSharp.DevTools.CSS } } + /// + /// CSS style coming from animations with the name of the animation. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CSSAnimationStyle : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The name of the animation. + /// + [DataMember(Name = ("name"), IsRequired = (false))] + public string Name + { + get; + set; + } + + /// + /// The style coming from the animation. + /// + [DataMember(Name = ("style"), IsRequired = (true))] + public CefSharp.DevTools.CSS.CSSStyle Style + { + get; + set; + } + } + /// /// Inherited CSS rule collection from ancestor node. /// @@ -5571,6 +5808,33 @@ namespace CefSharp.DevTools.CSS } } + /// + /// Inherited CSS style collection for animated styles from ancestor node. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class InheritedAnimatedStyleEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Styles coming from the animations of the ancestor, if any, in the style inheritance chain. + /// + [DataMember(Name = ("animationStyles"), IsRequired = (false))] + public System.Collections.Generic.IList AnimationStyles + { + get; + set; + } + + /// + /// The style coming from the transitions of the ancestor, if any, in the style inheritance chain. + /// + [DataMember(Name = ("transitionsStyle"), IsRequired = (false))] + public CefSharp.DevTools.CSS.CSSStyle TransitionsStyle + { + get; + set; + } + } + /// /// Inherited pseudo element matches from pseudos of an ancestor node. /// @@ -8062,10 +8326,10 @@ namespace CefSharp.DevTools.DOM [EnumMember(Value = ("first-letter"))] FirstLetter, /// - /// check + /// checkmark /// - [EnumMember(Value = ("check"))] - Check, + [EnumMember(Value = ("checkmark"))] + Checkmark, /// /// before /// @@ -8077,10 +8341,10 @@ namespace CefSharp.DevTools.DOM [EnumMember(Value = ("after"))] After, /// - /// select-arrow + /// picker-icon /// - [EnumMember(Value = ("select-arrow"))] - SelectArrow, + [EnumMember(Value = ("picker-icon"))] + PickerIcon, /// /// marker /// @@ -8142,15 +8406,10 @@ namespace CefSharp.DevTools.DOM [EnumMember(Value = ("scroll-marker-group"))] ScrollMarkerGroup, /// - /// scroll-next-button + /// scroll-button /// - [EnumMember(Value = ("scroll-next-button"))] - ScrollNextButton, - /// - /// scroll-prev-button - /// - [EnumMember(Value = ("scroll-prev-button"))] - ScrollPrevButton, + [EnumMember(Value = ("scroll-button"))] + ScrollButton, /// /// scrollbar /// @@ -14498,7 +14757,12 @@ namespace CefSharp.DevTools.Network /// corp-not-same-site /// [EnumMember(Value = ("corp-not-same-site"))] - CorpNotSameSite + CorpNotSameSite, + /// + /// sri-message-signature-mismatch + /// + [EnumMember(Value = ("sri-message-signature-mismatch"))] + SriMessageSignatureMismatch } /// @@ -19080,6 +19344,9 @@ namespace CefSharp.DevTools.Network /// /// Raw response headers as they were received over the wire. + /// Duplicate headers in the response are represented as a single key with their values + /// concatentated using `\n` as the separator. + /// See also `headersText` that contains verbatim text for HTTP/1.*. /// [DataMember(Name = ("headers"), IsRequired = (true))] public CefSharp.DevTools.Network.Headers Headers @@ -19192,6 +19459,9 @@ namespace CefSharp.DevTools.Network /// /// Raw response headers as they were received over the wire. + /// Duplicate headers in the response are represented as a single key with their values + /// concatentated using `\n` as the separator. + /// See also `headersText` that contains verbatim text for HTTP/1.*. /// [DataMember(Name = ("headers"), IsRequired = (true))] public CefSharp.DevTools.Network.Headers Headers @@ -19268,7 +19538,12 @@ namespace CefSharp.DevTools.Network /// FulfilledLocally /// [EnumMember(Value = ("FulfilledLocally"))] - FulfilledLocally + FulfilledLocally, + /// + /// SiteIssuerLimit + /// + [EnumMember(Value = ("SiteIssuerLimit"))] + SiteIssuerLimit } /// @@ -21123,6 +21398,11 @@ namespace CefSharp.DevTools.Page [EnumMember(Value = ("deferred-fetch"))] DeferredFetch, /// + /// deferred-fetch-minimal + /// + [EnumMember(Value = ("deferred-fetch-minimal"))] + DeferredFetchMinimal, + /// /// digital-credentials-get /// [EnumMember(Value = ("digital-credentials-get"))] @@ -34114,6 +34394,16 @@ namespace CefSharp.DevTools.Preload private set; } + /// + /// PipelineId + /// + [DataMember(Name = ("pipelineId"), IsRequired = (true))] + public string PipelineId + { + get; + private set; + } + /// /// The frame id of the frame initiating prefetch. /// @@ -34213,6 +34503,16 @@ namespace CefSharp.DevTools.Preload private set; } + /// + /// PipelineId + /// + [DataMember(Name = ("pipelineId"), IsRequired = (true))] + public string PipelineId + { + get; + private set; + } + /// /// Status /// @@ -35688,6 +35988,16 @@ namespace CefSharp.DevTools.Debugger private set; } + /// + /// For Wasm modules, the content of the `build_id` custom section. + /// + [DataMember(Name = ("buildId"), IsRequired = (true))] + public string BuildId + { + get; + private set; + } + /// /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// @@ -35882,6 +36192,16 @@ namespace CefSharp.DevTools.Debugger private set; } + /// + /// For Wasm modules, the content of the `build_id` custom section. + /// + [DataMember(Name = ("buildId"), IsRequired = (true))] + public string BuildId + { + get; + private set; + } + /// /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// @@ -40787,6 +41107,62 @@ namespace CefSharp.DevTools.CSS } } +namespace CefSharp.DevTools.CSS +{ + /// + /// ResolveValuesResponse + /// + [DataContract] + public class ResolveValuesResponse : DevToolsDomainResponseBase + { + [DataMember] + internal string[] results + { + get; + set; + } + + /// + /// results + /// + public string[] Results + { + get + { + return results; + } + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// GetLonghandPropertiesResponse + /// + [DataContract] + public class GetLonghandPropertiesResponse : DevToolsDomainResponseBase + { + [DataMember] + internal System.Collections.Generic.IList longhandProperties + { + get; + set; + } + + /// + /// longhandProperties + /// + public System.Collections.Generic.IList LonghandProperties + { + get + { + return longhandProperties; + } + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -40833,6 +41209,70 @@ namespace CefSharp.DevTools.CSS } } +namespace CefSharp.DevTools.CSS +{ + /// + /// GetAnimatedStylesForNodeResponse + /// + [DataContract] + public class GetAnimatedStylesForNodeResponse : DevToolsDomainResponseBase + { + [DataMember] + internal System.Collections.Generic.IList animationStyles + { + get; + set; + } + + /// + /// animationStyles + /// + public System.Collections.Generic.IList AnimationStyles + { + get + { + return animationStyles; + } + } + + [DataMember] + internal CefSharp.DevTools.CSS.CSSStyle transitionsStyle + { + get; + set; + } + + /// + /// transitionsStyle + /// + public CefSharp.DevTools.CSS.CSSStyle TransitionsStyle + { + get + { + return transitionsStyle; + } + } + + [DataMember] + internal System.Collections.Generic.IList inherited + { + get; + set; + } + + /// + /// inherited + /// + public System.Collections.Generic.IList Inherited + { + get + { + return inherited; + } + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -41784,6 +42224,22 @@ namespace CefSharp.DevTools.CSS return _client.ExecuteDevToolsMethodAsync("CSS.forcePseudoState", dict); } + partial void ValidateForceStartingStyle(int nodeId, bool forced); + /// + /// Ensures that the given node is in its starting-style state. + /// + /// The element id for which to force the starting-style state. + /// Boolean indicating if this is on or off. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ForceStartingStyleAsync(int nodeId, bool forced) + { + ValidateForceStartingStyle(nodeId, forced); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("forced", forced); + return _client.ExecuteDevToolsMethodAsync("CSS.forceStartingStyle", dict); + } + partial void ValidateGetBackgroundColors(int nodeId); /// /// GetBackgroundColors @@ -41812,6 +42268,59 @@ namespace CefSharp.DevTools.CSS return _client.ExecuteDevToolsMethodAsync("CSS.getComputedStyleForNode", dict); } + partial void ValidateResolveValues(string[] values, int nodeId, string propertyName = null, CefSharp.DevTools.DOM.PseudoType? pseudoType = null, string pseudoIdentifier = null); + /// + /// Resolve the specified values in the context of the provided element. + /// For example, a value of '1em' is evaluated according to the computed + /// 'font-size' of the element and a value 'calc(1px + 2px)' will be + /// resolved to '3px'. + /// + /// Substitution functions (var()/env()/attr()) and cascade-dependentkeywords (revert/revert-layer) do not work. + /// Id of the node in whose context the expression is evaluated + /// Only longhands and custom property names are accepted. + /// Pseudo element type, only works for pseudo elements that generateelements in the tree, such as ::before and ::after. + /// Pseudo element custom ident. + /// returns System.Threading.Tasks.Task<ResolveValuesResponse> + public System.Threading.Tasks.Task ResolveValuesAsync(string[] values, int nodeId, string propertyName = null, CefSharp.DevTools.DOM.PseudoType? pseudoType = null, string pseudoIdentifier = null) + { + ValidateResolveValues(values, nodeId, propertyName, pseudoType, pseudoIdentifier); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("values", values); + dict.Add("nodeId", nodeId); + if (!(string.IsNullOrEmpty(propertyName))) + { + dict.Add("propertyName", propertyName); + } + + if (pseudoType.HasValue) + { + dict.Add("pseudoType", EnumToString(pseudoType)); + } + + if (!(string.IsNullOrEmpty(pseudoIdentifier))) + { + dict.Add("pseudoIdentifier", pseudoIdentifier); + } + + return _client.ExecuteDevToolsMethodAsync("CSS.resolveValues", dict); + } + + partial void ValidateGetLonghandProperties(string shorthandName, string value); + /// + /// GetLonghandProperties + /// + /// shorthandName + /// value + /// returns System.Threading.Tasks.Task<GetLonghandPropertiesResponse> + public System.Threading.Tasks.Task GetLonghandPropertiesAsync(string shorthandName, string value) + { + ValidateGetLonghandProperties(shorthandName, value); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("shorthandName", shorthandName); + dict.Add("value", value); + return _client.ExecuteDevToolsMethodAsync("CSS.getLonghandProperties", dict); + } + partial void ValidateGetInlineStylesForNode(int nodeId); /// /// Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM @@ -41827,6 +42336,21 @@ namespace CefSharp.DevTools.CSS return _client.ExecuteDevToolsMethodAsync("CSS.getInlineStylesForNode", dict); } + partial void ValidateGetAnimatedStylesForNode(int nodeId); + /// + /// Returns the styles coming from animations & transitions + /// including the animation & transition styles coming from inheritance chain. + /// + /// nodeId + /// returns System.Threading.Tasks.Task<GetAnimatedStylesForNodeResponse> + public System.Threading.Tasks.Task GetAnimatedStylesForNodeAsync(int nodeId) + { + ValidateGetAnimatedStylesForNode(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + return _client.ExecuteDevToolsMethodAsync("CSS.getAnimatedStylesForNode", dict); + } + partial void ValidateGetMatchedStylesForNode(int nodeId); /// /// Returns requested styles for a DOM node identified by `nodeId`. @@ -50215,6 +50739,25 @@ namespace CefSharp.DevTools.Network return _client.ExecuteDevToolsMethodAsync("Network.loadNetworkResource", dict); } + + partial void ValidateSetCookieControls(bool enableThirdPartyCookieRestriction, bool disableThirdPartyCookieMetadata, bool disableThirdPartyCookieHeuristics); + /// + /// Sets Controls for third-party cookie access + /// Page reload is required before the new cookie bahavior will be observed + /// + /// Whether 3pc restriction is enabled. + /// Whether 3pc grace period exception should be enabled; false by default. + /// Whether 3pc heuristics exceptions should be enabled; false by default. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetCookieControlsAsync(bool enableThirdPartyCookieRestriction, bool disableThirdPartyCookieMetadata, bool disableThirdPartyCookieHeuristics) + { + ValidateSetCookieControls(enableThirdPartyCookieRestriction, disableThirdPartyCookieMetadata, disableThirdPartyCookieHeuristics); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enableThirdPartyCookieRestriction", enableThirdPartyCookieRestriction); + dict.Add("disableThirdPartyCookieMetadata", disableThirdPartyCookieMetadata); + dict.Add("disableThirdPartyCookieHeuristics", disableThirdPartyCookieHeuristics); + return _client.ExecuteDevToolsMethodAsync("Network.setCookieControls", dict); + } } } @@ -55307,11 +55850,13 @@ namespace CefSharp.DevTools.Target return _client.ExecuteDevToolsMethodAsync("Target.getBrowserContexts", dict); } - partial void ValidateCreateTarget(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null); + partial void ValidateCreateTarget(string url, int? left = null, int? top = null, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null); /// /// Creates a new page. /// /// The initial URL the page will be navigated to. An empty string indicates about:blank. + /// Frame left origin in DIP (headless chrome only). + /// Frame top origin in DIP (headless chrome only). /// Frame width in DIP (headless chrome only). /// Frame height in DIP (headless chrome only). /// The browser context to create the page in. @@ -55320,11 +55865,21 @@ namespace CefSharp.DevTools.Target /// Whether to create the target in background or foreground (chrome-only,false by default). /// Whether to create the target of type "tab". /// returns System.Threading.Tasks.Task<CreateTargetResponse> - public System.Threading.Tasks.Task CreateTargetAsync(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null) + public System.Threading.Tasks.Task CreateTargetAsync(string url, int? left = null, int? top = null, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null) { - ValidateCreateTarget(url, width, height, browserContextId, enableBeginFrameControl, newWindow, background, forTab); + ValidateCreateTarget(url, left, top, width, height, browserContextId, enableBeginFrameControl, newWindow, background, forTab); var dict = new System.Collections.Generic.Dictionary(); dict.Add("url", url); + if (left.HasValue) + { + dict.Add("left", left.Value); + } + + if (top.HasValue) + { + dict.Add("top", top.Value); + } + if (width.HasValue) { dict.Add("width", width.Value); diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 1e3783694..5467c0ee8 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 132.0.6834.83 +// CHROMIUM VERSION 133.0.6943.99 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -1288,7 +1288,6 @@ namespace CefSharp.DevTools.Audits /// The unique request id. /// [JsonPropertyName("requestId")] - [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; @@ -1299,6 +1298,7 @@ namespace CefSharp.DevTools.Audits /// Url /// [JsonPropertyName("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; @@ -1479,6 +1479,54 @@ namespace CefSharp.DevTools.Audits ReadCookie } + /// + /// Represents the category of insight that a cookie issue falls under. + /// + public enum InsightType + { + /// + /// GitHubResource + /// + [JsonPropertyName("GitHubResource")] + GitHubResource, + /// + /// GracePeriod + /// + [JsonPropertyName("GracePeriod")] + GracePeriod, + /// + /// Heuristics + /// + [JsonPropertyName("Heuristics")] + Heuristics + } + + /// + /// Information about the suggested solution to a cookie issue. + /// + public partial class CookieIssueInsight : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Type + /// + [JsonPropertyName("type")] + public CefSharp.DevTools.Audits.InsightType Type + { + get; + set; + } + + /// + /// Link to table entry in third-party cookie migration readiness list. + /// + [JsonPropertyName("tableEntryUrl")] + public string TableEntryUrl + { + get; + set; + } + } + /// /// This information is currently necessary, as the front-end has a difficult /// time finding a specific cookie. With this, we can convey specific error @@ -1569,6 +1617,16 @@ namespace CefSharp.DevTools.Audits get; set; } + + /// + /// The recommended solution to the issue. + /// + [JsonPropertyName("insight")] + public CefSharp.DevTools.Audits.CookieIssueInsight Insight + { + get; + set; + } } /// @@ -1857,7 +1915,12 @@ namespace CefSharp.DevTools.Audits /// CorpNotSameSite /// [JsonPropertyName("CorpNotSameSite")] - CorpNotSameSite + CorpNotSameSite, + /// + /// SRIMessageSignatureMismatch + /// + [JsonPropertyName("SRIMessageSignatureMismatch")] + SRIMessageSignatureMismatch } /// @@ -3388,6 +3451,74 @@ namespace CefSharp.DevTools.Audits } } + /// + /// SelectElementAccessibilityIssueReason + /// + public enum SelectElementAccessibilityIssueReason + { + /// + /// DisallowedSelectChild + /// + [JsonPropertyName("DisallowedSelectChild")] + DisallowedSelectChild, + /// + /// DisallowedOptGroupChild + /// + [JsonPropertyName("DisallowedOptGroupChild")] + DisallowedOptGroupChild, + /// + /// NonPhrasingContentOptionChild + /// + [JsonPropertyName("NonPhrasingContentOptionChild")] + NonPhrasingContentOptionChild, + /// + /// InteractiveContentOptionChild + /// + [JsonPropertyName("InteractiveContentOptionChild")] + InteractiveContentOptionChild, + /// + /// InteractiveContentLegendChild + /// + [JsonPropertyName("InteractiveContentLegendChild")] + InteractiveContentLegendChild + } + + /// + /// This isue warns about errors in the select element content model. + /// + public partial class SelectElementAccessibilityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// NodeId + /// + [JsonPropertyName("nodeId")] + public int NodeId + { + get; + set; + } + + /// + /// SelectElementAccessibilityIssueReason + /// + [JsonPropertyName("selectElementAccessibilityIssueReason")] + public CefSharp.DevTools.Audits.SelectElementAccessibilityIssueReason SelectElementAccessibilityIssueReason + { + get; + set; + } + + /// + /// HasDisallowedAttributes + /// + [JsonPropertyName("hasDisallowedAttributes")] + public bool HasDisallowedAttributes + { + get; + set; + } + } + /// /// StyleSheetLoadingIssueReason /// @@ -3618,7 +3749,12 @@ namespace CefSharp.DevTools.Audits /// SharedDictionaryIssue /// [JsonPropertyName("SharedDictionaryIssue")] - SharedDictionaryIssue + SharedDictionaryIssue, + /// + /// SelectElementAccessibilityIssue + /// + [JsonPropertyName("SelectElementAccessibilityIssue")] + SelectElementAccessibilityIssue } /// @@ -3837,6 +3973,16 @@ namespace CefSharp.DevTools.Audits get; set; } + + /// + /// SelectElementAccessibilityIssueDetails + /// + [JsonPropertyName("selectElementAccessibilityIssueDetails")] + public CefSharp.DevTools.Audits.SelectElementAccessibilityIssueDetails SelectElementAccessibilityIssueDetails + { + get; + set; + } } /// @@ -4515,26 +4661,36 @@ namespace CefSharp.DevTools.Browser public enum PermissionType { /// - /// accessibilityEvents + /// ar /// - [JsonPropertyName("accessibilityEvents")] - AccessibilityEvents, + [JsonPropertyName("ar")] + Ar, /// /// audioCapture /// [JsonPropertyName("audioCapture")] AudioCapture, /// - /// backgroundSync + /// automaticFullscreen /// - [JsonPropertyName("backgroundSync")] - BackgroundSync, + [JsonPropertyName("automaticFullscreen")] + AutomaticFullscreen, /// /// backgroundFetch /// [JsonPropertyName("backgroundFetch")] BackgroundFetch, /// + /// backgroundSync + /// + [JsonPropertyName("backgroundSync")] + BackgroundSync, + /// + /// cameraPanTiltZoom + /// + [JsonPropertyName("cameraPanTiltZoom")] + CameraPanTiltZoom, + /// /// capturedSurfaceControl /// [JsonPropertyName("capturedSurfaceControl")] @@ -4560,21 +4716,26 @@ namespace CefSharp.DevTools.Browser [JsonPropertyName("durableStorage")] DurableStorage, /// - /// flash - /// - [JsonPropertyName("flash")] - Flash, - /// /// geolocation /// [JsonPropertyName("geolocation")] Geolocation, /// + /// handTracking + /// + [JsonPropertyName("handTracking")] + HandTracking, + /// /// idleDetection /// [JsonPropertyName("idleDetection")] IdleDetection, /// + /// keyboardLock + /// + [JsonPropertyName("keyboardLock")] + KeyboardLock, + /// /// localFonts /// [JsonPropertyName("localFonts")] @@ -4610,6 +4771,11 @@ namespace CefSharp.DevTools.Browser [JsonPropertyName("periodicBackgroundSync")] PeriodicBackgroundSync, /// + /// pointerLock + /// + [JsonPropertyName("pointerLock")] + PointerLock, + /// /// protectedMediaIdentifier /// [JsonPropertyName("protectedMediaIdentifier")] @@ -4620,16 +4786,21 @@ namespace CefSharp.DevTools.Browser [JsonPropertyName("sensors")] Sensors, /// - /// storageAccess + /// smartCard /// - [JsonPropertyName("storageAccess")] - StorageAccess, + [JsonPropertyName("smartCard")] + SmartCard, /// /// speakerSelection /// [JsonPropertyName("speakerSelection")] SpeakerSelection, /// + /// storageAccess + /// + [JsonPropertyName("storageAccess")] + StorageAccess, + /// /// topLevelStorageAccess /// [JsonPropertyName("topLevelStorageAccess")] @@ -4640,10 +4811,10 @@ namespace CefSharp.DevTools.Browser [JsonPropertyName("videoCapture")] VideoCapture, /// - /// videoCapturePanTiltZoom + /// vr /// - [JsonPropertyName("videoCapturePanTiltZoom")] - VideoCapturePanTiltZoom, + [JsonPropertyName("vr")] + Vr, /// /// wakeLockScreen /// @@ -4660,6 +4831,11 @@ namespace CefSharp.DevTools.Browser [JsonPropertyName("webAppInstallation")] WebAppInstallation, /// + /// webPrinting + /// + [JsonPropertyName("webPrinting")] + WebPrinting, + /// /// windowManagement /// [JsonPropertyName("windowManagement")] @@ -5055,6 +5231,33 @@ namespace CefSharp.DevTools.CSS } } + /// + /// CSS style coming from animations with the name of the animation. + /// + public partial class CSSAnimationStyle : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The name of the animation. + /// + [JsonPropertyName("name")] + public string Name + { + get; + set; + } + + /// + /// The style coming from the animation. + /// + [JsonPropertyName("style")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.CSSStyle Style + { + get; + set; + } + } + /// /// Inherited CSS rule collection from ancestor node. /// @@ -5082,6 +5285,32 @@ namespace CefSharp.DevTools.CSS } } + /// + /// Inherited CSS style collection for animated styles from ancestor node. + /// + public partial class InheritedAnimatedStyleEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Styles coming from the animations of the ancestor, if any, in the style inheritance chain. + /// + [JsonPropertyName("animationStyles")] + public System.Collections.Generic.IList AnimationStyles + { + get; + set; + } + + /// + /// The style coming from the transitions of the ancestor, if any, in the style inheritance chain. + /// + [JsonPropertyName("transitionsStyle")] + public CefSharp.DevTools.CSS.CSSStyle TransitionsStyle + { + get; + set; + } + } + /// /// Inherited pseudo element matches from pseudos of an ancestor node. /// @@ -7417,10 +7646,10 @@ namespace CefSharp.DevTools.DOM [JsonPropertyName("first-letter")] FirstLetter, /// - /// check + /// checkmark /// - [JsonPropertyName("check")] - Check, + [JsonPropertyName("checkmark")] + Checkmark, /// /// before /// @@ -7432,10 +7661,10 @@ namespace CefSharp.DevTools.DOM [JsonPropertyName("after")] After, /// - /// select-arrow + /// picker-icon /// - [JsonPropertyName("select-arrow")] - SelectArrow, + [JsonPropertyName("picker-icon")] + PickerIcon, /// /// marker /// @@ -7497,15 +7726,10 @@ namespace CefSharp.DevTools.DOM [JsonPropertyName("scroll-marker-group")] ScrollMarkerGroup, /// - /// scroll-next-button + /// scroll-button /// - [JsonPropertyName("scroll-next-button")] - ScrollNextButton, - /// - /// scroll-prev-button - /// - [JsonPropertyName("scroll-prev-button")] - ScrollPrevButton, + [JsonPropertyName("scroll-button")] + ScrollButton, /// /// scrollbar /// @@ -13600,7 +13824,12 @@ namespace CefSharp.DevTools.Network /// corp-not-same-site /// [JsonPropertyName("corp-not-same-site")] - CorpNotSameSite + CorpNotSameSite, + /// + /// sri-message-signature-mismatch + /// + [JsonPropertyName("sri-message-signature-mismatch")] + SriMessageSignatureMismatch } /// @@ -17665,6 +17894,9 @@ namespace CefSharp.DevTools.Network /// /// Raw response headers as they were received over the wire. + /// Duplicate headers in the response are represented as a single key with their values + /// concatentated using `\n` as the separator. + /// See also `headersText` that contains verbatim text for HTTP/1.*. /// [JsonInclude] [JsonPropertyName("headers")] @@ -17769,6 +18001,9 @@ namespace CefSharp.DevTools.Network /// /// Raw response headers as they were received over the wire. + /// Duplicate headers in the response are represented as a single key with their values + /// concatentated using `\n` as the separator. + /// See also `headersText` that contains verbatim text for HTTP/1.*. /// [JsonInclude] [JsonPropertyName("headers")] @@ -17847,7 +18082,12 @@ namespace CefSharp.DevTools.Network /// FulfilledLocally /// [JsonPropertyName("FulfilledLocally")] - FulfilledLocally + FulfilledLocally, + /// + /// SiteIssuerLimit + /// + [JsonPropertyName("SiteIssuerLimit")] + SiteIssuerLimit } /// @@ -19608,6 +19848,11 @@ namespace CefSharp.DevTools.Page [JsonPropertyName("deferred-fetch")] DeferredFetch, /// + /// deferred-fetch-minimal + /// + [JsonPropertyName("deferred-fetch-minimal")] + DeferredFetchMinimal, + /// /// digital-credentials-get /// [JsonPropertyName("digital-credentials-get")] @@ -31885,6 +32130,18 @@ namespace CefSharp.DevTools.Preload private set; } + /// + /// PipelineId + /// + [JsonInclude] + [JsonPropertyName("pipelineId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PipelineId + { + get; + private set; + } + /// /// The frame id of the frame initiating prefetch. /// @@ -31961,6 +32218,18 @@ namespace CefSharp.DevTools.Preload private set; } + /// + /// PipelineId + /// + [JsonInclude] + [JsonPropertyName("pipelineId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PipelineId + { + get; + private set; + } + /// /// Status /// @@ -33357,6 +33626,18 @@ namespace CefSharp.DevTools.Debugger private set; } + /// + /// For Wasm modules, the content of the `build_id` custom section. + /// + [JsonInclude] + [JsonPropertyName("buildId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string BuildId + { + get; + private set; + } + /// /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// @@ -33554,6 +33835,18 @@ namespace CefSharp.DevTools.Debugger private set; } + /// + /// For Wasm modules, the content of the `build_id` custom section. + /// + [JsonInclude] + [JsonPropertyName("buildId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string BuildId + { + get; + private set; + } + /// /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// @@ -38094,6 +38387,46 @@ namespace CefSharp.DevTools.CSS } } +namespace CefSharp.DevTools.CSS +{ + /// + /// ResolveValuesResponse + /// + public class ResolveValuesResponse : DevToolsDomainResponseBase + { + /// + /// results + /// + [JsonInclude] + [JsonPropertyName("results")] + public string[] Results + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// GetLonghandPropertiesResponse + /// + public class GetLonghandPropertiesResponse : DevToolsDomainResponseBase + { + /// + /// longhandProperties + /// + [JsonInclude] + [JsonPropertyName("longhandProperties")] + public System.Collections.Generic.IList LonghandProperties + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -38125,6 +38458,48 @@ namespace CefSharp.DevTools.CSS } } +namespace CefSharp.DevTools.CSS +{ + /// + /// GetAnimatedStylesForNodeResponse + /// + public class GetAnimatedStylesForNodeResponse : DevToolsDomainResponseBase + { + /// + /// animationStyles + /// + [JsonInclude] + [JsonPropertyName("animationStyles")] + public System.Collections.Generic.IList AnimationStyles + { + get; + private set; + } + + /// + /// transitionsStyle + /// + [JsonInclude] + [JsonPropertyName("transitionsStyle")] + public CefSharp.DevTools.CSS.CSSStyle TransitionsStyle + { + get; + private set; + } + + /// + /// inherited + /// + [JsonInclude] + [JsonPropertyName("inherited")] + public System.Collections.Generic.IList Inherited + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -38841,6 +39216,22 @@ namespace CefSharp.DevTools.CSS return _client.ExecuteDevToolsMethodAsync("CSS.forcePseudoState", dict); } + partial void ValidateForceStartingStyle(int nodeId, bool forced); + /// + /// Ensures that the given node is in its starting-style state. + /// + /// The element id for which to force the starting-style state. + /// Boolean indicating if this is on or off. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ForceStartingStyleAsync(int nodeId, bool forced) + { + ValidateForceStartingStyle(nodeId, forced); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("forced", forced); + return _client.ExecuteDevToolsMethodAsync("CSS.forceStartingStyle", dict); + } + partial void ValidateGetBackgroundColors(int nodeId); /// /// GetBackgroundColors @@ -38869,6 +39260,59 @@ namespace CefSharp.DevTools.CSS return _client.ExecuteDevToolsMethodAsync("CSS.getComputedStyleForNode", dict); } + partial void ValidateResolveValues(string[] values, int nodeId, string propertyName = null, CefSharp.DevTools.DOM.PseudoType? pseudoType = null, string pseudoIdentifier = null); + /// + /// Resolve the specified values in the context of the provided element. + /// For example, a value of '1em' is evaluated according to the computed + /// 'font-size' of the element and a value 'calc(1px + 2px)' will be + /// resolved to '3px'. + /// + /// Substitution functions (var()/env()/attr()) and cascade-dependentkeywords (revert/revert-layer) do not work. + /// Id of the node in whose context the expression is evaluated + /// Only longhands and custom property names are accepted. + /// Pseudo element type, only works for pseudo elements that generateelements in the tree, such as ::before and ::after. + /// Pseudo element custom ident. + /// returns System.Threading.Tasks.Task<ResolveValuesResponse> + public System.Threading.Tasks.Task ResolveValuesAsync(string[] values, int nodeId, string propertyName = null, CefSharp.DevTools.DOM.PseudoType? pseudoType = null, string pseudoIdentifier = null) + { + ValidateResolveValues(values, nodeId, propertyName, pseudoType, pseudoIdentifier); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("values", values); + dict.Add("nodeId", nodeId); + if (!(string.IsNullOrEmpty(propertyName))) + { + dict.Add("propertyName", propertyName); + } + + if (pseudoType.HasValue) + { + dict.Add("pseudoType", EnumToString(pseudoType)); + } + + if (!(string.IsNullOrEmpty(pseudoIdentifier))) + { + dict.Add("pseudoIdentifier", pseudoIdentifier); + } + + return _client.ExecuteDevToolsMethodAsync("CSS.resolveValues", dict); + } + + partial void ValidateGetLonghandProperties(string shorthandName, string value); + /// + /// GetLonghandProperties + /// + /// shorthandName + /// value + /// returns System.Threading.Tasks.Task<GetLonghandPropertiesResponse> + public System.Threading.Tasks.Task GetLonghandPropertiesAsync(string shorthandName, string value) + { + ValidateGetLonghandProperties(shorthandName, value); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("shorthandName", shorthandName); + dict.Add("value", value); + return _client.ExecuteDevToolsMethodAsync("CSS.getLonghandProperties", dict); + } + partial void ValidateGetInlineStylesForNode(int nodeId); /// /// Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM @@ -38884,6 +39328,21 @@ namespace CefSharp.DevTools.CSS return _client.ExecuteDevToolsMethodAsync("CSS.getInlineStylesForNode", dict); } + partial void ValidateGetAnimatedStylesForNode(int nodeId); + /// + /// Returns the styles coming from animations & transitions + /// including the animation & transition styles coming from inheritance chain. + /// + /// nodeId + /// returns System.Threading.Tasks.Task<GetAnimatedStylesForNodeResponse> + public System.Threading.Tasks.Task GetAnimatedStylesForNodeAsync(int nodeId) + { + ValidateGetAnimatedStylesForNode(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + return _client.ExecuteDevToolsMethodAsync("CSS.getAnimatedStylesForNode", dict); + } + partial void ValidateGetMatchedStylesForNode(int nodeId); /// /// Returns requested styles for a DOM node identified by `nodeId`. @@ -46586,6 +47045,25 @@ namespace CefSharp.DevTools.Network return _client.ExecuteDevToolsMethodAsync("Network.loadNetworkResource", dict); } + + partial void ValidateSetCookieControls(bool enableThirdPartyCookieRestriction, bool disableThirdPartyCookieMetadata, bool disableThirdPartyCookieHeuristics); + /// + /// Sets Controls for third-party cookie access + /// Page reload is required before the new cookie bahavior will be observed + /// + /// Whether 3pc restriction is enabled. + /// Whether 3pc grace period exception should be enabled; false by default. + /// Whether 3pc heuristics exceptions should be enabled; false by default. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetCookieControlsAsync(bool enableThirdPartyCookieRestriction, bool disableThirdPartyCookieMetadata, bool disableThirdPartyCookieHeuristics) + { + ValidateSetCookieControls(enableThirdPartyCookieRestriction, disableThirdPartyCookieMetadata, disableThirdPartyCookieHeuristics); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enableThirdPartyCookieRestriction", enableThirdPartyCookieRestriction); + dict.Add("disableThirdPartyCookieMetadata", disableThirdPartyCookieMetadata); + dict.Add("disableThirdPartyCookieHeuristics", disableThirdPartyCookieHeuristics); + return _client.ExecuteDevToolsMethodAsync("Network.setCookieControls", dict); + } } } @@ -51179,11 +51657,13 @@ namespace CefSharp.DevTools.Target return _client.ExecuteDevToolsMethodAsync("Target.getBrowserContexts", dict); } - partial void ValidateCreateTarget(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null); + partial void ValidateCreateTarget(string url, int? left = null, int? top = null, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null); /// /// Creates a new page. /// /// The initial URL the page will be navigated to. An empty string indicates about:blank. + /// Frame left origin in DIP (headless chrome only). + /// Frame top origin in DIP (headless chrome only). /// Frame width in DIP (headless chrome only). /// Frame height in DIP (headless chrome only). /// The browser context to create the page in. @@ -51192,11 +51672,21 @@ namespace CefSharp.DevTools.Target /// Whether to create the target in background or foreground (chrome-only,false by default). /// Whether to create the target of type "tab". /// returns System.Threading.Tasks.Task<CreateTargetResponse> - public System.Threading.Tasks.Task CreateTargetAsync(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null) + public System.Threading.Tasks.Task CreateTargetAsync(string url, int? left = null, int? top = null, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null) { - ValidateCreateTarget(url, width, height, browserContextId, enableBeginFrameControl, newWindow, background, forTab); + ValidateCreateTarget(url, left, top, width, height, browserContextId, enableBeginFrameControl, newWindow, background, forTab); var dict = new System.Collections.Generic.Dictionary(); dict.Add("url", url); + if (left.HasValue) + { + dict.Add("left", left.Value); + } + + if (top.HasValue) + { + dict.Add("top", top.Value); + } + if (width.HasValue) { dict.Add("width", width.Value);