diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index 4a0d877061..034347990e 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp/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 104.0.5112.81 +// CHROMIUM VERSION 105.0.5195.102 namespace CefSharp.DevTools.Accessibility { /// @@ -717,6 +717,16 @@ public CefSharp.DevTools.Accessibility.AXValue Role set; } + /// + /// This `Node`'s Chrome raw role. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("chromeRole"), IsRequired = (false))] + public CefSharp.DevTools.Accessibility.AXValue ChromeRole + { + get; + set; + } + /// /// The accessible name for this `Node`. /// @@ -2831,6 +2841,11 @@ public enum DeprecationIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EventPath"))] EventPath, /// + /// ExpectCTHeader + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExpectCTHeader"))] + ExpectCTHeader, + /// /// GeolocationInsecureOrigin /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("GeolocationInsecureOrigin"))] @@ -2881,6 +2896,16 @@ public enum DeprecationIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MediaSourceDurationTruncatingBuffered"))] MediaSourceDurationTruncatingBuffered, /// + /// NavigateEventRestoreScroll + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigateEventRestoreScroll"))] + NavigateEventRestoreScroll, + /// + /// NavigateEventTransitionWhile + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigateEventTransitionWhile"))] + NavigateEventTransitionWhile, + /// /// NoSysexWebMIDIWithoutPermission /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NoSysexWebMIDIWithoutPermission"))] @@ -2906,6 +2931,11 @@ public enum DeprecationIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OpenWebDatabaseInsecureContext"))] OpenWebDatabaseInsecureContext, /// + /// OverflowVisibleOnReplacedElement + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OverflowVisibleOnReplacedElement"))] + OverflowVisibleOnReplacedElement, + /// /// PictureSourceSrc /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PictureSourceSrc"))] @@ -4918,6 +4948,17 @@ public System.Collections.Generic.IList Layers get; set; } + + /// + /// @scope CSS at-rule array. + /// The array enumerates @scope at-rules starting with the innermost one, going outwards. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("scopes"), IsRequired = (false))] + public System.Collections.Generic.IList Scopes + { + get; + set; + } } /// @@ -5524,6 +5565,44 @@ public string StyleSheetId } } + /// + /// CSS Scope at-rule descriptor. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CSSScope : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Scope rule text. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + public string Text + { + get; + set; + } + + /// + /// The associated rule header range in the enclosing stylesheet (if + /// available). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] + public CefSharp.DevTools.CSS.SourceRange Range + { + get; + set; + } + + /// + /// Identifier of the stylesheet containing this object (if exists). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] + public string StyleSheetId + { + get; + set; + } + } + /// /// CSS Layer at-rule descriptor. /// @@ -11029,6 +11108,11 @@ public enum ResourceType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Fetch"))] Fetch, /// + /// Prefetch + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Prefetch"))] + Prefetch, + /// /// EventSource /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EventSource"))] @@ -11979,6 +12063,28 @@ internal string certificateTransparencyCompliance get; set; } + + /// + /// The signature algorithm used by the server in the TLS server signature, + /// represented as a TLS SignatureScheme code point. Omitted if not + /// applicable or not known. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("serverSignatureAlgorithm"), IsRequired = (false))] + public int? ServerSignatureAlgorithm + { + get; + set; + } + + /// + /// Whether the connection used Encrypted ClientHello + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("encryptedClientHello"), IsRequired = (true))] + public bool EncryptedClientHello + { + get; + set; + } } /// @@ -18053,6 +18159,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("execution-while-not-rendered"))] ExecutionWhileNotRendered, /// + /// federated-credentials + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("federated-credentials"))] + FederatedCredentials, + /// /// focus-without-user-activation /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("focus-without-user-activation"))] @@ -18168,6 +18279,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared-autofill"))] SharedAutofill, /// + /// shared-storage + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared-storage"))] + SharedStorage, + /// /// storage-access-api /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("storage-access-api"))] @@ -18228,7 +18344,12 @@ public enum PermissionsPolicyBlockReason /// InFencedFrameTree /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InFencedFrameTree"))] - InFencedFrameTree + InFencedFrameTree, + /// + /// InIsolatedApp + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InIsolatedApp"))] + InIsolatedApp } /// @@ -20808,16 +20929,6 @@ public string FrameId private set; } - /// - /// Input node id. - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (true))] - public int BackendNodeId - { - get; - private set; - } - /// /// Input mode. /// @@ -20843,6 +20954,16 @@ internal string mode get; private set; } + + /// + /// Input node id. Only present for file choosers opened via an <input type="file" > element. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (false))] + public int? BackendNodeId + { + get; + private set; + } } /// @@ -24511,6 +24632,17 @@ internal string recordMode set; } + /// + /// Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value + /// of 200 MB would be used. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("traceBufferSizeInKb"), IsRequired = (false))] + public double? TraceBufferSizeInKb + { + get; + set; + } + /// /// Turns on JavaScript stack sampling. /// @@ -27336,6 +27468,33 @@ internal string type } } + /// + /// WasmDisassemblyChunk + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class WasmDisassemblyChunk : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The next chunk of disassembled lines. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("lines"), IsRequired = (true))] + public string[] Lines + { + get; + set; + } + + /// + /// The bytecode offsets describing the start of each line. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("bytecodeOffsets"), IsRequired = (true))] + public int[] BytecodeOffsets + { + get; + set; + } + } + /// /// Enum of possible script languages. /// @@ -32617,6 +32776,24 @@ public System.Collections.Generic.IList return cssKeyframesRules; } } + + [System.Runtime.Serialization.DataMemberAttribute] + internal int? parentLayoutNodeId + { + get; + set; + } + + /// + /// parentLayoutNodeId + /// + public int? ParentLayoutNodeId + { + get + { + return parentLayoutNodeId; + } + } } } @@ -32872,6 +33049,34 @@ public CefSharp.DevTools.CSS.CSSSupports Supports } } +namespace CefSharp.DevTools.CSS +{ + /// + /// SetScopeTextResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class SetScopeTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal CefSharp.DevTools.CSS.CSSScope scope + { + get; + set; + } + + /// + /// scope + /// + public CefSharp.DevTools.CSS.CSSScope Scope + { + get + { + return scope; + } + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -33454,6 +33659,24 @@ public System.Threading.Tasks.Task SetSupportsTextAsync return _client.ExecuteDevToolsMethodAsync("CSS.setSupportsText", dict); } + partial void ValidateSetScopeText(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text); + /// + /// Modifies the expression of a scope at-rule. + /// + /// styleSheetId + /// range + /// text + /// returns System.Threading.Tasks.Task<SetScopeTextResponse> + public System.Threading.Tasks.Task SetScopeTextAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text) + { + ValidateSetScopeText(styleSheetId, range, text); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("range", range.ToDictionary()); + dict.Add("text", text); + return _client.ExecuteDevToolsMethodAsync("CSS.setScopeText", dict); + } + partial void ValidateSetRuleSelector(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string selector); /// /// Modifies the rule selector. @@ -34470,6 +34693,34 @@ public int[] NodeIds } } +namespace CefSharp.DevTools.DOM +{ + /// + /// GetTopLayerElementsResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class GetTopLayerElementsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal int[] nodeIds + { + get; + set; + } + + /// + /// nodeIds + /// + public int[] NodeIds + { + get + { + return nodeIds; + } + } + } +} + namespace CefSharp.DevTools.DOM { /// @@ -34914,6 +35165,22 @@ public DOMClient(CefSharp.DevTools.IDevToolsClient client) } } + /// + /// Called when top layer elements are changed. + /// + public event System.EventHandler TopLayerElementsUpdated + { + add + { + _client.AddEventHandler("DOM.topLayerElementsUpdated", value); + } + + remove + { + _client.RemoveEventHandler("DOM.topLayerElementsUpdated", value); + } + } + /// /// Called when a pseudo element is removed from an element. /// @@ -35526,6 +35793,18 @@ public System.Threading.Tasks.Task QuerySelectorAllAsy return _client.ExecuteDevToolsMethodAsync("DOM.querySelectorAll", dict); } + /// + /// Returns NodeIds of current top layer elements. + /// Top layer is rendered closest to the user within a viewport, therefore its elements always + /// appear on top of all other content. + /// + /// returns System.Threading.Tasks.Task<GetTopLayerElementsResponse> + public System.Threading.Tasks.Task GetTopLayerElementsAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("DOM.getTopLayerElements", dict); + } + /// /// Re-does the last undone action. /// @@ -44517,6 +44796,22 @@ public System.Threading.Tasks.Task ClearDataForOriginAsy return _client.ExecuteDevToolsMethodAsync("Storage.clearDataForOrigin", dict); } + partial void ValidateClearDataForStorageKey(string storageKey, string storageTypes); + /// + /// Clears storage for storage key. + /// + /// Storage key. + /// Comma separated list of StorageType to clear. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ClearDataForStorageKeyAsync(string storageKey, string storageTypes) + { + ValidateClearDataForStorageKey(storageKey, storageTypes); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + dict.Add("storageTypes", storageTypes); + return _client.ExecuteDevToolsMethodAsync("Storage.clearDataForStorageKey", dict); + } + partial void ValidateGetCookies(string browserContextId = null); /// /// Returns all browser cookies. @@ -47114,6 +47409,116 @@ public byte[] Bytecode } } +namespace CefSharp.DevTools.Debugger +{ + /// + /// DisassembleWasmModuleResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DisassembleWasmModuleResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal string streamId + { + get; + set; + } + + /// + /// streamId + /// + public string StreamId + { + get + { + return streamId; + } + } + + [System.Runtime.Serialization.DataMemberAttribute] + internal int totalNumberOfLines + { + get; + set; + } + + /// + /// totalNumberOfLines + /// + public int TotalNumberOfLines + { + get + { + return totalNumberOfLines; + } + } + + [System.Runtime.Serialization.DataMemberAttribute] + internal int[] functionBodyOffsets + { + get; + set; + } + + /// + /// functionBodyOffsets + /// + public int[] FunctionBodyOffsets + { + get + { + return functionBodyOffsets; + } + } + + [System.Runtime.Serialization.DataMemberAttribute] + internal CefSharp.DevTools.Debugger.WasmDisassemblyChunk chunk + { + get; + set; + } + + /// + /// chunk + /// + public CefSharp.DevTools.Debugger.WasmDisassemblyChunk Chunk + { + get + { + return chunk; + } + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// NextWasmDisassemblyChunkResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class NextWasmDisassemblyChunkResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal CefSharp.DevTools.Debugger.WasmDisassemblyChunk chunk + { + get; + set; + } + + /// + /// chunk + /// + public CefSharp.DevTools.Debugger.WasmDisassemblyChunk Chunk + { + get + { + return chunk; + } + } + } +} + namespace CefSharp.DevTools.Debugger { /// @@ -47462,6 +47867,24 @@ public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId } } + [System.Runtime.Serialization.DataMemberAttribute] + internal string status + { + get; + set; + } + + /// + /// status + /// + public string Status + { + get + { + return status; + } + } + [System.Runtime.Serialization.DataMemberAttribute] internal CefSharp.DevTools.Runtime.ExceptionDetails exceptionDetails { @@ -47800,6 +48223,37 @@ public System.Threading.Tasks.Task GetScriptSourceAsync return _client.ExecuteDevToolsMethodAsync("Debugger.getScriptSource", dict); } + partial void ValidateDisassembleWasmModule(string scriptId); + /// + /// DisassembleWasmModule + /// + /// Id of the script to disassemble + /// returns System.Threading.Tasks.Task<DisassembleWasmModuleResponse> + public System.Threading.Tasks.Task DisassembleWasmModuleAsync(string scriptId) + { + ValidateDisassembleWasmModule(scriptId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scriptId", scriptId); + return _client.ExecuteDevToolsMethodAsync("Debugger.disassembleWasmModule", dict); + } + + partial void ValidateNextWasmDisassemblyChunk(string streamId); + /// + /// Disassemble the next chunk of lines for the module corresponding to the + /// stream. If disassembly is complete, this API will invalidate the streamId + /// and return an empty chunk. Any subsequent calls for the now invalid stream + /// will return errors. + /// + /// streamId + /// returns System.Threading.Tasks.Task<NextWasmDisassemblyChunkResponse> + public System.Threading.Tasks.Task NextWasmDisassemblyChunkAsync(string streamId) + { + ValidateNextWasmDisassemblyChunk(streamId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("streamId", streamId); + return _client.ExecuteDevToolsMethodAsync("Debugger.nextWasmDisassemblyChunk", dict); + } + partial void ValidateGetStackTrace(CefSharp.DevTools.Runtime.StackTraceId stackTraceId); /// /// Returns stack trace with given `stackTraceId`. @@ -48111,17 +48565,24 @@ public System.Threading.Tasks.Task SetReturnValueAsync(C return _client.ExecuteDevToolsMethodAsync("Debugger.setReturnValue", dict); } - partial void ValidateSetScriptSource(string scriptId, string scriptSource, bool? dryRun = null); + partial void ValidateSetScriptSource(string scriptId, string scriptSource, bool? dryRun = null, bool? allowTopFrameEditing = null); /// /// Edits JavaScript source live. + /// + /// In general, functions that are currently on the stack can not be edited with + /// a single exception: If the edited function is the top-most stack frame and + /// that is the only activation of that function on the stack. In this case + /// the live edit will be successful and a `Debugger.restartFrame` for the + /// top-most function is automatically triggered. /// /// Id of the script to edit. /// New content of the script. /// If true the change will not actually be applied. Dry run may be used to get resultdescription without actually modifying the code. + /// If true, then `scriptSource` is allowed to change the function on top of the stackas long as the top-most stack frame is the only activation of that function. /// returns System.Threading.Tasks.Task<SetScriptSourceResponse> - public System.Threading.Tasks.Task SetScriptSourceAsync(string scriptId, string scriptSource, bool? dryRun = null) + public System.Threading.Tasks.Task SetScriptSourceAsync(string scriptId, string scriptSource, bool? dryRun = null, bool? allowTopFrameEditing = null) { - ValidateSetScriptSource(scriptId, scriptSource, dryRun); + ValidateSetScriptSource(scriptId, scriptSource, dryRun, allowTopFrameEditing); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scriptId", scriptId); dict.Add("scriptSource", scriptSource); @@ -48130,6 +48591,11 @@ public System.Threading.Tasks.Task SetScriptSourceAsync dict.Add("dryRun", dryRun.Value); } + if (allowTopFrameEditing.HasValue) + { + dict.Add("allowTopFrameEditing", allowTopFrameEditing.Value); + } + return _client.ExecuteDevToolsMethodAsync("Debugger.setScriptSource", dict); } diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs index bec8c114ff..efde39d033 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp/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 104.0.5112.81 +// CHROMIUM VERSION 105.0.5195.102 namespace CefSharp.DevTools.Accessibility { /// @@ -650,6 +650,16 @@ public CefSharp.DevTools.Accessibility.AXValue Role set; } + /// + /// This `Node`'s Chrome raw role. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("chromeRole")] + public CefSharp.DevTools.Accessibility.AXValue ChromeRole + { + get; + set; + } + /// /// The accessible name for this `Node`. /// @@ -2535,6 +2545,11 @@ public enum DeprecationIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("EventPath")] EventPath, /// + /// ExpectCTHeader + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExpectCTHeader")] + ExpectCTHeader, + /// /// GeolocationInsecureOrigin /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("GeolocationInsecureOrigin")] @@ -2585,6 +2600,16 @@ public enum DeprecationIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("MediaSourceDurationTruncatingBuffered")] MediaSourceDurationTruncatingBuffered, /// + /// NavigateEventRestoreScroll + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigateEventRestoreScroll")] + NavigateEventRestoreScroll, + /// + /// NavigateEventTransitionWhile + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigateEventTransitionWhile")] + NavigateEventTransitionWhile, + /// /// NoSysexWebMIDIWithoutPermission /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("NoSysexWebMIDIWithoutPermission")] @@ -2610,6 +2635,11 @@ public enum DeprecationIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("OpenWebDatabaseInsecureContext")] OpenWebDatabaseInsecureContext, /// + /// OverflowVisibleOnReplacedElement + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("OverflowVisibleOnReplacedElement")] + OverflowVisibleOnReplacedElement, + /// /// PictureSourceSrc /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("PictureSourceSrc")] @@ -4467,6 +4497,17 @@ public System.Collections.Generic.IList Layers get; set; } + + /// + /// @scope CSS at-rule array. + /// The array enumerates @scope at-rules starting with the innermost one, going outwards. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scopes")] + public System.Collections.Generic.IList Scopes + { + get; + set; + } } /// @@ -5058,6 +5099,44 @@ public string StyleSheetId } } + /// + /// CSS Scope at-rule descriptor. + /// + public partial class CSSScope : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Scope rule text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Text + { + get; + set; + } + + /// + /// The associated rule header range in the enclosing stylesheet (if + /// available). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + public CefSharp.DevTools.CSS.SourceRange Range + { + get; + set; + } + + /// + /// Identifier of the stylesheet containing this object (if exists). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + public string StyleSheetId + { + get; + set; + } + } + /// /// CSS Layer at-rule descriptor. /// @@ -10374,6 +10453,11 @@ public enum ResourceType [System.Text.Json.Serialization.JsonPropertyNameAttribute("Fetch")] Fetch, /// + /// Prefetch + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Prefetch")] + Prefetch, + /// /// EventSource /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("EventSource")] @@ -11272,6 +11356,28 @@ public CefSharp.DevTools.Network.CertificateTransparencyCompliance CertificateTr get; set; } + + /// + /// The signature algorithm used by the server in the TLS server signature, + /// represented as a TLS SignatureScheme code point. Omitted if not + /// applicable or not known. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("serverSignatureAlgorithm")] + public int? ServerSignatureAlgorithm + { + get; + set; + } + + /// + /// Whether the connection used Encrypted ClientHello + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("encryptedClientHello")] + public bool EncryptedClientHello + { + get; + set; + } } /// @@ -16818,6 +16924,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("execution-while-not-rendered")] ExecutionWhileNotRendered, /// + /// federated-credentials + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("federated-credentials")] + FederatedCredentials, + /// /// focus-without-user-activation /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("focus-without-user-activation")] @@ -16933,6 +17044,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared-autofill")] SharedAutofill, /// + /// shared-storage + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared-storage")] + SharedStorage, + /// /// storage-access-api /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("storage-access-api")] @@ -16993,7 +17109,12 @@ public enum PermissionsPolicyBlockReason /// InFencedFrameTree /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("InFencedFrameTree")] - InFencedFrameTree + InFencedFrameTree, + /// + /// InIsolatedApp + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InIsolatedApp")] + InIsolatedApp } /// @@ -19391,22 +19512,22 @@ public string FrameId } /// - /// Input node id. + /// Input mode. /// [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] - public int BackendNodeId + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mode")] + public CefSharp.DevTools.Page.FileChooserOpenedMode Mode { get; private set; } /// - /// Input mode. + /// Input node id. Only present for file choosers opened via an <input type="file" > element. /// [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mode")] - public CefSharp.DevTools.Page.FileChooserOpenedMode Mode + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + public int? BackendNodeId { get; private set; @@ -22883,6 +23004,17 @@ public partial class TraceConfig : CefSharp.DevTools.DevToolsDomainEntityBase set; } + /// + /// Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value + /// of 200 MB would be used. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("traceBufferSizeInKb")] + public double? TraceBufferSizeInKb + { + get; + set; + } + /// /// Turns on JavaScript stack sampling. /// @@ -25475,6 +25607,33 @@ public int LineNumber } } + /// + /// WasmDisassemblyChunk + /// + public partial class WasmDisassemblyChunk : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The next chunk of disassembled lines. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lines")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] Lines + { + get; + set; + } + + /// + /// The bytecode offsets describing the start of each line. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bytecodeOffsets")] + public int[] BytecodeOffsets + { + get; + set; + } + } + /// /// Enum of possible script languages. /// @@ -30357,6 +30516,17 @@ public System.Collections.Generic.IList get; private set; } + + /// + /// parentLayoutNodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentLayoutNodeId")] + public int? ParentLayoutNodeId + { + get; + private set; + } } } @@ -30540,6 +30710,26 @@ public CefSharp.DevTools.CSS.CSSSupports Supports } } +namespace CefSharp.DevTools.CSS +{ + /// + /// SetScopeTextResponse + /// + public class SetScopeTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// scope + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scope")] + public CefSharp.DevTools.CSS.CSSScope Scope + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -31075,6 +31265,24 @@ public System.Threading.Tasks.Task SetSupportsTextAsync return _client.ExecuteDevToolsMethodAsync("CSS.setSupportsText", dict); } + partial void ValidateSetScopeText(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text); + /// + /// Modifies the expression of a scope at-rule. + /// + /// styleSheetId + /// range + /// text + /// returns System.Threading.Tasks.Task<SetScopeTextResponse> + public System.Threading.Tasks.Task SetScopeTextAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text) + { + ValidateSetScopeText(styleSheetId, range, text); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("range", range.ToDictionary()); + dict.Add("text", text); + return _client.ExecuteDevToolsMethodAsync("CSS.setScopeText", dict); + } + partial void ValidateSetRuleSelector(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string selector); /// /// Modifies the rule selector. @@ -31895,6 +32103,26 @@ public int[] NodeIds } } +namespace CefSharp.DevTools.DOM +{ + /// + /// GetTopLayerElementsResponse + /// + public class GetTopLayerElementsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodeIds + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIds")] + public int[] NodeIds + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.DOM { /// @@ -32268,6 +32496,22 @@ public DOMClient(CefSharp.DevTools.IDevToolsClient client) } } + /// + /// Called when top layer elements are changed. + /// + public event System.EventHandler TopLayerElementsUpdated + { + add + { + _client.AddEventHandler("DOM.topLayerElementsUpdated", value); + } + + remove + { + _client.RemoveEventHandler("DOM.topLayerElementsUpdated", value); + } + } + /// /// Called when a pseudo element is removed from an element. /// @@ -32880,6 +33124,18 @@ public System.Threading.Tasks.Task QuerySelectorAllAsy return _client.ExecuteDevToolsMethodAsync("DOM.querySelectorAll", dict); } + /// + /// Returns NodeIds of current top layer elements. + /// Top layer is rendered closest to the user within a viewport, therefore its elements always + /// appear on top of all other content. + /// + /// returns System.Threading.Tasks.Task<GetTopLayerElementsResponse> + public System.Threading.Tasks.Task GetTopLayerElementsAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("DOM.getTopLayerElements", dict); + } + /// /// Re-does the last undone action. /// @@ -41157,6 +41413,22 @@ public System.Threading.Tasks.Task ClearDataForOriginAsy return _client.ExecuteDevToolsMethodAsync("Storage.clearDataForOrigin", dict); } + partial void ValidateClearDataForStorageKey(string storageKey, string storageTypes); + /// + /// Clears storage for storage key. + /// + /// Storage key. + /// Comma separated list of StorageType to clear. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ClearDataForStorageKeyAsync(string storageKey, string storageTypes) + { + ValidateClearDataForStorageKey(storageKey, storageTypes); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + dict.Add("storageTypes", storageTypes); + return _client.ExecuteDevToolsMethodAsync("Storage.clearDataForStorageKey", dict); + } + partial void ValidateGetCookies(string browserContextId = null); /// /// Returns all browser cookies. @@ -43529,6 +43801,79 @@ public byte[] Bytecode } } +namespace CefSharp.DevTools.Debugger +{ + /// + /// DisassembleWasmModuleResponse + /// + public class DisassembleWasmModuleResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// streamId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("streamId")] + public string StreamId + { + get; + private set; + } + + /// + /// totalNumberOfLines + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("totalNumberOfLines")] + public int TotalNumberOfLines + { + get; + private set; + } + + /// + /// functionBodyOffsets + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("functionBodyOffsets")] + public int[] FunctionBodyOffsets + { + get; + private set; + } + + /// + /// chunk + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("chunk")] + public CefSharp.DevTools.Debugger.WasmDisassemblyChunk Chunk + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// NextWasmDisassemblyChunkResponse + /// + public class NextWasmDisassemblyChunkResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// chunk + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("chunk")] + public CefSharp.DevTools.Debugger.WasmDisassemblyChunk Chunk + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.Debugger { /// @@ -43764,6 +44109,17 @@ public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId private set; } + /// + /// status + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + public string Status + { + get; + private set; + } + /// /// exceptionDetails /// @@ -44095,6 +44451,37 @@ public System.Threading.Tasks.Task GetScriptSourceAsync return _client.ExecuteDevToolsMethodAsync("Debugger.getScriptSource", dict); } + partial void ValidateDisassembleWasmModule(string scriptId); + /// + /// DisassembleWasmModule + /// + /// Id of the script to disassemble + /// returns System.Threading.Tasks.Task<DisassembleWasmModuleResponse> + public System.Threading.Tasks.Task DisassembleWasmModuleAsync(string scriptId) + { + ValidateDisassembleWasmModule(scriptId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scriptId", scriptId); + return _client.ExecuteDevToolsMethodAsync("Debugger.disassembleWasmModule", dict); + } + + partial void ValidateNextWasmDisassemblyChunk(string streamId); + /// + /// Disassemble the next chunk of lines for the module corresponding to the + /// stream. If disassembly is complete, this API will invalidate the streamId + /// and return an empty chunk. Any subsequent calls for the now invalid stream + /// will return errors. + /// + /// streamId + /// returns System.Threading.Tasks.Task<NextWasmDisassemblyChunkResponse> + public System.Threading.Tasks.Task NextWasmDisassemblyChunkAsync(string streamId) + { + ValidateNextWasmDisassemblyChunk(streamId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("streamId", streamId); + return _client.ExecuteDevToolsMethodAsync("Debugger.nextWasmDisassemblyChunk", dict); + } + partial void ValidateGetStackTrace(CefSharp.DevTools.Runtime.StackTraceId stackTraceId); /// /// Returns stack trace with given `stackTraceId`. @@ -44406,17 +44793,24 @@ public System.Threading.Tasks.Task SetReturnValueAsync(C return _client.ExecuteDevToolsMethodAsync("Debugger.setReturnValue", dict); } - partial void ValidateSetScriptSource(string scriptId, string scriptSource, bool? dryRun = null); + partial void ValidateSetScriptSource(string scriptId, string scriptSource, bool? dryRun = null, bool? allowTopFrameEditing = null); /// /// Edits JavaScript source live. + /// + /// In general, functions that are currently on the stack can not be edited with + /// a single exception: If the edited function is the top-most stack frame and + /// that is the only activation of that function on the stack. In this case + /// the live edit will be successful and a `Debugger.restartFrame` for the + /// top-most function is automatically triggered. /// /// Id of the script to edit. /// New content of the script. /// If true the change will not actually be applied. Dry run may be used to get resultdescription without actually modifying the code. + /// If true, then `scriptSource` is allowed to change the function on top of the stackas long as the top-most stack frame is the only activation of that function. /// returns System.Threading.Tasks.Task<SetScriptSourceResponse> - public System.Threading.Tasks.Task SetScriptSourceAsync(string scriptId, string scriptSource, bool? dryRun = null) + public System.Threading.Tasks.Task SetScriptSourceAsync(string scriptId, string scriptSource, bool? dryRun = null, bool? allowTopFrameEditing = null) { - ValidateSetScriptSource(scriptId, scriptSource, dryRun); + ValidateSetScriptSource(scriptId, scriptSource, dryRun, allowTopFrameEditing); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scriptId", scriptId); dict.Add("scriptSource", scriptSource); @@ -44425,6 +44819,11 @@ public System.Threading.Tasks.Task SetScriptSourceAsync dict.Add("dryRun", dryRun.Value); } + if (allowTopFrameEditing.HasValue) + { + dict.Add("allowTopFrameEditing", allowTopFrameEditing.Value); + } + return _client.ExecuteDevToolsMethodAsync("Debugger.setScriptSource", dict); }