DevTools Client - Upgrade to M87

This commit is contained in:
Alex Maitland
2020-11-17 19:09:35 +10:00
parent c48c0feb07
commit 24f3ee310d
+462 -17
View File
@@ -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
{
/// <summary>
@@ -2740,16 +2740,6 @@ namespace CefSharp.DevTools.Browser
set;
}
/// <summary>
/// For "wake-lock" permission, must specify type as either "screen" or "system".
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (false))]
public string Type
{
get;
set;
}
/// <summary>
/// For "clipboard" permission, may specify allowWithoutSanitization.
/// </summary>
@@ -3172,8 +3162,8 @@ namespace CefSharp.DevTools.CSS
/// <summary>
/// Whether this stylesheet is mutable. Inline stylesheets become mutable
/// after they have been modified via CSSOM API.
/// <link> element's stylesheets are never mutable. Constructed stylesheets
/// (new CSSStyleSheet()) are mutable immediately after creation.
/// <link> element's stylesheets become mutable only if DevTools modifies them.
/// Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("isMutable"), IsRequired = (true))]
public bool IsMutable
@@ -3182,6 +3172,16 @@ namespace CefSharp.DevTools.CSS
set;
}
/// <summary>
/// Whether this stylesheet is a constructed stylesheet (created using new CSSStyleSheet()).
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("isConstructed"), IsRequired = (true))]
public bool IsConstructed
{
get;
set;
}
/// <summary>
/// Line offset of the stylesheet within the resource (zero based).
/// </summary>
@@ -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));
}
}
/// <summary>
/// ReportOnlyValue
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("reportOnlyValue"), IsRequired = (true))]
internal string reportOnlyValue
{
get;
set;
}
/// <summary>
/// ReportingEndpoint
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("reportingEndpoint"), IsRequired = (false))]
public string ReportingEndpoint
{
get;
set;
}
/// <summary>
/// ReportOnlyReportingEndpoint
/// </summary>
[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));
}
}
/// <summary>
/// ReportOnlyValue
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("reportOnlyValue"), IsRequired = (true))]
internal string reportOnlyValue
{
get;
set;
}
/// <summary>
/// ReportingEndpoint
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("reportingEndpoint"), IsRequired = (false))]
public string ReportingEndpoint
{
get;
set;
}
/// <summary>
/// ReportOnlyReportingEndpoint
/// </summary>
[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
{
/// <summary>
/// An object providing the result of a network resource load.
/// </summary>
[System.Runtime.Serialization.DataContractAttribute]
public class LoadNetworkResourcePageResult : CefSharp.DevTools.DevToolsDomainEntityBase
{
/// <summary>
/// Success
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("success"), IsRequired = (true))]
public bool Success
{
get;
set;
}
/// <summary>
/// Optional values used for error reporting.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("netError"), IsRequired = (false))]
public long? NetError
{
get;
set;
}
/// <summary>
/// NetErrorName
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("netErrorName"), IsRequired = (false))]
public string NetErrorName
{
get;
set;
}
/// <summary>
/// HttpStatusCode
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("httpStatusCode"), IsRequired = (false))]
public long? HttpStatusCode
{
get;
set;
}
/// <summary>
/// If successful, one of the following two fields holds the result.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("stream"), IsRequired = (false))]
public string Stream
{
get;
set;
}
/// <summary>
/// Response headers.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("headers"), IsRequired = (false))]
public CefSharp.DevTools.Network.Headers Headers
{
get;
set;
}
}
}
namespace CefSharp.DevTools.Network
{
/// <summary>
/// An options object that may be extended later to better support CORS,
/// CORB and streaming.
/// </summary>
[System.Runtime.Serialization.DataContractAttribute]
public class LoadNetworkResourceOptions : CefSharp.DevTools.DevToolsDomainEntityBase
{
/// <summary>
/// DisableCache
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("disableCache"), IsRequired = (true))]
public bool DisableCache
{
get;
set;
}
/// <summary>
/// IncludeCredentials
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("includeCredentials"), IsRequired = (true))]
public bool IncludeCredentials
{
get;
set;
}
}
}
namespace CefSharp.DevTools.Overlay
{
/// <summary>
@@ -10668,6 +10855,16 @@ namespace CefSharp.DevTools.Overlay
get;
set;
}
/// <summary>
/// The grid container background color (Default: transparent).
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("gridBackgroundColor"), IsRequired = (false))]
public CefSharp.DevTools.DOM.RGBA GridBackgroundColor
{
get;
set;
}
}
}
@@ -13818,7 +14015,7 @@ namespace CefSharp.DevTools.Target
}
/// <summary>
/// Whether the opened window has access to the originating window.
/// Whether the target has access to the originating window.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("canAccessOpener"), IsRequired = (true))]
public bool CanAccessOpener
@@ -13827,6 +14024,16 @@ namespace CefSharp.DevTools.Target
set;
}
/// <summary>
/// Frame id of originating window (is only set if target has an opener).
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("openerFrameId"), IsRequired = (false))]
public string OpenerFrameId
{
get;
set;
}
/// <summary>
/// BrowserContextId
/// </summary>
@@ -14484,7 +14691,7 @@ namespace CefSharp.DevTools.WebAudio
namespace CefSharp.DevTools.WebAudio
{
/// <summary>
/// Protocol object for AudioListner
/// Protocol object for AudioListener
/// </summary>
[System.Runtime.Serialization.DataContractAttribute]
public class AudioListener : CefSharp.DevTools.DevToolsDomainEntityBase
@@ -16005,6 +16212,46 @@ namespace CefSharp.DevTools.Profiler
}
}
namespace CefSharp.DevTools.Profiler
{
/// <summary>
/// Runtime call counter information.
/// </summary>
[System.Runtime.Serialization.DataContractAttribute]
public class RuntimeCallCounterInfo : CefSharp.DevTools.DevToolsDomainEntityBase
{
/// <summary>
/// Counter name.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))]
public string Name
{
get;
set;
}
/// <summary>
/// Counter value.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))]
public long Value
{
get;
set;
}
/// <summary>
/// Counter time in seconds.
/// </summary>
[System.Runtime.Serialization.DataMemberAttribute(Name = ("time"), IsRequired = (true))]
public long Time
{
get;
set;
}
}
}
namespace CefSharp.DevTools.Runtime
{
/// <summary>
@@ -16886,6 +17133,34 @@ namespace CefSharp.DevTools.Accessibility
}
}
namespace CefSharp.DevTools.Accessibility
{
/// <summary>
/// QueryAXTreeResponse
/// </summary>
[System.Runtime.Serialization.DataContractAttribute]
public class QueryAXTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase
{
[System.Runtime.Serialization.DataMemberAttribute]
internal System.Collections.Generic.IList<CefSharp.DevTools.Accessibility.AXNode> nodes
{
get;
set;
}
/// <summary>
/// nodes
/// </summary>
public System.Collections.Generic.IList<CefSharp.DevTools.Accessibility.AXNode> 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<GetFullAXTreeResponse>();
}
partial void ValidateQueryAXTree(int? nodeId = null, int? backendNodeId = null, string objectId = null, string accessibleName = null, string role = null);
/// <summary>
/// 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.
/// </summary>
/// <param name = "nodeId">Identifier of the node for the root to query.</param>
/// <param name = "backendNodeId">Identifier of the backend node for the root to query.</param>
/// <param name = "objectId">JavaScript object id of the node wrapper for the root to query.</param>
/// <param name = "accessibleName">Find nodes with this computed name.</param>
/// <param name = "role">Find nodes with this computed role.</param>
/// <returns>returns System.Threading.Tasks.Task&lt;QueryAXTreeResponse&gt;</returns>
public async System.Threading.Tasks.Task<QueryAXTreeResponse> 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<string, object>();
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<QueryAXTreeResponse>();
}
}
}
@@ -24495,6 +24817,34 @@ namespace CefSharp.DevTools.Network
}
}
namespace CefSharp.DevTools.Network
{
/// <summary>
/// LoadNetworkResourceResponse
/// </summary>
[System.Runtime.Serialization.DataContractAttribute]
public class LoadNetworkResourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase
{
[System.Runtime.Serialization.DataMemberAttribute]
internal CefSharp.DevTools.Network.LoadNetworkResourcePageResult resource
{
get;
set;
}
/// <summary>
/// resource
/// </summary>
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);
/// <summary>
/// Specifies whether to sned a debug header to all outgoing requests.
/// </summary>
/// <param name = "enabled">Whether to send a debug header.</param>
/// <returns>returns System.Threading.Tasks.Task&lt;DevToolsMethodResponse&gt;</returns>
public async System.Threading.Tasks.Task<DevToolsMethodResponse> SetAttachDebugHeaderAsync(bool enabled)
{
ValidateSetAttachDebugHeader(enabled);
var dict = new System.Collections.Generic.Dictionary<string, object>();
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);
/// <summary>
/// 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<GetSecurityIsolationStatusResponse>();
}
partial void ValidateLoadNetworkResource(string frameId, string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options);
/// <summary>
/// Fetches the resource and returns the content.
/// </summary>
/// <param name = "frameId">Frame id to get the resource for.</param>
/// <param name = "url">URL of the resource to get content for.</param>
/// <param name = "options">Options for the request.</param>
/// <returns>returns System.Threading.Tasks.Task&lt;LoadNetworkResourceResponse&gt;</returns>
public async System.Threading.Tasks.Task<LoadNetworkResourceResponse> LoadNetworkResourceAsync(string frameId, string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options)
{
ValidateLoadNetworkResource(frameId, url, options);
var dict = new System.Collections.Generic.Dictionary<string, object>();
dict.Add("frameId", frameId);
dict.Add("url", url);
dict.Add("options", options.ToDictionary());
var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.loadNetworkResource", dict);
return methodResult.DeserializeJson<LoadNetworkResourceResponse>();
}
}
}
@@ -30826,10 +31210,10 @@ namespace CefSharp.DevTools.Profiler
namespace CefSharp.DevTools.Profiler
{
/// <summary>
/// GetRuntimeCallStatsResponse
/// GetCountersResponse
/// </summary>
[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<CefSharp.DevTools.Profiler.CounterInfo> result
@@ -30851,6 +31235,34 @@ namespace CefSharp.DevTools.Profiler
}
}
namespace CefSharp.DevTools.Profiler
{
/// <summary>
/// GetRuntimeCallStatsResponse
/// </summary>
[System.Runtime.Serialization.DataContractAttribute]
public class GetRuntimeCallStatsResponse : CefSharp.DevTools.DevToolsDomainResponseBase
{
[System.Runtime.Serialization.DataMemberAttribute]
internal System.Collections.Generic.IList<CefSharp.DevTools.Profiler.RuntimeCallCounterInfo> result
{
get;
set;
}
/// <summary>
/// result
/// </summary>
public System.Collections.Generic.IList<CefSharp.DevTools.Profiler.RuntimeCallCounterInfo> Result
{
get
{
return result;
}
}
}
}
namespace CefSharp.DevTools.Profiler
{
using System.Linq;
@@ -31027,6 +31439,39 @@ namespace CefSharp.DevTools.Profiler
return methodResult.DeserializeJson<TakeTypeProfileResponse>();
}
/// <summary>
/// Enable counters collection.
/// </summary>
/// <returns>returns System.Threading.Tasks.Task&lt;DevToolsMethodResponse&gt;</returns>
public async System.Threading.Tasks.Task<DevToolsMethodResponse> EnableCountersAsync()
{
System.Collections.Generic.Dictionary<string, object> dict = null;
var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.enableCounters", dict);
return methodResult;
}
/// <summary>
/// Disable counters collection.
/// </summary>
/// <returns>returns System.Threading.Tasks.Task&lt;DevToolsMethodResponse&gt;</returns>
public async System.Threading.Tasks.Task<DevToolsMethodResponse> DisableCountersAsync()
{
System.Collections.Generic.Dictionary<string, object> dict = null;
var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.disableCounters", dict);
return methodResult;
}
/// <summary>
/// Retrieve counters.
/// </summary>
/// <returns>returns System.Threading.Tasks.Task&lt;GetCountersResponse&gt;</returns>
public async System.Threading.Tasks.Task<GetCountersResponse> GetCountersAsync()
{
System.Collections.Generic.Dictionary<string, object> dict = null;
var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.getCounters", dict);
return methodResult.DeserializeJson<GetCountersResponse>();
}
/// <summary>
/// Enable run time call stats collection.
/// </summary>