diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index 6dc0d5d45..8c8c67660 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 86.0.4240.183 +// CHROMIUM VERSION 87.0.4280.27 namespace CefSharp.DevTools.Accessibility { /// @@ -2740,16 +2740,6 @@ namespace CefSharp.DevTools.Browser set; } - /// - /// For "wake-lock" permission, must specify type as either "screen" or "system". - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (false))] - public string Type - { - get; - set; - } - /// /// For "clipboard" permission, may specify allowWithoutSanitization. /// @@ -3172,8 +3162,8 @@ namespace CefSharp.DevTools.CSS /// /// Whether this stylesheet is mutable. Inline stylesheets become mutable /// after they have been modified via CSSOM API. - /// element's stylesheets are never mutable. Constructed stylesheets - /// (new CSSStyleSheet()) are mutable immediately after creation. + /// element's stylesheets become mutable only if DevTools modifies them. + /// Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("isMutable"), IsRequired = (true))] public bool IsMutable @@ -3182,6 +3172,16 @@ namespace CefSharp.DevTools.CSS set; } + /// + /// Whether this stylesheet is a constructed stylesheet (created using new CSSStyleSheet()). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("isConstructed"), IsRequired = (true))] + public bool IsConstructed + { + get; + set; + } + /// /// Line offset of the stylesheet within the resource (zero based). /// @@ -10355,6 +10355,49 @@ namespace CefSharp.DevTools.Network get; set; } + + public CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue ReportOnlyValue + { + get + { + return (CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue)(StringToEnum(typeof(CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue), reportOnlyValue)); + } + + set + { + this.reportOnlyValue = (EnumToString(value)); + } + } + + /// + /// ReportOnlyValue + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportOnlyValue"), IsRequired = (true))] + internal string reportOnlyValue + { + get; + set; + } + + /// + /// ReportingEndpoint + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportingEndpoint"), IsRequired = (false))] + public string ReportingEndpoint + { + get; + set; + } + + /// + /// ReportOnlyReportingEndpoint + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportOnlyReportingEndpoint"), IsRequired = (false))] + public string ReportOnlyReportingEndpoint + { + get; + set; + } } } @@ -10408,6 +10451,49 @@ namespace CefSharp.DevTools.Network get; set; } + + public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue ReportOnlyValue + { + get + { + return (CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue)(StringToEnum(typeof(CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue), reportOnlyValue)); + } + + set + { + this.reportOnlyValue = (EnumToString(value)); + } + } + + /// + /// ReportOnlyValue + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportOnlyValue"), IsRequired = (true))] + internal string reportOnlyValue + { + get; + set; + } + + /// + /// ReportingEndpoint + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportingEndpoint"), IsRequired = (false))] + public string ReportingEndpoint + { + get; + set; + } + + /// + /// ReportOnlyReportingEndpoint + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportOnlyReportingEndpoint"), IsRequired = (false))] + public string ReportOnlyReportingEndpoint + { + get; + set; + } } } @@ -10441,6 +10527,107 @@ namespace CefSharp.DevTools.Network } } +namespace CefSharp.DevTools.Network +{ + /// + /// An object providing the result of a network resource load. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class LoadNetworkResourcePageResult : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Success + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("success"), IsRequired = (true))] + public bool Success + { + get; + set; + } + + /// + /// Optional values used for error reporting. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("netError"), IsRequired = (false))] + public long? NetError + { + get; + set; + } + + /// + /// NetErrorName + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("netErrorName"), IsRequired = (false))] + public string NetErrorName + { + get; + set; + } + + /// + /// HttpStatusCode + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("httpStatusCode"), IsRequired = (false))] + public long? HttpStatusCode + { + get; + set; + } + + /// + /// If successful, one of the following two fields holds the result. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("stream"), IsRequired = (false))] + public string Stream + { + get; + set; + } + + /// + /// Response headers. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("headers"), IsRequired = (false))] + public CefSharp.DevTools.Network.Headers Headers + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// An options object that may be extended later to better support CORS, + /// CORB and streaming. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class LoadNetworkResourceOptions : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// DisableCache + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("disableCache"), IsRequired = (true))] + public bool DisableCache + { + get; + set; + } + + /// + /// IncludeCredentials + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("includeCredentials"), IsRequired = (true))] + public bool IncludeCredentials + { + get; + set; + } + } +} + namespace CefSharp.DevTools.Overlay { /// @@ -10668,6 +10855,16 @@ namespace CefSharp.DevTools.Overlay get; set; } + + /// + /// The grid container background color (Default: transparent). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("gridBackgroundColor"), IsRequired = (false))] + public CefSharp.DevTools.DOM.RGBA GridBackgroundColor + { + get; + set; + } } } @@ -13818,7 +14015,7 @@ namespace CefSharp.DevTools.Target } /// - /// Whether the opened window has access to the originating window. + /// Whether the target has access to the originating window. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("canAccessOpener"), IsRequired = (true))] public bool CanAccessOpener @@ -13827,6 +14024,16 @@ namespace CefSharp.DevTools.Target set; } + /// + /// Frame id of originating window (is only set if target has an opener). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("openerFrameId"), IsRequired = (false))] + public string OpenerFrameId + { + get; + set; + } + /// /// BrowserContextId /// @@ -14484,7 +14691,7 @@ namespace CefSharp.DevTools.WebAudio namespace CefSharp.DevTools.WebAudio { /// - /// Protocol object for AudioListner + /// Protocol object for AudioListener /// [System.Runtime.Serialization.DataContractAttribute] public class AudioListener : CefSharp.DevTools.DevToolsDomainEntityBase @@ -16005,6 +16212,46 @@ namespace CefSharp.DevTools.Profiler } } +namespace CefSharp.DevTools.Profiler +{ + /// + /// Runtime call counter information. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class RuntimeCallCounterInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Counter name. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + set; + } + + /// + /// Counter value. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + public long Value + { + get; + set; + } + + /// + /// Counter time in seconds. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("time"), IsRequired = (true))] + public long Time + { + get; + set; + } + } +} + namespace CefSharp.DevTools.Runtime { /// @@ -16886,6 +17133,34 @@ namespace CefSharp.DevTools.Accessibility } } +namespace CefSharp.DevTools.Accessibility +{ + /// + /// QueryAXTreeResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class QueryAXTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal System.Collections.Generic.IList nodes + { + get; + set; + } + + /// + /// nodes + /// + public System.Collections.Generic.IList Nodes + { + get + { + return nodes; + } + } + } +} + namespace CefSharp.DevTools.Accessibility { using System.Linq; @@ -16971,6 +17246,53 @@ namespace CefSharp.DevTools.Accessibility var methodResult = await _client.ExecuteDevToolsMethodAsync("Accessibility.getFullAXTree", dict); return methodResult.DeserializeJson(); } + + partial void ValidateQueryAXTree(int? nodeId = null, int? backendNodeId = null, string objectId = null, string accessibleName = null, string role = null); + /// + /// Query a DOM node's accessibility subtree for accessible name and role. + /// This command computes the name and role for all nodes in the subtree, including those that are + /// ignored for accessibility, and returns those that mactch the specified name and role. If no DOM + /// node is specified, or the DOM node does not exist, the command returns an error. If neither + /// `accessibleName` or `role` is specified, it returns all the accessibility nodes in the subtree. + /// + /// Identifier of the node for the root to query. + /// Identifier of the backend node for the root to query. + /// JavaScript object id of the node wrapper for the root to query. + /// Find nodes with this computed name. + /// Find nodes with this computed role. + /// returns System.Threading.Tasks.Task<QueryAXTreeResponse> + public async System.Threading.Tasks.Task QueryAXTreeAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null, string accessibleName = null, string role = null) + { + ValidateQueryAXTree(nodeId, backendNodeId, objectId, accessibleName, role); + var dict = new System.Collections.Generic.Dictionary(); + if (nodeId.HasValue) + { + dict.Add("nodeId", nodeId.Value); + } + + if (backendNodeId.HasValue) + { + dict.Add("backendNodeId", backendNodeId.Value); + } + + if (!(string.IsNullOrEmpty(objectId))) + { + dict.Add("objectId", objectId); + } + + if (!(string.IsNullOrEmpty(accessibleName))) + { + dict.Add("accessibleName", accessibleName); + } + + if (!(string.IsNullOrEmpty(role))) + { + dict.Add("role", role); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Accessibility.queryAXTree", dict); + return methodResult.DeserializeJson(); + } } } @@ -24495,6 +24817,34 @@ namespace CefSharp.DevTools.Network } } +namespace CefSharp.DevTools.Network +{ + /// + /// LoadNetworkResourceResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class LoadNetworkResourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal CefSharp.DevTools.Network.LoadNetworkResourcePageResult resource + { + get; + set; + } + + /// + /// resource + /// + public CefSharp.DevTools.Network.LoadNetworkResourcePageResult Resource + { + get + { + return resource; + } + } + } +} + namespace CefSharp.DevTools.Network { using System.Linq; @@ -24936,6 +25286,21 @@ namespace CefSharp.DevTools.Network return methodResult; } + partial void ValidateSetAttachDebugHeader(bool enabled); + /// + /// Specifies whether to sned a debug header to all outgoing requests. + /// + /// Whether to send a debug header. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetAttachDebugHeaderAsync(bool enabled) + { + ValidateSetAttachDebugHeader(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.setAttachDebugHeader", dict); + return methodResult; + } + partial void ValidateSetUserAgentOverride(string userAgent, string acceptLanguage = null, string platform = null, CefSharp.DevTools.Emulation.UserAgentMetadata userAgentMetadata = null); /// /// Allows overriding user agent with the given string. @@ -24987,6 +25352,25 @@ namespace CefSharp.DevTools.Network var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.getSecurityIsolationStatus", dict); return methodResult.DeserializeJson(); } + + partial void ValidateLoadNetworkResource(string frameId, string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options); + /// + /// Fetches the resource and returns the content. + /// + /// Frame id to get the resource for. + /// URL of the resource to get content for. + /// Options for the request. + /// returns System.Threading.Tasks.Task<LoadNetworkResourceResponse> + public async System.Threading.Tasks.Task LoadNetworkResourceAsync(string frameId, string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options) + { + ValidateLoadNetworkResource(frameId, url, options); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + dict.Add("url", url); + dict.Add("options", options.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.loadNetworkResource", dict); + return methodResult.DeserializeJson(); + } } } @@ -30826,10 +31210,10 @@ namespace CefSharp.DevTools.Profiler namespace CefSharp.DevTools.Profiler { /// - /// GetRuntimeCallStatsResponse + /// GetCountersResponse /// [System.Runtime.Serialization.DataContractAttribute] - public class GetRuntimeCallStatsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetCountersResponse : CefSharp.DevTools.DevToolsDomainResponseBase { [System.Runtime.Serialization.DataMemberAttribute] internal System.Collections.Generic.IList result @@ -30851,6 +31235,34 @@ namespace CefSharp.DevTools.Profiler } } +namespace CefSharp.DevTools.Profiler +{ + /// + /// GetRuntimeCallStatsResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class GetRuntimeCallStatsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal System.Collections.Generic.IList result + { + get; + set; + } + + /// + /// result + /// + public System.Collections.Generic.IList Result + { + get + { + return result; + } + } + } +} + namespace CefSharp.DevTools.Profiler { using System.Linq; @@ -31027,6 +31439,39 @@ namespace CefSharp.DevTools.Profiler return methodResult.DeserializeJson(); } + /// + /// Enable counters collection. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableCountersAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.enableCounters", dict); + return methodResult; + } + + /// + /// Disable counters collection. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableCountersAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.disableCounters", dict); + return methodResult; + } + + /// + /// Retrieve counters. + /// + /// returns System.Threading.Tasks.Task<GetCountersResponse> + public async System.Threading.Tasks.Task GetCountersAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.getCounters", dict); + return methodResult.DeserializeJson(); + } + /// /// Enable run time call stats collection. ///