From dcf5b43dc44bfcaaad8e2eff210418228cf80230 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 6 Jan 2021 15:27:51 +1000 Subject: [PATCH] Core - Add Net Core DevTools - Add specific Net Core DevTools generated code - Improve xml doc generation for both Net 4.x and Net Core/Net 5 --- .../DevTools/JsonEnumConverterFacts.cs | 125 + CefSharp/CefSharp.netcore.csproj | 5 + CefSharp/DevTools/DevToolsClient.Generated.cs | 300 +- .../DevToolsClient.Generated.netcore.cs | 30470 ++++++++++++++++ CefSharp/DevTools/DevToolsDomainBase.cs | 15 + CefSharp/DevTools/DevToolsDomainEntityBase.cs | 103 +- CefSharp/DevTools/DevToolsMethodResponse.cs | 14 + CefSharp/Internals/Json/JsonEnumConverter.cs | 52 + .../Json/JsonEnumConverterFactory.cs | 74 + .../CefSharp.Common.NETCore.nuspec | 4 + 10 files changed, 31009 insertions(+), 153 deletions(-) create mode 100644 CefSharp.Test/DevTools/JsonEnumConverterFacts.cs create mode 100644 CefSharp/DevTools/DevToolsClient.Generated.netcore.cs create mode 100644 CefSharp/Internals/Json/JsonEnumConverter.cs create mode 100644 CefSharp/Internals/Json/JsonEnumConverterFactory.cs diff --git a/CefSharp.Test/DevTools/JsonEnumConverterFacts.cs b/CefSharp.Test/DevTools/JsonEnumConverterFacts.cs new file mode 100644 index 000000000..fd81bb1db --- /dev/null +++ b/CefSharp.Test/DevTools/JsonEnumConverterFacts.cs @@ -0,0 +1,125 @@ +// Copyright © 2020 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Text.Json; +using CefSharp.DevTools.Audits; +using CefSharp.DevTools.Browser; +using CefSharp.DevTools.CSS; +using CefSharp.Internals.Json; +using Xunit; + +namespace CefSharp.Test.DevTools +{ + public class JsonEnumConverterFacts + { + [Fact] + public void CanConvertEnumToJsonString() + { + var options = new JsonSerializerOptions + { + PropertyNameCaseInsensitive = true, + IgnoreNullValues = true, + }; + + options.Converters.Add(new JsonEnumConverterFactory()); + + var expected = "\"clipboardSanitizedWrite\""; + var actual = JsonSerializer.Serialize(PermissionType.ClipboardSanitizedWrite, options); + + Assert.Equal(expected, actual); + } + + [Fact] + public void CanConvertEnumArrayToJsonString() + { + var options = new JsonSerializerOptions + { + PropertyNameCaseInsensitive = true, + IgnoreNullValues = true, + }; + + options.Converters.Add(new JsonEnumConverterFactory()); + + var expected = "[\"user-agent\",\"regular\"]"; + var actual = JsonSerializer.Serialize(new StyleSheetOrigin[] { StyleSheetOrigin.UserAgent, StyleSheetOrigin.Regular }, options); + + Assert.Equal(expected, actual); + } + + [Fact] + public void CanConvertNullableEnumToJsonStringNull() + { + var options = new JsonSerializerOptions + { + PropertyNameCaseInsensitive = true, + IgnoreNullValues = true, + }; + + options.Converters.Add(new JsonEnumConverterFactory()); + + var model = new MixedContentIssueDetails + { + InsecureURL = "Testing", + ResourceType = null + }; + + var expected = "{\"resolutionStatus\":\"MixedContentBlocked\",\"insecureURL\":\"Testing\"}"; + var actual = JsonSerializer.Serialize(model, options); + + Assert.Equal(expected, actual); + } + + [Fact] + public void CanConvertNullableEnumToJsonStringNotNull() + { + var options = new JsonSerializerOptions + { + PropertyNameCaseInsensitive = true, + IgnoreNullValues = true, + }; + + options.Converters.Add(new JsonEnumConverterFactory()); + + var model = new MixedContentIssueDetails + { + InsecureURL = "Testing", + ResourceType = MixedContentResourceType.CSPReport + }; + + var expected = "{\"resourceType\":\"CSPReport\",\"resolutionStatus\":\"MixedContentBlocked\",\"insecureURL\":\"Testing\"}"; + var actual = JsonSerializer.Serialize(model, options); + + Assert.Equal(expected, actual); + } + + [Fact] + public void CanSerializeDeserializeEnumJson() + { + var options = new JsonSerializerOptions + { + PropertyNameCaseInsensitive = true, + IgnoreNullValues = true, + }; + + options.Converters.Add(new JsonEnumConverterFactory()); + + var expected = new MixedContentIssueDetails + { + InsecureURL = "http://testing.domain/index.html", + Frame = new AffectedFrame + { + FrameId = "123" + }, + ResourceType = MixedContentResourceType.CSPReport + }; + + var serialize = JsonSerializer.Serialize(expected, options); + var actual = JsonSerializer.Deserialize(serialize, options); + + Assert.Equal(expected.InsecureURL, actual.InsecureURL); + Assert.Equal(expected.ResourceType, actual.ResourceType); + Assert.Equal(expected.Frame.FrameId, actual.Frame.FrameId); + } + } +} diff --git a/CefSharp/CefSharp.netcore.csproj b/CefSharp/CefSharp.netcore.csproj index bfb5fab4f..621eca179 100644 --- a/CefSharp/CefSharp.netcore.csproj +++ b/CefSharp/CefSharp.netcore.csproj @@ -26,6 +26,10 @@ embedded + + + + @@ -37,6 +41,7 @@ + diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index 8c8c67660..0e5277e34 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 87.0.4280.27 +// CHROMIUM VERSION 87.0.4280.88 namespace CefSharp.DevTools.Accessibility { /// @@ -274,7 +274,7 @@ namespace CefSharp.DevTools.Accessibility } /// - /// The native markup source for this value, e.g. a [System.Runtime.Serialization.DataMemberAttribute(Name = ("nativeSource"), IsRequired = (false))] internal string nativeSource @@ -465,11 +465,11 @@ namespace CefSharp.DevTools.Accessibility { /// /// Values of AXProperty name: - /// - from 'busy' to 'roledescription': states which apply to every AX node - /// - from 'live' to 'root': attributes which apply to nodes in live regions - /// - from 'autocomplete' to 'valuetext': attributes which apply to widgets - /// - from 'checked' to 'selected': states which apply to widgets - /// - from 'activedescendant' to 'owns' - relationships between elements other than parent/child/sibling. + /// - from 'busy' to 'roledescription': states which apply to every AX node + /// - from 'live' to 'root': attributes which apply to nodes in live regions + /// - from 'autocomplete' to 'valuetext': attributes which apply to widgets + /// - from 'checked' to 'selected': states which apply to widgets + /// - from 'activedescendant' to 'owns' - relationships between elements other than parent/child/sibling. /// public enum AXPropertyName { @@ -710,7 +710,7 @@ namespace CefSharp.DevTools.Accessibility } /// - /// This `Node`'s role, whether explicit or implicit. + /// This `Node`'s role, whether explicit or implicit. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("role"), IsRequired = (false))] public CefSharp.DevTools.Accessibility.AXValue Role @@ -760,7 +760,7 @@ namespace CefSharp.DevTools.Accessibility } /// - /// IDs for each of this node's child nodes. + /// IDs for each of this node's child nodes. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("childIds"), IsRequired = (false))] public string[] ChildIds @@ -790,7 +790,7 @@ namespace CefSharp.DevTools.Animation public class Animation : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// `Animation`'s id. + /// `Animation`'s id. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] public string Id @@ -800,7 +800,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `Animation`'s name. + /// `Animation`'s name. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] public string Name @@ -810,7 +810,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `Animation`'s internal paused state. + /// `Animation`'s internal paused state. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("pausedState"), IsRequired = (true))] public bool PausedState @@ -820,7 +820,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `Animation`'s play state. + /// `Animation`'s play state. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("playState"), IsRequired = (true))] public string PlayState @@ -830,7 +830,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `Animation`'s playback rate. + /// `Animation`'s playback rate. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("playbackRate"), IsRequired = (true))] public long PlaybackRate @@ -840,7 +840,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `Animation`'s start time. + /// `Animation`'s start time. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("startTime"), IsRequired = (true))] public long StartTime @@ -850,7 +850,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `Animation`'s current time. + /// `Animation`'s current time. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("currentTime"), IsRequired = (true))] public long CurrentTime @@ -870,7 +870,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `Animation`'s source animation node. + /// `Animation`'s source animation node. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("source"), IsRequired = (false))] public CefSharp.DevTools.Animation.AnimationEffect Source @@ -901,7 +901,7 @@ namespace CefSharp.DevTools.Animation public class AnimationEffect : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// `AnimationEffect`'s delay. + /// `AnimationEffect`'s delay. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("delay"), IsRequired = (true))] public long Delay @@ -911,7 +911,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `AnimationEffect`'s end delay. + /// `AnimationEffect`'s end delay. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("endDelay"), IsRequired = (true))] public long EndDelay @@ -921,7 +921,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `AnimationEffect`'s iteration start. + /// `AnimationEffect`'s iteration start. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("iterationStart"), IsRequired = (true))] public long IterationStart @@ -931,7 +931,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `AnimationEffect`'s iterations. + /// `AnimationEffect`'s iterations. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("iterations"), IsRequired = (true))] public long Iterations @@ -941,7 +941,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `AnimationEffect`'s iteration duration. + /// `AnimationEffect`'s iteration duration. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("duration"), IsRequired = (true))] public long Duration @@ -951,7 +951,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `AnimationEffect`'s playback direction. + /// `AnimationEffect`'s playback direction. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("direction"), IsRequired = (true))] public string Direction @@ -961,7 +961,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `AnimationEffect`'s fill mode. + /// `AnimationEffect`'s fill mode. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("fill"), IsRequired = (true))] public string Fill @@ -971,7 +971,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `AnimationEffect`'s target node. + /// `AnimationEffect`'s target node. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (false))] public int? BackendNodeId @@ -981,7 +981,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `AnimationEffect`'s keyframes. + /// `AnimationEffect`'s keyframes. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("keyframesRule"), IsRequired = (false))] public CefSharp.DevTools.Animation.KeyframesRule KeyframesRule @@ -991,7 +991,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `AnimationEffect`'s timing function. + /// `AnimationEffect`'s timing function. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("easing"), IsRequired = (true))] public string Easing @@ -1011,7 +1011,7 @@ namespace CefSharp.DevTools.Animation public class KeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// CSS keyframed animation's name. + /// CSS keyframed animation's name. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (false))] public string Name @@ -1041,7 +1041,7 @@ namespace CefSharp.DevTools.Animation public class KeyframeStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Keyframe's time offset. + /// Keyframe's time offset. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("offset"), IsRequired = (true))] public string Offset @@ -1051,7 +1051,7 @@ namespace CefSharp.DevTools.Animation } /// - /// `AnimationEffect`'s timing function. + /// `AnimationEffect`'s timing function. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("easing"), IsRequired = (true))] public string Easing @@ -2720,7 +2720,7 @@ namespace CefSharp.DevTools.Browser } /// - /// For "midi" permission, may also specify sysex control. + /// For "midi" permission, may also specify sysex control. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("sysex"), IsRequired = (false))] public bool? Sysex @@ -2730,7 +2730,7 @@ namespace CefSharp.DevTools.Browser } /// - /// For "push" permission, may specify userVisibleOnly. + /// For "push" permission, may specify userVisibleOnly. /// Note that userVisibleOnly = true is the only currently supported type. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("userVisibleOnly"), IsRequired = (false))] @@ -2741,7 +2741,7 @@ namespace CefSharp.DevTools.Browser } /// - /// For "clipboard" permission, may specify allowWithoutSanitization. + /// For "clipboard" permission, may specify allowWithoutSanitization. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("allowWithoutSanitization"), IsRequired = (false))] public bool? AllowWithoutSanitization @@ -2845,9 +2845,9 @@ namespace CefSharp.DevTools.Browser namespace CefSharp.DevTools.CSS { /// - /// Stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent - /// stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via - /// inspector" rules), "regular" for regular stylesheets. + /// Stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent + /// stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via + /// inspector" rules), "regular" for regular stylesheets. /// public enum StyleSheetOrigin { @@ -2926,7 +2926,7 @@ namespace CefSharp.DevTools.CSS public class InheritedStyleEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// The ancestor node's inline style, if any, in the style inheritance chain. + /// The ancestor node's inline style, if any, in the style inheritance chain. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("inlineStyle"), IsRequired = (false))] public CefSharp.DevTools.CSS.CSSStyle InlineStyle @@ -2966,7 +2966,7 @@ namespace CefSharp.DevTools.CSS } /// - /// Matching selector indices in the rule's selectorList selectors (0-based). + /// Matching selector indices in the rule's selectorList selectors (0-based). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("matchingSelectors"), IsRequired = (true))] public int[] MatchingSelectors @@ -3162,7 +3162,7 @@ namespace CefSharp.DevTools.CSS /// /// Whether this stylesheet is mutable. Inline stylesheets become mutable /// after they have been modified via CSSOM API. - /// element's stylesheets become mutable only if DevTools modifies them. + /// <link> 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))] @@ -3277,7 +3277,7 @@ namespace CefSharp.DevTools.CSS } /// - /// Parent stylesheet's origin. + /// Parent stylesheet's origin. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] internal string origin @@ -3439,7 +3439,7 @@ namespace CefSharp.DevTools.CSS } /// - /// Whether the property has "!important" annotation (implies `false` if absent). + /// Whether the property has "!important" annotation (implies `false` if absent). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("important"), IsRequired = (false))] public bool? Important @@ -3570,7 +3570,7 @@ namespace CefSharp.DevTools.CSS } /// - /// Whether the property has "!important" annotation (implies `false` if absent). + /// Whether the property has "!important" annotation (implies `false` if absent). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("important"), IsRequired = (false))] public bool? Important @@ -3650,10 +3650,10 @@ namespace CefSharp.DevTools.CSS } /// - /// Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if - /// specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked - /// stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline - /// stylesheet's STYLE tag. + /// Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if + /// specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked + /// stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline + /// stylesheet's STYLE tag. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("source"), IsRequired = (true))] public string Source @@ -3804,7 +3804,7 @@ namespace CefSharp.DevTools.CSS public class PlatformFontUsage : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Font's family name reported by platform. + /// Font's family name reported by platform. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("familyName"), IsRequired = (true))] public string FamilyName @@ -3844,7 +3844,7 @@ namespace CefSharp.DevTools.CSS public class FontVariationAxis : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// The font-variation-setting tag (a.k.a. "axis tag"). + /// The font-variation-setting tag (a.k.a. "axis tag"). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("tag"), IsRequired = (true))] public string Tag @@ -3854,7 +3854,7 @@ namespace CefSharp.DevTools.CSS } /// - /// Human-readable variation name in the default language (normally, "en"). + /// Human-readable variation name in the default language (normally, "en"). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] public string Name @@ -3985,7 +3985,7 @@ namespace CefSharp.DevTools.CSS } /// - /// Available variation settings (a.k.a. "axes"). + /// Available variation settings (a.k.a. "axes"). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("fontVariationAxes"), IsRequired = (false))] public System.Collections.Generic.IList FontVariationAxes @@ -4059,7 +4059,7 @@ namespace CefSharp.DevTools.CSS } /// - /// Parent stylesheet's origin. + /// Parent stylesheet's origin. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] internal string origin @@ -4413,7 +4413,7 @@ namespace CefSharp.DevTools.DOM public class BackendNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// `Node`'s nodeType. + /// `Node`'s nodeType. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeType"), IsRequired = (true))] public int NodeType @@ -4423,7 +4423,7 @@ namespace CefSharp.DevTools.DOM } /// - /// `Node`'s nodeName. + /// `Node`'s nodeName. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeName"), IsRequired = (true))] public string NodeName @@ -4601,7 +4601,7 @@ namespace CefSharp.DevTools.DOM } /// - /// `Node`'s nodeType. + /// `Node`'s nodeType. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeType"), IsRequired = (true))] public int NodeType @@ -4611,7 +4611,7 @@ namespace CefSharp.DevTools.DOM } /// - /// `Node`'s nodeName. + /// `Node`'s nodeName. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeName"), IsRequired = (true))] public string NodeName @@ -4621,7 +4621,7 @@ namespace CefSharp.DevTools.DOM } /// - /// `Node`'s localName. + /// `Node`'s localName. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("localName"), IsRequired = (true))] public string LocalName @@ -4631,7 +4631,7 @@ namespace CefSharp.DevTools.DOM } /// - /// `Node`'s nodeValue. + /// `Node`'s nodeValue. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeValue"), IsRequired = (true))] public string NodeValue @@ -4691,7 +4691,7 @@ namespace CefSharp.DevTools.DOM } /// - /// `DocumentType`'s publicId. + /// `DocumentType`'s publicId. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("publicId"), IsRequired = (false))] public string PublicId @@ -4701,7 +4701,7 @@ namespace CefSharp.DevTools.DOM } /// - /// `DocumentType`'s systemId. + /// `DocumentType`'s systemId. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("systemId"), IsRequired = (false))] public string SystemId @@ -4711,7 +4711,7 @@ namespace CefSharp.DevTools.DOM } /// - /// `DocumentType`'s internalSubset. + /// `DocumentType`'s internalSubset. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("internalSubset"), IsRequired = (false))] public string InternalSubset @@ -4721,7 +4721,7 @@ namespace CefSharp.DevTools.DOM } /// - /// `Document`'s XML version in case of XML documents. + /// `Document`'s XML version in case of XML documents. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("xmlVersion"), IsRequired = (false))] public string XmlVersion @@ -4731,7 +4731,7 @@ namespace CefSharp.DevTools.DOM } /// - /// `Attr`'s name. + /// `Attr`'s name. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (false))] public string Name @@ -4741,7 +4741,7 @@ namespace CefSharp.DevTools.DOM } /// - /// `Attr`'s value. + /// `Attr`'s value. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] public string Value @@ -5162,7 +5162,7 @@ namespace CefSharp.DevTools.DOMDebugger public class EventListener : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// `EventListener`'s type. + /// `EventListener`'s type. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] public string Type @@ -5172,7 +5172,7 @@ namespace CefSharp.DevTools.DOMDebugger } /// - /// `EventListener`'s useCapture. + /// `EventListener`'s useCapture. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("useCapture"), IsRequired = (true))] public bool UseCapture @@ -5182,7 +5182,7 @@ namespace CefSharp.DevTools.DOMDebugger } /// - /// `EventListener`'s passive flag. + /// `EventListener`'s passive flag. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("passive"), IsRequired = (true))] public bool Passive @@ -5192,7 +5192,7 @@ namespace CefSharp.DevTools.DOMDebugger } /// - /// `EventListener`'s once flag. + /// `EventListener`'s once flag. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("once"), IsRequired = (true))] public bool Once @@ -5272,7 +5272,7 @@ namespace CefSharp.DevTools.DOMSnapshot public class DOMNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// `Node`'s nodeType. + /// `Node`'s nodeType. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeType"), IsRequired = (true))] public int NodeType @@ -5282,7 +5282,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// `Node`'s nodeName. + /// `Node`'s nodeName. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeName"), IsRequired = (true))] public string NodeName @@ -5292,7 +5292,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// `Node`'s nodeValue. + /// `Node`'s nodeValue. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeValue"), IsRequired = (true))] public string NodeValue @@ -5312,7 +5312,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// Only set for input elements, contains the input's associated text value. + /// Only set for input elements, contains the input's associated text value. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("inputValue"), IsRequired = (false))] public string InputValue @@ -5342,7 +5342,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// `Node`'s id, corresponds to DOM.Node.backendNodeId. + /// `Node`'s id, corresponds to DOM.Node.backendNodeId. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (true))] public int BackendNodeId @@ -5352,7 +5352,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if + /// The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if /// any. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("childNodeIndexes"), IsRequired = (false))] @@ -5384,7 +5384,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// The index of the node's related layout tree node in the `layoutTreeNodes` array returned by + /// The index of the node's related layout tree node in the `layoutTreeNodes` array returned by /// `getSnapshot`, if any. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("layoutNodeIndex"), IsRequired = (false))] @@ -5415,7 +5415,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// Only set for documents, contains the document's content language. + /// Only set for documents, contains the document's content language. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentLanguage"), IsRequired = (false))] public string ContentLanguage @@ -5425,7 +5425,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// Only set for documents, contains the document's character set encoding. + /// Only set for documents, contains the document's character set encoding. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("documentEncoding"), IsRequired = (false))] public string DocumentEncoding @@ -5435,7 +5435,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// `DocumentType` node's publicId. + /// `DocumentType` node's publicId. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("publicId"), IsRequired = (false))] public string PublicId @@ -5445,7 +5445,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// `DocumentType` node's systemId. + /// `DocumentType` node's systemId. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("systemId"), IsRequired = (false))] public string SystemId @@ -5465,7 +5465,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// The index of a frame owner element's content document in the `domNodes` array returned by + /// The index of a frame owner element's content document in the `domNodes` array returned by /// `getSnapshot`, if any. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentDocumentIndex"), IsRequired = (false))] @@ -5534,7 +5534,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// Details of the node's event listeners, if any. + /// Details of the node's event listeners, if any. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventListeners"), IsRequired = (false))] public System.Collections.Generic.IList EventListeners @@ -5879,7 +5879,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// Contains the document's content language. + /// Contains the document's content language. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentLanguage"), IsRequired = (true))] public int ContentLanguage @@ -5889,7 +5889,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// Contains the document's character set encoding. + /// Contains the document's character set encoding. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("encodingName"), IsRequired = (true))] public int EncodingName @@ -5899,7 +5899,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// `DocumentType` node's publicId. + /// `DocumentType` node's publicId. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("publicId"), IsRequired = (true))] public int PublicId @@ -5909,7 +5909,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// `DocumentType` node's systemId. + /// `DocumentType` node's systemId. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("systemId"), IsRequired = (true))] public int SystemId @@ -6019,7 +6019,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// `Node`'s nodeType. + /// `Node`'s nodeType. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeType"), IsRequired = (false))] public int[] NodeType @@ -6029,7 +6029,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// `Node`'s nodeName. + /// `Node`'s nodeName. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeName"), IsRequired = (false))] public int[] NodeName @@ -6039,7 +6039,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// `Node`'s nodeValue. + /// `Node`'s nodeValue. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeValue"), IsRequired = (false))] public int[] NodeValue @@ -6049,7 +6049,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// `Node`'s id, corresponds to DOM.Node.backendNodeId. + /// `Node`'s id, corresponds to DOM.Node.backendNodeId. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (false))] public int[] BackendNodeId @@ -6079,7 +6079,7 @@ namespace CefSharp.DevTools.DOMSnapshot } /// - /// Only set for input elements, contains the input's associated text value. + /// Only set for input elements, contains the input's associated text value. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("inputValue"), IsRequired = (false))] public CefSharp.DevTools.DOMSnapshot.RareStringData InputValue @@ -6717,8 +6717,8 @@ namespace CefSharp.DevTools.IndexedDB } /// - /// Database version (type is not 'integer', as the standard - /// requires the version number to be 'unsigned long long') + /// Database version (type is not 'integer', as the standard + /// requires the version number to be 'unsigned long long') /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("version"), IsRequired = (true))] public long Version @@ -7038,7 +7038,7 @@ namespace CefSharp.DevTools.Input public class TouchPoint : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// X coordinate of the event relative to the main frame's viewport in CSS pixels. + /// X coordinate of the event relative to the main frame's viewport in CSS pixels. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("x"), IsRequired = (true))] public long X @@ -7048,7 +7048,7 @@ namespace CefSharp.DevTools.Input } /// - /// Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to + /// Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to /// the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("y"), IsRequired = (true))] @@ -7975,7 +7975,7 @@ namespace CefSharp.DevTools.Network namespace CefSharp.DevTools.Network { /// - /// Represents the cookie's 'SameSite' status: + /// Represents the cookie's 'SameSite' status: /// https://tools.ietf.org/html/draft-west-first-party-cookies /// public enum CookieSameSite @@ -8001,7 +8001,7 @@ namespace CefSharp.DevTools.Network namespace CefSharp.DevTools.Network { /// - /// Represents the cookie's 'Priority' status: + /// Represents the cookie's 'Priority' status: /// https://tools.ietf.org/html/draft-west-cookie-priority-00 /// public enum CookiePriority @@ -8033,7 +8033,7 @@ namespace CefSharp.DevTools.Network public class ResourceTiming : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Timing's requestTime is a baseline in seconds, while the other numbers are ticks in + /// Timing's requestTime is a baseline in seconds, while the other numbers are ticks in /// milliseconds relatively to this requestTime. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestTime"), IsRequired = (true))] @@ -8515,7 +8515,7 @@ namespace CefSharp.DevTools.Network public class SecurityDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Protocol name (e.g. "TLS 1.2" or "QUIC"). + /// Protocol name (e.g. "TLS 1.2" or "QUIC"). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("protocol"), IsRequired = (true))] public string Protocol @@ -9176,7 +9176,7 @@ namespace CefSharp.DevTools.Network /// /// WebSocket message payload data. /// If the opcode is 1, this is a text message and payloadData is a UTF-8 string. - /// If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data. + /// If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("payloadData"), IsRequired = (true))] public string PayloadData @@ -9605,7 +9605,7 @@ namespace CefSharp.DevTools.Network /// /// The string representing this individual cookie as it would appear in the header. - /// This is not the entire "cookie" or "set-cookie" header which could have multiple cookies. + /// This is not the entire "cookie" or "set-cookie" header which could have multiple cookies. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookieLine"), IsRequired = (true))] public string CookieLine @@ -9932,8 +9932,8 @@ namespace CefSharp.DevTools.Network public class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is - /// backslash. Omitting is equivalent to "*". + /// Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is + /// backslash. Omitting is equivalent to "*". /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("urlPattern"), IsRequired = (false))] public string UrlPattern @@ -10141,7 +10141,7 @@ namespace CefSharp.DevTools.Network } /// - /// Signed exchange header integrity hash in the form of "sha256-". + /// Signed exchange header integrity hash in the form of "sha256-<base64-hash-value> ". /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("headerIntegrity"), IsRequired = (true))] public string HeaderIntegrity @@ -11290,7 +11290,7 @@ namespace CefSharp.DevTools.Page } /// - /// Frame's name as specified in the tag. + /// Frame's name as specified in the tag. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (false))] public string Name @@ -11300,7 +11300,7 @@ namespace CefSharp.DevTools.Page } /// - /// Frame document's URL without fragment. + /// Frame document's URL without fragment. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] public string Url @@ -11310,7 +11310,7 @@ namespace CefSharp.DevTools.Page } /// - /// Frame document's URL fragment including the '#'. + /// Frame document's URL fragment including the '#'. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("urlFragment"), IsRequired = (false))] public string UrlFragment @@ -11320,10 +11320,10 @@ namespace CefSharp.DevTools.Page } /// - /// Frame document's registered domain, taking the public suffixes list into account. - /// Extracted from the Frame's url. - /// Example URLs: http://www.google.com/file.html -> "google.com" - /// http://a.b.co.uk/file.html -> "b.co.uk" + /// Frame document's registered domain, taking the public suffixes list into account. + /// Extracted from the Frame's url. + /// Example URLs: http://www.google.com/file.html -> "google.com" + /// http://a.b.co.uk/file.html -> "b.co.uk" /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("domainAndRegistry"), IsRequired = (true))] public string DomainAndRegistry @@ -11333,7 +11333,7 @@ namespace CefSharp.DevTools.Page } /// - /// Frame document's security origin. + /// Frame document's security origin. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityOrigin"), IsRequired = (true))] public string SecurityOrigin @@ -11343,7 +11343,7 @@ namespace CefSharp.DevTools.Page } /// - /// Frame document's mimeType as determined by the browser. + /// Frame document's mimeType as determined by the browser. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("mimeType"), IsRequired = (true))] public string MimeType @@ -12323,7 +12323,7 @@ namespace CefSharp.DevTools.Page public class InstallabilityErrorArgument : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Argument name (e.g. name:'minimum-icon-size-in-pixels'). + /// Argument name (e.g. name:'minimum-icon-size-in-pixels'). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] public string Name @@ -12333,7 +12333,7 @@ namespace CefSharp.DevTools.Page } /// - /// Argument value (e.g. value:'64'). + /// Argument value (e.g. value:'64'). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] public string Value @@ -12353,7 +12353,7 @@ namespace CefSharp.DevTools.Page public class InstallabilityError : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// The error id (e.g. 'manifest-missing-suitable-icon'). + /// The error id (e.g. 'manifest-missing-suitable-icon'). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorId"), IsRequired = (true))] public string ErrorId @@ -12363,7 +12363,7 @@ namespace CefSharp.DevTools.Page } /// - /// The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}). + /// The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorArguments"), IsRequired = (true))] public System.Collections.Generic.IList ErrorArguments @@ -12529,7 +12529,7 @@ namespace CefSharp.DevTools.Security public class CertificateSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Protocol name (e.g. "TLS 1.2" or "QUIC"). + /// Protocol name (e.g. "TLS 1.2" or "QUIC"). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("protocol"), IsRequired = (true))] public string Protocol @@ -12762,7 +12762,7 @@ namespace CefSharp.DevTools.Security } /// - /// The URL the safety tip suggested ("Did you mean?"). Only filled in for lookalike matches. + /// The URL the safety tip suggested ("Did you mean?"). Only filled in for lookalike matches. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("safeUrl"), IsRequired = (false))] public string SafeUrl @@ -13676,7 +13676,7 @@ namespace CefSharp.DevTools.SystemInfo /// /// Maximum encoding framerate in frames per second supported for this - /// |profile|, as fraction's numerator and denominator, e.g. 24/1 fps, + /// |profile|, as fraction's numerator and denominator, e.g. 24/1 fps, /// 24000/1001 fps, etc. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxFramerateNumerator"), IsRequired = (true))] @@ -14155,7 +14155,7 @@ namespace CefSharp.DevTools.Tracing } /// - /// Configuration for memory dump triggers. Used only when "memory-infra" category is enabled. + /// Configuration for memory dump triggers. Used only when "memory-infra" category is enabled. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("memoryDumpConfig"), IsRequired = (false))] public CefSharp.DevTools.Tracing.MemoryDumpConfig MemoryDumpConfig @@ -14238,8 +14238,8 @@ namespace CefSharp.DevTools.Fetch public class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is - /// backslash. Omitting is equivalent to "*". + /// Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is + /// backslash. Omitting is equivalent to "*". /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("urlPattern"), IsRequired = (false))] public string UrlPattern @@ -15175,11 +15175,11 @@ namespace CefSharp.DevTools.Media { /// /// Keep in sync with MediaLogMessageLevel - /// We are currently keeping the message level 'error' separate from the + /// We are currently keeping the message level 'error' separate from the /// PlayerError type because right now they represent different things, /// this one being a DVLOG(ERROR) style log message that gets printed /// based on what log level is selected in the UI, and the other is a - /// representation of a media::PipelineStatus object. Soon however we're + /// representation of a media::PipelineStatus object. Soon however we're /// going to be moving away from using PipelineStatus for errors and /// introducing a new error type which should hopefully let us integrate /// the error log level into the PlayerError type. @@ -15283,7 +15283,7 @@ namespace CefSharp.DevTools.Media /// /// When this switches to using media::Status instead of PipelineStatus - /// we can remove "errorCode" and replace it with the fields from + /// we can remove "errorCode" and replace it with the fields from /// a Status instance. This also seems like a duplicate of the error /// level enum - there is a todo bug to have that level removed and /// use this instead. (crbug.com/1068454) @@ -15859,7 +15859,7 @@ namespace CefSharp.DevTools.Profiler } /// - /// The reason of being not optimized. The function may be deoptimized or marked as don't + /// The reason of being not optimized. The function may be deoptimized or marked as don't /// optimize. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("deoptReason"), IsRequired = (false))] @@ -16663,7 +16663,7 @@ namespace CefSharp.DevTools.Runtime namespace CefSharp.DevTools.Runtime { /// - /// Object internal property descriptor. This property isn't normally visible in JavaScript code. + /// Object internal property descriptor. This property isn't normally visible in JavaScript code. /// [System.Runtime.Serialization.DataContractAttribute] public class InternalPropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase @@ -17249,7 +17249,7 @@ namespace CefSharp.DevTools.Accessibility 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. + /// 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 @@ -19182,7 +19182,7 @@ namespace CefSharp.DevTools.CSS partial void ValidateCreateStyleSheet(string frameId); /// - /// Creates a new special "via-inspector" stylesheet in the frame with given `frameId`. + /// Creates a new special "via-inspector" stylesheet in the frame with given `frameId`. /// /// Identifier of the frame where "via-inspector" stylesheet should be created. /// returns System.Threading.Tasks.Task<CreateStyleSheetResponse> @@ -19268,7 +19268,7 @@ namespace CefSharp.DevTools.CSS partial void ValidateGetInlineStylesForNode(int nodeId); /// - /// Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM + /// Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM /// attributes) for a DOM node identified by `nodeId`. /// /// nodeId @@ -20600,9 +20600,9 @@ namespace CefSharp.DevTools.DOM /// that has an `id`. This `id` can be used to get additional information on the Node, resolve it into /// the JavaScript object wrapper, etc. It is important that client receives DOM events only for the /// nodes that are known to the client. Backend keeps track of the nodes that were sent to the client - /// and never sends the same node twice. It is client's responsibility to collect information about - /// the nodes that were sent to the client.

Note that `iframe` owner elements will return - /// corresponding document elements as their child nodes.

+ /// and never sends the same node twice. It is client's responsibility to collect information about + /// the nodes that were sent to the client.<p>Note that `iframe` owner elements will return + /// corresponding document elements as their child nodes.</p> ///
public partial class DOMClient : DevToolsDomainBase { @@ -20614,7 +20614,7 @@ namespace CefSharp.DevTools.DOM partial void ValidateCollectClassNamesFromSubtree(int nodeId); /// - /// Collects class names for the node with given id and all of it's child nodes. + /// Collects class names for the node with given id and all of it's child nodes. /// /// Id of the node to collect class names. /// returns System.Threading.Tasks.Task<CollectClassNamesFromSubtreeResponse> @@ -20954,7 +20954,7 @@ namespace CefSharp.DevTools.DOM partial void ValidateGetOuterHTML(int? nodeId = null, int? backendNodeId = null, string objectId = null); /// - /// Returns node's HTML markup. + /// Returns node's HTML markup. /// /// Identifier of the node. /// Identifier of the backend node. @@ -22341,7 +22341,7 @@ namespace CefSharp.DevTools.Emulation partial void ValidateSetDeviceMetricsOverride(int width, int height, long deviceScaleFactor, bool mobile, long? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null); /// /// Overrides the values of device screen dimensions (window.screen.width, window.screen.height, - /// window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media + /// window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media /// query results). /// /// Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. @@ -23423,7 +23423,7 @@ namespace CefSharp.DevTools.Input partial void ValidateInsertText(string text); /// - /// This method emulates inserting text that doesn't come from a key press, + /// This method emulates inserting text that doesn't come from a key press, /// for example an emoji keyboard or an IME. /// /// The text to insert. @@ -25076,7 +25076,7 @@ namespace CefSharp.DevTools.Network partial void ValidateTakeResponseBodyForInterceptionAsStream(string interceptionId); /// /// Returns a handle to the stream representing the response body. Note that after this command, - /// the intercepted request can't be continued as is -- you either need to cancel it or to provide + /// the intercepted request can't be continued as is -- you either need to cancel it or to provide /// the response body. The stream only supports sequential read, IO.read will fail if the position /// is specified. /// @@ -25738,8 +25738,8 @@ namespace CefSharp.DevTools.Overlay partial void ValidateSetInspectMode(CefSharp.DevTools.Overlay.InspectMode mode, CefSharp.DevTools.Overlay.HighlightConfig highlightConfig = null); /// - /// Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. - /// Backend then generates 'inspectNodeRequested' event upon element selection. + /// Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. + /// Backend then generates 'inspectNodeRequested' event upon element selection. /// /// Set an inspection mode. /// A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled @@ -26549,7 +26549,7 @@ namespace CefSharp.DevTools.Page partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null); /// - /// Evaluates given script in every frame upon creation (before loading frame's scripts). + /// Evaluates given script in every frame upon creation (before loading frame's scripts). /// /// source /// If specified, creates an isolated world with the given name and evaluates given script in it. @@ -27052,7 +27052,7 @@ namespace CefSharp.DevTools.Page partial void ValidateSetAdBlockingEnabled(bool enabled); /// - /// Enable Chrome's experimental ad filter on all sites. + /// Enable Chrome's experimental ad filter on all sites. /// /// Whether to block ads. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> @@ -27112,7 +27112,7 @@ namespace CefSharp.DevTools.Page partial void ValidateSetDocumentContent(string frameId, string html); /// - /// Sets given markup as the document's HTML. + /// Sets given markup as the document's HTML. /// /// Frame id to set HTML for. /// HTML content to set. @@ -28406,14 +28406,14 @@ namespace CefSharp.DevTools.Target partial void ValidateExposeDevToolsProtocol(string targetId, string bindingName = null); /// - /// Inject object to the target's main frame that provides a communication + /// Inject object to the target's main frame that provides a communication /// channel with browser target. /// /// Injected object will be available as `window[bindingName]`. /// /// The object has the follwing API: /// - `binding.send(json)` - a method to send messages over the remote debugging protocol - /// - `binding.onmessage = json => handleMessage(json)` - a callback that will be called for the protocol notifications and command responses. + /// - `binding.onmessage = json => handleMessage(json)` - a callback that will be called for the protocol notifications and command responses. /// /// targetId /// Binding name, 'cdp' if not specified. @@ -28975,7 +28975,7 @@ namespace CefSharp.DevTools.Fetch using System.Linq; /// - /// A domain for letting clients substitute browser's network layer with client code. + /// A domain for letting clients substitute browser's network layer with client code. /// public partial class FetchClient : DevToolsDomainBase { @@ -29155,7 +29155,7 @@ namespace CefSharp.DevTools.Fetch /// /// Returns a handle to the stream representing the response body. /// The request must be paused in the HeadersReceived stage. - /// Note that after this command the request can't be continued + /// Note that after this command the request can't be continued /// as is -- client either needs to cancel it or to provide the /// response body. /// The stream only supports sequential read, IO.read will fail if the position @@ -30438,7 +30438,7 @@ namespace CefSharp.DevTools.Debugger /// /// Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in /// scripts with url matching one of the patterns. VM will try to leave blackboxed script by - /// performing 'step in' several times, finally resorting to 'step out' if unsuccessful. + /// performing 'step in' several times, finally resorting to 'step out' if unsuccessful. /// /// Array of regexps that will be used to check script url for blackbox state. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> @@ -30454,8 +30454,8 @@ namespace CefSharp.DevTools.Debugger partial void ValidateSetBlackboxedRanges(string scriptId, System.Collections.Generic.IList positions); /// /// Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted - /// scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. - /// Positions array contains positions where blackbox state is changed. First interval isn't + /// scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. + /// Positions array contains positions where blackbox state is changed. First interval isn't /// blackboxed. Array should be sorted. /// /// Id of the script. @@ -33093,4 +33093,4 @@ namespace CefSharp.DevTools } } } -} \ No newline at end of file +} diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs new file mode 100644 index 000000000..829b39cf2 --- /dev/null +++ b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs @@ -0,0 +1,30470 @@ +// Copyright © 2020 The CefSharp Authors. All rights reserved. +// +// 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 87.0.4280.88 +namespace CefSharp.DevTools.Accessibility +{ + /// + /// Enum of possible property types. + /// + public enum AXValueType + { + /// + /// boolean + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("boolean")] + Boolean, + /// + /// tristate + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("tristate")] + Tristate, + /// + /// booleanOrUndefined + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("booleanOrUndefined")] + BooleanOrUndefined, + /// + /// idref + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("idref")] + Idref, + /// + /// idrefList + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("idrefList")] + IdrefList, + /// + /// integer + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("integer")] + Integer, + /// + /// node + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("node")] + Node, + /// + /// nodeList + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeList")] + NodeList, + /// + /// number + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("number")] + Number, + /// + /// string + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + String, + /// + /// computedString + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("computedString")] + ComputedString, + /// + /// token + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("token")] + Token, + /// + /// tokenList + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("tokenList")] + TokenList, + /// + /// domRelation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("domRelation")] + DomRelation, + /// + /// role + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("role")] + Role, + /// + /// internalRole + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("internalRole")] + InternalRole, + /// + /// valueUndefined + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("valueUndefined")] + ValueUndefined + } +} + +namespace CefSharp.DevTools.Accessibility +{ + /// + /// Enum of possible property sources. + /// + public enum AXValueSourceType + { + /// + /// attribute + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("attribute")] + Attribute, + /// + /// implicit + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("implicit")] + Implicit, + /// + /// style + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("style")] + Style, + /// + /// contents + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contents")] + Contents, + /// + /// placeholder + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("placeholder")] + Placeholder, + /// + /// relatedElement + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("relatedElement")] + RelatedElement + } +} + +namespace CefSharp.DevTools.Accessibility +{ + /// + /// Enum of possible native property sources (as a subtype of a particular AXValueSourceType). + /// + public enum AXValueNativeSourceType + { + /// + /// figcaption + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("figcaption")] + Figcaption, + /// + /// label + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("label")] + Label, + /// + /// labelfor + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("labelfor")] + Labelfor, + /// + /// labelwrapped + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("labelwrapped")] + Labelwrapped, + /// + /// legend + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("legend")] + Legend, + /// + /// tablecaption + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("tablecaption")] + Tablecaption, + /// + /// title + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + Title, + /// + /// other + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + Other + } +} + +namespace CefSharp.DevTools.Accessibility +{ + /// + /// A single source for a computed AX property. + /// + public class AXValueSource : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// What type of source this is. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public CefSharp.DevTools.Accessibility.AXValueSourceType Type + { + get; + set; + } + + /// + /// The value of this property source. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public CefSharp.DevTools.Accessibility.AXValue Value + { + get; + set; + } + + /// + /// The name of the relevant attribute, if any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("attribute")] + public string Attribute + { + get; + set; + } + + /// + /// The value of the relevant attribute, if any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributeValue")] + public CefSharp.DevTools.Accessibility.AXValue AttributeValue + { + get; + set; + } + + /// + /// Whether this source is superseded by a higher priority source. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("superseded")] + public bool? Superseded + { + get; + set; + } + + /// + /// The native markup source for this value, e.g. a <label> element. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nativeSource")] + public CefSharp.DevTools.Accessibility.AXValueNativeSourceType? NativeSource + { + get; + set; + } + + /// + /// The value, such as a node or node list, of the native source. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nativeSourceValue")] + public CefSharp.DevTools.Accessibility.AXValue NativeSourceValue + { + get; + set; + } + + /// + /// Whether the value for this property is invalid. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("invalid")] + public bool? Invalid + { + get; + set; + } + + /// + /// Reason for the value being invalid, if it is. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("invalidReason")] + public string InvalidReason + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Accessibility +{ + /// + /// AXRelatedNode + /// + public class AXRelatedNode : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The BackendNodeId of the related DOM node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendDOMNodeId")] + public int BackendDOMNodeId + { + get; + set; + } + + /// + /// The IDRef value provided, if any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("idref")] + public string Idref + { + get; + set; + } + + /// + /// The text alternative of this node in the current context. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + public string Text + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Accessibility +{ + /// + /// AXProperty + /// + public class AXProperty : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The name of this property. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + public CefSharp.DevTools.Accessibility.AXPropertyName Name + { + get; + set; + } + + /// + /// The value of this property. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Accessibility.AXValue Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Accessibility +{ + /// + /// A single computed AX property. + /// + public class AXValue : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The type of this value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public CefSharp.DevTools.Accessibility.AXValueType Type + { + get; + set; + } + + /// + /// The computed value of this property. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public object Value + { + get; + set; + } + + /// + /// One or more related nodes, if applicable. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("relatedNodes")] + public System.Collections.Generic.IList RelatedNodes + { + get; + set; + } + + /// + /// The sources which contributed to the computation of this property. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sources")] + public System.Collections.Generic.IList Sources + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Accessibility +{ + /// + /// Values of AXProperty name: + /// - from 'busy' to 'roledescription': states which apply to every AX node + /// - from 'live' to 'root': attributes which apply to nodes in live regions + /// - from 'autocomplete' to 'valuetext': attributes which apply to widgets + /// - from 'checked' to 'selected': states which apply to widgets + /// - from 'activedescendant' to 'owns' - relationships between elements other than parent/child/sibling. + /// + public enum AXPropertyName + { + /// + /// busy + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("busy")] + Busy, + /// + /// disabled + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("disabled")] + Disabled, + /// + /// editable + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("editable")] + Editable, + /// + /// focusable + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("focusable")] + Focusable, + /// + /// focused + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("focused")] + Focused, + /// + /// hidden + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hidden")] + Hidden, + /// + /// hiddenRoot + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hiddenRoot")] + HiddenRoot, + /// + /// invalid + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("invalid")] + Invalid, + /// + /// keyshortcuts + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyshortcuts")] + Keyshortcuts, + /// + /// settable + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("settable")] + Settable, + /// + /// roledescription + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("roledescription")] + Roledescription, + /// + /// live + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("live")] + Live, + /// + /// atomic + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("atomic")] + Atomic, + /// + /// relevant + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("relevant")] + Relevant, + /// + /// root + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("root")] + Root, + /// + /// autocomplete + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("autocomplete")] + Autocomplete, + /// + /// hasPopup + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasPopup")] + HasPopup, + /// + /// level + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("level")] + Level, + /// + /// multiselectable + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("multiselectable")] + Multiselectable, + /// + /// orientation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("orientation")] + Orientation, + /// + /// multiline + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("multiline")] + Multiline, + /// + /// readonly + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("readonly")] + Readonly, + /// + /// required + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("required")] + Required, + /// + /// valuemin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("valuemin")] + Valuemin, + /// + /// valuemax + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("valuemax")] + Valuemax, + /// + /// valuetext + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("valuetext")] + Valuetext, + /// + /// checked + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("checked")] + Checked, + /// + /// expanded + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("expanded")] + Expanded, + /// + /// modal + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("modal")] + Modal, + /// + /// pressed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pressed")] + Pressed, + /// + /// selected + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("selected")] + Selected, + /// + /// activedescendant + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("activedescendant")] + Activedescendant, + /// + /// controls + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("controls")] + Controls, + /// + /// describedby + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("describedby")] + Describedby, + /// + /// details + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("details")] + Details, + /// + /// errormessage + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errormessage")] + Errormessage, + /// + /// flowto + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("flowto")] + Flowto, + /// + /// labelledby + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("labelledby")] + Labelledby, + /// + /// owns + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("owns")] + Owns + } +} + +namespace CefSharp.DevTools.Accessibility +{ + /// + /// A node in the accessibility tree. + /// + public class AXNode : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Unique identifier for this node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string NodeId + { + get; + set; + } + + /// + /// Whether this node is ignored for accessibility + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ignored")] + public bool Ignored + { + get; + set; + } + + /// + /// Collection of reasons why this node is hidden. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ignoredReasons")] + public System.Collections.Generic.IList IgnoredReasons + { + get; + set; + } + + /// + /// This `Node`'s role, whether explicit or implicit. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("role")] + public CefSharp.DevTools.Accessibility.AXValue Role + { + get; + set; + } + + /// + /// The accessible name for this `Node`. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + public CefSharp.DevTools.Accessibility.AXValue Name + { + get; + set; + } + + /// + /// The accessible description for this `Node`. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("description")] + public CefSharp.DevTools.Accessibility.AXValue Description + { + get; + set; + } + + /// + /// The value for this `Node`. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public CefSharp.DevTools.Accessibility.AXValue Value + { + get; + set; + } + + /// + /// All other properties + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("properties")] + public System.Collections.Generic.IList Properties + { + get; + set; + } + + /// + /// IDs for each of this node's child nodes. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("childIds")] + public string[] ChildIds + { + get; + set; + } + + /// + /// The backend ID for the associated DOM node, if any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendDOMNodeId")] + public int? BackendDOMNodeId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Animation +{ + /// + /// Animation instance. + /// + public class Animation : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// `Animation`'s id. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + set; + } + + /// + /// `Animation`'s name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// `Animation`'s internal paused state. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pausedState")] + public bool PausedState + { + get; + set; + } + + /// + /// `Animation`'s play state. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("playState")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PlayState + { + get; + set; + } + + /// + /// `Animation`'s playback rate. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("playbackRate")] + public long PlaybackRate + { + get; + set; + } + + /// + /// `Animation`'s start time. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startTime")] + public long StartTime + { + get; + set; + } + + /// + /// `Animation`'s current time. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentTime")] + public long CurrentTime + { + get; + set; + } + + /// + /// Animation type of `Animation`. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// `Animation`'s source animation node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("source")] + public CefSharp.DevTools.Animation.AnimationEffect Source + { + get; + set; + } + + /// + /// A unique ID for `Animation` representing the sources that triggered this CSS + /// animation/transition. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssId")] + public string CssId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Animation +{ + /// + /// AnimationEffect instance + /// + public class AnimationEffect : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// `AnimationEffect`'s delay. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("delay")] + public long Delay + { + get; + set; + } + + /// + /// `AnimationEffect`'s end delay. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endDelay")] + public long EndDelay + { + get; + set; + } + + /// + /// `AnimationEffect`'s iteration start. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("iterationStart")] + public long IterationStart + { + get; + set; + } + + /// + /// `AnimationEffect`'s iterations. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("iterations")] + public long Iterations + { + get; + set; + } + + /// + /// `AnimationEffect`'s iteration duration. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("duration")] + public long Duration + { + get; + set; + } + + /// + /// `AnimationEffect`'s playback direction. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("direction")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Direction + { + get; + set; + } + + /// + /// `AnimationEffect`'s fill mode. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fill")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Fill + { + get; + set; + } + + /// + /// `AnimationEffect`'s target node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + public int? BackendNodeId + { + get; + set; + } + + /// + /// `AnimationEffect`'s keyframes. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyframesRule")] + public CefSharp.DevTools.Animation.KeyframesRule KeyframesRule + { + get; + set; + } + + /// + /// `AnimationEffect`'s timing function. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("easing")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Easing + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Animation +{ + /// + /// Keyframes Rule + /// + public class KeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// CSS keyframed animation's name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + public string Name + { + get; + set; + } + + /// + /// List of animation keyframes. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyframes")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Keyframes + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Animation +{ + /// + /// Keyframe Style + /// + public class KeyframeStyle : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Keyframe's time offset. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("offset")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Offset + { + get; + set; + } + + /// + /// `AnimationEffect`'s timing function. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("easing")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Easing + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.ApplicationCache +{ + /// + /// Detailed application cache resource information. + /// + public class ApplicationCacheResource : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Resource url. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// Resource size. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] + public int Size + { + get; + set; + } + + /// + /// Resource type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.ApplicationCache +{ + /// + /// Detailed application cache information. + /// + public class ApplicationCache : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Manifest URL. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("manifestURL")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ManifestURL + { + get; + set; + } + + /// + /// Application cache size. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] + public long Size + { + get; + set; + } + + /// + /// Application cache creation time. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("creationTime")] + public long CreationTime + { + get; + set; + } + + /// + /// Application cache update time. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("updateTime")] + public long UpdateTime + { + get; + set; + } + + /// + /// Application cache resources. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resources")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Resources + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.ApplicationCache +{ + /// + /// Frame identifier - manifest URL pair. + /// + public class FrameWithManifest : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Frame identifier. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + set; + } + + /// + /// Manifest URL. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("manifestURL")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ManifestURL + { + get; + set; + } + + /// + /// Application cache status. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + public int Status + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// Information about a cookie that is affected by an inspector issue. + /// + public class AffectedCookie : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The following three properties uniquely identify a cookie + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Path + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("path")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Path + { + get; + set; + } + + /// + /// Domain + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("domain")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Domain + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// Information about a request that is affected by an inspector issue. + /// + public class AffectedRequest : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The unique request id. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + set; + } + + /// + /// Url + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + public string Url + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// Information about the frame affected by an inspector issue. + /// + public class AffectedFrame : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// FrameId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// SameSiteCookieExclusionReason + /// + public enum SameSiteCookieExclusionReason + { + /// + /// ExcludeSameSiteUnspecifiedTreatedAsLax + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeSameSiteUnspecifiedTreatedAsLax")] + ExcludeSameSiteUnspecifiedTreatedAsLax, + /// + /// ExcludeSameSiteNoneInsecure + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeSameSiteNoneInsecure")] + ExcludeSameSiteNoneInsecure, + /// + /// ExcludeSameSiteLax + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeSameSiteLax")] + ExcludeSameSiteLax, + /// + /// ExcludeSameSiteStrict + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeSameSiteStrict")] + ExcludeSameSiteStrict + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// SameSiteCookieWarningReason + /// + public enum SameSiteCookieWarningReason + { + /// + /// WarnSameSiteUnspecifiedCrossSiteContext + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteUnspecifiedCrossSiteContext")] + WarnSameSiteUnspecifiedCrossSiteContext, + /// + /// WarnSameSiteNoneInsecure + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteNoneInsecure")] + WarnSameSiteNoneInsecure, + /// + /// WarnSameSiteUnspecifiedLaxAllowUnsafe + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteUnspecifiedLaxAllowUnsafe")] + WarnSameSiteUnspecifiedLaxAllowUnsafe, + /// + /// WarnSameSiteStrictLaxDowngradeStrict + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteStrictLaxDowngradeStrict")] + WarnSameSiteStrictLaxDowngradeStrict, + /// + /// WarnSameSiteStrictCrossDowngradeStrict + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteStrictCrossDowngradeStrict")] + WarnSameSiteStrictCrossDowngradeStrict, + /// + /// WarnSameSiteStrictCrossDowngradeLax + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteStrictCrossDowngradeLax")] + WarnSameSiteStrictCrossDowngradeLax, + /// + /// WarnSameSiteLaxCrossDowngradeStrict + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteLaxCrossDowngradeStrict")] + WarnSameSiteLaxCrossDowngradeStrict, + /// + /// WarnSameSiteLaxCrossDowngradeLax + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteLaxCrossDowngradeLax")] + WarnSameSiteLaxCrossDowngradeLax + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// SameSiteCookieOperation + /// + public enum SameSiteCookieOperation + { + /// + /// SetCookie + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SetCookie")] + SetCookie, + /// + /// ReadCookie + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ReadCookie")] + ReadCookie + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// This information is currently necessary, as the front-end has a difficult + /// time finding a specific cookie. With this, we can convey specific error + /// information without the cookie. + /// + public class SameSiteCookieIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Cookie + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookie")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Audits.AffectedCookie Cookie + { + get; + set; + } + + /// + /// CookieWarningReasons + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookieWarningReasons")] + public CefSharp.DevTools.Audits.SameSiteCookieWarningReason[] CookieWarningReasons + { + get; + set; + } + + /// + /// CookieExclusionReasons + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookieExclusionReasons")] + public CefSharp.DevTools.Audits.SameSiteCookieExclusionReason[] CookieExclusionReasons + { + get; + set; + } + + /// + /// Optionally identifies the site-for-cookies and the cookie url, which + /// may be used by the front-end as additional context. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("operation")] + public CefSharp.DevTools.Audits.SameSiteCookieOperation Operation + { + get; + set; + } + + /// + /// SiteForCookies + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("siteForCookies")] + public string SiteForCookies + { + get; + set; + } + + /// + /// CookieUrl + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookieUrl")] + public string CookieUrl + { + get; + set; + } + + /// + /// Request + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + public CefSharp.DevTools.Audits.AffectedRequest Request + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// MixedContentResolutionStatus + /// + public enum MixedContentResolutionStatus + { + /// + /// MixedContentBlocked + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("MixedContentBlocked")] + MixedContentBlocked, + /// + /// MixedContentAutomaticallyUpgraded + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("MixedContentAutomaticallyUpgraded")] + MixedContentAutomaticallyUpgraded, + /// + /// MixedContentWarning + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("MixedContentWarning")] + MixedContentWarning + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// MixedContentResourceType + /// + public enum MixedContentResourceType + { + /// + /// Audio + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Audio")] + Audio, + /// + /// Beacon + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Beacon")] + Beacon, + /// + /// CSPReport + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CSPReport")] + CSPReport, + /// + /// Download + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Download")] + Download, + /// + /// EventSource + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("EventSource")] + EventSource, + /// + /// Favicon + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Favicon")] + Favicon, + /// + /// Font + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Font")] + Font, + /// + /// Form + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Form")] + Form, + /// + /// Frame + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Frame")] + Frame, + /// + /// Image + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Image")] + Image, + /// + /// Import + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Import")] + Import, + /// + /// Manifest + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Manifest")] + Manifest, + /// + /// Ping + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Ping")] + Ping, + /// + /// PluginData + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PluginData")] + PluginData, + /// + /// PluginResource + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PluginResource")] + PluginResource, + /// + /// Prefetch + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Prefetch")] + Prefetch, + /// + /// Resource + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Resource")] + Resource, + /// + /// Script + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Script")] + Script, + /// + /// ServiceWorker + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ServiceWorker")] + ServiceWorker, + /// + /// SharedWorker + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SharedWorker")] + SharedWorker, + /// + /// Stylesheet + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Stylesheet")] + Stylesheet, + /// + /// Track + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Track")] + Track, + /// + /// Video + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Video")] + Video, + /// + /// Worker + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Worker")] + Worker, + /// + /// XMLHttpRequest + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("XMLHttpRequest")] + XMLHttpRequest, + /// + /// XSLT + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("XSLT")] + XSLT + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// MixedContentIssueDetails + /// + public class MixedContentIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The type of resource causing the mixed content issue (css, js, iframe, + /// form,...). Marked as optional because it is mapped to from + /// blink::mojom::RequestContextType, which will be replaced + /// by network::mojom::RequestDestination + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceType")] + public CefSharp.DevTools.Audits.MixedContentResourceType? ResourceType + { + get; + set; + } + + /// + /// The way the mixed content issue is being resolved. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resolutionStatus")] + public CefSharp.DevTools.Audits.MixedContentResolutionStatus ResolutionStatus + { + get; + set; + } + + /// + /// The unsafe http url causing the mixed content issue. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("insecureURL")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string InsecureURL + { + get; + set; + } + + /// + /// The url responsible for the call to an unsafe url. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mainResourceURL")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string MainResourceURL + { + get; + set; + } + + /// + /// The mixed content request. + /// Does not always exist (e.g. for unsafe form submission urls). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + public CefSharp.DevTools.Audits.AffectedRequest Request + { + get; + set; + } + + /// + /// Optional because not every mixed content issue is necessarily linked to a frame. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] + public CefSharp.DevTools.Audits.AffectedFrame Frame + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// Enum indicating the reason a response has been blocked. These reasons are + /// refinements of the net error BLOCKED_BY_RESPONSE. + /// + public enum BlockedByResponseReason + { + /// + /// CoepFrameResourceNeedsCoepHeader + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CoepFrameResourceNeedsCoepHeader")] + CoepFrameResourceNeedsCoepHeader, + /// + /// CoopSandboxedIFrameCannotNavigateToCoopPage + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CoopSandboxedIFrameCannotNavigateToCoopPage")] + CoopSandboxedIFrameCannotNavigateToCoopPage, + /// + /// CorpNotSameOrigin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CorpNotSameOrigin")] + CorpNotSameOrigin, + /// + /// CorpNotSameOriginAfterDefaultedToSameOriginByCoep + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CorpNotSameOriginAfterDefaultedToSameOriginByCoep")] + CorpNotSameOriginAfterDefaultedToSameOriginByCoep, + /// + /// CorpNotSameSite + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CorpNotSameSite")] + CorpNotSameSite + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// Details for a request that has been blocked with the BLOCKED_BY_RESPONSE + /// code. Currently only used for COEP/COOP, but may be extended to include + /// some CSP errors in the future. + /// + public class BlockedByResponseIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Request + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Audits.AffectedRequest Request + { + get; + set; + } + + /// + /// ParentFrame + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentFrame")] + public CefSharp.DevTools.Audits.AffectedFrame ParentFrame + { + get; + set; + } + + /// + /// BlockedFrame + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedFrame")] + public CefSharp.DevTools.Audits.AffectedFrame BlockedFrame + { + get; + set; + } + + /// + /// Reason + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + public CefSharp.DevTools.Audits.BlockedByResponseReason Reason + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// HeavyAdResolutionStatus + /// + public enum HeavyAdResolutionStatus + { + /// + /// HeavyAdBlocked + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("HeavyAdBlocked")] + HeavyAdBlocked, + /// + /// HeavyAdWarning + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("HeavyAdWarning")] + HeavyAdWarning + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// HeavyAdReason + /// + public enum HeavyAdReason + { + /// + /// NetworkTotalLimit + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NetworkTotalLimit")] + NetworkTotalLimit, + /// + /// CpuTotalLimit + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CpuTotalLimit")] + CpuTotalLimit, + /// + /// CpuPeakLimit + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CpuPeakLimit")] + CpuPeakLimit + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// HeavyAdIssueDetails + /// + public class HeavyAdIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The resolution status, either blocking the content or warning. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resolution")] + public CefSharp.DevTools.Audits.HeavyAdResolutionStatus Resolution + { + get; + set; + } + + /// + /// The reason the ad was blocked, total network or cpu or peak cpu. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + public CefSharp.DevTools.Audits.HeavyAdReason Reason + { + get; + set; + } + + /// + /// The frame that was blocked. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Audits.AffectedFrame Frame + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// ContentSecurityPolicyViolationType + /// + public enum ContentSecurityPolicyViolationType + { + /// + /// kInlineViolation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("kInlineViolation")] + KInlineViolation, + /// + /// kEvalViolation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("kEvalViolation")] + KEvalViolation, + /// + /// kURLViolation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("kURLViolation")] + KURLViolation, + /// + /// kTrustedTypesSinkViolation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("kTrustedTypesSinkViolation")] + KTrustedTypesSinkViolation, + /// + /// kTrustedTypesPolicyViolation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("kTrustedTypesPolicyViolation")] + KTrustedTypesPolicyViolation + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// SourceCodeLocation + /// + public class SourceCodeLocation : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Url + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// LineNumber + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + public int LineNumber + { + get; + set; + } + + /// + /// ColumnNumber + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + public int ColumnNumber + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// ContentSecurityPolicyIssueDetails + /// + public class ContentSecurityPolicyIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The url not included in allowed sources. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedURL")] + public string BlockedURL + { + get; + set; + } + + /// + /// Specific directive that is violated, causing the CSP issue. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("violatedDirective")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ViolatedDirective + { + get; + set; + } + + /// + /// ContentSecurityPolicyViolationType + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentSecurityPolicyViolationType")] + public CefSharp.DevTools.Audits.ContentSecurityPolicyViolationType ContentSecurityPolicyViolationType + { + get; + set; + } + + /// + /// FrameAncestor + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameAncestor")] + public CefSharp.DevTools.Audits.AffectedFrame FrameAncestor + { + get; + set; + } + + /// + /// SourceCodeLocation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceCodeLocation")] + public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation + { + get; + set; + } + + /// + /// ViolatingNodeId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("violatingNodeId")] + public int? ViolatingNodeId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// A unique identifier for the type of issue. Each type may use one of the + /// optional fields in InspectorIssueDetails to convey more specific + /// information about the kind of issue. + /// + public enum InspectorIssueCode + { + /// + /// SameSiteCookieIssue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteCookieIssue")] + SameSiteCookieIssue, + /// + /// MixedContentIssue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("MixedContentIssue")] + MixedContentIssue, + /// + /// BlockedByResponseIssue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("BlockedByResponseIssue")] + BlockedByResponseIssue, + /// + /// HeavyAdIssue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("HeavyAdIssue")] + HeavyAdIssue, + /// + /// ContentSecurityPolicyIssue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentSecurityPolicyIssue")] + ContentSecurityPolicyIssue + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// This struct holds a list of optional fields with additional information + /// specific to the kind of issue. When adding a new issue code, please also + /// add a new optional field to this type. + /// + public class InspectorIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// SameSiteCookieIssueDetails + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sameSiteCookieIssueDetails")] + public CefSharp.DevTools.Audits.SameSiteCookieIssueDetails SameSiteCookieIssueDetails + { + get; + set; + } + + /// + /// MixedContentIssueDetails + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mixedContentIssueDetails")] + public CefSharp.DevTools.Audits.MixedContentIssueDetails MixedContentIssueDetails + { + get; + set; + } + + /// + /// BlockedByResponseIssueDetails + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedByResponseIssueDetails")] + public CefSharp.DevTools.Audits.BlockedByResponseIssueDetails BlockedByResponseIssueDetails + { + get; + set; + } + + /// + /// HeavyAdIssueDetails + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("heavyAdIssueDetails")] + public CefSharp.DevTools.Audits.HeavyAdIssueDetails HeavyAdIssueDetails + { + get; + set; + } + + /// + /// ContentSecurityPolicyIssueDetails + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentSecurityPolicyIssueDetails")] + public CefSharp.DevTools.Audits.ContentSecurityPolicyIssueDetails ContentSecurityPolicyIssueDetails + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// An inspector issue reported from the back-end. + /// + public class InspectorIssue : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Code + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("code")] + public CefSharp.DevTools.Audits.InspectorIssueCode Code + { + get; + set; + } + + /// + /// Details + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("details")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Audits.InspectorIssueDetails Details + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.BackgroundService +{ + /// + /// The Background Service that will be associated with the commands/events. + /// Every Background Service operates independently, but they share the same + /// API. + /// + public enum ServiceName + { + /// + /// backgroundFetch + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backgroundFetch")] + BackgroundFetch, + /// + /// backgroundSync + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backgroundSync")] + BackgroundSync, + /// + /// pushMessaging + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pushMessaging")] + PushMessaging, + /// + /// notifications + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("notifications")] + Notifications, + /// + /// paymentHandler + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("paymentHandler")] + PaymentHandler, + /// + /// periodicBackgroundSync + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("periodicBackgroundSync")] + PeriodicBackgroundSync + } +} + +namespace CefSharp.DevTools.BackgroundService +{ + /// + /// A key-value pair for additional event information to pass along. + /// + public class EventMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Key + { + get; + set; + } + + /// + /// Value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.BackgroundService +{ + /// + /// BackgroundServiceEvent + /// + public class BackgroundServiceEvent : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Timestamp of the event (in seconds). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public long Timestamp + { + get; + set; + } + + /// + /// The origin this event belongs to. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Origin + { + get; + set; + } + + /// + /// The Service Worker ID that initiated the event. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("serviceWorkerRegistrationId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ServiceWorkerRegistrationId + { + get; + set; + } + + /// + /// The Background Service this event belongs to. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("service")] + public CefSharp.DevTools.BackgroundService.ServiceName Service + { + get; + set; + } + + /// + /// A description of the event. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string EventName + { + get; + set; + } + + /// + /// An identifier that groups related events together. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("instanceId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string InstanceId + { + get; + set; + } + + /// + /// A list of event-specific information. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventMetadata")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList EventMetadata + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// The state of the browser window. + /// + public enum WindowState + { + /// + /// normal + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("normal")] + Normal, + /// + /// minimized + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("minimized")] + Minimized, + /// + /// maximized + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("maximized")] + Maximized, + /// + /// fullscreen + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fullscreen")] + Fullscreen + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// Browser window bounds information + /// + public class Bounds : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The offset from the left edge of the screen to the window in pixels. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("left")] + public int? Left + { + get; + set; + } + + /// + /// The offset from the top edge of the screen to the window in pixels. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("top")] + public int? Top + { + get; + set; + } + + /// + /// The window width in pixels. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] + public int? Width + { + get; + set; + } + + /// + /// The window height in pixels. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] + public int? Height + { + get; + set; + } + + /// + /// The window state. Default to normal. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("windowState")] + public CefSharp.DevTools.Browser.WindowState? WindowState + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// PermissionType + /// + public enum PermissionType + { + /// + /// accessibilityEvents + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("accessibilityEvents")] + AccessibilityEvents, + /// + /// audioCapture + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("audioCapture")] + AudioCapture, + /// + /// backgroundSync + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backgroundSync")] + BackgroundSync, + /// + /// backgroundFetch + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backgroundFetch")] + BackgroundFetch, + /// + /// clipboardReadWrite + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("clipboardReadWrite")] + ClipboardReadWrite, + /// + /// clipboardSanitizedWrite + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("clipboardSanitizedWrite")] + ClipboardSanitizedWrite, + /// + /// durableStorage + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("durableStorage")] + DurableStorage, + /// + /// flash + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("flash")] + Flash, + /// + /// geolocation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("geolocation")] + Geolocation, + /// + /// midi + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("midi")] + Midi, + /// + /// midiSysex + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("midiSysex")] + MidiSysex, + /// + /// nfc + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nfc")] + Nfc, + /// + /// notifications + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("notifications")] + Notifications, + /// + /// paymentHandler + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("paymentHandler")] + PaymentHandler, + /// + /// periodicBackgroundSync + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("periodicBackgroundSync")] + PeriodicBackgroundSync, + /// + /// protectedMediaIdentifier + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("protectedMediaIdentifier")] + ProtectedMediaIdentifier, + /// + /// sensors + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sensors")] + Sensors, + /// + /// videoCapture + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("videoCapture")] + VideoCapture, + /// + /// idleDetection + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("idleDetection")] + IdleDetection, + /// + /// wakeLockScreen + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("wakeLockScreen")] + WakeLockScreen, + /// + /// wakeLockSystem + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("wakeLockSystem")] + WakeLockSystem + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// PermissionSetting + /// + public enum PermissionSetting + { + /// + /// granted + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("granted")] + Granted, + /// + /// denied + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("denied")] + Denied, + /// + /// prompt + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("prompt")] + Prompt + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// Definition of PermissionDescriptor defined in the Permissions API: + /// https://w3c.github.io/permissions/#dictdef-permissiondescriptor. + /// + public class PermissionDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name of permission. + /// See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// For "midi" permission, may also specify sysex control. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sysex")] + public bool? Sysex + { + get; + set; + } + + /// + /// For "push" permission, may specify userVisibleOnly. + /// Note that userVisibleOnly = true is the only currently supported type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("userVisibleOnly")] + public bool? UserVisibleOnly + { + get; + set; + } + + /// + /// For "clipboard" permission, may specify allowWithoutSanitization. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("allowWithoutSanitization")] + public bool? AllowWithoutSanitization + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// Chrome histogram bucket. + /// + public class Bucket : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Minimum value (inclusive). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("low")] + public int Low + { + get; + set; + } + + /// + /// Maximum value (exclusive). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("high")] + public int High + { + get; + set; + } + + /// + /// Number of samples. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("count")] + public int Count + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// Chrome histogram. + /// + public class Histogram : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Sum of sample values. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sum")] + public int Sum + { + get; + set; + } + + /// + /// Total number of samples. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("count")] + public int Count + { + get; + set; + } + + /// + /// Buckets. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("buckets")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Buckets + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// Stylesheet type: "injected" for stylesheets injected via extension, "user-agent" for user-agent + /// stylesheets, "inspector" for stylesheets created by the inspector (i.e. those holding the "via + /// inspector" rules), "regular" for regular stylesheets. + /// + public enum StyleSheetOrigin + { + /// + /// injected + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("injected")] + Injected, + /// + /// user-agent + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("user-agent")] + UserAgent, + /// + /// inspector + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("inspector")] + Inspector, + /// + /// regular + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("regular")] + Regular + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// CSS rule collection for a single pseudo style. + /// + public class PseudoElementMatches : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Pseudo element type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoType")] + public CefSharp.DevTools.DOM.PseudoType PseudoType + { + get; + set; + } + + /// + /// Matches of CSS rules applicable to the pseudo style. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("matches")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Matches + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// Inherited CSS rule collection from ancestor node. + /// + public class InheritedStyleEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The ancestor node's inline style, if any, in the style inheritance chain. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("inlineStyle")] + public CefSharp.DevTools.CSS.CSSStyle InlineStyle + { + get; + set; + } + + /// + /// Matches of CSS rules matching the ancestor node in the style inheritance chain. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("matchedCSSRules")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList MatchedCSSRules + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// Match data for a CSS rule. + /// + public class RuleMatch : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// CSS rule in the match. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rule")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.CSSRule Rule + { + get; + set; + } + + /// + /// Matching selector indices in the rule's selectorList selectors (0-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("matchingSelectors")] + public int[] MatchingSelectors + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// Data for a simple selector (these are delimited by commas in a selector list). + /// + public class Value : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Value text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Text + { + get; + set; + } + + /// + /// Value range in the underlying resource (if available). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + public CefSharp.DevTools.CSS.SourceRange Range + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// Selector list data. + /// + public class SelectorList : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Selectors in the list. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("selectors")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Selectors + { + get; + set; + } + + /// + /// Rule selector text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Text + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// CSS stylesheet metainformation. + /// + public class CSSStyleSheetHeader : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The stylesheet identifier. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StyleSheetId + { + get; + set; + } + + /// + /// Owner frame identifier. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + set; + } + + /// + /// Stylesheet resource URL. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceURL")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SourceURL + { + get; + set; + } + + /// + /// URL of source map associated with the stylesheet (if any). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceMapURL")] + public string SourceMapURL + { + get; + set; + } + + /// + /// Stylesheet origin. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + public CefSharp.DevTools.CSS.StyleSheetOrigin Origin + { + get; + set; + } + + /// + /// Stylesheet title. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Title + { + get; + set; + } + + /// + /// The backend id for the owner node of the stylesheet. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ownerNode")] + public int? OwnerNode + { + get; + set; + } + + /// + /// Denotes whether the stylesheet is disabled. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("disabled")] + public bool Disabled + { + get; + set; + } + + /// + /// Whether the sourceURL field value comes from the sourceURL comment. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasSourceURL")] + public bool? HasSourceURL + { + get; + set; + } + + /// + /// Whether this stylesheet is created for STYLE tag by parser. This flag is not set for + /// document.written STYLE tags. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isInline")] + public bool IsInline + { + get; + set; + } + + /// + /// Whether this stylesheet is mutable. Inline stylesheets become mutable + /// after they have been modified via CSSOM API. + /// <link> element's stylesheets become mutable only if DevTools modifies them. + /// Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isMutable")] + public bool IsMutable + { + get; + set; + } + + /// + /// Whether this stylesheet is a constructed stylesheet (created using new CSSStyleSheet()). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isConstructed")] + public bool IsConstructed + { + get; + set; + } + + /// + /// Line offset of the stylesheet within the resource (zero based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startLine")] + public long StartLine + { + get; + set; + } + + /// + /// Column offset of the stylesheet within the resource (zero based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startColumn")] + public long StartColumn + { + get; + set; + } + + /// + /// Size of the content (in characters). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("length")] + public long Length + { + get; + set; + } + + /// + /// Line offset of the end of the stylesheet within the resource (zero based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endLine")] + public long EndLine + { + get; + set; + } + + /// + /// Column offset of the end of the stylesheet within the resource (zero based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endColumn")] + public long EndColumn + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// CSS rule representation. + /// + public class CSSRule : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The css style sheet identifier (absent for user agent stylesheet and user-specified + /// stylesheet rules) this rule came from. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + public string StyleSheetId + { + get; + set; + } + + /// + /// Rule selector data. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("selectorList")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.SelectorList SelectorList + { + get; + set; + } + + /// + /// Parent stylesheet's origin. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + public CefSharp.DevTools.CSS.StyleSheetOrigin Origin + { + get; + set; + } + + /// + /// Associated style declaration. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("style")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.CSSStyle Style + { + get; + set; + } + + /// + /// Media list array (for rules involving media queries). The array enumerates media queries + /// starting with the innermost one, going outwards. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("media")] + public System.Collections.Generic.IList Media + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// CSS coverage information. + /// + public class RuleUsage : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The css style sheet identifier (absent for user agent stylesheet and user-specified + /// stylesheet rules) this rule came from. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StyleSheetId + { + get; + set; + } + + /// + /// Offset of the start of the rule (including selector) from the beginning of the stylesheet. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startOffset")] + public long StartOffset + { + get; + set; + } + + /// + /// Offset of the end of the rule body from the beginning of the stylesheet. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endOffset")] + public long EndOffset + { + get; + set; + } + + /// + /// Indicates whether the rule was actually used by some element in the page. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("used")] + public bool Used + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// Text range within a resource. All numbers are zero-based. + /// + public class SourceRange : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Start line of range. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startLine")] + public int StartLine + { + get; + set; + } + + /// + /// Start column of range (inclusive). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startColumn")] + public int StartColumn + { + get; + set; + } + + /// + /// End line of range + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endLine")] + public int EndLine + { + get; + set; + } + + /// + /// End column of range (exclusive). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endColumn")] + public int EndColumn + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// ShorthandEntry + /// + public class ShorthandEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Shorthand name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Shorthand value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + + /// + /// Whether the property has "!important" annotation (implies `false` if absent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("important")] + public bool? Important + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// CSSComputedStyleProperty + /// + public class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Computed style property name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Computed style property value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// CSS style representation. + /// + public class CSSStyle : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The css style sheet identifier (absent for user agent stylesheet and user-specified + /// stylesheet rules) this rule came from. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + public string StyleSheetId + { + get; + set; + } + + /// + /// CSS properties in the style. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssProperties")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList CssProperties + { + get; + set; + } + + /// + /// Computed values for all shorthands found in the style. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shorthandEntries")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList ShorthandEntries + { + get; + set; + } + + /// + /// Style declaration text (if available). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssText")] + public string CssText + { + get; + set; + } + + /// + /// Style declaration range in the enclosing stylesheet (if available). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + public CefSharp.DevTools.CSS.SourceRange Range + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// CSS property declaration data. + /// + public class CSSProperty : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The property name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// The property value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + + /// + /// Whether the property has "!important" annotation (implies `false` if absent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("important")] + public bool? Important + { + get; + set; + } + + /// + /// Whether the property is implicit (implies `false` if absent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("implicit")] + public bool? Implicit + { + get; + set; + } + + /// + /// The full property text as specified in the style. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + public string Text + { + get; + set; + } + + /// + /// Whether the property is understood by the browser (implies `true` if absent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parsedOk")] + public bool? ParsedOk + { + get; + set; + } + + /// + /// Whether the property is disabled by the user (present for source-based properties only). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("disabled")] + public bool? Disabled + { + get; + set; + } + + /// + /// The entire property range in the enclosing style declaration (if available). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + public CefSharp.DevTools.CSS.SourceRange Range + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// CSS media rule descriptor. + /// + public class CSSMedia : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Media query text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Text + { + get; + set; + } + + /// + /// Source of the media query: "mediaRule" if specified by a @media rule, "importRule" if + /// specified by an @import rule, "linkedSheet" if specified by a "media" attribute in a linked + /// stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline + /// stylesheet's STYLE tag. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("source")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Source + { + get; + set; + } + + /// + /// URL of the document containing the media query description. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceURL")] + public string SourceURL + { + get; + set; + } + + /// + /// The associated rule (@media or @import) 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; + } + + /// + /// Array of media queries. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mediaList")] + public System.Collections.Generic.IList MediaList + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// Media query descriptor. + /// + public class MediaQuery : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Array of media query expressions. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("expressions")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Expressions + { + get; + set; + } + + /// + /// Whether the media query condition is satisfied. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("active")] + public bool Active + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// Media query expression descriptor. + /// + public class MediaQueryExpression : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Media query expression value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public long Value + { + get; + set; + } + + /// + /// Media query expression units. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("unit")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Unit + { + get; + set; + } + + /// + /// Media query expression feature. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("feature")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Feature + { + get; + set; + } + + /// + /// The associated range of the value text in the enclosing stylesheet (if available). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("valueRange")] + public CefSharp.DevTools.CSS.SourceRange ValueRange + { + get; + set; + } + + /// + /// Computed length of media query expression (if applicable). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("computedLength")] + public long? ComputedLength + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// Information about amount of glyphs that were rendered with given font. + /// + public class PlatformFontUsage : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Font's family name reported by platform. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("familyName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FamilyName + { + get; + set; + } + + /// + /// Indicates if the font was downloaded or resolved locally. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isCustomFont")] + public bool IsCustomFont + { + get; + set; + } + + /// + /// Amount of glyphs that were rendered with this font. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("glyphCount")] + public long GlyphCount + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// Information about font variation axes for variable fonts + /// + public class FontVariationAxis : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The font-variation-setting tag (a.k.a. "axis tag"). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("tag")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Tag + { + get; + set; + } + + /// + /// Human-readable variation name in the default language (normally, "en"). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// The minimum value (inclusive) the font supports for this tag. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("minValue")] + public long MinValue + { + get; + set; + } + + /// + /// The maximum value (inclusive) the font supports for this tag. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxValue")] + public long MaxValue + { + get; + set; + } + + /// + /// The default value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("defaultValue")] + public long DefaultValue + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions + /// and additional information such as platformFontFamily and fontVariationAxes. + /// + public class FontFace : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The font-family. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontFamily")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FontFamily + { + get; + set; + } + + /// + /// The font-style. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontStyle")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FontStyle + { + get; + set; + } + + /// + /// The font-variant. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontVariant")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FontVariant + { + get; + set; + } + + /// + /// The font-weight. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontWeight")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FontWeight + { + get; + set; + } + + /// + /// The font-stretch. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontStretch")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FontStretch + { + get; + set; + } + + /// + /// The unicode-range. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("unicodeRange")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string UnicodeRange + { + get; + set; + } + + /// + /// The src. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("src")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Src + { + get; + set; + } + + /// + /// The resolved platform font family + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("platformFontFamily")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PlatformFontFamily + { + get; + set; + } + + /// + /// Available variation settings (a.k.a. "axes"). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontVariationAxes")] + public System.Collections.Generic.IList FontVariationAxes + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// CSS keyframes rule representation. + /// + public class CSSKeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Animation name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("animationName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.Value AnimationName + { + get; + set; + } + + /// + /// List of keyframes. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyframes")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Keyframes + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// CSS keyframe rule representation. + /// + public class CSSKeyframeRule : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The css style sheet identifier (absent for user agent stylesheet and user-specified + /// stylesheet rules) this rule came from. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + public string StyleSheetId + { + get; + set; + } + + /// + /// Parent stylesheet's origin. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + public CefSharp.DevTools.CSS.StyleSheetOrigin Origin + { + get; + set; + } + + /// + /// Associated key text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyText")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.Value KeyText + { + get; + set; + } + + /// + /// Associated style declaration. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("style")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.CSSStyle Style + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// A descriptor of operation to mutate style declaration text. + /// + public class StyleDeclarationEdit : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The css style sheet identifier. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StyleSheetId + { + get; + set; + } + + /// + /// The range of the style text in the enclosing stylesheet. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.SourceRange Range + { + get; + set; + } + + /// + /// New style text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Text + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CacheStorage +{ + /// + /// type of HTTP response cached + /// + public enum CachedResponseType + { + /// + /// basic + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("basic")] + Basic, + /// + /// cors + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cors")] + Cors, + /// + /// default + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("default")] + Default, + /// + /// error + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("error")] + Error, + /// + /// opaqueResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("opaqueResponse")] + OpaqueResponse, + /// + /// opaqueRedirect + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("opaqueRedirect")] + OpaqueRedirect + } +} + +namespace CefSharp.DevTools.CacheStorage +{ + /// + /// Data entry. + /// + public class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Request URL. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestURL")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestURL + { + get; + set; + } + + /// + /// Request method. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestMethod")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestMethod + { + get; + set; + } + + /// + /// Request headers + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestHeaders")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList RequestHeaders + { + get; + set; + } + + /// + /// Number of seconds since epoch. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseTime")] + public long ResponseTime + { + get; + set; + } + + /// + /// HTTP response status code. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseStatus")] + public int ResponseStatus + { + get; + set; + } + + /// + /// HTTP response status text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseStatusText")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ResponseStatusText + { + get; + set; + } + + /// + /// HTTP response type + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseType")] + public CefSharp.DevTools.CacheStorage.CachedResponseType ResponseType + { + get; + set; + } + + /// + /// Response headers + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseHeaders")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList ResponseHeaders + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CacheStorage +{ + /// + /// Cache identifier. + /// + public class Cache : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// An opaque unique id of the cache. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cacheId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string CacheId + { + get; + set; + } + + /// + /// Security origin of the cache. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityOrigin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SecurityOrigin + { + get; + set; + } + + /// + /// The name of the cache. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cacheName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string CacheName + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CacheStorage +{ + /// + /// Header + /// + public class Header : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.CacheStorage +{ + /// + /// Cached response + /// + public class CachedResponse : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Entry content, base64-encoded. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("body")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public byte[] Body + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Cast +{ + /// + /// Sink + /// + public class Sink : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Id + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + set; + } + + /// + /// Text describing the current session. Present only if there is an active + /// session on the sink. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("session")] + public string Session + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// Backend node with a friendly name. + /// + public class BackendNode : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// `Node`'s nodeType. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeType")] + public int NodeType + { + get; + set; + } + + /// + /// `Node`'s nodeName. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string NodeName + { + get; + set; + } + + /// + /// BackendNodeId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + public int BackendNodeId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// Pseudo element type. + /// + public enum PseudoType + { + /// + /// first-line + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("first-line")] + FirstLine, + /// + /// first-letter + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("first-letter")] + FirstLetter, + /// + /// before + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("before")] + Before, + /// + /// after + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("after")] + After, + /// + /// marker + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("marker")] + Marker, + /// + /// backdrop + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backdrop")] + Backdrop, + /// + /// selection + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("selection")] + Selection, + /// + /// first-line-inherited + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("first-line-inherited")] + FirstLineInherited, + /// + /// scrollbar + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollbar")] + Scrollbar, + /// + /// scrollbar-thumb + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollbar-thumb")] + ScrollbarThumb, + /// + /// scrollbar-button + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollbar-button")] + ScrollbarButton, + /// + /// scrollbar-track + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollbar-track")] + ScrollbarTrack, + /// + /// scrollbar-track-piece + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollbar-track-piece")] + ScrollbarTrackPiece, + /// + /// scrollbar-corner + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollbar-corner")] + ScrollbarCorner, + /// + /// resizer + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resizer")] + Resizer, + /// + /// input-list-button + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("input-list-button")] + InputListButton + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// Shadow root type. + /// + public enum ShadowRootType + { + /// + /// user-agent + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("user-agent")] + UserAgent, + /// + /// open + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("open")] + Open, + /// + /// closed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("closed")] + Closed + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. + /// DOMNode is a base node mirror type. + /// + public class Node : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend + /// will only push node with given `id` once. It is aware of all requested nodes and will only + /// fire DOM events for nodes known to the client. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + set; + } + + /// + /// The id of the parent node if any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + public int? ParentId + { + get; + set; + } + + /// + /// The BackendNodeId for this node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + public int BackendNodeId + { + get; + set; + } + + /// + /// `Node`'s nodeType. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeType")] + public int NodeType + { + get; + set; + } + + /// + /// `Node`'s nodeName. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string NodeName + { + get; + set; + } + + /// + /// `Node`'s localName. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("localName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LocalName + { + get; + set; + } + + /// + /// `Node`'s nodeValue. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeValue")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string NodeValue + { + get; + set; + } + + /// + /// Child count for `Container` nodes. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("childNodeCount")] + public int? ChildNodeCount + { + get; + set; + } + + /// + /// Child nodes of this node when requested with children. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("children")] + public System.Collections.Generic.IList Children + { + get; + set; + } + + /// + /// Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributes")] + public string[] Attributes + { + get; + set; + } + + /// + /// Document URL that `Document` or `FrameOwner` node points to. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentURL")] + public string DocumentURL + { + get; + set; + } + + /// + /// Base URL that `Document` or `FrameOwner` node uses for URL completion. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("baseURL")] + public string BaseURL + { + get; + set; + } + + /// + /// `DocumentType`'s publicId. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("publicId")] + public string PublicId + { + get; + set; + } + + /// + /// `DocumentType`'s systemId. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("systemId")] + public string SystemId + { + get; + set; + } + + /// + /// `DocumentType`'s internalSubset. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("internalSubset")] + public string InternalSubset + { + get; + set; + } + + /// + /// `Document`'s XML version in case of XML documents. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("xmlVersion")] + public string XmlVersion + { + get; + set; + } + + /// + /// `Attr`'s name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + public string Name + { + get; + set; + } + + /// + /// `Attr`'s value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public string Value + { + get; + set; + } + + /// + /// Pseudo element type for this node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoType")] + public CefSharp.DevTools.DOM.PseudoType? PseudoType + { + get; + set; + } + + /// + /// Shadow root type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shadowRootType")] + public CefSharp.DevTools.DOM.ShadowRootType? ShadowRootType + { + get; + set; + } + + /// + /// Frame ID for frame owner elements. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + public string FrameId + { + get; + set; + } + + /// + /// Content document for frame owner elements. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentDocument")] + public CefSharp.DevTools.DOM.Node ContentDocument + { + get; + set; + } + + /// + /// Shadow root list for given element host. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shadowRoots")] + public System.Collections.Generic.IList ShadowRoots + { + get; + set; + } + + /// + /// Content document fragment for template elements. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("templateContent")] + public CefSharp.DevTools.DOM.Node TemplateContent + { + get; + set; + } + + /// + /// Pseudo elements associated with this node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoElements")] + public System.Collections.Generic.IList PseudoElements + { + get; + set; + } + + /// + /// Import document for the HTMLImport links. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("importedDocument")] + public CefSharp.DevTools.DOM.Node ImportedDocument + { + get; + set; + } + + /// + /// Distributed nodes for given insertion point. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("distributedNodes")] + public System.Collections.Generic.IList DistributedNodes + { + get; + set; + } + + /// + /// Whether the node is SVG. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isSVG")] + public bool? IsSVG + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// A structure holding an RGBA color. + /// + public class RGBA : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The red component, in the [0-255] range. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("r")] + public int R + { + get; + set; + } + + /// + /// The green component, in the [0-255] range. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("g")] + public int G + { + get; + set; + } + + /// + /// The blue component, in the [0-255] range. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("b")] + public int B + { + get; + set; + } + + /// + /// The alpha component, in the [0-1] range (default: 1). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("a")] + public long? A + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// Box model. + /// + public class BoxModel : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Content box + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("content")] + public long[] Content + { + get; + set; + } + + /// + /// Padding box + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("padding")] + public long[] Padding + { + get; + set; + } + + /// + /// Border box + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("border")] + public long[] Border + { + get; + set; + } + + /// + /// Margin box + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("margin")] + public long[] Margin + { + get; + set; + } + + /// + /// Node width + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] + public int Width + { + get; + set; + } + + /// + /// Node height + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] + public int Height + { + get; + set; + } + + /// + /// Shape outside coordinates + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shapeOutside")] + public CefSharp.DevTools.DOM.ShapeOutsideInfo ShapeOutside + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// CSS Shape Outside details. + /// + public class ShapeOutsideInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Shape bounds + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] + public long[] Bounds + { + get; + set; + } + + /// + /// Shape coordinate details + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shape")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public object[] Shape + { + get; + set; + } + + /// + /// Margin shape bounds + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("marginShape")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public object[] MarginShape + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// Rectangle. + /// + public class Rect : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// X coordinate + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("x")] + public long X + { + get; + set; + } + + /// + /// Y coordinate + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("y")] + public long Y + { + get; + set; + } + + /// + /// Rectangle width + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] + public long Width + { + get; + set; + } + + /// + /// Rectangle height + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] + public long Height + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// CSSComputedStyleProperty + /// + public class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Computed style property name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Computed style property value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMDebugger +{ + /// + /// DOM breakpoint type. + /// + public enum DOMBreakpointType + { + /// + /// subtree-modified + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("subtree-modified")] + SubtreeModified, + /// + /// attribute-modified + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("attribute-modified")] + AttributeModified, + /// + /// node-removed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("node-removed")] + NodeRemoved + } +} + +namespace CefSharp.DevTools.DOMDebugger +{ + /// + /// Object event listener. + /// + public class EventListener : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// `EventListener`'s type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// `EventListener`'s useCapture. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("useCapture")] + public bool UseCapture + { + get; + set; + } + + /// + /// `EventListener`'s passive flag. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("passive")] + public bool Passive + { + get; + set; + } + + /// + /// `EventListener`'s once flag. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("once")] + public bool Once + { + get; + set; + } + + /// + /// Script id of the handler code. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ScriptId + { + get; + set; + } + + /// + /// Line number in the script (0-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + public int LineNumber + { + get; + set; + } + + /// + /// Column number in the script (0-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + public int ColumnNumber + { + get; + set; + } + + /// + /// Event handler function value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("handler")] + public CefSharp.DevTools.Runtime.RemoteObject Handler + { + get; + set; + } + + /// + /// Event original handler function value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("originalHandler")] + public CefSharp.DevTools.Runtime.RemoteObject OriginalHandler + { + get; + set; + } + + /// + /// Node the listener is added to (if any). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + public int? BackendNodeId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// A Node in the DOM tree. + /// + public class DOMNode : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// `Node`'s nodeType. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeType")] + public int NodeType + { + get; + set; + } + + /// + /// `Node`'s nodeName. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string NodeName + { + get; + set; + } + + /// + /// `Node`'s nodeValue. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeValue")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string NodeValue + { + get; + set; + } + + /// + /// Only set for textarea elements, contains the text value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("textValue")] + public string TextValue + { + get; + set; + } + + /// + /// Only set for input elements, contains the input's associated text value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("inputValue")] + public string InputValue + { + get; + set; + } + + /// + /// Only set for radio and checkbox input elements, indicates if the element has been checked + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("inputChecked")] + public bool? InputChecked + { + get; + set; + } + + /// + /// Only set for option elements, indicates if the element has been selected + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("optionSelected")] + public bool? OptionSelected + { + get; + set; + } + + /// + /// `Node`'s id, corresponds to DOM.Node.backendNodeId. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + public int BackendNodeId + { + get; + set; + } + + /// + /// The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if + /// any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("childNodeIndexes")] + public int[] ChildNodeIndexes + { + get; + set; + } + + /// + /// Attributes of an `Element` node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributes")] + public System.Collections.Generic.IList Attributes + { + get; + set; + } + + /// + /// Indexes of pseudo elements associated with this node in the `domNodes` array returned by + /// `getSnapshot`, if any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoElementIndexes")] + public int[] PseudoElementIndexes + { + get; + set; + } + + /// + /// The index of the node's related layout tree node in the `layoutTreeNodes` array returned by + /// `getSnapshot`, if any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("layoutNodeIndex")] + public int? LayoutNodeIndex + { + get; + set; + } + + /// + /// Document URL that `Document` or `FrameOwner` node points to. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentURL")] + public string DocumentURL + { + get; + set; + } + + /// + /// Base URL that `Document` or `FrameOwner` node uses for URL completion. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("baseURL")] + public string BaseURL + { + get; + set; + } + + /// + /// Only set for documents, contains the document's content language. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentLanguage")] + public string ContentLanguage + { + get; + set; + } + + /// + /// Only set for documents, contains the document's character set encoding. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentEncoding")] + public string DocumentEncoding + { + get; + set; + } + + /// + /// `DocumentType` node's publicId. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("publicId")] + public string PublicId + { + get; + set; + } + + /// + /// `DocumentType` node's systemId. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("systemId")] + public string SystemId + { + get; + set; + } + + /// + /// Frame ID for frame owner elements and also for the document node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + public string FrameId + { + get; + set; + } + + /// + /// The index of a frame owner element's content document in the `domNodes` array returned by + /// `getSnapshot`, if any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentDocumentIndex")] + public int? ContentDocumentIndex + { + get; + set; + } + + /// + /// Type of a pseudo element node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoType")] + public CefSharp.DevTools.DOM.PseudoType? PseudoType + { + get; + set; + } + + /// + /// Shadow root type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shadowRootType")] + public CefSharp.DevTools.DOM.ShadowRootType? ShadowRootType + { + get; + set; + } + + /// + /// Whether this DOM node responds to mouse clicks. This includes nodes that have had click + /// event listeners attached via JavaScript as well as anchor tags that naturally navigate when + /// clicked. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isClickable")] + public bool? IsClickable + { + get; + set; + } + + /// + /// Details of the node's event listeners, if any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventListeners")] + public System.Collections.Generic.IList EventListeners + { + get; + set; + } + + /// + /// The selected url for nodes with a srcset attribute. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentSourceURL")] + public string CurrentSourceURL + { + get; + set; + } + + /// + /// The url of the script (if any) that generates this node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("originURL")] + public string OriginURL + { + get; + set; + } + + /// + /// Scroll offsets, set when this node is a Document. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetX")] + public long? ScrollOffsetX + { + get; + set; + } + + /// + /// ScrollOffsetY + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetY")] + public long? ScrollOffsetY + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// Details of post layout rendered text positions. The exact layout should not be regarded as + /// stable and may change between versions. + /// + public class InlineTextBox : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The bounding box in document coordinates. Note that scroll offset of the document is ignored. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("boundingBox")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOM.Rect BoundingBox + { + get; + set; + } + + /// + /// The starting index in characters, for this post layout textbox substring. Characters that + /// would be represented as a surrogate pair in UTF-16 have length 2. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startCharacterIndex")] + public int StartCharacterIndex + { + get; + set; + } + + /// + /// The number of characters in this post layout textbox substring. Characters that would be + /// represented as a surrogate pair in UTF-16 have length 2. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("numCharacters")] + public int NumCharacters + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// Details of an element in the DOM tree with a LayoutObject. + /// + public class LayoutTreeNode : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The index of the related DOM node in the `domNodes` array returned by `getSnapshot`. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("domNodeIndex")] + public int DomNodeIndex + { + get; + set; + } + + /// + /// The bounding box in document coordinates. Note that scroll offset of the document is ignored. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("boundingBox")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOM.Rect BoundingBox + { + get; + set; + } + + /// + /// Contents of the LayoutText, if any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("layoutText")] + public string LayoutText + { + get; + set; + } + + /// + /// The post-layout inline text nodes, if any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("inlineTextNodes")] + public System.Collections.Generic.IList InlineTextNodes + { + get; + set; + } + + /// + /// Index into the `computedStyles` array returned by `getSnapshot`. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleIndex")] + public int? StyleIndex + { + get; + set; + } + + /// + /// Global paint order index, which is determined by the stacking order of the nodes. Nodes + /// that are painted together will have the same index. Only provided if includePaintOrder in + /// getSnapshot was true. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("paintOrder")] + public int? PaintOrder + { + get; + set; + } + + /// + /// Set to true to indicate the element begins a new stacking context. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isStackingContext")] + public bool? IsStackingContext + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// A subset of the full ComputedStyle as defined by the request whitelist. + /// + public class ComputedStyle : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name/value pairs of computed style properties. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("properties")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Properties + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// A name/value pair. + /// + public class NameValue : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Attribute/property name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Attribute/property value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// Data that is only present on rare nodes. + /// + public class RareStringData : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Index + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("index")] + public int[] Index + { + get; + set; + } + + /// + /// Value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public int[] Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// RareBooleanData + /// + public class RareBooleanData : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Index + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("index")] + public int[] Index + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// RareIntegerData + /// + public class RareIntegerData : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Index + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("index")] + public int[] Index + { + get; + set; + } + + /// + /// Value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public int[] Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// Document snapshot. + /// + public class DocumentSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Document URL that `Document` or `FrameOwner` node points to. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentURL")] + public int DocumentURL + { + get; + set; + } + + /// + /// Document title. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + public int Title + { + get; + set; + } + + /// + /// Base URL that `Document` or `FrameOwner` node uses for URL completion. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("baseURL")] + public int BaseURL + { + get; + set; + } + + /// + /// Contains the document's content language. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentLanguage")] + public int ContentLanguage + { + get; + set; + } + + /// + /// Contains the document's character set encoding. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("encodingName")] + public int EncodingName + { + get; + set; + } + + /// + /// `DocumentType` node's publicId. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("publicId")] + public int PublicId + { + get; + set; + } + + /// + /// `DocumentType` node's systemId. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("systemId")] + public int SystemId + { + get; + set; + } + + /// + /// Frame ID for frame owner elements and also for the document node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + public int FrameId + { + get; + set; + } + + /// + /// A table with dom nodes. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOMSnapshot.NodeTreeSnapshot Nodes + { + get; + set; + } + + /// + /// The nodes in the layout tree. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("layout")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOMSnapshot.LayoutTreeSnapshot Layout + { + get; + set; + } + + /// + /// The post-layout inline text nodes. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("textBoxes")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOMSnapshot.TextBoxSnapshot TextBoxes + { + get; + set; + } + + /// + /// Horizontal scroll offset. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetX")] + public long? ScrollOffsetX + { + get; + set; + } + + /// + /// Vertical scroll offset. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetY")] + public long? ScrollOffsetY + { + get; + set; + } + + /// + /// Document content width. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentWidth")] + public long? ContentWidth + { + get; + set; + } + + /// + /// Document content height. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentHeight")] + public long? ContentHeight + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// Table containing nodes. + /// + public class NodeTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Parent node index. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentIndex")] + public int[] ParentIndex + { + get; + set; + } + + /// + /// `Node`'s nodeType. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeType")] + public int[] NodeType + { + get; + set; + } + + /// + /// `Node`'s nodeName. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeName")] + public int[] NodeName + { + get; + set; + } + + /// + /// `Node`'s nodeValue. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeValue")] + public int[] NodeValue + { + get; + set; + } + + /// + /// `Node`'s id, corresponds to DOM.Node.backendNodeId. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + public int[] BackendNodeId + { + get; + set; + } + + /// + /// Attributes of an `Element` node. Flatten name, value pairs. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributes")] + public int[] Attributes + { + get; + set; + } + + /// + /// Only set for textarea elements, contains the text value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("textValue")] + public CefSharp.DevTools.DOMSnapshot.RareStringData TextValue + { + get; + set; + } + + /// + /// Only set for input elements, contains the input's associated text value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("inputValue")] + public CefSharp.DevTools.DOMSnapshot.RareStringData InputValue + { + get; + set; + } + + /// + /// Only set for radio and checkbox input elements, indicates if the element has been checked + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("inputChecked")] + public CefSharp.DevTools.DOMSnapshot.RareBooleanData InputChecked + { + get; + set; + } + + /// + /// Only set for option elements, indicates if the element has been selected + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("optionSelected")] + public CefSharp.DevTools.DOMSnapshot.RareBooleanData OptionSelected + { + get; + set; + } + + /// + /// The index of the document in the list of the snapshot documents. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentDocumentIndex")] + public CefSharp.DevTools.DOMSnapshot.RareIntegerData ContentDocumentIndex + { + get; + set; + } + + /// + /// Type of a pseudo element node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoType")] + public CefSharp.DevTools.DOMSnapshot.RareStringData PseudoType + { + get; + set; + } + + /// + /// Whether this DOM node responds to mouse clicks. This includes nodes that have had click + /// event listeners attached via JavaScript as well as anchor tags that naturally navigate when + /// clicked. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isClickable")] + public CefSharp.DevTools.DOMSnapshot.RareBooleanData IsClickable + { + get; + set; + } + + /// + /// The selected url for nodes with a srcset attribute. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentSourceURL")] + public CefSharp.DevTools.DOMSnapshot.RareStringData CurrentSourceURL + { + get; + set; + } + + /// + /// The url of the script (if any) that generates this node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("originURL")] + public CefSharp.DevTools.DOMSnapshot.RareStringData OriginURL + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// Table of details of an element in the DOM tree with a LayoutObject. + /// + public class LayoutTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIndex")] + public int[] NodeIndex + { + get; + set; + } + + /// + /// Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styles")] + public int[] Styles + { + get; + set; + } + + /// + /// The absolute position bounding box. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] + public long[] Bounds + { + get; + set; + } + + /// + /// Contents of the LayoutText, if any. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + public int[] Text + { + get; + set; + } + + /// + /// Stacking context information. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackingContexts")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOMSnapshot.RareBooleanData StackingContexts + { + get; + set; + } + + /// + /// Global paint order index, which is determined by the stacking order of the nodes. Nodes + /// that are painted together will have the same index. Only provided if includePaintOrder in + /// captureSnapshot was true. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("paintOrders")] + public int[] PaintOrders + { + get; + set; + } + + /// + /// The offset rect of nodes. Only available when includeDOMRects is set to true + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetRects")] + public long[] OffsetRects + { + get; + set; + } + + /// + /// The scroll rect of nodes. Only available when includeDOMRects is set to true + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollRects")] + public long[] ScrollRects + { + get; + set; + } + + /// + /// The client rect of nodes. Only available when includeDOMRects is set to true + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientRects")] + public long[] ClientRects + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// Table of details of the post layout rendered text positions. The exact layout should not be regarded as + /// stable and may change between versions. + /// + public class TextBoxSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Index of the layout tree node that owns this box collection. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("layoutIndex")] + public int[] LayoutIndex + { + get; + set; + } + + /// + /// The absolute position bounding box. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] + public long[] Bounds + { + get; + set; + } + + /// + /// The starting index in characters, for this post layout textbox substring. Characters that + /// would be represented as a surrogate pair in UTF-16 have length 2. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("start")] + public int[] Start + { + get; + set; + } + + /// + /// The number of characters in this post layout textbox substring. Characters that would be + /// represented as a surrogate pair in UTF-16 have length 2. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("length")] + public int[] Length + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.DOMStorage +{ + /// + /// DOM Storage identifier. + /// + public class StorageId : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Security origin for the storage. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityOrigin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SecurityOrigin + { + get; + set; + } + + /// + /// Whether the storage is local storage (not session storage). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isLocalStorage")] + public bool IsLocalStorage + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Database +{ + /// + /// Database object. + /// + public class Database : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Database ID. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + set; + } + + /// + /// Database domain. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("domain")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Domain + { + get; + set; + } + + /// + /// Database name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Database version. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("version")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Version + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Database +{ + /// + /// Database error. + /// + public class Error : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Error message. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Message + { + get; + set; + } + + /// + /// Error code. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("code")] + public int Code + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Emulation +{ + /// + /// Screen orientation. + /// + public class ScreenOrientation : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Orientation type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// Orientation angle. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("angle")] + public int Angle + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Emulation +{ + /// + /// DisplayFeature + /// + public class DisplayFeature : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Orientation of a display feature in relation to screen + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("orientation")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Orientation + { + get; + set; + } + + /// + /// The offset from the screen origin in either the x (for vertical + /// orientation) or y (for horizontal orientation) direction. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("offset")] + public int Offset + { + get; + set; + } + + /// + /// A display feature may mask content such that it is not physically + /// displayed - this length along with the offset describes this area. + /// A display feature that only splits content will have a 0 mask_length. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("maskLength")] + public int MaskLength + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Emulation +{ + /// + /// MediaFeature + /// + public class MediaFeature : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Emulation +{ + /// + /// advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to + /// allow the next delayed task (if any) to run; pause: The virtual time base may not advance; + /// pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending + /// resource fetches. + /// + public enum VirtualTimePolicy + { + /// + /// advance + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("advance")] + Advance, + /// + /// pause + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pause")] + Pause, + /// + /// pauseIfNetworkFetchesPending + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pauseIfNetworkFetchesPending")] + PauseIfNetworkFetchesPending + } +} + +namespace CefSharp.DevTools.Emulation +{ + /// + /// Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints + /// + public class UserAgentBrandVersion : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Brand + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("brand")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Brand + { + get; + set; + } + + /// + /// Version + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("version")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Version + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Emulation +{ + /// + /// Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints + /// + public class UserAgentMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Brands + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("brands")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Brands + { + get; + set; + } + + /// + /// FullVersion + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fullVersion")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FullVersion + { + get; + set; + } + + /// + /// Platform + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("platform")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Platform + { + get; + set; + } + + /// + /// PlatformVersion + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("platformVersion")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PlatformVersion + { + get; + set; + } + + /// + /// Architecture + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("architecture")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Architecture + { + get; + set; + } + + /// + /// Model + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("model")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Model + { + get; + set; + } + + /// + /// Mobile + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mobile")] + public bool Mobile + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.HeadlessExperimental +{ + /// + /// Encoding options for a screenshot. + /// + public class ScreenshotParams : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Image compression format (defaults to png). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("format")] + public string Format + { + get; + set; + } + + /// + /// Compression quality from range [0..100] (jpeg only). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("quality")] + public int? Quality + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.IndexedDB +{ + /// + /// Database with an array of object stores. + /// + public class DatabaseWithObjectStores : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Database name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Database version (type is not 'integer', as the standard + /// requires the version number to be 'unsigned long long') + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("version")] + public long Version + { + get; + set; + } + + /// + /// Object stores in this database. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("objectStores")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList ObjectStores + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.IndexedDB +{ + /// + /// Object store. + /// + public class ObjectStore : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Object store name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Object store key path. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyPath")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.IndexedDB.KeyPath KeyPath + { + get; + set; + } + + /// + /// If true, object store has auto increment flag set. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("autoIncrement")] + public bool AutoIncrement + { + get; + set; + } + + /// + /// Indexes in this object store. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("indexes")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Indexes + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.IndexedDB +{ + /// + /// Object store index. + /// + public class ObjectStoreIndex : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Index name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Index key path. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyPath")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.IndexedDB.KeyPath KeyPath + { + get; + set; + } + + /// + /// If true, index is unique. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("unique")] + public bool Unique + { + get; + set; + } + + /// + /// If true, index allows multiple entries for a key. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("multiEntry")] + public bool MultiEntry + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.IndexedDB +{ + /// + /// Key. + /// + public class Key : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// Number value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("number")] + public long? Number + { + get; + set; + } + + /// + /// String value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + public string String + { + get; + set; + } + + /// + /// Date value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("date")] + public long? Date + { + get; + set; + } + + /// + /// Array value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("array")] + public System.Collections.Generic.IList Array + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.IndexedDB +{ + /// + /// Key range. + /// + public class KeyRange : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Lower bound. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lower")] + public CefSharp.DevTools.IndexedDB.Key Lower + { + get; + set; + } + + /// + /// Upper bound. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("upper")] + public CefSharp.DevTools.IndexedDB.Key Upper + { + get; + set; + } + + /// + /// If true lower bound is open. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lowerOpen")] + public bool LowerOpen + { + get; + set; + } + + /// + /// If true upper bound is open. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("upperOpen")] + public bool UpperOpen + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.IndexedDB +{ + /// + /// Data entry. + /// + public class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key object. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Runtime.RemoteObject Key + { + get; + set; + } + + /// + /// Primary key object. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("primaryKey")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Runtime.RemoteObject PrimaryKey + { + get; + set; + } + + /// + /// Value object. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Runtime.RemoteObject Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.IndexedDB +{ + /// + /// Key path. + /// + public class KeyPath : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key path type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// String value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + public string String + { + get; + set; + } + + /// + /// Array value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("array")] + public string[] Array + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Input +{ + /// + /// TouchPoint + /// + public class TouchPoint : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// X coordinate of the event relative to the main frame's viewport in CSS pixels. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("x")] + public long X + { + get; + set; + } + + /// + /// Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to + /// the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("y")] + public long Y + { + get; + set; + } + + /// + /// X radius of the touch area (default: 1.0). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("radiusX")] + public long? RadiusX + { + get; + set; + } + + /// + /// Y radius of the touch area (default: 1.0). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("radiusY")] + public long? RadiusY + { + get; + set; + } + + /// + /// Rotation angle (default: 0.0). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rotationAngle")] + public long? RotationAngle + { + get; + set; + } + + /// + /// Force (default: 1.0). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("force")] + public long? Force + { + get; + set; + } + + /// + /// Identifier used to track touch sources between events, must be unique within an event. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + public long? Id + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Input +{ + /// + /// GestureSourceType + /// + public enum GestureSourceType + { + /// + /// default + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("default")] + Default, + /// + /// touch + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("touch")] + Touch, + /// + /// mouse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mouse")] + Mouse + } +} + +namespace CefSharp.DevTools.Input +{ + /// + /// MouseButton + /// + public enum MouseButton + { + /// + /// none + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + None, + /// + /// left + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("left")] + Left, + /// + /// middle + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("middle")] + Middle, + /// + /// right + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("right")] + Right, + /// + /// back + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("back")] + Back, + /// + /// forward + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("forward")] + Forward + } +} + +namespace CefSharp.DevTools.LayerTree +{ + /// + /// Rectangle where scrolling happens on the main thread. + /// + public class ScrollRect : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Rectangle itself. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rect")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOM.Rect Rect + { + get; + set; + } + + /// + /// Reason for rectangle to force scrolling on the main thread + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.LayerTree +{ + /// + /// Sticky position constraints. + /// + public class StickyPositionConstraint : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Layout rectangle of the sticky element before being shifted + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stickyBoxRect")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOM.Rect StickyBoxRect + { + get; + set; + } + + /// + /// Layout rectangle of the containing block of the sticky element + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("containingBlockRect")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOM.Rect ContainingBlockRect + { + get; + set; + } + + /// + /// The nearest sticky layer that shifts the sticky box + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nearestLayerShiftingStickyBox")] + public string NearestLayerShiftingStickyBox + { + get; + set; + } + + /// + /// The nearest sticky layer that shifts the containing block + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nearestLayerShiftingContainingBlock")] + public string NearestLayerShiftingContainingBlock + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.LayerTree +{ + /// + /// Serialized fragment of layer picture along with its offset within the layer. + /// + public class PictureTile : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Offset from owning layer left boundary + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("x")] + public long X + { + get; + set; + } + + /// + /// Offset from owning layer top boundary + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("y")] + public long Y + { + get; + set; + } + + /// + /// Base64-encoded snapshot data. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("picture")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public byte[] Picture + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.LayerTree +{ + /// + /// Information about a compositing layer. + /// + public class Layer : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The unique id for this layer. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("layerId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LayerId + { + get; + set; + } + + /// + /// The id of parent (not present for root). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentLayerId")] + public string ParentLayerId + { + get; + set; + } + + /// + /// The backend id for the node associated with this layer. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + public int? BackendNodeId + { + get; + set; + } + + /// + /// Offset from parent layer, X coordinate. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetX")] + public long OffsetX + { + get; + set; + } + + /// + /// Offset from parent layer, Y coordinate. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetY")] + public long OffsetY + { + get; + set; + } + + /// + /// Layer width. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] + public long Width + { + get; + set; + } + + /// + /// Layer height. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] + public long Height + { + get; + set; + } + + /// + /// Transformation matrix for layer, default is identity matrix + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("transform")] + public long[] Transform + { + get; + set; + } + + /// + /// Transform anchor point X, absent if no transform specified + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("anchorX")] + public long? AnchorX + { + get; + set; + } + + /// + /// Transform anchor point Y, absent if no transform specified + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("anchorY")] + public long? AnchorY + { + get; + set; + } + + /// + /// Transform anchor point Z, absent if no transform specified + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("anchorZ")] + public long? AnchorZ + { + get; + set; + } + + /// + /// Indicates how many time this layer has painted. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("paintCount")] + public int PaintCount + { + get; + set; + } + + /// + /// Indicates whether this layer hosts any content, rather than being used for + /// transform/scrolling purposes only. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("drawsContent")] + public bool DrawsContent + { + get; + set; + } + + /// + /// Set if layer is not visible. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("invisible")] + public bool? Invisible + { + get; + set; + } + + /// + /// Rectangles scrolling on main thread only. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollRects")] + public System.Collections.Generic.IList ScrollRects + { + get; + set; + } + + /// + /// Sticky position constraint information + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stickyPositionConstraint")] + public CefSharp.DevTools.LayerTree.StickyPositionConstraint StickyPositionConstraint + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Log +{ + /// + /// Log entry. + /// + public class LogEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Log entry source. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("source")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Source + { + get; + set; + } + + /// + /// Log entry severity. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("level")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Level + { + get; + set; + } + + /// + /// Logged text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Text + { + get; + set; + } + + /// + /// Timestamp when this entry was added. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public long Timestamp + { + get; + set; + } + + /// + /// URL of the resource if known. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + public string Url + { + get; + set; + } + + /// + /// Line number in the resource. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + public int? LineNumber + { + get; + set; + } + + /// + /// JavaScript stack trace. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackTrace")] + public CefSharp.DevTools.Runtime.StackTrace StackTrace + { + get; + set; + } + + /// + /// Identifier of the network request associated with this entry. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("networkRequestId")] + public string NetworkRequestId + { + get; + set; + } + + /// + /// Identifier of the worker associated with this entry. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerId")] + public string WorkerId + { + get; + set; + } + + /// + /// Call arguments. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("args")] + public System.Collections.Generic.IList Args + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Log +{ + /// + /// Violation configuration setting. + /// + public class ViolationSetting : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Violation type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Time threshold to trigger upon. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("threshold")] + public long Threshold + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Memory +{ + /// + /// Memory pressure level. + /// + public enum PressureLevel + { + /// + /// moderate + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("moderate")] + Moderate, + /// + /// critical + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("critical")] + Critical + } +} + +namespace CefSharp.DevTools.Memory +{ + /// + /// Heap profile sample. + /// + public class SamplingProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Size of the sampled allocation. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] + public long Size + { + get; + set; + } + + /// + /// Total bytes attributed to this sample. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("total")] + public long Total + { + get; + set; + } + + /// + /// Execution stack at the point of allocation. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stack")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] Stack + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Memory +{ + /// + /// Array of heap profile samples. + /// + public class SamplingProfile : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Samples + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("samples")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Samples + { + get; + set; + } + + /// + /// Modules + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("modules")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Modules + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Memory +{ + /// + /// Executable module information + /// + public class Module : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name of the module. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// UUID of the module. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("uuid")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Uuid + { + get; + set; + } + + /// + /// Base address where the module is loaded into memory. Encoded as a decimal + /// or hexadecimal (0x prefixed) string. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("baseAddress")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string BaseAddress + { + get; + set; + } + + /// + /// Size of the module in bytes. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] + public long Size + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Resource type as it was perceived by the rendering engine. + /// + public enum ResourceType + { + /// + /// Document + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Document")] + Document, + /// + /// Stylesheet + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Stylesheet")] + Stylesheet, + /// + /// Image + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Image")] + Image, + /// + /// Media + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Media")] + Media, + /// + /// Font + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Font")] + Font, + /// + /// Script + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Script")] + Script, + /// + /// TextTrack + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("TextTrack")] + TextTrack, + /// + /// XHR + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("XHR")] + XHR, + /// + /// Fetch + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Fetch")] + Fetch, + /// + /// EventSource + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("EventSource")] + EventSource, + /// + /// WebSocket + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebSocket")] + WebSocket, + /// + /// Manifest + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Manifest")] + Manifest, + /// + /// SignedExchange + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SignedExchange")] + SignedExchange, + /// + /// Ping + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Ping")] + Ping, + /// + /// CSPViolationReport + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CSPViolationReport")] + CSPViolationReport, + /// + /// Other + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Other")] + Other + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Network level fetch failure reason. + /// + public enum ErrorReason + { + /// + /// Failed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Failed")] + Failed, + /// + /// Aborted + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Aborted")] + Aborted, + /// + /// TimedOut + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("TimedOut")] + TimedOut, + /// + /// AccessDenied + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("AccessDenied")] + AccessDenied, + /// + /// ConnectionClosed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConnectionClosed")] + ConnectionClosed, + /// + /// ConnectionReset + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConnectionReset")] + ConnectionReset, + /// + /// ConnectionRefused + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConnectionRefused")] + ConnectionRefused, + /// + /// ConnectionAborted + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConnectionAborted")] + ConnectionAborted, + /// + /// ConnectionFailed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConnectionFailed")] + ConnectionFailed, + /// + /// NameNotResolved + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NameNotResolved")] + NameNotResolved, + /// + /// InternetDisconnected + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InternetDisconnected")] + InternetDisconnected, + /// + /// AddressUnreachable + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("AddressUnreachable")] + AddressUnreachable, + /// + /// BlockedByClient + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("BlockedByClient")] + BlockedByClient, + /// + /// BlockedByResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("BlockedByResponse")] + BlockedByResponse + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// The underlying connection technology that the browser is supposedly using. + /// + public enum ConnectionType + { + /// + /// none + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + None, + /// + /// cellular2g + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cellular2g")] + Cellular2g, + /// + /// cellular3g + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cellular3g")] + Cellular3g, + /// + /// cellular4g + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cellular4g")] + Cellular4g, + /// + /// bluetooth + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bluetooth")] + Bluetooth, + /// + /// ethernet + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ethernet")] + Ethernet, + /// + /// wifi + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("wifi")] + Wifi, + /// + /// wimax + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("wimax")] + Wimax, + /// + /// other + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + Other + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Represents the cookie's 'SameSite' status: + /// https://tools.ietf.org/html/draft-west-first-party-cookies + /// + public enum CookieSameSite + { + /// + /// Strict + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Strict")] + Strict, + /// + /// Lax + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Lax")] + Lax, + /// + /// None + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("None")] + None + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Represents the cookie's 'Priority' status: + /// https://tools.ietf.org/html/draft-west-cookie-priority-00 + /// + public enum CookiePriority + { + /// + /// Low + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Low")] + Low, + /// + /// Medium + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Medium")] + Medium, + /// + /// High + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("High")] + High + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Timing information for the request. + /// + public class ResourceTiming : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Timing's requestTime is a baseline in seconds, while the other numbers are ticks in + /// milliseconds relatively to this requestTime. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestTime")] + public long RequestTime + { + get; + set; + } + + /// + /// Started resolving proxy. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("proxyStart")] + public long ProxyStart + { + get; + set; + } + + /// + /// Finished resolving proxy. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("proxyEnd")] + public long ProxyEnd + { + get; + set; + } + + /// + /// Started DNS address resolve. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("dnsStart")] + public long DnsStart + { + get; + set; + } + + /// + /// Finished DNS address resolve. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("dnsEnd")] + public long DnsEnd + { + get; + set; + } + + /// + /// Started connecting to the remote host. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectStart")] + public long ConnectStart + { + get; + set; + } + + /// + /// Connected to the remote host. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectEnd")] + public long ConnectEnd + { + get; + set; + } + + /// + /// Started SSL handshake. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sslStart")] + public long SslStart + { + get; + set; + } + + /// + /// Finished SSL handshake. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sslEnd")] + public long SslEnd + { + get; + set; + } + + /// + /// Started running ServiceWorker. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerStart")] + public long WorkerStart + { + get; + set; + } + + /// + /// Finished Starting ServiceWorker. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerReady")] + public long WorkerReady + { + get; + set; + } + + /// + /// Started fetch event. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerFetchStart")] + public long WorkerFetchStart + { + get; + set; + } + + /// + /// Settled fetch event respondWith promise. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerRespondWithSettled")] + public long WorkerRespondWithSettled + { + get; + set; + } + + /// + /// Started sending request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sendStart")] + public long SendStart + { + get; + set; + } + + /// + /// Finished sending request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sendEnd")] + public long SendEnd + { + get; + set; + } + + /// + /// Time the server started pushing request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pushStart")] + public long PushStart + { + get; + set; + } + + /// + /// Time the server finished pushing request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pushEnd")] + public long PushEnd + { + get; + set; + } + + /// + /// Finished receiving response headers. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("receiveHeadersEnd")] + public long ReceiveHeadersEnd + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Loading priority of a resource request. + /// + public enum ResourcePriority + { + /// + /// VeryLow + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("VeryLow")] + VeryLow, + /// + /// Low + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Low")] + Low, + /// + /// Medium + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Medium")] + Medium, + /// + /// High + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("High")] + High, + /// + /// VeryHigh + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("VeryHigh")] + VeryHigh + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Post data entry for HTTP request + /// + public class PostDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Bytes + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bytes")] + public byte[] Bytes + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// HTTP request data. + /// + public class Request : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Request URL (without fragment). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// Fragment of the requested URL starting with hash, if present. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("urlFragment")] + public string UrlFragment + { + get; + set; + } + + /// + /// HTTP request method. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("method")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Method + { + get; + set; + } + + /// + /// HTTP request headers. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Headers Headers + { + get; + set; + } + + /// + /// HTTP POST request data. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("postData")] + public string PostData + { + get; + set; + } + + /// + /// True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasPostData")] + public bool? HasPostData + { + get; + set; + } + + /// + /// Request body elements. This will be converted from base64 to binary + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("postDataEntries")] + public System.Collections.Generic.IList PostDataEntries + { + get; + set; + } + + /// + /// The mixed content type of the request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mixedContentType")] + public CefSharp.DevTools.Security.MixedContentType? MixedContentType + { + get; + set; + } + + /// + /// Priority of the resource request at the time request is sent. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("initialPriority")] + public CefSharp.DevTools.Network.ResourcePriority InitialPriority + { + get; + set; + } + + /// + /// The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("referrerPolicy")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ReferrerPolicy + { + get; + set; + } + + /// + /// Whether is loaded via link preload. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isLinkPreload")] + public bool? IsLinkPreload + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Details of a signed certificate timestamp (SCT). + /// + public class SignedCertificateTimestamp : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Validation status. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Status + { + get; + set; + } + + /// + /// Origin. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Origin + { + get; + set; + } + + /// + /// Log name / description. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("logDescription")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LogDescription + { + get; + set; + } + + /// + /// Log ID. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("logId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LogId + { + get; + set; + } + + /// + /// Issuance date. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public long Timestamp + { + get; + set; + } + + /// + /// Hash algorithm. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hashAlgorithm")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string HashAlgorithm + { + get; + set; + } + + /// + /// Signature algorithm. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureAlgorithm")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SignatureAlgorithm + { + get; + set; + } + + /// + /// Signature data. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureData")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SignatureData + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Security details about a request. + /// + public class SecurityDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Protocol name (e.g. "TLS 1.2" or "QUIC"). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("protocol")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Protocol + { + get; + set; + } + + /// + /// Key Exchange used by the connection, or the empty string if not applicable. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyExchange")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string KeyExchange + { + get; + set; + } + + /// + /// (EC)DH group used by the connection, if applicable. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyExchangeGroup")] + public string KeyExchangeGroup + { + get; + set; + } + + /// + /// Cipher name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cipher")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Cipher + { + get; + set; + } + + /// + /// TLS MAC. Note that AEAD ciphers do not have separate MACs. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mac")] + public string Mac + { + get; + set; + } + + /// + /// Certificate ID value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificateId")] + public int CertificateId + { + get; + set; + } + + /// + /// Certificate subject name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("subjectName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SubjectName + { + get; + set; + } + + /// + /// Subject Alternative Name (SAN) DNS names and IP addresses. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sanList")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] SanList + { + get; + set; + } + + /// + /// Name of the issuing CA. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("issuer")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Issuer + { + get; + set; + } + + /// + /// Certificate valid from date. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("validFrom")] + public long ValidFrom + { + get; + set; + } + + /// + /// Certificate valid to (expiration) date + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("validTo")] + public long ValidTo + { + get; + set; + } + + /// + /// List of signed certificate timestamps (SCTs). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signedCertificateTimestampList")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList SignedCertificateTimestampList + { + get; + set; + } + + /// + /// Whether the request complied with Certificate Transparency policy + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificateTransparencyCompliance")] + public CefSharp.DevTools.Network.CertificateTransparencyCompliance CertificateTransparencyCompliance + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Whether the request complied with Certificate Transparency policy. + /// + public enum CertificateTransparencyCompliance + { + /// + /// unknown + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("unknown")] + Unknown, + /// + /// not-compliant + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("not-compliant")] + NotCompliant, + /// + /// compliant + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("compliant")] + Compliant + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// The reason why request was blocked. + /// + public enum BlockedReason + { + /// + /// other + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + Other, + /// + /// csp + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("csp")] + Csp, + /// + /// mixed-content + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mixed-content")] + MixedContent, + /// + /// origin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + Origin, + /// + /// inspector + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("inspector")] + Inspector, + /// + /// subresource-filter + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("subresource-filter")] + SubresourceFilter, + /// + /// content-type + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("content-type")] + ContentType, + /// + /// collapsed-by-client + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("collapsed-by-client")] + CollapsedByClient, + /// + /// coep-frame-resource-needs-coep-header + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("coep-frame-resource-needs-coep-header")] + CoepFrameResourceNeedsCoepHeader, + /// + /// coop-sandboxed-iframe-cannot-navigate-to-coop-page + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("coop-sandboxed-iframe-cannot-navigate-to-coop-page")] + CoopSandboxedIframeCannotNavigateToCoopPage, + /// + /// corp-not-same-origin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("corp-not-same-origin")] + CorpNotSameOrigin, + /// + /// corp-not-same-origin-after-defaulted-to-same-origin-by-coep + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("corp-not-same-origin-after-defaulted-to-same-origin-by-coep")] + CorpNotSameOriginAfterDefaultedToSameOriginByCoep, + /// + /// corp-not-same-site + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("corp-not-same-site")] + CorpNotSameSite + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Source of serviceworker response. + /// + public enum ServiceWorkerResponseSource + { + /// + /// cache-storage + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cache-storage")] + CacheStorage, + /// + /// http-cache + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("http-cache")] + HttpCache, + /// + /// fallback-code + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fallback-code")] + FallbackCode, + /// + /// network + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("network")] + Network + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// HTTP response data. + /// + public class Response : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Response URL. This URL can be different from CachedResource.url in case of redirect. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// HTTP response status code. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + public int Status + { + get; + set; + } + + /// + /// HTTP response status text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("statusText")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StatusText + { + get; + set; + } + + /// + /// HTTP response headers. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Headers Headers + { + get; + set; + } + + /// + /// HTTP response headers text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("headersText")] + public string HeadersText + { + get; + set; + } + + /// + /// Resource mimeType as determined by the browser. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mimeType")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string MimeType + { + get; + set; + } + + /// + /// Refined HTTP request headers that were actually transmitted over the network. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestHeaders")] + public CefSharp.DevTools.Network.Headers RequestHeaders + { + get; + set; + } + + /// + /// HTTP request headers text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestHeadersText")] + public string RequestHeadersText + { + get; + set; + } + + /// + /// Specifies whether physical connection was actually reused for this request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectionReused")] + public bool ConnectionReused + { + get; + set; + } + + /// + /// Physical connection id that was actually used for this request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectionId")] + public long ConnectionId + { + get; + set; + } + + /// + /// Remote IP address. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("remoteIPAddress")] + public string RemoteIPAddress + { + get; + set; + } + + /// + /// Remote port. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("remotePort")] + public int? RemotePort + { + get; + set; + } + + /// + /// Specifies that the request was served from the disk cache. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fromDiskCache")] + public bool? FromDiskCache + { + get; + set; + } + + /// + /// Specifies that the request was served from the ServiceWorker. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fromServiceWorker")] + public bool? FromServiceWorker + { + get; + set; + } + + /// + /// Specifies that the request was served from the prefetch cache. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fromPrefetchCache")] + public bool? FromPrefetchCache + { + get; + set; + } + + /// + /// Total number of bytes received for this request so far. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("encodedDataLength")] + public long EncodedDataLength + { + get; + set; + } + + /// + /// Timing information for the given request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timing")] + public CefSharp.DevTools.Network.ResourceTiming Timing + { + get; + set; + } + + /// + /// Response source of response from ServiceWorker. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("serviceWorkerResponseSource")] + public CefSharp.DevTools.Network.ServiceWorkerResponseSource? ServiceWorkerResponseSource + { + get; + set; + } + + /// + /// The time at which the returned response was generated. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseTime")] + public long? ResponseTime + { + get; + set; + } + + /// + /// Cache Storage Cache Name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cacheStorageCacheName")] + public string CacheStorageCacheName + { + get; + set; + } + + /// + /// Protocol used to fetch this request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("protocol")] + public string Protocol + { + get; + set; + } + + /// + /// Security state of the request resource. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityState")] + public CefSharp.DevTools.Security.SecurityState SecurityState + { + get; + set; + } + + /// + /// Security details for the request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityDetails")] + public CefSharp.DevTools.Network.SecurityDetails SecurityDetails + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// WebSocket request data. + /// + public class WebSocketRequest : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// HTTP request headers. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Headers Headers + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// WebSocket response data. + /// + public class WebSocketResponse : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// HTTP response status code. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + public int Status + { + get; + set; + } + + /// + /// HTTP response status text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("statusText")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StatusText + { + get; + set; + } + + /// + /// HTTP response headers. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Headers Headers + { + get; + set; + } + + /// + /// HTTP response headers text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("headersText")] + public string HeadersText + { + get; + set; + } + + /// + /// HTTP request headers. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestHeaders")] + public CefSharp.DevTools.Network.Headers RequestHeaders + { + get; + set; + } + + /// + /// HTTP request headers text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestHeadersText")] + public string RequestHeadersText + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests. + /// + public class WebSocketFrame : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// WebSocket message opcode. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("opcode")] + public long Opcode + { + get; + set; + } + + /// + /// WebSocket message mask. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mask")] + public bool Mask + { + get; + set; + } + + /// + /// WebSocket message payload data. + /// If the opcode is 1, this is a text message and payloadData is a UTF-8 string. + /// If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("payloadData")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PayloadData + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Information about the cached resource. + /// + public class CachedResource : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Resource URL. This is the url of the original network request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// Type of this resource. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public CefSharp.DevTools.Network.ResourceType Type + { + get; + set; + } + + /// + /// Cached response data. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + public CefSharp.DevTools.Network.Response Response + { + get; + set; + } + + /// + /// Cached response body size. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bodySize")] + public long BodySize + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Information about the request initiator. + /// + public class Initiator : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Type of this initiator. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// Initiator JavaScript stack trace, set for Script only. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stack")] + public CefSharp.DevTools.Runtime.StackTrace Stack + { + get; + set; + } + + /// + /// Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + public string Url + { + get; + set; + } + + /// + /// Initiator line number, set for Parser type or for Script type (when script is importing + /// module) (0-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + public long? LineNumber + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Cookie object + /// + public class Cookie : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Cookie name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Cookie value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + + /// + /// Cookie domain. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("domain")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Domain + { + get; + set; + } + + /// + /// Cookie path. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("path")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Path + { + get; + set; + } + + /// + /// Cookie expiration date as the number of seconds since the UNIX epoch. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("expires")] + public long Expires + { + get; + set; + } + + /// + /// Cookie size. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] + public int Size + { + get; + set; + } + + /// + /// True if cookie is http-only. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("httpOnly")] + public bool HttpOnly + { + get; + set; + } + + /// + /// True if cookie is secure. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("secure")] + public bool Secure + { + get; + set; + } + + /// + /// True in case of session cookie. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("session")] + public bool Session + { + get; + set; + } + + /// + /// Cookie SameSite type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sameSite")] + public CefSharp.DevTools.Network.CookieSameSite? SameSite + { + get; + set; + } + + /// + /// Cookie Priority + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("priority")] + public CefSharp.DevTools.Network.CookiePriority Priority + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Types of reasons why a cookie may not be stored from a response. + /// + public enum SetCookieBlockedReason + { + /// + /// SecureOnly + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SecureOnly")] + SecureOnly, + /// + /// SameSiteStrict + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteStrict")] + SameSiteStrict, + /// + /// SameSiteLax + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteLax")] + SameSiteLax, + /// + /// SameSiteUnspecifiedTreatedAsLax + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteUnspecifiedTreatedAsLax")] + SameSiteUnspecifiedTreatedAsLax, + /// + /// SameSiteNoneInsecure + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteNoneInsecure")] + SameSiteNoneInsecure, + /// + /// UserPreferences + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("UserPreferences")] + UserPreferences, + /// + /// SyntaxError + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SyntaxError")] + SyntaxError, + /// + /// SchemeNotSupported + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SchemeNotSupported")] + SchemeNotSupported, + /// + /// OverwriteSecure + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("OverwriteSecure")] + OverwriteSecure, + /// + /// InvalidDomain + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidDomain")] + InvalidDomain, + /// + /// InvalidPrefix + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidPrefix")] + InvalidPrefix, + /// + /// UnknownError + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnknownError")] + UnknownError + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Types of reasons why a cookie may not be sent with a request. + /// + public enum CookieBlockedReason + { + /// + /// SecureOnly + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SecureOnly")] + SecureOnly, + /// + /// NotOnPath + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotOnPath")] + NotOnPath, + /// + /// DomainMismatch + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("DomainMismatch")] + DomainMismatch, + /// + /// SameSiteStrict + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteStrict")] + SameSiteStrict, + /// + /// SameSiteLax + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteLax")] + SameSiteLax, + /// + /// SameSiteUnspecifiedTreatedAsLax + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteUnspecifiedTreatedAsLax")] + SameSiteUnspecifiedTreatedAsLax, + /// + /// SameSiteNoneInsecure + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteNoneInsecure")] + SameSiteNoneInsecure, + /// + /// UserPreferences + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("UserPreferences")] + UserPreferences, + /// + /// UnknownError + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnknownError")] + UnknownError + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// A cookie which was not stored from a response with the corresponding reason. + /// + public class BlockedSetCookieWithReason : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The reason(s) this cookie was blocked. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedReasons")] + public CefSharp.DevTools.Network.SetCookieBlockedReason[] BlockedReasons + { + get; + set; + } + + /// + /// The string representing this individual cookie as it would appear in the header. + /// This is not the entire "cookie" or "set-cookie" header which could have multiple cookies. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookieLine")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string CookieLine + { + get; + set; + } + + /// + /// The cookie object which represents the cookie which was not stored. It is optional because + /// sometimes complete cookie information is not available, such as in the case of parsing + /// errors. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookie")] + public CefSharp.DevTools.Network.Cookie Cookie + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// A cookie with was not sent with a request with the corresponding reason. + /// + public class BlockedCookieWithReason : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The reason(s) the cookie was blocked. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedReasons")] + public CefSharp.DevTools.Network.CookieBlockedReason[] BlockedReasons + { + get; + set; + } + + /// + /// The cookie object representing the cookie which was not sent. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookie")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Cookie Cookie + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Cookie parameter object + /// + public class CookieParam : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Cookie name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Cookie value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + + /// + /// The request-URI to associate with the setting of the cookie. This value can affect the + /// default domain and path values of the created cookie. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + public string Url + { + get; + set; + } + + /// + /// Cookie domain. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("domain")] + public string Domain + { + get; + set; + } + + /// + /// Cookie path. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("path")] + public string Path + { + get; + set; + } + + /// + /// True if cookie is secure. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("secure")] + public bool? Secure + { + get; + set; + } + + /// + /// True if cookie is http-only. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("httpOnly")] + public bool? HttpOnly + { + get; + set; + } + + /// + /// Cookie SameSite type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sameSite")] + public CefSharp.DevTools.Network.CookieSameSite? SameSite + { + get; + set; + } + + /// + /// Cookie expiration date, session cookie if not set + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("expires")] + public long? Expires + { + get; + set; + } + + /// + /// Cookie Priority. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("priority")] + public CefSharp.DevTools.Network.CookiePriority? Priority + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Authorization challenge for HTTP status code 401 or 407. + /// + public class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Source of the authentication challenge. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("source")] + public string Source + { + get; + set; + } + + /// + /// Origin of the challenger. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Origin + { + get; + set; + } + + /// + /// The authentication scheme used, such as basic or digest + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scheme")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Scheme + { + get; + set; + } + + /// + /// The realm of the challenge. May be empty. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("realm")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Realm + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Response to an AuthChallenge. + /// + public class AuthChallengeResponse : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The decision on what to do in response to the authorization challenge. Default means + /// deferring to the default behavior of the net stack, which will likely either the Cancel + /// authentication or display a popup dialog box. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Response + { + get; + set; + } + + /// + /// The username to provide, possibly empty. Should only be set if response is + /// ProvideCredentials. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("username")] + public string Username + { + get; + set; + } + + /// + /// The password to provide, possibly empty. Should only be set if response is + /// ProvideCredentials. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("password")] + public string Password + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Stages of the interception to begin intercepting. Request will intercept before the request is + /// sent. Response will intercept after the response is received. + /// + public enum InterceptionStage + { + /// + /// Request + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Request")] + Request, + /// + /// HeadersReceived + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("HeadersReceived")] + HeadersReceived + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Request pattern for interception. + /// + public class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is + /// backslash. Omitting is equivalent to "*". + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("urlPattern")] + public string UrlPattern + { + get; + set; + } + + /// + /// If set, only requests for matching resource types will be intercepted. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceType")] + public CefSharp.DevTools.Network.ResourceType? ResourceType + { + get; + set; + } + + /// + /// Stage at wich to begin intercepting requests. Default is Request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("interceptionStage")] + public CefSharp.DevTools.Network.InterceptionStage? InterceptionStage + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Information about a signed exchange signature. + /// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1 + /// + public class SignedExchangeSignature : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Signed exchange signature label. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("label")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Label + { + get; + set; + } + + /// + /// The hex string of signed exchange signature. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signature")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Signature + { + get; + set; + } + + /// + /// Signed exchange signature integrity. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("integrity")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Integrity + { + get; + set; + } + + /// + /// Signed exchange signature cert Url. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("certUrl")] + public string CertUrl + { + get; + set; + } + + /// + /// The hex string of signed exchange signature cert sha256. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("certSha256")] + public string CertSha256 + { + get; + set; + } + + /// + /// Signed exchange signature validity Url. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("validityUrl")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ValidityUrl + { + get; + set; + } + + /// + /// Signed exchange signature date. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("date")] + public int Date + { + get; + set; + } + + /// + /// Signed exchange signature expires. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("expires")] + public int Expires + { + get; + set; + } + + /// + /// The encoded certificates. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificates")] + public string[] Certificates + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Information about a signed exchange header. + /// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation + /// + public class SignedExchangeHeader : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Signed exchange request URL. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestUrl")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestUrl + { + get; + set; + } + + /// + /// Signed exchange response code. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseCode")] + public int ResponseCode + { + get; + set; + } + + /// + /// Signed exchange response headers. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseHeaders")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Headers ResponseHeaders + { + get; + set; + } + + /// + /// Signed exchange response signature. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatures")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Signatures + { + get; + set; + } + + /// + /// Signed exchange header integrity hash in the form of "sha256-<base64-hash-value> ". + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("headerIntegrity")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string HeaderIntegrity + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Field type for a signed exchange related error. + /// + public enum SignedExchangeErrorField + { + /// + /// signatureSig + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureSig")] + SignatureSig, + /// + /// signatureIntegrity + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureIntegrity")] + SignatureIntegrity, + /// + /// signatureCertUrl + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureCertUrl")] + SignatureCertUrl, + /// + /// signatureCertSha256 + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureCertSha256")] + SignatureCertSha256, + /// + /// signatureValidityUrl + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureValidityUrl")] + SignatureValidityUrl, + /// + /// signatureTimestamps + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureTimestamps")] + SignatureTimestamps + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Information about a signed exchange response. + /// + public class SignedExchangeError : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Error message. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Message + { + get; + set; + } + + /// + /// The index of the signature which caused the error. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureIndex")] + public int? SignatureIndex + { + get; + set; + } + + /// + /// The field which caused the error. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorField")] + public CefSharp.DevTools.Network.SignedExchangeErrorField? ErrorField + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// Information about a signed exchange response. + /// + public class SignedExchangeInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The outer response of signed HTTP exchange which was received from network. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("outerResponse")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Response OuterResponse + { + get; + set; + } + + /// + /// Information about the signed exchange header. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("header")] + public CefSharp.DevTools.Network.SignedExchangeHeader Header + { + get; + set; + } + + /// + /// Security details for the signed exchange header. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityDetails")] + public CefSharp.DevTools.Network.SecurityDetails SecurityDetails + { + get; + set; + } + + /// + /// Errors occurred while handling the signed exchagne. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errors")] + public System.Collections.Generic.IList Errors + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// CrossOriginOpenerPolicyValue + /// + public enum CrossOriginOpenerPolicyValue + { + /// + /// SameOrigin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameOrigin")] + SameOrigin, + /// + /// SameOriginAllowPopups + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameOriginAllowPopups")] + SameOriginAllowPopups, + /// + /// UnsafeNone + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnsafeNone")] + UnsafeNone, + /// + /// SameOriginPlusCoep + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameOriginPlusCoep")] + SameOriginPlusCoep + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// CrossOriginOpenerPolicyStatus + /// + public class CrossOriginOpenerPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue Value + { + get; + set; + } + + /// + /// ReportOnlyValue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportOnlyValue")] + public CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue ReportOnlyValue + { + get; + set; + } + + /// + /// ReportingEndpoint + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportingEndpoint")] + public string ReportingEndpoint + { + get; + set; + } + + /// + /// ReportOnlyReportingEndpoint + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportOnlyReportingEndpoint")] + public string ReportOnlyReportingEndpoint + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// CrossOriginEmbedderPolicyValue + /// + public enum CrossOriginEmbedderPolicyValue + { + /// + /// None + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("None")] + None, + /// + /// RequireCorp + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequireCorp")] + RequireCorp + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// CrossOriginEmbedderPolicyStatus + /// + public class CrossOriginEmbedderPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue Value + { + get; + set; + } + + /// + /// ReportOnlyValue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportOnlyValue")] + public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue ReportOnlyValue + { + get; + set; + } + + /// + /// ReportingEndpoint + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportingEndpoint")] + public string ReportingEndpoint + { + get; + set; + } + + /// + /// ReportOnlyReportingEndpoint + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportOnlyReportingEndpoint")] + public string ReportOnlyReportingEndpoint + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// SecurityIsolationStatus + /// + public class SecurityIsolationStatus : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Coop + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("coop")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.CrossOriginOpenerPolicyStatus Coop + { + get; + set; + } + + /// + /// Coep + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("coep")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyStatus Coep + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// An object providing the result of a network resource load. + /// + public class LoadNetworkResourcePageResult : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Success + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("success")] + public bool Success + { + get; + set; + } + + /// + /// Optional values used for error reporting. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("netError")] + public long? NetError + { + get; + set; + } + + /// + /// NetErrorName + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("netErrorName")] + public string NetErrorName + { + get; + set; + } + + /// + /// HttpStatusCode + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("httpStatusCode")] + public long? HttpStatusCode + { + get; + set; + } + + /// + /// If successful, one of the following two fields holds the result. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stream")] + public string Stream + { + get; + set; + } + + /// + /// Response headers. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + 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. + /// + public class LoadNetworkResourceOptions : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// DisableCache + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("disableCache")] + public bool DisableCache + { + get; + set; + } + + /// + /// IncludeCredentials + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("includeCredentials")] + public bool IncludeCredentials + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Overlay +{ + /// + /// Configuration data for drawing the source order of an elements children. + /// + public class SourceOrderConfig : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// the color to outline the givent element in. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentOutlineColor")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOM.RGBA ParentOutlineColor + { + get; + set; + } + + /// + /// the color to outline the child elements in. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("childOutlineColor")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOM.RGBA ChildOutlineColor + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Overlay +{ + /// + /// Configuration data for the highlighting of Grid elements. + /// + public class GridHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Whether the extension lines from grid cells to the rulers should be shown (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("showGridExtensionLines")] + public bool? ShowGridExtensionLines + { + get; + set; + } + + /// + /// Show Positive line number labels (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("showPositiveLineNumbers")] + public bool? ShowPositiveLineNumbers + { + get; + set; + } + + /// + /// Show Negative line number labels (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("showNegativeLineNumbers")] + public bool? ShowNegativeLineNumbers + { + get; + set; + } + + /// + /// Show area name labels (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("showAreaNames")] + public bool? ShowAreaNames + { + get; + set; + } + + /// + /// Show line name labels (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("showLineNames")] + public bool? ShowLineNames + { + get; + set; + } + + /// + /// Show track size labels (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("showTrackSizes")] + public bool? ShowTrackSizes + { + get; + set; + } + + /// + /// The grid container border highlight color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("gridBorderColor")] + public CefSharp.DevTools.DOM.RGBA GridBorderColor + { + get; + set; + } + + /// + /// The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cellBorderColor")] + public CefSharp.DevTools.DOM.RGBA CellBorderColor + { + get; + set; + } + + /// + /// The row line color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rowLineColor")] + public CefSharp.DevTools.DOM.RGBA RowLineColor + { + get; + set; + } + + /// + /// The column line color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnLineColor")] + public CefSharp.DevTools.DOM.RGBA ColumnLineColor + { + get; + set; + } + + /// + /// Whether the grid border is dashed (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("gridBorderDash")] + public bool? GridBorderDash + { + get; + set; + } + + /// + /// Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cellBorderDash")] + public bool? CellBorderDash + { + get; + set; + } + + /// + /// Whether row lines are dashed (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rowLineDash")] + public bool? RowLineDash + { + get; + set; + } + + /// + /// Whether column lines are dashed (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnLineDash")] + public bool? ColumnLineDash + { + get; + set; + } + + /// + /// The row gap highlight fill color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rowGapColor")] + public CefSharp.DevTools.DOM.RGBA RowGapColor + { + get; + set; + } + + /// + /// The row gap hatching fill color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rowHatchColor")] + public CefSharp.DevTools.DOM.RGBA RowHatchColor + { + get; + set; + } + + /// + /// The column gap highlight fill color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnGapColor")] + public CefSharp.DevTools.DOM.RGBA ColumnGapColor + { + get; + set; + } + + /// + /// The column gap hatching fill color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnHatchColor")] + public CefSharp.DevTools.DOM.RGBA ColumnHatchColor + { + get; + set; + } + + /// + /// The named grid areas border color (Default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("areaBorderColor")] + public CefSharp.DevTools.DOM.RGBA AreaBorderColor + { + get; + set; + } + + /// + /// The grid container background color (Default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("gridBackgroundColor")] + public CefSharp.DevTools.DOM.RGBA GridBackgroundColor + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Overlay +{ + /// + /// Configuration data for the highlighting of page elements. + /// + public class HighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Whether the node info tooltip should be shown (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("showInfo")] + public bool? ShowInfo + { + get; + set; + } + + /// + /// Whether the node styles in the tooltip (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("showStyles")] + public bool? ShowStyles + { + get; + set; + } + + /// + /// Whether the rulers should be shown (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("showRulers")] + public bool? ShowRulers + { + get; + set; + } + + /// + /// Whether the a11y info should be shown (default: true). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("showAccessibilityInfo")] + public bool? ShowAccessibilityInfo + { + get; + set; + } + + /// + /// Whether the extension lines from node to the rulers should be shown (default: false). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("showExtensionLines")] + public bool? ShowExtensionLines + { + get; + set; + } + + /// + /// The content box highlight fill color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentColor")] + public CefSharp.DevTools.DOM.RGBA ContentColor + { + get; + set; + } + + /// + /// The padding highlight fill color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("paddingColor")] + public CefSharp.DevTools.DOM.RGBA PaddingColor + { + get; + set; + } + + /// + /// The border highlight fill color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("borderColor")] + public CefSharp.DevTools.DOM.RGBA BorderColor + { + get; + set; + } + + /// + /// The margin highlight fill color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("marginColor")] + public CefSharp.DevTools.DOM.RGBA MarginColor + { + get; + set; + } + + /// + /// The event target element highlight fill color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventTargetColor")] + public CefSharp.DevTools.DOM.RGBA EventTargetColor + { + get; + set; + } + + /// + /// The shape outside fill color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shapeColor")] + public CefSharp.DevTools.DOM.RGBA ShapeColor + { + get; + set; + } + + /// + /// The shape margin fill color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shapeMarginColor")] + public CefSharp.DevTools.DOM.RGBA ShapeMarginColor + { + get; + set; + } + + /// + /// The grid layout color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssGridColor")] + public CefSharp.DevTools.DOM.RGBA CssGridColor + { + get; + set; + } + + /// + /// The color format used to format color styles (default: hex). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("colorFormat")] + public CefSharp.DevTools.Overlay.ColorFormat? ColorFormat + { + get; + set; + } + + /// + /// The grid layout highlight configuration (default: all transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("gridHighlightConfig")] + public CefSharp.DevTools.Overlay.GridHighlightConfig GridHighlightConfig + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Overlay +{ + /// + /// ColorFormat + /// + public enum ColorFormat + { + /// + /// rgb + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rgb")] + Rgb, + /// + /// hsl + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hsl")] + Hsl, + /// + /// hex + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hex")] + Hex + } +} + +namespace CefSharp.DevTools.Overlay +{ + /// + /// Configurations for Persistent Grid Highlight + /// + public class GridNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// A descriptor for the highlight appearance. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("gridHighlightConfig")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Overlay.GridHighlightConfig GridHighlightConfig + { + get; + set; + } + + /// + /// Identifier of the node to highlight. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Overlay +{ + /// + /// Configuration for dual screen hinge + /// + public class HingeConfig : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// A rectangle represent hinge + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rect")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOM.Rect Rect + { + get; + set; + } + + /// + /// The content box highlight fill color (default: a dark color). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentColor")] + public CefSharp.DevTools.DOM.RGBA ContentColor + { + get; + set; + } + + /// + /// The content box highlight outline color (default: transparent). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("outlineColor")] + public CefSharp.DevTools.DOM.RGBA OutlineColor + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Overlay +{ + /// + /// InspectMode + /// + public enum InspectMode + { + /// + /// searchForNode + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("searchForNode")] + SearchForNode, + /// + /// searchForUAShadowDOM + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("searchForUAShadowDOM")] + SearchForUAShadowDOM, + /// + /// captureAreaScreenshot + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("captureAreaScreenshot")] + CaptureAreaScreenshot, + /// + /// showDistances + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("showDistances")] + ShowDistances, + /// + /// none + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + None + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Indicates whether a frame has been identified as an ad. + /// + public enum AdFrameType + { + /// + /// none + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + None, + /// + /// child + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("child")] + Child, + /// + /// root + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("root")] + Root + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Indicates whether the frame is a secure context and why it is the case. + /// + public enum SecureContextType + { + /// + /// Secure + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Secure")] + Secure, + /// + /// SecureLocalhost + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SecureLocalhost")] + SecureLocalhost, + /// + /// InsecureScheme + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InsecureScheme")] + InsecureScheme, + /// + /// InsecureAncestor + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InsecureAncestor")] + InsecureAncestor + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Indicates whether the frame is cross-origin isolated and why it is the case. + /// + public enum CrossOriginIsolatedContextType + { + /// + /// Isolated + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Isolated")] + Isolated, + /// + /// NotIsolated + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotIsolated")] + NotIsolated, + /// + /// NotIsolatedFeatureDisabled + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotIsolatedFeatureDisabled")] + NotIsolatedFeatureDisabled + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Information about the Frame on the page. + /// + public class Frame : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Frame unique identifier. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + set; + } + + /// + /// Parent frame identifier. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + public string ParentId + { + get; + set; + } + + /// + /// Identifier of the loader associated with this frame. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaderId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LoaderId + { + get; + set; + } + + /// + /// Frame's name as specified in the tag. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + public string Name + { + get; + set; + } + + /// + /// Frame document's URL without fragment. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// Frame document's URL fragment including the '#'. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("urlFragment")] + public string UrlFragment + { + get; + set; + } + + /// + /// Frame document's registered domain, taking the public suffixes list into account. + /// Extracted from the Frame's url. + /// Example URLs: http://www.google.com/file.html -> "google.com" + /// http://a.b.co.uk/file.html -> "b.co.uk" + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("domainAndRegistry")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string DomainAndRegistry + { + get; + set; + } + + /// + /// Frame document's security origin. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityOrigin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SecurityOrigin + { + get; + set; + } + + /// + /// Frame document's mimeType as determined by the browser. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mimeType")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string MimeType + { + get; + set; + } + + /// + /// If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("unreachableUrl")] + public string UnreachableUrl + { + get; + set; + } + + /// + /// Indicates whether this frame was tagged as an ad. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("adFrameType")] + public CefSharp.DevTools.Page.AdFrameType? AdFrameType + { + get; + set; + } + + /// + /// Indicates whether the main document is a secure context and explains why that is the case. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("secureContextType")] + public CefSharp.DevTools.Page.SecureContextType SecureContextType + { + get; + set; + } + + /// + /// Indicates whether this is a cross origin isolated context. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("crossOriginIsolatedContextType")] + public CefSharp.DevTools.Page.CrossOriginIsolatedContextType CrossOriginIsolatedContextType + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Information about the Resource on the page. + /// + public class FrameResource : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Resource URL. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// Type of this resource. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public CefSharp.DevTools.Network.ResourceType Type + { + get; + set; + } + + /// + /// Resource mimeType as determined by the browser. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mimeType")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string MimeType + { + get; + set; + } + + /// + /// last-modified timestamp as reported by server. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lastModified")] + public long? LastModified + { + get; + set; + } + + /// + /// Resource content size. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentSize")] + public long? ContentSize + { + get; + set; + } + + /// + /// True if the resource failed to load. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("failed")] + public bool? Failed + { + get; + set; + } + + /// + /// True if the resource was canceled during loading. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("canceled")] + public bool? Canceled + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Information about the Frame hierarchy along with their cached resources. + /// + public class FrameResourceTree : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Frame information for this tree item. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Page.Frame Frame + { + get; + set; + } + + /// + /// Child frames. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("childFrames")] + public System.Collections.Generic.IList ChildFrames + { + get; + set; + } + + /// + /// Information about frame resources. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resources")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Resources + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Information about the Frame hierarchy. + /// + public class FrameTree : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Frame information for this tree item. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Page.Frame Frame + { + get; + set; + } + + /// + /// Child frames. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("childFrames")] + public System.Collections.Generic.IList ChildFrames + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Transition type. + /// + public enum TransitionType + { + /// + /// link + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("link")] + Link, + /// + /// typed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("typed")] + Typed, + /// + /// address_bar + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("address_bar")] + AddressBar, + /// + /// auto_bookmark + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("auto_bookmark")] + AutoBookmark, + /// + /// auto_subframe + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("auto_subframe")] + AutoSubframe, + /// + /// manual_subframe + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("manual_subframe")] + ManualSubframe, + /// + /// generated + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("generated")] + Generated, + /// + /// auto_toplevel + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("auto_toplevel")] + AutoToplevel, + /// + /// form_submit + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("form_submit")] + FormSubmit, + /// + /// reload + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reload")] + Reload, + /// + /// keyword + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyword")] + Keyword, + /// + /// keyword_generated + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyword_generated")] + KeywordGenerated, + /// + /// other + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + Other + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Navigation history entry. + /// + public class NavigationEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Unique id of the navigation history entry. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + public int Id + { + get; + set; + } + + /// + /// URL of the navigation history entry. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// URL that the user typed in the url bar. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("userTypedURL")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string UserTypedURL + { + get; + set; + } + + /// + /// Title of the navigation history entry. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Title + { + get; + set; + } + + /// + /// Transition type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("transitionType")] + public CefSharp.DevTools.Page.TransitionType TransitionType + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Screencast frame metadata. + /// + public class ScreencastFrameMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Top offset in DIP. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetTop")] + public long OffsetTop + { + get; + set; + } + + /// + /// Page scale factor. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageScaleFactor")] + public long PageScaleFactor + { + get; + set; + } + + /// + /// Device screen width in DIP. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("deviceWidth")] + public long DeviceWidth + { + get; + set; + } + + /// + /// Device screen height in DIP. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("deviceHeight")] + public long DeviceHeight + { + get; + set; + } + + /// + /// Position of horizontal scroll in CSS pixels. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetX")] + public long ScrollOffsetX + { + get; + set; + } + + /// + /// Position of vertical scroll in CSS pixels. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetY")] + public long ScrollOffsetY + { + get; + set; + } + + /// + /// Frame swap timestamp. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public long? Timestamp + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Javascript dialog type. + /// + public enum DialogType + { + /// + /// alert + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("alert")] + Alert, + /// + /// confirm + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("confirm")] + Confirm, + /// + /// prompt + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("prompt")] + Prompt, + /// + /// beforeunload + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("beforeunload")] + Beforeunload + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Error while paring app manifest. + /// + public class AppManifestError : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Error message. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Message + { + get; + set; + } + + /// + /// If criticial, this is a non-recoverable parse error. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("critical")] + public int Critical + { + get; + set; + } + + /// + /// Error line. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("line")] + public int Line + { + get; + set; + } + + /// + /// Error column. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("column")] + public int Column + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Parsed app manifest properties. + /// + public class AppManifestParsedProperties : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Computed scope value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scope")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Scope + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Layout viewport position and dimensions. + /// + public class LayoutViewport : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Horizontal offset relative to the document (CSS pixels). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageX")] + public int PageX + { + get; + set; + } + + /// + /// Vertical offset relative to the document (CSS pixels). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageY")] + public int PageY + { + get; + set; + } + + /// + /// Width (CSS pixels), excludes scrollbar if present. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientWidth")] + public int ClientWidth + { + get; + set; + } + + /// + /// Height (CSS pixels), excludes scrollbar if present. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientHeight")] + public int ClientHeight + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Visual viewport position, dimensions, and scale. + /// + public class VisualViewport : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Horizontal offset relative to the layout viewport (CSS pixels). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetX")] + public long OffsetX + { + get; + set; + } + + /// + /// Vertical offset relative to the layout viewport (CSS pixels). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetY")] + public long OffsetY + { + get; + set; + } + + /// + /// Horizontal offset relative to the document (CSS pixels). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageX")] + public long PageX + { + get; + set; + } + + /// + /// Vertical offset relative to the document (CSS pixels). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageY")] + public long PageY + { + get; + set; + } + + /// + /// Width (CSS pixels), excludes scrollbar if present. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientWidth")] + public long ClientWidth + { + get; + set; + } + + /// + /// Height (CSS pixels), excludes scrollbar if present. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientHeight")] + public long ClientHeight + { + get; + set; + } + + /// + /// Scale relative to the ideal viewport (size at width=device-width). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scale")] + public long Scale + { + get; + set; + } + + /// + /// Page zoom factor (CSS to device independent pixels ratio). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("zoom")] + public long? Zoom + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Viewport for capturing screenshot. + /// + public class Viewport : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// X offset in device independent pixels (dip). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("x")] + public long X + { + get; + set; + } + + /// + /// Y offset in device independent pixels (dip). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("y")] + public long Y + { + get; + set; + } + + /// + /// Rectangle width in device independent pixels (dip). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] + public long Width + { + get; + set; + } + + /// + /// Rectangle height in device independent pixels (dip). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] + public long Height + { + get; + set; + } + + /// + /// Page scale factor. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scale")] + public long Scale + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Generic font families collection. + /// + public class FontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The standard font-family. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("standard")] + public string Standard + { + get; + set; + } + + /// + /// The fixed font-family. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fixed")] + public string Fixed + { + get; + set; + } + + /// + /// The serif font-family. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("serif")] + public string Serif + { + get; + set; + } + + /// + /// The sansSerif font-family. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sansSerif")] + public string SansSerif + { + get; + set; + } + + /// + /// The cursive font-family. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cursive")] + public string Cursive + { + get; + set; + } + + /// + /// The fantasy font-family. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fantasy")] + public string Fantasy + { + get; + set; + } + + /// + /// The pictograph font-family. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pictograph")] + public string Pictograph + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// Default font sizes. + /// + public class FontSizes : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Default standard font size. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("standard")] + public int? Standard + { + get; + set; + } + + /// + /// Default fixed font size. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fixed")] + public int? Fixed + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// ClientNavigationReason + /// + public enum ClientNavigationReason + { + /// + /// formSubmissionGet + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("formSubmissionGet")] + FormSubmissionGet, + /// + /// formSubmissionPost + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("formSubmissionPost")] + FormSubmissionPost, + /// + /// httpHeaderRefresh + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("httpHeaderRefresh")] + HttpHeaderRefresh, + /// + /// scriptInitiated + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptInitiated")] + ScriptInitiated, + /// + /// metaTagRefresh + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("metaTagRefresh")] + MetaTagRefresh, + /// + /// pageBlockInterstitial + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageBlockInterstitial")] + PageBlockInterstitial, + /// + /// reload + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reload")] + Reload, + /// + /// anchorClick + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("anchorClick")] + AnchorClick + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// ClientNavigationDisposition + /// + public enum ClientNavigationDisposition + { + /// + /// currentTab + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentTab")] + CurrentTab, + /// + /// newTab + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("newTab")] + NewTab, + /// + /// newWindow + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("newWindow")] + NewWindow, + /// + /// download + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("download")] + Download + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// InstallabilityErrorArgument + /// + public class InstallabilityErrorArgument : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Argument name (e.g. name:'minimum-icon-size-in-pixels'). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Argument value (e.g. value:'64'). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// The installability error + /// + public class InstallabilityError : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The error id (e.g. 'manifest-missing-suitable-icon'). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ErrorId + { + get; + set; + } + + /// + /// The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorArguments")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList ErrorArguments + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// The referring-policy used for the navigation. + /// + public enum ReferrerPolicy + { + /// + /// noReferrer + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("noReferrer")] + NoReferrer, + /// + /// noReferrerWhenDowngrade + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("noReferrerWhenDowngrade")] + NoReferrerWhenDowngrade, + /// + /// origin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + Origin, + /// + /// originWhenCrossOrigin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("originWhenCrossOrigin")] + OriginWhenCrossOrigin, + /// + /// sameOrigin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sameOrigin")] + SameOrigin, + /// + /// strictOrigin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("strictOrigin")] + StrictOrigin, + /// + /// strictOriginWhenCrossOrigin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("strictOriginWhenCrossOrigin")] + StrictOriginWhenCrossOrigin, + /// + /// unsafeUrl + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("unsafeUrl")] + UnsafeUrl + } +} + +namespace CefSharp.DevTools.Performance +{ + /// + /// Run-time execution metric. + /// + public class Metric : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Metric name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Metric value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public long Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Security +{ + /// + /// A description of mixed content (HTTP resources on HTTPS pages), as defined by + /// https://www.w3.org/TR/mixed-content/#categories + /// + public enum MixedContentType + { + /// + /// blockable + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockable")] + Blockable, + /// + /// optionally-blockable + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("optionally-blockable")] + OptionallyBlockable, + /// + /// none + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + None + } +} + +namespace CefSharp.DevTools.Security +{ + /// + /// The security level of a page or resource. + /// + public enum SecurityState + { + /// + /// unknown + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("unknown")] + Unknown, + /// + /// neutral + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("neutral")] + Neutral, + /// + /// insecure + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("insecure")] + Insecure, + /// + /// secure + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("secure")] + Secure, + /// + /// info + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("info")] + Info, + /// + /// insecure-broken + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("insecure-broken")] + InsecureBroken + } +} + +namespace CefSharp.DevTools.Security +{ + /// + /// Details about the security state of the page certificate. + /// + public class CertificateSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Protocol name (e.g. "TLS 1.2" or "QUIC"). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("protocol")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Protocol + { + get; + set; + } + + /// + /// Key Exchange used by the connection, or the empty string if not applicable. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyExchange")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string KeyExchange + { + get; + set; + } + + /// + /// (EC)DH group used by the connection, if applicable. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyExchangeGroup")] + public string KeyExchangeGroup + { + get; + set; + } + + /// + /// Cipher name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cipher")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Cipher + { + get; + set; + } + + /// + /// TLS MAC. Note that AEAD ciphers do not have separate MACs. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mac")] + public string Mac + { + get; + set; + } + + /// + /// Page certificate. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificate")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] Certificate + { + get; + set; + } + + /// + /// Certificate subject name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("subjectName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SubjectName + { + get; + set; + } + + /// + /// Name of the issuing CA. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("issuer")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Issuer + { + get; + set; + } + + /// + /// Certificate valid from date. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("validFrom")] + public long ValidFrom + { + get; + set; + } + + /// + /// Certificate valid to (expiration) date + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("validTo")] + public long ValidTo + { + get; + set; + } + + /// + /// The highest priority network error code, if the certificate has an error. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificateNetworkError")] + public string CertificateNetworkError + { + get; + set; + } + + /// + /// True if the certificate uses a weak signature aglorithm. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificateHasWeakSignature")] + public bool CertificateHasWeakSignature + { + get; + set; + } + + /// + /// True if the certificate has a SHA1 signature in the chain. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificateHasSha1Signature")] + public bool CertificateHasSha1Signature + { + get; + set; + } + + /// + /// True if modern SSL + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("modernSSL")] + public bool ModernSSL + { + get; + set; + } + + /// + /// True if the connection is using an obsolete SSL protocol. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("obsoleteSslProtocol")] + public bool ObsoleteSslProtocol + { + get; + set; + } + + /// + /// True if the connection is using an obsolete SSL key exchange. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("obsoleteSslKeyExchange")] + public bool ObsoleteSslKeyExchange + { + get; + set; + } + + /// + /// True if the connection is using an obsolete SSL cipher. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("obsoleteSslCipher")] + public bool ObsoleteSslCipher + { + get; + set; + } + + /// + /// True if the connection is using an obsolete SSL signature. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("obsoleteSslSignature")] + public bool ObsoleteSslSignature + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Security +{ + /// + /// SafetyTipStatus + /// + public enum SafetyTipStatus + { + /// + /// badReputation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("badReputation")] + BadReputation, + /// + /// lookalike + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lookalike")] + Lookalike + } +} + +namespace CefSharp.DevTools.Security +{ + /// + /// SafetyTipInfo + /// + public class SafetyTipInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Describes whether the page triggers any safety tips or reputation warnings. Default is unknown. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("safetyTipStatus")] + public CefSharp.DevTools.Security.SafetyTipStatus SafetyTipStatus + { + get; + set; + } + + /// + /// The URL the safety tip suggested ("Did you mean?"). Only filled in for lookalike matches. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("safeUrl")] + public string SafeUrl + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Security +{ + /// + /// Security state information about the page. + /// + public class VisibleSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The security level of the page. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityState")] + public CefSharp.DevTools.Security.SecurityState SecurityState + { + get; + set; + } + + /// + /// Security state details about the page certificate. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificateSecurityState")] + public CefSharp.DevTools.Security.CertificateSecurityState CertificateSecurityState + { + get; + set; + } + + /// + /// The type of Safety Tip triggered on the page. Note that this field will be set even if the Safety Tip UI was not actually shown. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("safetyTipInfo")] + public CefSharp.DevTools.Security.SafetyTipInfo SafetyTipInfo + { + get; + set; + } + + /// + /// Array of security state issues ids. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityStateIssueIds")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] SecurityStateIssueIds + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Security +{ + /// + /// An explanation of an factor contributing to the security state. + /// + public class SecurityStateExplanation : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Security state representing the severity of the factor being explained. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityState")] + public CefSharp.DevTools.Security.SecurityState SecurityState + { + get; + set; + } + + /// + /// Title describing the type of factor. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Title + { + get; + set; + } + + /// + /// Short phrase describing the type of factor. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("summary")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Summary + { + get; + set; + } + + /// + /// Full text explanation of the factor. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("description")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Description + { + get; + set; + } + + /// + /// The type of mixed content described by the explanation. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mixedContentType")] + public CefSharp.DevTools.Security.MixedContentType MixedContentType + { + get; + set; + } + + /// + /// Page certificate. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificate")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] Certificate + { + get; + set; + } + + /// + /// Recommendations to fix any issues. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("recommendations")] + public string[] Recommendations + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Security +{ + /// + /// Information about insecure content on the page. + /// + public class InsecureContentStatus : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Always false. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ranMixedContent")] + public bool RanMixedContent + { + get; + set; + } + + /// + /// Always false. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("displayedMixedContent")] + public bool DisplayedMixedContent + { + get; + set; + } + + /// + /// Always false. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("containedMixedForm")] + public bool ContainedMixedForm + { + get; + set; + } + + /// + /// Always false. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ranContentWithCertErrors")] + public bool RanContentWithCertErrors + { + get; + set; + } + + /// + /// Always false. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("displayedContentWithCertErrors")] + public bool DisplayedContentWithCertErrors + { + get; + set; + } + + /// + /// Always set to unknown. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ranInsecureContentStyle")] + public CefSharp.DevTools.Security.SecurityState RanInsecureContentStyle + { + get; + set; + } + + /// + /// Always set to unknown. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("displayedInsecureContentStyle")] + public CefSharp.DevTools.Security.SecurityState DisplayedInsecureContentStyle + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Security +{ + /// + /// The action to take when a certificate error occurs. continue will continue processing the + /// request and cancel will cancel the request. + /// + public enum CertificateErrorAction + { + /// + /// continue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("continue")] + Continue, + /// + /// cancel + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cancel")] + Cancel + } +} + +namespace CefSharp.DevTools.ServiceWorker +{ + /// + /// ServiceWorker registration. + /// + public class ServiceWorkerRegistration : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// RegistrationId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("registrationId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RegistrationId + { + get; + set; + } + + /// + /// ScopeURL + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scopeURL")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ScopeURL + { + get; + set; + } + + /// + /// IsDeleted + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isDeleted")] + public bool IsDeleted + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.ServiceWorker +{ + /// + /// ServiceWorkerVersionRunningStatus + /// + public enum ServiceWorkerVersionRunningStatus + { + /// + /// stopped + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stopped")] + Stopped, + /// + /// starting + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("starting")] + Starting, + /// + /// running + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("running")] + Running, + /// + /// stopping + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stopping")] + Stopping + } +} + +namespace CefSharp.DevTools.ServiceWorker +{ + /// + /// ServiceWorkerVersionStatus + /// + public enum ServiceWorkerVersionStatus + { + /// + /// new + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("new")] + New, + /// + /// installing + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("installing")] + Installing, + /// + /// installed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("installed")] + Installed, + /// + /// activating + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("activating")] + Activating, + /// + /// activated + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("activated")] + Activated, + /// + /// redundant + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("redundant")] + Redundant + } +} + +namespace CefSharp.DevTools.ServiceWorker +{ + /// + /// ServiceWorker version. + /// + public class ServiceWorkerVersion : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// VersionId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("versionId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string VersionId + { + get; + set; + } + + /// + /// RegistrationId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("registrationId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RegistrationId + { + get; + set; + } + + /// + /// ScriptURL + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptURL")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ScriptURL + { + get; + set; + } + + /// + /// RunningStatus + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("runningStatus")] + public CefSharp.DevTools.ServiceWorker.ServiceWorkerVersionRunningStatus RunningStatus + { + get; + set; + } + + /// + /// Status + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + public CefSharp.DevTools.ServiceWorker.ServiceWorkerVersionStatus Status + { + get; + set; + } + + /// + /// The Last-Modified header value of the main script. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptLastModified")] + public long? ScriptLastModified + { + get; + set; + } + + /// + /// The time at which the response headers of the main script were received from the server. + /// For cached script it is the last time the cache entry was validated. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptResponseTime")] + public long? ScriptResponseTime + { + get; + set; + } + + /// + /// ControlledClients + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("controlledClients")] + public string[] ControlledClients + { + get; + set; + } + + /// + /// TargetId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + public string TargetId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.ServiceWorker +{ + /// + /// ServiceWorker error message. + /// + public class ServiceWorkerErrorMessage : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// ErrorMessage + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorMessage")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ErrorMessage + { + get; + set; + } + + /// + /// RegistrationId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("registrationId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RegistrationId + { + get; + set; + } + + /// + /// VersionId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("versionId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string VersionId + { + get; + set; + } + + /// + /// SourceURL + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceURL")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SourceURL + { + get; + set; + } + + /// + /// LineNumber + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + public int LineNumber + { + get; + set; + } + + /// + /// ColumnNumber + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + public int ColumnNumber + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Storage +{ + /// + /// Enum of possible storage types. + /// + public enum StorageType + { + /// + /// appcache + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("appcache")] + Appcache, + /// + /// cookies + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookies")] + Cookies, + /// + /// file_systems + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("file_systems")] + FileSystems, + /// + /// indexeddb + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("indexeddb")] + Indexeddb, + /// + /// local_storage + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("local_storage")] + LocalStorage, + /// + /// shader_cache + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shader_cache")] + ShaderCache, + /// + /// websql + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("websql")] + Websql, + /// + /// service_workers + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("service_workers")] + ServiceWorkers, + /// + /// cache_storage + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cache_storage")] + CacheStorage, + /// + /// all + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("all")] + All, + /// + /// other + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + Other + } +} + +namespace CefSharp.DevTools.Storage +{ + /// + /// Usage for a storage type. + /// + public class UsageForType : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name of storage type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageType")] + public CefSharp.DevTools.Storage.StorageType StorageType + { + get; + set; + } + + /// + /// Storage usage (bytes). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("usage")] + public long Usage + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// Describes a single graphics processor (GPU). + /// + public class GPUDevice : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// PCI ID of the GPU vendor, if available; 0 otherwise. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("vendorId")] + public long VendorId + { + get; + set; + } + + /// + /// PCI ID of the GPU device, if available; 0 otherwise. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("deviceId")] + public long DeviceId + { + get; + set; + } + + /// + /// Sub sys ID of the GPU, only available on Windows. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("subSysId")] + public long? SubSysId + { + get; + set; + } + + /// + /// Revision of the GPU, only available on Windows. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("revision")] + public long? Revision + { + get; + set; + } + + /// + /// String description of the GPU vendor, if the PCI ID is not available. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("vendorString")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string VendorString + { + get; + set; + } + + /// + /// String description of the GPU device, if the PCI ID is not available. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("deviceString")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string DeviceString + { + get; + set; + } + + /// + /// String description of the GPU driver vendor. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("driverVendor")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string DriverVendor + { + get; + set; + } + + /// + /// String description of the GPU driver version. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("driverVersion")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string DriverVersion + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// Describes the width and height dimensions of an entity. + /// + public class Size : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Width in pixels. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] + public int Width + { + get; + set; + } + + /// + /// Height in pixels. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] + public int Height + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// Describes a supported video decoding profile with its associated minimum and + /// maximum resolutions. + /// + public class VideoDecodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Video codec profile that is supported, e.g. VP9 Profile 2. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Profile + { + get; + set; + } + + /// + /// Maximum video dimensions in pixels supported for this |profile|. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxResolution")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.SystemInfo.Size MaxResolution + { + get; + set; + } + + /// + /// Minimum video dimensions in pixels supported for this |profile|. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("minResolution")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.SystemInfo.Size MinResolution + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// Describes a supported video encoding profile with its associated maximum + /// resolution and maximum framerate. + /// + public class VideoEncodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Video codec profile that is supported, e.g H264 Main. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Profile + { + get; + set; + } + + /// + /// Maximum video dimensions in pixels supported for this |profile|. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxResolution")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.SystemInfo.Size MaxResolution + { + get; + set; + } + + /// + /// Maximum encoding framerate in frames per second supported for this + /// |profile|, as fraction's numerator and denominator, e.g. 24/1 fps, + /// 24000/1001 fps, etc. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxFramerateNumerator")] + public int MaxFramerateNumerator + { + get; + set; + } + + /// + /// MaxFramerateDenominator + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxFramerateDenominator")] + public int MaxFramerateDenominator + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// YUV subsampling type of the pixels of a given image. + /// + public enum SubsamplingFormat + { + /// + /// yuv420 + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("yuv420")] + Yuv420, + /// + /// yuv422 + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("yuv422")] + Yuv422, + /// + /// yuv444 + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("yuv444")] + Yuv444 + } +} + +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// Image format of a given image. + /// + public enum ImageType + { + /// + /// jpeg + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("jpeg")] + Jpeg, + /// + /// webp + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("webp")] + Webp, + /// + /// unknown + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("unknown")] + Unknown + } +} + +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// Describes a supported image decoding profile with its associated minimum and + /// maximum resolutions and subsampling. + /// + public class ImageDecodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Image coded, e.g. Jpeg. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("imageType")] + public CefSharp.DevTools.SystemInfo.ImageType ImageType + { + get; + set; + } + + /// + /// Maximum supported dimensions of the image in pixels. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxDimensions")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.SystemInfo.Size MaxDimensions + { + get; + set; + } + + /// + /// Minimum supported dimensions of the image in pixels. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("minDimensions")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.SystemInfo.Size MinDimensions + { + get; + set; + } + + /// + /// Optional array of supported subsampling formats, e.g. 4:2:0, if known. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("subsamplings")] + public CefSharp.DevTools.SystemInfo.SubsamplingFormat[] Subsamplings + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// Provides information about the GPU(s) on the system. + /// + public class GPUInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The graphics devices on the system. Element 0 is the primary GPU. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("devices")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Devices + { + get; + set; + } + + /// + /// An optional dictionary of additional GPU related attributes. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("auxAttributes")] + public object AuxAttributes + { + get; + set; + } + + /// + /// An optional dictionary of graphics features and their status. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("featureStatus")] + public object FeatureStatus + { + get; + set; + } + + /// + /// An optional array of GPU driver bug workarounds. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("driverBugWorkarounds")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] DriverBugWorkarounds + { + get; + set; + } + + /// + /// Supported accelerated video decoding capabilities. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("videoDecoding")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList VideoDecoding + { + get; + set; + } + + /// + /// Supported accelerated video encoding capabilities. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("videoEncoding")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList VideoEncoding + { + get; + set; + } + + /// + /// Supported accelerated image decoding capabilities. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("imageDecoding")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList ImageDecoding + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// Represents process info. + /// + public class ProcessInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Specifies process type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// Specifies process id. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + public int Id + { + get; + set; + } + + /// + /// Specifies cumulative CPU usage in seconds across all threads of the + /// process since the process start. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cpuTime")] + public long CpuTime + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Target +{ + /// + /// TargetInfo + /// + public class TargetInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// TargetId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string TargetId + { + get; + set; + } + + /// + /// Type + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// Title + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Title + { + get; + set; + } + + /// + /// Url + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// Whether the target has an attached client. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("attached")] + public bool Attached + { + get; + set; + } + + /// + /// Opener target Id + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("openerId")] + public string OpenerId + { + get; + set; + } + + /// + /// Whether the target has access to the originating window. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("canAccessOpener")] + public bool CanAccessOpener + { + get; + set; + } + + /// + /// Frame id of originating window (is only set if target has an opener). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("openerFrameId")] + public string OpenerFrameId + { + get; + set; + } + + /// + /// BrowserContextId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("browserContextId")] + public string BrowserContextId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Target +{ + /// + /// RemoteLocation + /// + public class RemoteLocation : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Host + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("host")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Host + { + get; + set; + } + + /// + /// Port + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("port")] + public int Port + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Tracing +{ + /// + /// TraceConfig + /// + public class TraceConfig : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Controls how the trace buffer stores data. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("recordMode")] + public string RecordMode + { + get; + set; + } + + /// + /// Turns on JavaScript stack sampling. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("enableSampling")] + public bool? EnableSampling + { + get; + set; + } + + /// + /// Turns on system tracing. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("enableSystrace")] + public bool? EnableSystrace + { + get; + set; + } + + /// + /// Turns on argument filter. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("enableArgumentFilter")] + public bool? EnableArgumentFilter + { + get; + set; + } + + /// + /// Included category filters. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("includedCategories")] + public string[] IncludedCategories + { + get; + set; + } + + /// + /// Excluded category filters. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("excludedCategories")] + public string[] ExcludedCategories + { + get; + set; + } + + /// + /// Configuration to synthesize the delays in tracing. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("syntheticDelays")] + public string[] SyntheticDelays + { + get; + set; + } + + /// + /// Configuration for memory dump triggers. Used only when "memory-infra" category is enabled. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("memoryDumpConfig")] + public CefSharp.DevTools.Tracing.MemoryDumpConfig MemoryDumpConfig + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Tracing +{ + /// + /// Data format of a trace. Can be either the legacy JSON format or the + /// protocol buffer format. Note that the JSON format will be deprecated soon. + /// + public enum StreamFormat + { + /// + /// json + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("json")] + Json, + /// + /// proto + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("proto")] + Proto + } +} + +namespace CefSharp.DevTools.Tracing +{ + /// + /// Compression type to use for traces returned via streams. + /// + public enum StreamCompression + { + /// + /// none + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + None, + /// + /// gzip + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("gzip")] + Gzip + } +} + +namespace CefSharp.DevTools.Fetch +{ + /// + /// Stages of the request to handle. Request will intercept before the request is + /// sent. Response will intercept after the response is received (but before response + /// body is received. + /// + public enum RequestStage + { + /// + /// Request + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Request")] + Request, + /// + /// Response + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Response")] + Response + } +} + +namespace CefSharp.DevTools.Fetch +{ + /// + /// RequestPattern + /// + public class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is + /// backslash. Omitting is equivalent to "*". + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("urlPattern")] + public string UrlPattern + { + get; + set; + } + + /// + /// If set, only requests for matching resource types will be intercepted. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceType")] + public CefSharp.DevTools.Network.ResourceType? ResourceType + { + get; + set; + } + + /// + /// Stage at wich to begin intercepting requests. Default is Request. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestStage")] + public CefSharp.DevTools.Fetch.RequestStage? RequestStage + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Fetch +{ + /// + /// Response HTTP header entry + /// + public class HeaderEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Fetch +{ + /// + /// Authorization challenge for HTTP status code 401 or 407. + /// + public class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Source of the authentication challenge. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("source")] + public string Source + { + get; + set; + } + + /// + /// Origin of the challenger. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Origin + { + get; + set; + } + + /// + /// The authentication scheme used, such as basic or digest + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scheme")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Scheme + { + get; + set; + } + + /// + /// The realm of the challenge. May be empty. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("realm")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Realm + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Fetch +{ + /// + /// Response to an AuthChallenge. + /// + public class AuthChallengeResponse : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The decision on what to do in response to the authorization challenge. Default means + /// deferring to the default behavior of the net stack, which will likely either the Cancel + /// authentication or display a popup dialog box. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Response + { + get; + set; + } + + /// + /// The username to provide, possibly empty. Should only be set if response is + /// ProvideCredentials. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("username")] + public string Username + { + get; + set; + } + + /// + /// The password to provide, possibly empty. Should only be set if response is + /// ProvideCredentials. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("password")] + public string Password + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.WebAudio +{ + /// + /// Enum of BaseAudioContext types + /// + public enum ContextType + { + /// + /// realtime + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("realtime")] + Realtime, + /// + /// offline + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("offline")] + Offline + } +} + +namespace CefSharp.DevTools.WebAudio +{ + /// + /// Enum of AudioContextState from the spec + /// + public enum ContextState + { + /// + /// suspended + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("suspended")] + Suspended, + /// + /// running + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("running")] + Running, + /// + /// closed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("closed")] + Closed + } +} + +namespace CefSharp.DevTools.WebAudio +{ + /// + /// Enum of AudioNode::ChannelCountMode from the spec + /// + public enum ChannelCountMode + { + /// + /// clamped-max + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("clamped-max")] + ClampedMax, + /// + /// explicit + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("explicit")] + Explicit, + /// + /// max + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("max")] + Max + } +} + +namespace CefSharp.DevTools.WebAudio +{ + /// + /// Enum of AudioNode::ChannelInterpretation from the spec + /// + public enum ChannelInterpretation + { + /// + /// discrete + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("discrete")] + Discrete, + /// + /// speakers + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("speakers")] + Speakers + } +} + +namespace CefSharp.DevTools.WebAudio +{ + /// + /// Enum of AudioParam::AutomationRate from the spec + /// + public enum AutomationRate + { + /// + /// a-rate + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("a-rate")] + ARate, + /// + /// k-rate + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("k-rate")] + KRate + } +} + +namespace CefSharp.DevTools.WebAudio +{ + /// + /// Fields in AudioContext that change in real-time. + /// + public class ContextRealtimeData : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The current context time in second in BaseAudioContext. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentTime")] + public long CurrentTime + { + get; + set; + } + + /// + /// The time spent on rendering graph divided by render qunatum duration, + /// and multiplied by 100. 100 means the audio renderer reached the full + /// capacity and glitch may occur. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("renderCapacity")] + public long RenderCapacity + { + get; + set; + } + + /// + /// A running mean of callback interval. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("callbackIntervalMean")] + public long CallbackIntervalMean + { + get; + set; + } + + /// + /// A running variance of callback interval. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("callbackIntervalVariance")] + public long CallbackIntervalVariance + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.WebAudio +{ + /// + /// Protocol object for BaseAudioContext + /// + public class BaseAudioContext : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// ContextId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ContextId + { + get; + set; + } + + /// + /// ContextType + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextType")] + public CefSharp.DevTools.WebAudio.ContextType ContextType + { + get; + set; + } + + /// + /// ContextState + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextState")] + public CefSharp.DevTools.WebAudio.ContextState ContextState + { + get; + set; + } + + /// + /// RealtimeData + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("realtimeData")] + public CefSharp.DevTools.WebAudio.ContextRealtimeData RealtimeData + { + get; + set; + } + + /// + /// Platform-dependent callback buffer size. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("callbackBufferSize")] + public long CallbackBufferSize + { + get; + set; + } + + /// + /// Number of output channels supported by audio hardware in use. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxOutputChannelCount")] + public long MaxOutputChannelCount + { + get; + set; + } + + /// + /// Context sample rate. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sampleRate")] + public long SampleRate + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.WebAudio +{ + /// + /// Protocol object for AudioListener + /// + public class AudioListener : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// ListenerId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("listenerId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ListenerId + { + get; + set; + } + + /// + /// ContextId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ContextId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.WebAudio +{ + /// + /// Protocol object for AudioNode + /// + public class AudioNode : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// NodeId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string NodeId + { + get; + set; + } + + /// + /// ContextId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ContextId + { + get; + set; + } + + /// + /// NodeType + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeType")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string NodeType + { + get; + set; + } + + /// + /// NumberOfInputs + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("numberOfInputs")] + public long NumberOfInputs + { + get; + set; + } + + /// + /// NumberOfOutputs + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("numberOfOutputs")] + public long NumberOfOutputs + { + get; + set; + } + + /// + /// ChannelCount + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("channelCount")] + public long ChannelCount + { + get; + set; + } + + /// + /// ChannelCountMode + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("channelCountMode")] + public CefSharp.DevTools.WebAudio.ChannelCountMode ChannelCountMode + { + get; + set; + } + + /// + /// ChannelInterpretation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("channelInterpretation")] + public CefSharp.DevTools.WebAudio.ChannelInterpretation ChannelInterpretation + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.WebAudio +{ + /// + /// Protocol object for AudioParam + /// + public class AudioParam : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// ParamId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("paramId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ParamId + { + get; + set; + } + + /// + /// NodeId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string NodeId + { + get; + set; + } + + /// + /// ContextId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ContextId + { + get; + set; + } + + /// + /// ParamType + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("paramType")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ParamType + { + get; + set; + } + + /// + /// Rate + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rate")] + public CefSharp.DevTools.WebAudio.AutomationRate Rate + { + get; + set; + } + + /// + /// DefaultValue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("defaultValue")] + public long DefaultValue + { + get; + set; + } + + /// + /// MinValue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("minValue")] + public long MinValue + { + get; + set; + } + + /// + /// MaxValue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxValue")] + public long MaxValue + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.WebAuthn +{ + /// + /// AuthenticatorProtocol + /// + public enum AuthenticatorProtocol + { + /// + /// u2f + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("u2f")] + U2f, + /// + /// ctap2 + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ctap2")] + Ctap2 + } +} + +namespace CefSharp.DevTools.WebAuthn +{ + /// + /// AuthenticatorTransport + /// + public enum AuthenticatorTransport + { + /// + /// usb + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("usb")] + Usb, + /// + /// nfc + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nfc")] + Nfc, + /// + /// ble + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ble")] + Ble, + /// + /// cable + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cable")] + Cable, + /// + /// internal + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("internal")] + Internal + } +} + +namespace CefSharp.DevTools.WebAuthn +{ + /// + /// VirtualAuthenticatorOptions + /// + public class VirtualAuthenticatorOptions : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Protocol + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("protocol")] + public CefSharp.DevTools.WebAuthn.AuthenticatorProtocol Protocol + { + get; + set; + } + + /// + /// Transport + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("transport")] + public CefSharp.DevTools.WebAuthn.AuthenticatorTransport Transport + { + get; + set; + } + + /// + /// Defaults to false. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasResidentKey")] + public bool? HasResidentKey + { + get; + set; + } + + /// + /// Defaults to false. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasUserVerification")] + public bool? HasUserVerification + { + get; + set; + } + + /// + /// If set to true, tests of user presence will succeed immediately. + /// Otherwise, they will not be resolved. Defaults to true. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("automaticPresenceSimulation")] + public bool? AutomaticPresenceSimulation + { + get; + set; + } + + /// + /// Sets whether User Verification succeeds or fails for an authenticator. + /// Defaults to false. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isUserVerified")] + public bool? IsUserVerified + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.WebAuthn +{ + /// + /// Credential + /// + public class Credential : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// CredentialId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("credentialId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public byte[] CredentialId + { + get; + set; + } + + /// + /// IsResidentCredential + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isResidentCredential")] + public bool IsResidentCredential + { + get; + set; + } + + /// + /// Relying Party ID the credential is scoped to. Must be set when adding a + /// credential. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rpId")] + public string RpId + { + get; + set; + } + + /// + /// The ECDSA P-256 private key in PKCS#8 format. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("privateKey")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public byte[] PrivateKey + { + get; + set; + } + + /// + /// An opaque byte sequence with a maximum size of 64 bytes mapping the + /// credential to a specific user. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("userHandle")] + public byte[] UserHandle + { + get; + set; + } + + /// + /// Signature counter. This is incremented by one for each successful + /// assertion. + /// See https://w3c.github.io/webauthn/#signature-counter + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("signCount")] + public int SignCount + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Media +{ + /// + /// Have one type per entry in MediaLogRecord::Type + /// Corresponds to kMessage + /// + public class PlayerMessage : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Keep in sync with MediaLogMessageLevel + /// We are currently keeping the message level 'error' separate from the + /// PlayerError type because right now they represent different things, + /// this one being a DVLOG(ERROR) style log message that gets printed + /// based on what log level is selected in the UI, and the other is a + /// representation of a media::PipelineStatus object. Soon however we're + /// going to be moving away from using PipelineStatus for errors and + /// introducing a new error type which should hopefully let us integrate + /// the error log level into the PlayerError type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("level")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Level + { + get; + set; + } + + /// + /// Message + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Message + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Media +{ + /// + /// Corresponds to kMediaPropertyChange + /// + public class PlayerProperty : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Media +{ + /// + /// Corresponds to kMediaEventTriggered + /// + public class PlayerEvent : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Timestamp + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public long Timestamp + { + get; + set; + } + + /// + /// Value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Media +{ + /// + /// Corresponds to kMediaError + /// + public class PlayerError : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Type + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// When this switches to using media::Status instead of PipelineStatus + /// we can remove "errorCode" and replace it with the fields from + /// a Status instance. This also seems like a duplicate of the error + /// level enum - there is a todo bug to have that level removed and + /// use this instead. (crbug.com/1068454) + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorCode")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ErrorCode + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// Location in the source code. + /// + public class Location : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Script identifier as reported in the `Debugger.scriptParsed`. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ScriptId + { + get; + set; + } + + /// + /// Line number in the script (0-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + public int LineNumber + { + get; + set; + } + + /// + /// Column number in the script (0-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + public int? ColumnNumber + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// Location in the source code. + /// + public class ScriptPosition : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// LineNumber + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + public int LineNumber + { + get; + set; + } + + /// + /// ColumnNumber + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + public int ColumnNumber + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// Location range within one script. + /// + public class LocationRange : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// ScriptId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ScriptId + { + get; + set; + } + + /// + /// Start + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("start")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Debugger.ScriptPosition Start + { + get; + set; + } + + /// + /// End + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("end")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Debugger.ScriptPosition End + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// JavaScript call frame. Array of call frames form the call stack. + /// + public class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Call frame identifier. This identifier is only valid while the virtual machine is paused. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string CallFrameId + { + get; + set; + } + + /// + /// Name of the JavaScript function called on this call frame. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("functionName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FunctionName + { + get; + set; + } + + /// + /// Location in the source code. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("functionLocation")] + public CefSharp.DevTools.Debugger.Location FunctionLocation + { + get; + set; + } + + /// + /// Location in the source code. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("location")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Debugger.Location Location + { + get; + set; + } + + /// + /// JavaScript script name or url. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// Scope chain for this call frame. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scopeChain")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList ScopeChain + { + get; + set; + } + + /// + /// `this` object for this call frame. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("this")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Runtime.RemoteObject This + { + get; + set; + } + + /// + /// The value being returned, if the function is at return point. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("returnValue")] + public CefSharp.DevTools.Runtime.RemoteObject ReturnValue + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// Scope description. + /// + public class Scope : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Scope type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// Object representing the scope. For `global` and `with` scopes it represents the actual + /// object; for the rest of the scopes, it is artificial transient object enumerating scope + /// variables as its properties. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("object")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Runtime.RemoteObject Object + { + get; + set; + } + + /// + /// Name + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + public string Name + { + get; + set; + } + + /// + /// Location in the source code where scope starts + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startLocation")] + public CefSharp.DevTools.Debugger.Location StartLocation + { + get; + set; + } + + /// + /// Location in the source code where scope ends + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endLocation")] + public CefSharp.DevTools.Debugger.Location EndLocation + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// Search match for resource. + /// + public class SearchMatch : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Line number in resource content. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + public long LineNumber + { + get; + set; + } + + /// + /// Line with match content. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineContent")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LineContent + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// BreakLocation + /// + public class BreakLocation : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Script identifier as reported in the `Debugger.scriptParsed`. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ScriptId + { + get; + set; + } + + /// + /// Line number in the script (0-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + public int LineNumber + { + get; + set; + } + + /// + /// Column number in the script (0-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + public int? ColumnNumber + { + get; + set; + } + + /// + /// Type + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public string Type + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// Enum of possible script languages. + /// + public enum ScriptLanguage + { + /// + /// JavaScript + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("JavaScript")] + JavaScript, + /// + /// WebAssembly + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebAssembly")] + WebAssembly + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// Debug symbols available for a wasm script. + /// + public class DebugSymbols : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Type of the debug symbols. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// URL of the external symbol source. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("externalURL")] + public string ExternalURL + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.HeapProfiler +{ + /// + /// Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes. + /// + public class SamplingHeapProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Function location. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrame")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Runtime.CallFrame CallFrame + { + get; + set; + } + + /// + /// Allocations size in bytes for the node excluding children. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("selfSize")] + public long SelfSize + { + get; + set; + } + + /// + /// Node id. Ids are unique across all profiles collected between startSampling and stopSampling. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + public int Id + { + get; + set; + } + + /// + /// Child nodes. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("children")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Children + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.HeapProfiler +{ + /// + /// A single sample from a sampling profile. + /// + public class SamplingHeapProfileSample : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Allocation size in bytes attributed to the sample. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] + public long Size + { + get; + set; + } + + /// + /// Id of the corresponding profile tree node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + set; + } + + /// + /// Time-ordered sample ordinal number. It is unique across all profiles retrieved + /// between startSampling and stopSampling. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ordinal")] + public long Ordinal + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.HeapProfiler +{ + /// + /// Sampling profile. + /// + public class SamplingHeapProfile : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Head + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("head")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.HeapProfiler.SamplingHeapProfileNode Head + { + get; + set; + } + + /// + /// Samples + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("samples")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Samples + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// Profile node. Holds callsite information, execution statistics and child nodes. + /// + public class ProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Unique id of the node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + public int Id + { + get; + set; + } + + /// + /// Function location. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrame")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Runtime.CallFrame CallFrame + { + get; + set; + } + + /// + /// Number of samples where this node was on top of the call stack. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hitCount")] + public int? HitCount + { + get; + set; + } + + /// + /// Child node ids. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("children")] + public int[] Children + { + get; + set; + } + + /// + /// The reason of being not optimized. The function may be deoptimized or marked as don't + /// optimize. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("deoptReason")] + public string DeoptReason + { + get; + set; + } + + /// + /// An array of source position ticks. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("positionTicks")] + public System.Collections.Generic.IList PositionTicks + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// Profile. + /// + public class Profile : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The list of profile nodes. First item is the root node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Nodes + { + get; + set; + } + + /// + /// Profiling start timestamp in microseconds. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startTime")] + public long StartTime + { + get; + set; + } + + /// + /// Profiling end timestamp in microseconds. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endTime")] + public long EndTime + { + get; + set; + } + + /// + /// Ids of samples top nodes. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("samples")] + public int[] Samples + { + get; + set; + } + + /// + /// Time intervals between adjacent samples in microseconds. The first delta is relative to the + /// profile startTime. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timeDeltas")] + public int[] TimeDeltas + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// Specifies a number of samples attributed to a certain source position. + /// + public class PositionTickInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Source line number (1-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("line")] + public int Line + { + get; + set; + } + + /// + /// Number of samples attributed to the source line. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ticks")] + public int Ticks + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// Coverage data for a source range. + /// + public class CoverageRange : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// JavaScript script source offset for the range start. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startOffset")] + public int StartOffset + { + get; + set; + } + + /// + /// JavaScript script source offset for the range end. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endOffset")] + public int EndOffset + { + get; + set; + } + + /// + /// Collected execution count of the source range. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("count")] + public int Count + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// Coverage data for a JavaScript function. + /// + public class FunctionCoverage : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// JavaScript function name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("functionName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FunctionName + { + get; + set; + } + + /// + /// Source ranges inside the function with coverage data. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ranges")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Ranges + { + get; + set; + } + + /// + /// Whether coverage data for this function has block granularity. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isBlockCoverage")] + public bool IsBlockCoverage + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// Coverage data for a JavaScript script. + /// + public class ScriptCoverage : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// JavaScript script id. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ScriptId + { + get; + set; + } + + /// + /// JavaScript script name or url. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// Functions contained in the script that has coverage data. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("functions")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Functions + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// Describes a type collected during runtime. + /// + public class TypeObject : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name of a type collected with type profiling. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// Source offset and types for a parameter or return value. + /// + public class TypeProfileEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Source offset of the parameter or end of function for return values. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("offset")] + public int Offset + { + get; + set; + } + + /// + /// The types for this parameter or return value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("types")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Types + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// Type profile data collected during runtime for a JavaScript script. + /// + public class ScriptTypeProfile : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// JavaScript script id. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ScriptId + { + get; + set; + } + + /// + /// JavaScript script name or url. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// Type profile entries for parameters and return values of the functions in the script. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("entries")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Entries + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// Collected counter information. + /// + public class CounterInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Counter name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Counter value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public int Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// Runtime call counter information. + /// + public class RuntimeCallCounterInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Counter name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Counter value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public long Value + { + get; + set; + } + + /// + /// Counter time in seconds. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("time")] + public long Time + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// Mirror object referencing original JavaScript object. + /// + public class RemoteObject : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Object type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// Object subtype hint. Specified for `object` or `wasm` type values only. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("subtype")] + public string Subtype + { + get; + set; + } + + /// + /// Object class (constructor) name. Specified for `object` type values only. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("className")] + public string ClassName + { + get; + set; + } + + /// + /// Remote object value in case of primitive values or JSON values (if it was requested). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public object Value + { + get; + set; + } + + /// + /// Primitive value which can not be JSON-stringified does not have `value`, but gets this + /// property. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("unserializableValue")] + public string UnserializableValue + { + get; + set; + } + + /// + /// String representation of the object. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("description")] + public string Description + { + get; + set; + } + + /// + /// Unique object identifier (for non-primitive values). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("objectId")] + public string ObjectId + { + get; + set; + } + + /// + /// Preview containing abbreviated property values. Specified for `object` type values only. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("preview")] + public CefSharp.DevTools.Runtime.ObjectPreview Preview + { + get; + set; + } + + /// + /// CustomPreview + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("customPreview")] + public CefSharp.DevTools.Runtime.CustomPreview CustomPreview + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// CustomPreview + /// + public class CustomPreview : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The JSON-stringified result of formatter.header(object, config) call. + /// It contains json ML array that represents RemoteObject. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("header")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Header + { + get; + set; + } + + /// + /// If formatter returns true as a result of formatter.hasBody call then bodyGetterId will + /// contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. + /// The result value is json ML array. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bodyGetterId")] + public string BodyGetterId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// Object containing abbreviated remote object value. + /// + public class ObjectPreview : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Object type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// Object subtype hint. Specified for `object` type values only. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("subtype")] + public string Subtype + { + get; + set; + } + + /// + /// String representation of the object. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("description")] + public string Description + { + get; + set; + } + + /// + /// True iff some of the properties or entries of the original object did not fit. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("overflow")] + public bool Overflow + { + get; + set; + } + + /// + /// List of the properties. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("properties")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Properties + { + get; + set; + } + + /// + /// List of the entries. Specified for `map` and `set` subtype values only. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("entries")] + public System.Collections.Generic.IList Entries + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// PropertyPreview + /// + public class PropertyPreview : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Property name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Object type. Accessor means that the property itself is an accessor property. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + set; + } + + /// + /// User-friendly property value string. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public string Value + { + get; + set; + } + + /// + /// Nested value preview. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("valuePreview")] + public CefSharp.DevTools.Runtime.ObjectPreview ValuePreview + { + get; + set; + } + + /// + /// Object subtype hint. Specified for `object` type values only. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("subtype")] + public string Subtype + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// EntryPreview + /// + public class EntryPreview : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Preview of the key. Specified for map-like collection entries. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + public CefSharp.DevTools.Runtime.ObjectPreview Key + { + get; + set; + } + + /// + /// Preview of the value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Runtime.ObjectPreview Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// Object property descriptor. + /// + public class PropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Property name or symbol description. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// The value associated with the property. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public CefSharp.DevTools.Runtime.RemoteObject Value + { + get; + set; + } + + /// + /// True if the value associated with the property may be changed (data descriptors only). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("writable")] + public bool? Writable + { + get; + set; + } + + /// + /// A function which serves as a getter for the property, or `undefined` if there is no getter + /// (accessor descriptors only). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("get")] + public CefSharp.DevTools.Runtime.RemoteObject Get + { + get; + set; + } + + /// + /// A function which serves as a setter for the property, or `undefined` if there is no setter + /// (accessor descriptors only). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("set")] + public CefSharp.DevTools.Runtime.RemoteObject Set + { + get; + set; + } + + /// + /// True if the type of this property descriptor may be changed and if the property may be + /// deleted from the corresponding object. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("configurable")] + public bool Configurable + { + get; + set; + } + + /// + /// True if this property shows up during enumeration of the properties on the corresponding + /// object. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("enumerable")] + public bool Enumerable + { + get; + set; + } + + /// + /// True if the result was thrown during the evaluation. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("wasThrown")] + public bool? WasThrown + { + get; + set; + } + + /// + /// True if the property is owned for the object. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isOwn")] + public bool? IsOwn + { + get; + set; + } + + /// + /// Property symbol object, if the property is of the `symbol` type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("symbol")] + public CefSharp.DevTools.Runtime.RemoteObject Symbol + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// Object internal property descriptor. This property isn't normally visible in JavaScript code. + /// + public class InternalPropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Conventional property name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// The value associated with the property. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public CefSharp.DevTools.Runtime.RemoteObject Value + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// Object private field descriptor. + /// + public class PrivatePropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Private property name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// The value associated with the private property. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public CefSharp.DevTools.Runtime.RemoteObject Value + { + get; + set; + } + + /// + /// A function which serves as a getter for the private property, + /// or `undefined` if there is no getter (accessor descriptors only). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("get")] + public CefSharp.DevTools.Runtime.RemoteObject Get + { + get; + set; + } + + /// + /// A function which serves as a setter for the private property, + /// or `undefined` if there is no setter (accessor descriptors only). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("set")] + public CefSharp.DevTools.Runtime.RemoteObject Set + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// Represents function call argument. Either remote object id `objectId`, primitive `value`, + /// unserializable primitive value or neither of (for undefined) them should be specified. + /// + public class CallArgument : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Primitive value or serializable javascript object. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public object Value + { + get; + set; + } + + /// + /// Primitive value which can not be JSON-stringified. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("unserializableValue")] + public string UnserializableValue + { + get; + set; + } + + /// + /// Remote object handle. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("objectId")] + public string ObjectId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// Description of an isolated world. + /// + public class ExecutionContextDescription : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Unique id of the execution context. It can be used to specify in which execution context + /// script evaluation should be performed. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + public int Id + { + get; + set; + } + + /// + /// Execution context origin. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Origin + { + get; + set; + } + + /// + /// Human readable name describing given context. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Embedder-specific auxiliary data. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("auxData")] + public object AuxData + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// Detailed information about exception (or error) that was thrown during script compilation or + /// execution. + /// + public class ExceptionDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Exception id. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionId")] + public int ExceptionId + { + get; + set; + } + + /// + /// Exception text, which should be used together with exception object when available. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Text + { + get; + set; + } + + /// + /// Line number of the exception location (0-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + public int LineNumber + { + get; + set; + } + + /// + /// Column number of the exception location (0-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + public int ColumnNumber + { + get; + set; + } + + /// + /// Script ID of the exception location. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + public string ScriptId + { + get; + set; + } + + /// + /// URL of the exception location, to be used when the script was not reported. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + public string Url + { + get; + set; + } + + /// + /// JavaScript stack trace if available. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackTrace")] + public CefSharp.DevTools.Runtime.StackTrace StackTrace + { + get; + set; + } + + /// + /// Exception object if available. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exception")] + public CefSharp.DevTools.Runtime.RemoteObject Exception + { + get; + set; + } + + /// + /// Identifier of the context where exception happened. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + public int? ExecutionContextId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// Stack entry for runtime errors and assertions. + /// + public class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// JavaScript function name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("functionName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FunctionName + { + get; + set; + } + + /// + /// JavaScript script id. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ScriptId + { + get; + set; + } + + /// + /// JavaScript script name or url. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// JavaScript script line number (0-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + public int LineNumber + { + get; + set; + } + + /// + /// JavaScript script column number (0-based). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + public int ColumnNumber + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// Call frames for assertions or error messages. + /// + public class StackTrace : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// String label of this stack trace. For async traces this may be a name of the function that + /// initiated the async call. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("description")] + public string Description + { + get; + set; + } + + /// + /// JavaScript function name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrames")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList CallFrames + { + get; + set; + } + + /// + /// Asynchronous JavaScript stack trace that preceded this stack, if available. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parent")] + public CefSharp.DevTools.Runtime.StackTrace Parent + { + get; + set; + } + + /// + /// Asynchronous JavaScript stack trace that preceded this stack, if available. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + public CefSharp.DevTools.Runtime.StackTraceId ParentId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This + /// allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages. + /// + public class StackTraceId : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Id + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + set; + } + + /// + /// DebuggerId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("debuggerId")] + public string DebuggerId + { + get; + set; + } + } +} + +namespace CefSharp.DevTools.Accessibility +{ + /// + /// GetPartialAXTreeResponse + /// + public class GetPartialAXTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodes + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + public System.Collections.Generic.IList Nodes + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Accessibility +{ + /// + /// GetFullAXTreeResponse + /// + public class GetFullAXTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodes + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + public System.Collections.Generic.IList Nodes + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Accessibility +{ + /// + /// QueryAXTreeResponse + /// + public class QueryAXTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodes + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + public System.Collections.Generic.IList Nodes + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Accessibility +{ + using System.Linq; + + /// + /// Accessibility + /// + public partial class AccessibilityClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public AccessibilityClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Disables the accessibility domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Accessibility.disable", dict); + return methodResult; + } + + /// + /// Enables the accessibility domain which causes `AXNodeId`s to remain consistent between method calls. + /// This turns on accessibility for the page, which can impact performance until accessibility is disabled. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Accessibility.enable", dict); + return methodResult; + } + + partial void ValidateGetPartialAXTree(int? nodeId = null, int? backendNodeId = null, string objectId = null, bool? fetchRelatives = null); + /// + /// Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists. + /// + /// Identifier of the node to get the partial accessibility tree for. + /// Identifier of the backend node to get the partial accessibility tree for. + /// JavaScript object id of the node wrapper to get the partial accessibility tree for. + /// Whether to fetch this nodes ancestors, siblings and children. Defaults to true. + /// returns System.Threading.Tasks.Task<GetPartialAXTreeResponse> + public async System.Threading.Tasks.Task GetPartialAXTreeAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null, bool? fetchRelatives = null) + { + ValidateGetPartialAXTree(nodeId, backendNodeId, objectId, fetchRelatives); + 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 (fetchRelatives.HasValue) + { + dict.Add("fetchRelatives", fetchRelatives.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Accessibility.getPartialAXTree", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Fetches the entire accessibility tree + /// + /// returns System.Threading.Tasks.Task<GetFullAXTreeResponse> + public async System.Threading.Tasks.Task GetFullAXTreeAsync() + { + System.Collections.Generic.Dictionary dict = null; + 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(); + } + } +} + +namespace CefSharp.DevTools.Animation +{ + /// + /// GetCurrentTimeResponse + /// + public class GetCurrentTimeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// currentTime + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentTime")] + public long CurrentTime + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Animation +{ + /// + /// GetPlaybackRateResponse + /// + public class GetPlaybackRateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// playbackRate + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("playbackRate")] + public long PlaybackRate + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Animation +{ + /// + /// ResolveAnimationResponse + /// + public class ResolveAnimationResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// remoteObject + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("remoteObject")] + public CefSharp.DevTools.Runtime.RemoteObject RemoteObject + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Animation +{ + using System.Linq; + + /// + /// Animation + /// + public partial class AnimationClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public AnimationClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Disables animation domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Animation.disable", dict); + return methodResult; + } + + /// + /// Enables animation domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Animation.enable", dict); + return methodResult; + } + + partial void ValidateGetCurrentTime(string id); + /// + /// Returns the current time of the an animation. + /// + /// Id of animation. + /// returns System.Threading.Tasks.Task<GetCurrentTimeResponse> + public async System.Threading.Tasks.Task GetCurrentTimeAsync(string id) + { + ValidateGetCurrentTime(id); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("id", id); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Animation.getCurrentTime", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Gets the playback rate of the document timeline. + /// + /// returns System.Threading.Tasks.Task<GetPlaybackRateResponse> + public async System.Threading.Tasks.Task GetPlaybackRateAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Animation.getPlaybackRate", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateReleaseAnimations(string[] animations); + /// + /// Releases a set of animations to no longer be manipulated. + /// + /// List of animation ids to seek. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ReleaseAnimationsAsync(string[] animations) + { + ValidateReleaseAnimations(animations); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("animations", animations); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Animation.releaseAnimations", dict); + return methodResult; + } + + partial void ValidateResolveAnimation(string animationId); + /// + /// Gets the remote object of the Animation. + /// + /// Animation id. + /// returns System.Threading.Tasks.Task<ResolveAnimationResponse> + public async System.Threading.Tasks.Task ResolveAnimationAsync(string animationId) + { + ValidateResolveAnimation(animationId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("animationId", animationId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Animation.resolveAnimation", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSeekAnimations(string[] animations, long currentTime); + /// + /// Seek a set of animations to a particular time within each animation. + /// + /// List of animation ids to seek. + /// Set the current time of each animation. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SeekAnimationsAsync(string[] animations, long currentTime) + { + ValidateSeekAnimations(animations, currentTime); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("animations", animations); + dict.Add("currentTime", currentTime); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Animation.seekAnimations", dict); + return methodResult; + } + + partial void ValidateSetPaused(string[] animations, bool paused); + /// + /// Sets the paused state of a set of animations. + /// + /// Animations to set the pause state of. + /// Paused state to set to. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetPausedAsync(string[] animations, bool paused) + { + ValidateSetPaused(animations, paused); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("animations", animations); + dict.Add("paused", paused); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Animation.setPaused", dict); + return methodResult; + } + + partial void ValidateSetPlaybackRate(long playbackRate); + /// + /// Sets the playback rate of the document timeline. + /// + /// Playback rate for animations on page + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetPlaybackRateAsync(long playbackRate) + { + ValidateSetPlaybackRate(playbackRate); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("playbackRate", playbackRate); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Animation.setPlaybackRate", dict); + return methodResult; + } + + partial void ValidateSetTiming(string animationId, long duration, long delay); + /// + /// Sets the timing of an animation node. + /// + /// Animation id. + /// Duration of the animation. + /// Delay of the animation. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetTimingAsync(string animationId, long duration, long delay) + { + ValidateSetTiming(animationId, duration, delay); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("animationId", animationId); + dict.Add("duration", duration); + dict.Add("delay", delay); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Animation.setTiming", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.ApplicationCache +{ + /// + /// GetApplicationCacheForFrameResponse + /// + public class GetApplicationCacheForFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// applicationCache + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("applicationCache")] + public CefSharp.DevTools.ApplicationCache.ApplicationCache ApplicationCache + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.ApplicationCache +{ + /// + /// GetFramesWithManifestsResponse + /// + public class GetFramesWithManifestsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// frameIds + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameIds")] + public System.Collections.Generic.IList FrameIds + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.ApplicationCache +{ + /// + /// GetManifestForFrameResponse + /// + public class GetManifestForFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// manifestURL + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("manifestURL")] + public string ManifestURL + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.ApplicationCache +{ + using System.Linq; + + /// + /// ApplicationCache + /// + public partial class ApplicationCacheClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public ApplicationCacheClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Enables application cache domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("ApplicationCache.enable", dict); + return methodResult; + } + + partial void ValidateGetApplicationCacheForFrame(string frameId); + /// + /// Returns relevant application cache data for the document in given frame. + /// + /// Identifier of the frame containing document whose application cache is retrieved. + /// returns System.Threading.Tasks.Task<GetApplicationCacheForFrameResponse> + public async System.Threading.Tasks.Task GetApplicationCacheForFrameAsync(string frameId) + { + ValidateGetApplicationCacheForFrame(frameId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("ApplicationCache.getApplicationCacheForFrame", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Returns array of frame identifiers with manifest urls for each frame containing a document + /// associated with some application cache. + /// + /// returns System.Threading.Tasks.Task<GetFramesWithManifestsResponse> + public async System.Threading.Tasks.Task GetFramesWithManifestsAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("ApplicationCache.getFramesWithManifests", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetManifestForFrame(string frameId); + /// + /// Returns manifest URL for document in the given frame. + /// + /// Identifier of the frame containing document whose manifest is retrieved. + /// returns System.Threading.Tasks.Task<GetManifestForFrameResponse> + public async System.Threading.Tasks.Task GetManifestForFrameAsync(string frameId) + { + ValidateGetManifestForFrame(frameId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("ApplicationCache.getManifestForFrame", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.Audits +{ + /// + /// GetEncodedResponseResponse + /// + public class GetEncodedResponseResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// body + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("body")] + public byte[] Body + { + get; + private set; + } + + /// + /// originalSize + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("originalSize")] + public int OriginalSize + { + get; + private set; + } + + /// + /// encodedSize + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("encodedSize")] + public int EncodedSize + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Audits +{ + using System.Linq; + + /// + /// Audits domain allows investigation of page violations and possible improvements. + /// + public partial class AuditsClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public AuditsClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateGetEncodedResponse(string requestId, string encoding, long? quality = null, bool? sizeOnly = null); + /// + /// Returns the response body and size if it were re-encoded with the specified settings. Only + /// applies to images. + /// + /// Identifier of the network request to get content for. + /// The encoding to use. + /// The quality of the encoding (0-1). (defaults to 1) + /// Whether to only return the size information (defaults to false). + /// returns System.Threading.Tasks.Task<GetEncodedResponseResponse> + public async System.Threading.Tasks.Task GetEncodedResponseAsync(string requestId, string encoding, long? quality = null, bool? sizeOnly = null) + { + ValidateGetEncodedResponse(requestId, encoding, quality, sizeOnly); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("encoding", encoding); + if (quality.HasValue) + { + dict.Add("quality", quality.Value); + } + + if (sizeOnly.HasValue) + { + dict.Add("sizeOnly", sizeOnly.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Audits.getEncodedResponse", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Disables issues domain, prevents further issues from being reported to the client. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Audits.disable", dict); + return methodResult; + } + + /// + /// Enables issues domain, sends the issues collected so far to the client by means of the + /// `issueAdded` event. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Audits.enable", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.BackgroundService +{ + using System.Linq; + + /// + /// Defines events for background web platform features. + /// + public partial class BackgroundServiceClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public BackgroundServiceClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateStartObserving(CefSharp.DevTools.BackgroundService.ServiceName service); + /// + /// Enables event updates for the service. + /// + /// service + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StartObservingAsync(CefSharp.DevTools.BackgroundService.ServiceName service) + { + ValidateStartObserving(service); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("service", this.EnumToString(service)); + var methodResult = await _client.ExecuteDevToolsMethodAsync("BackgroundService.startObserving", dict); + return methodResult; + } + + partial void ValidateStopObserving(CefSharp.DevTools.BackgroundService.ServiceName service); + /// + /// Disables event updates for the service. + /// + /// service + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StopObservingAsync(CefSharp.DevTools.BackgroundService.ServiceName service) + { + ValidateStopObserving(service); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("service", this.EnumToString(service)); + var methodResult = await _client.ExecuteDevToolsMethodAsync("BackgroundService.stopObserving", dict); + return methodResult; + } + + partial void ValidateSetRecording(bool shouldRecord, CefSharp.DevTools.BackgroundService.ServiceName service); + /// + /// Set the recording state for the service. + /// + /// shouldRecord + /// service + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetRecordingAsync(bool shouldRecord, CefSharp.DevTools.BackgroundService.ServiceName service) + { + ValidateSetRecording(shouldRecord, service); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("shouldRecord", shouldRecord); + dict.Add("service", this.EnumToString(service)); + var methodResult = await _client.ExecuteDevToolsMethodAsync("BackgroundService.setRecording", dict); + return methodResult; + } + + partial void ValidateClearEvents(CefSharp.DevTools.BackgroundService.ServiceName service); + /// + /// Clears all stored data for the service. + /// + /// service + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearEventsAsync(CefSharp.DevTools.BackgroundService.ServiceName service) + { + ValidateClearEvents(service); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("service", this.EnumToString(service)); + var methodResult = await _client.ExecuteDevToolsMethodAsync("BackgroundService.clearEvents", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// GetVersionResponse + /// + public class GetVersionResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// protocolVersion + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("protocolVersion")] + public string ProtocolVersion + { + get; + private set; + } + + /// + /// product + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("product")] + public string Product + { + get; + private set; + } + + /// + /// revision + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("revision")] + public string Revision + { + get; + private set; + } + + /// + /// userAgent + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("userAgent")] + public string UserAgent + { + get; + private set; + } + + /// + /// jsVersion + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("jsVersion")] + public string JsVersion + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// GetBrowserCommandLineResponse + /// + public class GetBrowserCommandLineResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// arguments + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("arguments")] + public string[] Arguments + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// GetHistogramsResponse + /// + public class GetHistogramsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// histograms + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("histograms")] + public System.Collections.Generic.IList Histograms + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// GetHistogramResponse + /// + public class GetHistogramResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// histogram + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("histogram")] + public CefSharp.DevTools.Browser.Histogram Histogram + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// GetWindowBoundsResponse + /// + public class GetWindowBoundsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// bounds + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] + public CefSharp.DevTools.Browser.Bounds Bounds + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Browser +{ + /// + /// GetWindowForTargetResponse + /// + public class GetWindowForTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// windowId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("windowId")] + public int WindowId + { + get; + private set; + } + + /// + /// bounds + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] + public CefSharp.DevTools.Browser.Bounds Bounds + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Browser +{ + using System.Linq; + + /// + /// The Browser domain defines methods and events for browser managing. + /// + public partial class BrowserClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public BrowserClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateSetPermission(CefSharp.DevTools.Browser.PermissionDescriptor permission, CefSharp.DevTools.Browser.PermissionSetting setting, string origin = null, string browserContextId = null); + /// + /// Set permission settings for given origin. + /// + /// Descriptor of permission to override. + /// Setting of the permission. + /// Origin the permission applies to, all origins if not specified. + /// Context to override. When omitted, default browser context is used. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetPermissionAsync(CefSharp.DevTools.Browser.PermissionDescriptor permission, CefSharp.DevTools.Browser.PermissionSetting setting, string origin = null, string browserContextId = null) + { + ValidateSetPermission(permission, setting, origin, browserContextId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("permission", permission.ToDictionary()); + dict.Add("setting", this.EnumToString(setting)); + if (!(string.IsNullOrEmpty(origin))) + { + dict.Add("origin", origin); + } + + if (!(string.IsNullOrEmpty(browserContextId))) + { + dict.Add("browserContextId", browserContextId); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.setPermission", dict); + return methodResult; + } + + partial void ValidateGrantPermissions(CefSharp.DevTools.Browser.PermissionType[] permissions, string origin = null, string browserContextId = null); + /// + /// Grant specific permissions to the given origin and reject all others. + /// + /// permissions + /// Origin the permission applies to, all origins if not specified. + /// BrowserContext to override permissions. When omitted, default browser context is used. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task GrantPermissionsAsync(CefSharp.DevTools.Browser.PermissionType[] permissions, string origin = null, string browserContextId = null) + { + ValidateGrantPermissions(permissions, origin, browserContextId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("permissions", this.EnumToString(permissions)); + if (!(string.IsNullOrEmpty(origin))) + { + dict.Add("origin", origin); + } + + if (!(string.IsNullOrEmpty(browserContextId))) + { + dict.Add("browserContextId", browserContextId); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.grantPermissions", dict); + return methodResult; + } + + partial void ValidateResetPermissions(string browserContextId = null); + /// + /// Reset all permission management for all origins. + /// + /// BrowserContext to reset permissions. When omitted, default browser context is used. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ResetPermissionsAsync(string browserContextId = null) + { + ValidateResetPermissions(browserContextId); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(browserContextId))) + { + dict.Add("browserContextId", browserContextId); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.resetPermissions", dict); + return methodResult; + } + + partial void ValidateSetDownloadBehavior(string behavior, string browserContextId = null, string downloadPath = null); + /// + /// Set the behavior when downloading a file. + /// + /// Whether to allow all or deny all download requests, or use default Chrome behavior if + public async System.Threading.Tasks.Task SetDownloadBehaviorAsync(string behavior, string browserContextId = null, string downloadPath = null) + { + ValidateSetDownloadBehavior(behavior, browserContextId, downloadPath); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("behavior", behavior); + if (!(string.IsNullOrEmpty(browserContextId))) + { + dict.Add("browserContextId", browserContextId); + } + + if (!(string.IsNullOrEmpty(downloadPath))) + { + dict.Add("downloadPath", downloadPath); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.setDownloadBehavior", dict); + return methodResult; + } + + /// + /// Close browser gracefully. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task CloseAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.close", dict); + return methodResult; + } + + /// + /// Crashes browser on the main thread. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task CrashAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.crash", dict); + return methodResult; + } + + /// + /// Crashes GPU process. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task CrashGpuProcessAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.crashGpuProcess", dict); + return methodResult; + } + + /// + /// Returns version information. + /// + /// returns System.Threading.Tasks.Task<GetVersionResponse> + public async System.Threading.Tasks.Task GetVersionAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.getVersion", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Returns the command line switches for the browser process if, and only if + /// --enable-automation is on the commandline. + /// + /// returns System.Threading.Tasks.Task<GetBrowserCommandLineResponse> + public async System.Threading.Tasks.Task GetBrowserCommandLineAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.getBrowserCommandLine", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetHistograms(string query = null, bool? delta = null); + /// + /// Get Chrome histograms. + /// + /// Requested substring in name. Only histograms which have query as a + public async System.Threading.Tasks.Task GetHistogramsAsync(string query = null, bool? delta = null) + { + ValidateGetHistograms(query, delta); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(query))) + { + dict.Add("query", query); + } + + if (delta.HasValue) + { + dict.Add("delta", delta.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.getHistograms", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetHistogram(string name, bool? delta = null); + /// + /// Get a Chrome histogram by name. + /// + /// Requested histogram name. + /// If true, retrieve delta since last call. + /// returns System.Threading.Tasks.Task<GetHistogramResponse> + public async System.Threading.Tasks.Task GetHistogramAsync(string name, bool? delta = null) + { + ValidateGetHistogram(name, delta); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("name", name); + if (delta.HasValue) + { + dict.Add("delta", delta.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.getHistogram", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetWindowBounds(int windowId); + /// + /// Get position and size of the browser window. + /// + /// Browser window id. + /// returns System.Threading.Tasks.Task<GetWindowBoundsResponse> + public async System.Threading.Tasks.Task GetWindowBoundsAsync(int windowId) + { + ValidateGetWindowBounds(windowId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("windowId", windowId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.getWindowBounds", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetWindowForTarget(string targetId = null); + /// + /// Get the browser window that contains the devtools target. + /// + /// Devtools agent host id. If called as a part of the session, associated targetId is used. + /// returns System.Threading.Tasks.Task<GetWindowForTargetResponse> + public async System.Threading.Tasks.Task GetWindowForTargetAsync(string targetId = null) + { + ValidateGetWindowForTarget(targetId); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(targetId))) + { + dict.Add("targetId", targetId); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.getWindowForTarget", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetWindowBounds(int windowId, CefSharp.DevTools.Browser.Bounds bounds); + /// + /// Set position and/or size of the browser window. + /// + /// Browser window id. + /// New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined + public async System.Threading.Tasks.Task SetWindowBoundsAsync(int windowId, CefSharp.DevTools.Browser.Bounds bounds) + { + ValidateSetWindowBounds(windowId, bounds); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("windowId", windowId); + dict.Add("bounds", bounds.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.setWindowBounds", dict); + return methodResult; + } + + partial void ValidateSetDockTile(string badgeLabel = null, byte[] image = null); + /// + /// Set dock tile details, platform-specific. + /// + /// badgeLabel + /// Png encoded image. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetDockTileAsync(string badgeLabel = null, byte[] image = null) + { + ValidateSetDockTile(badgeLabel, image); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(badgeLabel))) + { + dict.Add("badgeLabel", badgeLabel); + } + + if ((image) != (null)) + { + dict.Add("image", ToBase64String(image)); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Browser.setDockTile", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// AddRuleResponse + /// + public class AddRuleResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// rule + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rule")] + public CefSharp.DevTools.CSS.CSSRule Rule + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// CollectClassNamesResponse + /// + public class CollectClassNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// classNames + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("classNames")] + public string[] ClassNames + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// CreateStyleSheetResponse + /// + public class CreateStyleSheetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// styleSheetId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + public string StyleSheetId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// GetBackgroundColorsResponse + /// + public class GetBackgroundColorsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// backgroundColors + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backgroundColors")] + public string[] BackgroundColors + { + get; + private set; + } + + /// + /// computedFontSize + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("computedFontSize")] + public string ComputedFontSize + { + get; + private set; + } + + /// + /// computedFontWeight + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("computedFontWeight")] + public string ComputedFontWeight + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// GetComputedStyleForNodeResponse + /// + public class GetComputedStyleForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// computedStyle + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("computedStyle")] + public System.Collections.Generic.IList ComputedStyle + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// GetInlineStylesForNodeResponse + /// + public class GetInlineStylesForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// inlineStyle + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("inlineStyle")] + public CefSharp.DevTools.CSS.CSSStyle InlineStyle + { + get; + private set; + } + + /// + /// attributesStyle + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributesStyle")] + public CefSharp.DevTools.CSS.CSSStyle AttributesStyle + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// GetMatchedStylesForNodeResponse + /// + public class GetMatchedStylesForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// inlineStyle + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("inlineStyle")] + public CefSharp.DevTools.CSS.CSSStyle InlineStyle + { + get; + private set; + } + + /// + /// attributesStyle + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributesStyle")] + public CefSharp.DevTools.CSS.CSSStyle AttributesStyle + { + get; + private set; + } + + /// + /// matchedCSSRules + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("matchedCSSRules")] + public System.Collections.Generic.IList MatchedCSSRules + { + get; + private set; + } + + /// + /// pseudoElements + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoElements")] + public System.Collections.Generic.IList PseudoElements + { + get; + private set; + } + + /// + /// inherited + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("inherited")] + public System.Collections.Generic.IList Inherited + { + get; + private set; + } + + /// + /// cssKeyframesRules + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssKeyframesRules")] + public System.Collections.Generic.IList CssKeyframesRules + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// GetMediaQueriesResponse + /// + public class GetMediaQueriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// medias + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("medias")] + public System.Collections.Generic.IList Medias + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// GetPlatformFontsForNodeResponse + /// + public class GetPlatformFontsForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// fonts + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("fonts")] + public System.Collections.Generic.IList Fonts + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// GetStyleSheetTextResponse + /// + public class GetStyleSheetTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// text + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + public string Text + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// TakeComputedStyleUpdatesResponse + /// + public class TakeComputedStyleUpdatesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodeIds + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIds")] + public int[] NodeIds + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// SetKeyframeKeyResponse + /// + public class SetKeyframeKeyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// keyText + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyText")] + public CefSharp.DevTools.CSS.Value KeyText + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// SetMediaTextResponse + /// + public class SetMediaTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// media + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("media")] + public CefSharp.DevTools.CSS.CSSMedia Media + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// SetRuleSelectorResponse + /// + public class SetRuleSelectorResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// selectorList + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("selectorList")] + public CefSharp.DevTools.CSS.SelectorList SelectorList + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// SetStyleSheetTextResponse + /// + public class SetStyleSheetTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// sourceMapURL + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceMapURL")] + public string SourceMapURL + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// SetStyleTextsResponse + /// + public class SetStyleTextsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// styles + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styles")] + public System.Collections.Generic.IList Styles + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// StopRuleUsageTrackingResponse + /// + public class StopRuleUsageTrackingResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// ruleUsage + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ruleUsage")] + public System.Collections.Generic.IList RuleUsage + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + /// + /// TakeCoverageDeltaResponse + /// + public class TakeCoverageDeltaResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// coverage + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("coverage")] + public System.Collections.Generic.IList Coverage + { + get; + private set; + } + + /// + /// timestamp + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public long Timestamp + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CSS +{ + using System.Linq; + + /// + /// This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) + /// have an associated `id` used in subsequent operations on the related object. Each object type has + /// a specific `id` structure, and those are not interchangeable between objects of different kinds. + /// CSS objects can be loaded using the `get*ForNode()` calls (which accept a DOM node id). A client + /// can also keep track of stylesheets via the `styleSheetAdded`/`styleSheetRemoved` events and + /// subsequently load the required stylesheet contents using the `getStyleSheet[Text]()` methods. + /// + public partial class CSSClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public CSSClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateAddRule(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location); + /// + /// Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the + /// position specified by `location`. + /// + /// The css style sheet identifier where a new rule should be inserted. + /// The text of a new rule. + /// Text position of a new rule in the target style sheet. + /// returns System.Threading.Tasks.Task<AddRuleResponse> + public async System.Threading.Tasks.Task AddRuleAsync(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location) + { + ValidateAddRule(styleSheetId, ruleText, location); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("ruleText", ruleText); + dict.Add("location", location.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.addRule", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateCollectClassNames(string styleSheetId); + /// + /// Returns all class names from specified stylesheet. + /// + /// styleSheetId + /// returns System.Threading.Tasks.Task<CollectClassNamesResponse> + public async System.Threading.Tasks.Task CollectClassNamesAsync(string styleSheetId) + { + ValidateCollectClassNames(styleSheetId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.collectClassNames", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateCreateStyleSheet(string frameId); + /// + /// Creates a new special "via-inspector" stylesheet in the frame with given `frameId`. + /// + /// Identifier of the frame where "via-inspector" stylesheet should be created. + /// returns System.Threading.Tasks.Task<CreateStyleSheetResponse> + public async System.Threading.Tasks.Task CreateStyleSheetAsync(string frameId) + { + ValidateCreateStyleSheet(frameId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.createStyleSheet", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Disables the CSS agent for the given page. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.disable", dict); + return methodResult; + } + + /// + /// Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been + /// enabled until the result of this command is received. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.enable", dict); + return methodResult; + } + + partial void ValidateForcePseudoState(int nodeId, string[] forcedPseudoClasses); + /// + /// Ensures that the given node will have specified pseudo-classes whenever its style is computed by + /// the browser. + /// + /// The element id for which to force the pseudo state. + /// Element pseudo classes to force when computing the element's style. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ForcePseudoStateAsync(int nodeId, string[] forcedPseudoClasses) + { + ValidateForcePseudoState(nodeId, forcedPseudoClasses); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("forcedPseudoClasses", forcedPseudoClasses); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.forcePseudoState", dict); + return methodResult; + } + + partial void ValidateGetBackgroundColors(int nodeId); + /// + /// GetBackgroundColors + /// + /// Id of the node to get background colors for. + /// returns System.Threading.Tasks.Task<GetBackgroundColorsResponse> + public async System.Threading.Tasks.Task GetBackgroundColorsAsync(int nodeId) + { + ValidateGetBackgroundColors(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.getBackgroundColors", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetComputedStyleForNode(int nodeId); + /// + /// Returns the computed style for a DOM node identified by `nodeId`. + /// + /// nodeId + /// returns System.Threading.Tasks.Task<GetComputedStyleForNodeResponse> + public async System.Threading.Tasks.Task GetComputedStyleForNodeAsync(int nodeId) + { + ValidateGetComputedStyleForNode(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.getComputedStyleForNode", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetInlineStylesForNode(int nodeId); + /// + /// Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM + /// attributes) for a DOM node identified by `nodeId`. + /// + /// nodeId + /// returns System.Threading.Tasks.Task<GetInlineStylesForNodeResponse> + public async System.Threading.Tasks.Task GetInlineStylesForNodeAsync(int nodeId) + { + ValidateGetInlineStylesForNode(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.getInlineStylesForNode", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetMatchedStylesForNode(int nodeId); + /// + /// Returns requested styles for a DOM node identified by `nodeId`. + /// + /// nodeId + /// returns System.Threading.Tasks.Task<GetMatchedStylesForNodeResponse> + public async System.Threading.Tasks.Task GetMatchedStylesForNodeAsync(int nodeId) + { + ValidateGetMatchedStylesForNode(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.getMatchedStylesForNode", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Returns all media queries parsed by the rendering engine. + /// + /// returns System.Threading.Tasks.Task<GetMediaQueriesResponse> + public async System.Threading.Tasks.Task GetMediaQueriesAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.getMediaQueries", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetPlatformFontsForNode(int nodeId); + /// + /// Requests information about platform fonts which we used to render child TextNodes in the given + /// node. + /// + /// nodeId + /// returns System.Threading.Tasks.Task<GetPlatformFontsForNodeResponse> + public async System.Threading.Tasks.Task GetPlatformFontsForNodeAsync(int nodeId) + { + ValidateGetPlatformFontsForNode(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.getPlatformFontsForNode", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetStyleSheetText(string styleSheetId); + /// + /// Returns the current textual content for a stylesheet. + /// + /// styleSheetId + /// returns System.Threading.Tasks.Task<GetStyleSheetTextResponse> + public async System.Threading.Tasks.Task GetStyleSheetTextAsync(string styleSheetId) + { + ValidateGetStyleSheetText(styleSheetId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.getStyleSheetText", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateTrackComputedStyleUpdates(System.Collections.Generic.IList propertiesToTrack); + /// + /// Starts tracking the given computed styles for updates. The specified array of properties + /// replaces the one previously specified. Pass empty array to disable tracking. + /// Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified. + /// The changes to computed style properties are only tracked for nodes pushed to the front-end + /// by the DOM agent. If no changes to the tracked properties occur after the node has been pushed + /// to the front-end, no updates will be issued for the node. + /// + /// propertiesToTrack + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task TrackComputedStyleUpdatesAsync(System.Collections.Generic.IList propertiesToTrack) + { + ValidateTrackComputedStyleUpdates(propertiesToTrack); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("propertiesToTrack", propertiesToTrack.Select(x => x.ToDictionary())); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.trackComputedStyleUpdates", dict); + return methodResult; + } + + /// + /// Polls the next batch of computed style updates. + /// + /// returns System.Threading.Tasks.Task<TakeComputedStyleUpdatesResponse> + public async System.Threading.Tasks.Task TakeComputedStyleUpdatesAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.takeComputedStyleUpdates", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetEffectivePropertyValueForNode(int nodeId, string propertyName, string value); + /// + /// Find a rule with the given active property for the given node and set the new value for this + /// property + /// + /// The element id for which to set property. + /// propertyName + /// value + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetEffectivePropertyValueForNodeAsync(int nodeId, string propertyName, string value) + { + ValidateSetEffectivePropertyValueForNode(nodeId, propertyName, value); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("propertyName", propertyName); + dict.Add("value", value); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.setEffectivePropertyValueForNode", dict); + return methodResult; + } + + partial void ValidateSetKeyframeKey(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string keyText); + /// + /// Modifies the keyframe rule key text. + /// + /// styleSheetId + /// range + /// keyText + /// returns System.Threading.Tasks.Task<SetKeyframeKeyResponse> + public async System.Threading.Tasks.Task SetKeyframeKeyAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string keyText) + { + ValidateSetKeyframeKey(styleSheetId, range, keyText); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("range", range.ToDictionary()); + dict.Add("keyText", keyText); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.setKeyframeKey", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetMediaText(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text); + /// + /// Modifies the rule selector. + /// + /// styleSheetId + /// range + /// text + /// returns System.Threading.Tasks.Task<SetMediaTextResponse> + public async System.Threading.Tasks.Task SetMediaTextAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text) + { + ValidateSetMediaText(styleSheetId, range, text); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("range", range.ToDictionary()); + dict.Add("text", text); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.setMediaText", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetRuleSelector(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string selector); + /// + /// Modifies the rule selector. + /// + /// styleSheetId + /// range + /// selector + /// returns System.Threading.Tasks.Task<SetRuleSelectorResponse> + public async System.Threading.Tasks.Task SetRuleSelectorAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string selector) + { + ValidateSetRuleSelector(styleSheetId, range, selector); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("range", range.ToDictionary()); + dict.Add("selector", selector); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.setRuleSelector", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetStyleSheetText(string styleSheetId, string text); + /// + /// Sets the new stylesheet text. + /// + /// styleSheetId + /// text + /// returns System.Threading.Tasks.Task<SetStyleSheetTextResponse> + public async System.Threading.Tasks.Task SetStyleSheetTextAsync(string styleSheetId, string text) + { + ValidateSetStyleSheetText(styleSheetId, text); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("text", text); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.setStyleSheetText", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetStyleTexts(System.Collections.Generic.IList edits); + /// + /// Applies specified style edits one after another in the given order. + /// + /// edits + /// returns System.Threading.Tasks.Task<SetStyleTextsResponse> + public async System.Threading.Tasks.Task SetStyleTextsAsync(System.Collections.Generic.IList edits) + { + ValidateSetStyleTexts(edits); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("edits", edits.Select(x => x.ToDictionary())); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.setStyleTexts", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Enables the selector recording. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StartRuleUsageTrackingAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.startRuleUsageTracking", dict); + return methodResult; + } + + /// + /// Stop tracking rule usage and return the list of rules that were used since last call to + /// `takeCoverageDelta` (or since start of coverage instrumentation) + /// + /// returns System.Threading.Tasks.Task<StopRuleUsageTrackingResponse> + public async System.Threading.Tasks.Task StopRuleUsageTrackingAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.stopRuleUsageTracking", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Obtain list of rules that became used since last call to this method (or since start of coverage + /// instrumentation) + /// + /// returns System.Threading.Tasks.Task<TakeCoverageDeltaResponse> + public async System.Threading.Tasks.Task TakeCoverageDeltaAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.takeCoverageDelta", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetLocalFontsEnabled(bool enabled); + /// + /// Enables/disables rendering of local CSS fonts (enabled by default). + /// + /// Whether rendering of local fonts is enabled. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetLocalFontsEnabledAsync(bool enabled) + { + ValidateSetLocalFontsEnabled(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CSS.setLocalFontsEnabled", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.CacheStorage +{ + /// + /// RequestCacheNamesResponse + /// + public class RequestCacheNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// caches + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("caches")] + public System.Collections.Generic.IList Caches + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CacheStorage +{ + /// + /// RequestCachedResponseResponse + /// + public class RequestCachedResponseResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// response + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + public CefSharp.DevTools.CacheStorage.CachedResponse Response + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CacheStorage +{ + /// + /// RequestEntriesResponse + /// + public class RequestEntriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// cacheDataEntries + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cacheDataEntries")] + public System.Collections.Generic.IList CacheDataEntries + { + get; + private set; + } + + /// + /// returnCount + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("returnCount")] + public long ReturnCount + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.CacheStorage +{ + using System.Linq; + + /// + /// CacheStorage + /// + public partial class CacheStorageClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public CacheStorageClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateDeleteCache(string cacheId); + /// + /// Deletes a cache. + /// + /// Id of cache for deletion. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DeleteCacheAsync(string cacheId) + { + ValidateDeleteCache(cacheId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("cacheId", cacheId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CacheStorage.deleteCache", dict); + return methodResult; + } + + partial void ValidateDeleteEntry(string cacheId, string request); + /// + /// Deletes a cache entry. + /// + /// Id of cache where the entry will be deleted. + /// URL spec of the request. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DeleteEntryAsync(string cacheId, string request) + { + ValidateDeleteEntry(cacheId, request); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("cacheId", cacheId); + dict.Add("request", request); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CacheStorage.deleteEntry", dict); + return methodResult; + } + + partial void ValidateRequestCacheNames(string securityOrigin); + /// + /// Requests cache names. + /// + /// Security origin. + /// returns System.Threading.Tasks.Task<RequestCacheNamesResponse> + public async System.Threading.Tasks.Task RequestCacheNamesAsync(string securityOrigin) + { + ValidateRequestCacheNames(securityOrigin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("securityOrigin", securityOrigin); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CacheStorage.requestCacheNames", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateRequestCachedResponse(string cacheId, string requestURL, System.Collections.Generic.IList requestHeaders); + /// + /// Fetches cache entry. + /// + /// Id of cache that contains the entry. + /// URL spec of the request. + /// headers of the request. + /// returns System.Threading.Tasks.Task<RequestCachedResponseResponse> + public async System.Threading.Tasks.Task RequestCachedResponseAsync(string cacheId, string requestURL, System.Collections.Generic.IList requestHeaders) + { + ValidateRequestCachedResponse(cacheId, requestURL, requestHeaders); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("cacheId", cacheId); + dict.Add("requestURL", requestURL); + dict.Add("requestHeaders", requestHeaders.Select(x => x.ToDictionary())); + var methodResult = await _client.ExecuteDevToolsMethodAsync("CacheStorage.requestCachedResponse", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateRequestEntries(string cacheId, int? skipCount = null, int? pageSize = null, string pathFilter = null); + /// + /// Requests data from cache. + /// + /// ID of cache to get entries from. + /// Number of records to skip. + /// Number of records to fetch. + /// If present, only return the entries containing this substring in the path + /// returns System.Threading.Tasks.Task<RequestEntriesResponse> + public async System.Threading.Tasks.Task RequestEntriesAsync(string cacheId, int? skipCount = null, int? pageSize = null, string pathFilter = null) + { + ValidateRequestEntries(cacheId, skipCount, pageSize, pathFilter); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("cacheId", cacheId); + if (skipCount.HasValue) + { + dict.Add("skipCount", skipCount.Value); + } + + if (pageSize.HasValue) + { + dict.Add("pageSize", pageSize.Value); + } + + if (!(string.IsNullOrEmpty(pathFilter))) + { + dict.Add("pathFilter", pathFilter); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("CacheStorage.requestEntries", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.Cast +{ + using System.Linq; + + /// + /// A domain for interacting with Cast, Presentation API, and Remote Playback API + /// functionalities. + /// + public partial class CastClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public CastClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateEnable(string presentationUrl = null); + /// + /// Starts observing for sinks that can be used for tab mirroring, and if set, + /// sinks compatible with |presentationUrl| as well. When sinks are found, a + /// |sinksUpdated| event is fired. + /// Also starts observing for issue messages. When an issue is added or removed, + /// an |issueUpdated| event is fired. + /// + /// presentationUrl + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync(string presentationUrl = null) + { + ValidateEnable(presentationUrl); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(presentationUrl))) + { + dict.Add("presentationUrl", presentationUrl); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Cast.enable", dict); + return methodResult; + } + + /// + /// Stops observing for sinks and issues. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Cast.disable", dict); + return methodResult; + } + + partial void ValidateSetSinkToUse(string sinkName); + /// + /// Sets a sink to be used when the web page requests the browser to choose a + /// sink via Presentation API, Remote Playback API, or Cast SDK. + /// + /// sinkName + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetSinkToUseAsync(string sinkName) + { + ValidateSetSinkToUse(sinkName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("sinkName", sinkName); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Cast.setSinkToUse", dict); + return methodResult; + } + + partial void ValidateStartTabMirroring(string sinkName); + /// + /// Starts mirroring the tab to the sink. + /// + /// sinkName + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StartTabMirroringAsync(string sinkName) + { + ValidateStartTabMirroring(sinkName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("sinkName", sinkName); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Cast.startTabMirroring", dict); + return methodResult; + } + + partial void ValidateStopCasting(string sinkName); + /// + /// Stops the active Cast session on the sink. + /// + /// sinkName + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StopCastingAsync(string sinkName) + { + ValidateStopCasting(sinkName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("sinkName", sinkName); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Cast.stopCasting", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// CollectClassNamesFromSubtreeResponse + /// + public class CollectClassNamesFromSubtreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// classNames + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("classNames")] + public string[] ClassNames + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// CopyToResponse + /// + public class CopyToResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// DescribeNodeResponse + /// + public class DescribeNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// node + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("node")] + public CefSharp.DevTools.DOM.Node Node + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// GetAttributesResponse + /// + public class GetAttributesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// attributes + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributes")] + public string[] Attributes + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// GetBoxModelResponse + /// + public class GetBoxModelResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// model + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("model")] + public CefSharp.DevTools.DOM.BoxModel Model + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// GetContentQuadsResponse + /// + public class GetContentQuadsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// quads + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("quads")] + public long[] Quads + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// GetDocumentResponse + /// + public class GetDocumentResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// root + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("root")] + public CefSharp.DevTools.DOM.Node Root + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// GetNodesForSubtreeByStyleResponse + /// + public class GetNodesForSubtreeByStyleResponse : 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 +{ + /// + /// GetNodeForLocationResponse + /// + public class GetNodeForLocationResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// backendNodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + public int BackendNodeId + { + get; + private set; + } + + /// + /// frameId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + public string FrameId + { + get; + private set; + } + + /// + /// nodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int? NodeId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// GetOuterHTMLResponse + /// + public class GetOuterHTMLResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// outerHTML + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("outerHTML")] + public string OuterHTML + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// GetRelayoutBoundaryResponse + /// + public class GetRelayoutBoundaryResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// GetSearchResultsResponse + /// + public class GetSearchResultsResponse : 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 +{ + /// + /// MoveToResponse + /// + public class MoveToResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// PerformSearchResponse + /// + public class PerformSearchResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// searchId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("searchId")] + public string SearchId + { + get; + private set; + } + + /// + /// resultCount + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resultCount")] + public int ResultCount + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// PushNodeByPathToFrontendResponse + /// + public class PushNodeByPathToFrontendResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// PushNodesByBackendIdsToFrontendResponse + /// + public class PushNodesByBackendIdsToFrontendResponse : 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 +{ + /// + /// QuerySelectorResponse + /// + public class QuerySelectorResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// QuerySelectorAllResponse + /// + public class QuerySelectorAllResponse : 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 +{ + /// + /// RequestNodeResponse + /// + public class RequestNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// ResolveNodeResponse + /// + public class ResolveNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// object + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("object")] + public CefSharp.DevTools.Runtime.RemoteObject Object + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// GetNodeStackTracesResponse + /// + public class GetNodeStackTracesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// creation + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("creation")] + public CefSharp.DevTools.Runtime.StackTrace Creation + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// GetFileInfoResponse + /// + public class GetFileInfoResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// path + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("path")] + public string Path + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// SetNodeNameResponse + /// + public class SetNodeNameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + /// + /// GetFrameOwnerResponse + /// + public class GetFrameOwnerResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// backendNodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + public int BackendNodeId + { + get; + private set; + } + + /// + /// nodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int? NodeId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOM +{ + using System.Linq; + + /// + /// This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object + /// that has an `id`. This `id` can be used to get additional information on the Node, resolve it into + /// the JavaScript object wrapper, etc. It is important that client receives DOM events only for the + /// nodes that are known to the client. Backend keeps track of the nodes that were sent to the client + /// and never sends the same node twice. It is client's responsibility to collect information about + /// the nodes that were sent to the client.<p>Note that `iframe` owner elements will return + /// corresponding document elements as their child nodes.</p> + /// + public partial class DOMClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public DOMClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateCollectClassNamesFromSubtree(int nodeId); + /// + /// Collects class names for the node with given id and all of it's child nodes. + /// + /// Id of the node to collect class names. + /// returns System.Threading.Tasks.Task<CollectClassNamesFromSubtreeResponse> + public async System.Threading.Tasks.Task CollectClassNamesFromSubtreeAsync(int nodeId) + { + ValidateCollectClassNamesFromSubtree(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.collectClassNamesFromSubtree", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateCopyTo(int nodeId, int targetNodeId, int? insertBeforeNodeId = null); + /// + /// Creates a deep copy of the specified node and places it into the target container before the + /// given anchor. + /// + /// Id of the node to copy. + /// Id of the element to drop the copy into. + /// Drop the copy before this node (if absent, the copy becomes the last child of + public async System.Threading.Tasks.Task CopyToAsync(int nodeId, int targetNodeId, int? insertBeforeNodeId = null) + { + ValidateCopyTo(nodeId, targetNodeId, insertBeforeNodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("targetNodeId", targetNodeId); + if (insertBeforeNodeId.HasValue) + { + dict.Add("insertBeforeNodeId", insertBeforeNodeId.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.copyTo", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateDescribeNode(int? nodeId = null, int? backendNodeId = null, string objectId = null, int? depth = null, bool? pierce = null); + /// + /// Describes node given its id, does not require domain to be enabled. Does not start tracking any + /// objects, can be used for automation. + /// + /// Identifier of the node. + /// Identifier of the backend node. + /// JavaScript object id of the node wrapper. + /// The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the + public async System.Threading.Tasks.Task DescribeNodeAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null, int? depth = null, bool? pierce = null) + { + ValidateDescribeNode(nodeId, backendNodeId, objectId, depth, pierce); + 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 (depth.HasValue) + { + dict.Add("depth", depth.Value); + } + + if (pierce.HasValue) + { + dict.Add("pierce", pierce.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.describeNode", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateScrollIntoViewIfNeeded(int? nodeId = null, int? backendNodeId = null, string objectId = null, CefSharp.DevTools.DOM.Rect rect = null); + /// + /// Scrolls the specified rect of the given node into view if not already visible. + /// Note: exactly one between nodeId, backendNodeId and objectId should be passed + /// to identify the node. + /// + /// Identifier of the node. + /// Identifier of the backend node. + /// JavaScript object id of the node wrapper. + /// The rect to be scrolled into view, relative to the node's border box, in CSS pixels. + public async System.Threading.Tasks.Task ScrollIntoViewIfNeededAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null, CefSharp.DevTools.DOM.Rect rect = null) + { + ValidateScrollIntoViewIfNeeded(nodeId, backendNodeId, objectId, rect); + 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 ((rect) != (null)) + { + dict.Add("rect", rect.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.scrollIntoViewIfNeeded", dict); + return methodResult; + } + + /// + /// Disables DOM agent for the given page. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.disable", dict); + return methodResult; + } + + partial void ValidateDiscardSearchResults(string searchId); + /// + /// Discards search results from the session with the given id. `getSearchResults` should no longer + /// be called for that search. + /// + /// Unique search session identifier. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DiscardSearchResultsAsync(string searchId) + { + ValidateDiscardSearchResults(searchId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("searchId", searchId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.discardSearchResults", dict); + return methodResult; + } + + /// + /// Enables DOM agent for the given page. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.enable", dict); + return methodResult; + } + + partial void ValidateFocus(int? nodeId = null, int? backendNodeId = null, string objectId = null); + /// + /// Focuses the given element. + /// + /// Identifier of the node. + /// Identifier of the backend node. + /// JavaScript object id of the node wrapper. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task FocusAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null) + { + ValidateFocus(nodeId, backendNodeId, objectId); + 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); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.focus", dict); + return methodResult; + } + + partial void ValidateGetAttributes(int nodeId); + /// + /// Returns attributes for the specified node. + /// + /// Id of the node to retrieve attibutes for. + /// returns System.Threading.Tasks.Task<GetAttributesResponse> + public async System.Threading.Tasks.Task GetAttributesAsync(int nodeId) + { + ValidateGetAttributes(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.getAttributes", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetBoxModel(int? nodeId = null, int? backendNodeId = null, string objectId = null); + /// + /// Returns boxes for the given node. + /// + /// Identifier of the node. + /// Identifier of the backend node. + /// JavaScript object id of the node wrapper. + /// returns System.Threading.Tasks.Task<GetBoxModelResponse> + public async System.Threading.Tasks.Task GetBoxModelAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null) + { + ValidateGetBoxModel(nodeId, backendNodeId, objectId); + 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); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.getBoxModel", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetContentQuads(int? nodeId = null, int? backendNodeId = null, string objectId = null); + /// + /// Returns quads that describe node position on the page. This method + /// might return multiple quads for inline nodes. + /// + /// Identifier of the node. + /// Identifier of the backend node. + /// JavaScript object id of the node wrapper. + /// returns System.Threading.Tasks.Task<GetContentQuadsResponse> + public async System.Threading.Tasks.Task GetContentQuadsAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null) + { + ValidateGetContentQuads(nodeId, backendNodeId, objectId); + 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); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.getContentQuads", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetDocument(int? depth = null, bool? pierce = null); + /// + /// Returns the root DOM node (and optionally the subtree) to the caller. + /// + /// The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the + public async System.Threading.Tasks.Task GetDocumentAsync(int? depth = null, bool? pierce = null) + { + ValidateGetDocument(depth, pierce); + var dict = new System.Collections.Generic.Dictionary(); + if (depth.HasValue) + { + dict.Add("depth", depth.Value); + } + + if (pierce.HasValue) + { + dict.Add("pierce", pierce.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.getDocument", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetNodesForSubtreeByStyle(int nodeId, System.Collections.Generic.IList computedStyles, bool? pierce = null); + /// + /// Finds nodes with a given computed style in a subtree. + /// + /// Node ID pointing to the root of a subtree. + /// The style to filter nodes by (includes nodes if any of properties matches). + /// Whether or not iframes and shadow roots in the same target should be traversed when returning the + public async System.Threading.Tasks.Task GetNodesForSubtreeByStyleAsync(int nodeId, System.Collections.Generic.IList computedStyles, bool? pierce = null) + { + ValidateGetNodesForSubtreeByStyle(nodeId, computedStyles, pierce); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("computedStyles", computedStyles.Select(x => x.ToDictionary())); + if (pierce.HasValue) + { + dict.Add("pierce", pierce.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.getNodesForSubtreeByStyle", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetNodeForLocation(int x, int y, bool? includeUserAgentShadowDOM = null, bool? ignorePointerEventsNone = null); + /// + /// Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is + /// either returned or not. + /// + /// X coordinate. + /// Y coordinate. + /// False to skip to the nearest non-UA shadow root ancestor (default: false). + /// Whether to ignore pointer-events: none on elements and hit test them. + /// returns System.Threading.Tasks.Task<GetNodeForLocationResponse> + public async System.Threading.Tasks.Task GetNodeForLocationAsync(int x, int y, bool? includeUserAgentShadowDOM = null, bool? ignorePointerEventsNone = null) + { + ValidateGetNodeForLocation(x, y, includeUserAgentShadowDOM, ignorePointerEventsNone); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("x", x); + dict.Add("y", y); + if (includeUserAgentShadowDOM.HasValue) + { + dict.Add("includeUserAgentShadowDOM", includeUserAgentShadowDOM.Value); + } + + if (ignorePointerEventsNone.HasValue) + { + dict.Add("ignorePointerEventsNone", ignorePointerEventsNone.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.getNodeForLocation", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetOuterHTML(int? nodeId = null, int? backendNodeId = null, string objectId = null); + /// + /// Returns node's HTML markup. + /// + /// Identifier of the node. + /// Identifier of the backend node. + /// JavaScript object id of the node wrapper. + /// returns System.Threading.Tasks.Task<GetOuterHTMLResponse> + public async System.Threading.Tasks.Task GetOuterHTMLAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null) + { + ValidateGetOuterHTML(nodeId, backendNodeId, objectId); + 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); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.getOuterHTML", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetRelayoutBoundary(int nodeId); + /// + /// Returns the id of the nearest ancestor that is a relayout boundary. + /// + /// Id of the node. + /// returns System.Threading.Tasks.Task<GetRelayoutBoundaryResponse> + public async System.Threading.Tasks.Task GetRelayoutBoundaryAsync(int nodeId) + { + ValidateGetRelayoutBoundary(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.getRelayoutBoundary", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetSearchResults(string searchId, int fromIndex, int toIndex); + /// + /// Returns search results from given `fromIndex` to given `toIndex` from the search with the given + /// identifier. + /// + /// Unique search session identifier. + /// Start index of the search result to be returned. + /// End index of the search result to be returned. + /// returns System.Threading.Tasks.Task<GetSearchResultsResponse> + public async System.Threading.Tasks.Task GetSearchResultsAsync(string searchId, int fromIndex, int toIndex) + { + ValidateGetSearchResults(searchId, fromIndex, toIndex); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("searchId", searchId); + dict.Add("fromIndex", fromIndex); + dict.Add("toIndex", toIndex); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.getSearchResults", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Hides any highlight. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task HideHighlightAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.hideHighlight", dict); + return methodResult; + } + + /// + /// Highlights DOM node. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task HighlightNodeAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.highlightNode", dict); + return methodResult; + } + + /// + /// Highlights given rectangle. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task HighlightRectAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.highlightRect", dict); + return methodResult; + } + + /// + /// Marks last undoable state. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task MarkUndoableStateAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.markUndoableState", dict); + return methodResult; + } + + partial void ValidateMoveTo(int nodeId, int targetNodeId, int? insertBeforeNodeId = null); + /// + /// Moves node into the new container, places it before the given anchor. + /// + /// Id of the node to move. + /// Id of the element to drop the moved node into. + /// Drop node before this one (if absent, the moved node becomes the last child of + public async System.Threading.Tasks.Task MoveToAsync(int nodeId, int targetNodeId, int? insertBeforeNodeId = null) + { + ValidateMoveTo(nodeId, targetNodeId, insertBeforeNodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("targetNodeId", targetNodeId); + if (insertBeforeNodeId.HasValue) + { + dict.Add("insertBeforeNodeId", insertBeforeNodeId.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.moveTo", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidatePerformSearch(string query, bool? includeUserAgentShadowDOM = null); + /// + /// Searches for a given string in the DOM tree. Use `getSearchResults` to access search results or + /// `cancelSearch` to end this search session. + /// + /// Plain text or query selector or XPath search query. + /// True to search in user agent shadow DOM. + /// returns System.Threading.Tasks.Task<PerformSearchResponse> + public async System.Threading.Tasks.Task PerformSearchAsync(string query, bool? includeUserAgentShadowDOM = null) + { + ValidatePerformSearch(query, includeUserAgentShadowDOM); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("query", query); + if (includeUserAgentShadowDOM.HasValue) + { + dict.Add("includeUserAgentShadowDOM", includeUserAgentShadowDOM.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.performSearch", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidatePushNodeByPathToFrontend(string path); + /// + /// Requests that the node is sent to the caller given its path. // FIXME, use XPath + /// + /// Path to node in the proprietary format. + /// returns System.Threading.Tasks.Task<PushNodeByPathToFrontendResponse> + public async System.Threading.Tasks.Task PushNodeByPathToFrontendAsync(string path) + { + ValidatePushNodeByPathToFrontend(path); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("path", path); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.pushNodeByPathToFrontend", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidatePushNodesByBackendIdsToFrontend(int[] backendNodeIds); + /// + /// Requests that a batch of nodes is sent to the caller given their backend node ids. + /// + /// The array of backend node ids. + /// returns System.Threading.Tasks.Task<PushNodesByBackendIdsToFrontendResponse> + public async System.Threading.Tasks.Task PushNodesByBackendIdsToFrontendAsync(int[] backendNodeIds) + { + ValidatePushNodesByBackendIdsToFrontend(backendNodeIds); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("backendNodeIds", backendNodeIds); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.pushNodesByBackendIdsToFrontend", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateQuerySelector(int nodeId, string selector); + /// + /// Executes `querySelector` on a given node. + /// + /// Id of the node to query upon. + /// Selector string. + /// returns System.Threading.Tasks.Task<QuerySelectorResponse> + public async System.Threading.Tasks.Task QuerySelectorAsync(int nodeId, string selector) + { + ValidateQuerySelector(nodeId, selector); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("selector", selector); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.querySelector", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateQuerySelectorAll(int nodeId, string selector); + /// + /// Executes `querySelectorAll` on a given node. + /// + /// Id of the node to query upon. + /// Selector string. + /// returns System.Threading.Tasks.Task<QuerySelectorAllResponse> + public async System.Threading.Tasks.Task QuerySelectorAllAsync(int nodeId, string selector) + { + ValidateQuerySelectorAll(nodeId, selector); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("selector", selector); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.querySelectorAll", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Re-does the last undone action. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RedoAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.redo", dict); + return methodResult; + } + + partial void ValidateRemoveAttribute(int nodeId, string name); + /// + /// Removes attribute with given name from an element with given id. + /// + /// Id of the element to remove attribute from. + /// Name of the attribute to remove. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RemoveAttributeAsync(int nodeId, string name) + { + ValidateRemoveAttribute(nodeId, name); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("name", name); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.removeAttribute", dict); + return methodResult; + } + + partial void ValidateRemoveNode(int nodeId); + /// + /// Removes node with given id. + /// + /// Id of the node to remove. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RemoveNodeAsync(int nodeId) + { + ValidateRemoveNode(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.removeNode", dict); + return methodResult; + } + + partial void ValidateRequestChildNodes(int nodeId, int? depth = null, bool? pierce = null); + /// + /// Requests that children of the node with given id are returned to the caller in form of + /// `setChildNodes` events where not only immediate children are retrieved, but all children down to + /// the specified depth. + /// + /// Id of the node to get children for. + /// The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the + public async System.Threading.Tasks.Task RequestChildNodesAsync(int nodeId, int? depth = null, bool? pierce = null) + { + ValidateRequestChildNodes(nodeId, depth, pierce); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + if (depth.HasValue) + { + dict.Add("depth", depth.Value); + } + + if (pierce.HasValue) + { + dict.Add("pierce", pierce.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.requestChildNodes", dict); + return methodResult; + } + + partial void ValidateRequestNode(string objectId); + /// + /// Requests that the node is sent to the caller given the JavaScript node object reference. All + /// nodes that form the path from the node to the root are also sent to the client as a series of + /// `setChildNodes` notifications. + /// + /// JavaScript object id to convert into node. + /// returns System.Threading.Tasks.Task<RequestNodeResponse> + public async System.Threading.Tasks.Task RequestNodeAsync(string objectId) + { + ValidateRequestNode(objectId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("objectId", objectId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.requestNode", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateResolveNode(int? nodeId = null, int? backendNodeId = null, string objectGroup = null, int? executionContextId = null); + /// + /// Resolves the JavaScript node object for a given NodeId or BackendNodeId. + /// + /// Id of the node to resolve. + /// Backend identifier of the node to resolve. + /// Symbolic group name that can be used to release multiple objects. + /// Execution context in which to resolve the node. + /// returns System.Threading.Tasks.Task<ResolveNodeResponse> + public async System.Threading.Tasks.Task ResolveNodeAsync(int? nodeId = null, int? backendNodeId = null, string objectGroup = null, int? executionContextId = null) + { + ValidateResolveNode(nodeId, backendNodeId, objectGroup, executionContextId); + 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(objectGroup))) + { + dict.Add("objectGroup", objectGroup); + } + + if (executionContextId.HasValue) + { + dict.Add("executionContextId", executionContextId.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.resolveNode", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetAttributeValue(int nodeId, string name, string value); + /// + /// Sets attribute for an element with given id. + /// + /// Id of the element to set attribute for. + /// Attribute name. + /// Attribute value. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetAttributeValueAsync(int nodeId, string name, string value) + { + ValidateSetAttributeValue(nodeId, name, value); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("name", name); + dict.Add("value", value); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.setAttributeValue", dict); + return methodResult; + } + + partial void ValidateSetAttributesAsText(int nodeId, string text, string name = null); + /// + /// Sets attributes on element with given id. This method is useful when user edits some existing + /// attribute value and types in several attribute name/value pairs. + /// + /// Id of the element to set attributes for. + /// Text with a number of attributes. Will parse this text using HTML parser. + /// Attribute name to replace with new attributes derived from text in case text parsed + public async System.Threading.Tasks.Task SetAttributesAsTextAsync(int nodeId, string text, string name = null) + { + ValidateSetAttributesAsText(nodeId, text, name); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("text", text); + if (!(string.IsNullOrEmpty(name))) + { + dict.Add("name", name); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.setAttributesAsText", dict); + return methodResult; + } + + partial void ValidateSetFileInputFiles(string[] files, int? nodeId = null, int? backendNodeId = null, string objectId = null); + /// + /// Sets files for the given file input element. + /// + /// Array of file paths to set. + /// Identifier of the node. + /// Identifier of the backend node. + /// JavaScript object id of the node wrapper. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetFileInputFilesAsync(string[] files, int? nodeId = null, int? backendNodeId = null, string objectId = null) + { + ValidateSetFileInputFiles(files, nodeId, backendNodeId, objectId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("files", files); + if (nodeId.HasValue) + { + dict.Add("nodeId", nodeId.Value); + } + + if (backendNodeId.HasValue) + { + dict.Add("backendNodeId", backendNodeId.Value); + } + + if (!(string.IsNullOrEmpty(objectId))) + { + dict.Add("objectId", objectId); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.setFileInputFiles", dict); + return methodResult; + } + + partial void ValidateSetNodeStackTracesEnabled(bool enable); + /// + /// Sets if stack traces should be captured for Nodes. See `Node.getNodeStackTraces`. Default is disabled. + /// + /// Enable or disable. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetNodeStackTracesEnabledAsync(bool enable) + { + ValidateSetNodeStackTracesEnabled(enable); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enable", enable); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.setNodeStackTracesEnabled", dict); + return methodResult; + } + + partial void ValidateGetNodeStackTraces(int nodeId); + /// + /// Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation. + /// + /// Id of the node to get stack traces for. + /// returns System.Threading.Tasks.Task<GetNodeStackTracesResponse> + public async System.Threading.Tasks.Task GetNodeStackTracesAsync(int nodeId) + { + ValidateGetNodeStackTraces(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.getNodeStackTraces", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetFileInfo(string objectId); + /// + /// Returns file information for the given + /// File wrapper. + /// + /// JavaScript object id of the node wrapper. + /// returns System.Threading.Tasks.Task<GetFileInfoResponse> + public async System.Threading.Tasks.Task GetFileInfoAsync(string objectId) + { + ValidateGetFileInfo(objectId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("objectId", objectId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.getFileInfo", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetInspectedNode(int nodeId); + /// + /// Enables console to refer to the node with given id via $x (see Command Line API for more details + /// $x functions). + /// + /// DOM node id to be accessible by means of $x command line API. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetInspectedNodeAsync(int nodeId) + { + ValidateSetInspectedNode(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.setInspectedNode", dict); + return methodResult; + } + + partial void ValidateSetNodeName(int nodeId, string name); + /// + /// Sets node name for a node with given id. + /// + /// Id of the node to set name for. + /// New node's name. + /// returns System.Threading.Tasks.Task<SetNodeNameResponse> + public async System.Threading.Tasks.Task SetNodeNameAsync(int nodeId, string name) + { + ValidateSetNodeName(nodeId, name); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("name", name); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.setNodeName", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetNodeValue(int nodeId, string value); + /// + /// Sets node value for a node with given id. + /// + /// Id of the node to set value for. + /// New node's value. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetNodeValueAsync(int nodeId, string value) + { + ValidateSetNodeValue(nodeId, value); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("value", value); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.setNodeValue", dict); + return methodResult; + } + + partial void ValidateSetOuterHTML(int nodeId, string outerHTML); + /// + /// Sets node HTML markup, returns new node id. + /// + /// Id of the node to set markup for. + /// Outer HTML markup to set. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetOuterHTMLAsync(int nodeId, string outerHTML) + { + ValidateSetOuterHTML(nodeId, outerHTML); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("outerHTML", outerHTML); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.setOuterHTML", dict); + return methodResult; + } + + /// + /// Undoes the last performed action. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task UndoAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.undo", dict); + return methodResult; + } + + partial void ValidateGetFrameOwner(string frameId); + /// + /// Returns iframe node that owns iframe with the given domain. + /// + /// frameId + /// returns System.Threading.Tasks.Task<GetFrameOwnerResponse> + public async System.Threading.Tasks.Task GetFrameOwnerAsync(string frameId) + { + ValidateGetFrameOwner(frameId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOM.getFrameOwner", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.DOMDebugger +{ + /// + /// GetEventListenersResponse + /// + public class GetEventListenersResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// listeners + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("listeners")] + public System.Collections.Generic.IList Listeners + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOMDebugger +{ + using System.Linq; + + /// + /// DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript + /// execution will stop on these operations as if there was a regular breakpoint set. + /// + public partial class DOMDebuggerClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public DOMDebuggerClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateGetEventListeners(string objectId, int? depth = null, bool? pierce = null); + /// + /// Returns event listeners of the given object. + /// + /// Identifier of the object to return listeners for. + /// The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the + public async System.Threading.Tasks.Task GetEventListenersAsync(string objectId, int? depth = null, bool? pierce = null) + { + ValidateGetEventListeners(objectId, depth, pierce); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("objectId", objectId); + if (depth.HasValue) + { + dict.Add("depth", depth.Value); + } + + if (pierce.HasValue) + { + dict.Add("pierce", pierce.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMDebugger.getEventListeners", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateRemoveDOMBreakpoint(int nodeId, CefSharp.DevTools.DOMDebugger.DOMBreakpointType type); + /// + /// Removes DOM breakpoint that was set using `setDOMBreakpoint`. + /// + /// Identifier of the node to remove breakpoint from. + /// Type of the breakpoint to remove. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RemoveDOMBreakpointAsync(int nodeId, CefSharp.DevTools.DOMDebugger.DOMBreakpointType type) + { + ValidateRemoveDOMBreakpoint(nodeId, type); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("type", this.EnumToString(type)); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMDebugger.removeDOMBreakpoint", dict); + return methodResult; + } + + partial void ValidateRemoveEventListenerBreakpoint(string eventName, string targetName = null); + /// + /// Removes breakpoint on particular DOM event. + /// + /// Event name. + /// EventTarget interface name. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RemoveEventListenerBreakpointAsync(string eventName, string targetName = null) + { + ValidateRemoveEventListenerBreakpoint(eventName, targetName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("eventName", eventName); + if (!(string.IsNullOrEmpty(targetName))) + { + dict.Add("targetName", targetName); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMDebugger.removeEventListenerBreakpoint", dict); + return methodResult; + } + + partial void ValidateRemoveInstrumentationBreakpoint(string eventName); + /// + /// Removes breakpoint on particular native event. + /// + /// Instrumentation name to stop on. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RemoveInstrumentationBreakpointAsync(string eventName) + { + ValidateRemoveInstrumentationBreakpoint(eventName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("eventName", eventName); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMDebugger.removeInstrumentationBreakpoint", dict); + return methodResult; + } + + partial void ValidateRemoveXHRBreakpoint(string url); + /// + /// Removes breakpoint from XMLHttpRequest. + /// + /// Resource URL substring. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RemoveXHRBreakpointAsync(string url) + { + ValidateRemoveXHRBreakpoint(url); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("url", url); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMDebugger.removeXHRBreakpoint", dict); + return methodResult; + } + + partial void ValidateSetDOMBreakpoint(int nodeId, CefSharp.DevTools.DOMDebugger.DOMBreakpointType type); + /// + /// Sets breakpoint on particular operation with DOM. + /// + /// Identifier of the node to set breakpoint on. + /// Type of the operation to stop upon. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetDOMBreakpointAsync(int nodeId, CefSharp.DevTools.DOMDebugger.DOMBreakpointType type) + { + ValidateSetDOMBreakpoint(nodeId, type); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + dict.Add("type", this.EnumToString(type)); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMDebugger.setDOMBreakpoint", dict); + return methodResult; + } + + partial void ValidateSetEventListenerBreakpoint(string eventName, string targetName = null); + /// + /// Sets breakpoint on particular DOM event. + /// + /// DOM Event name to stop on (any DOM event will do). + /// EventTarget interface name to stop on. If equal to `"*"` or not provided, will stop on any + public async System.Threading.Tasks.Task SetEventListenerBreakpointAsync(string eventName, string targetName = null) + { + ValidateSetEventListenerBreakpoint(eventName, targetName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("eventName", eventName); + if (!(string.IsNullOrEmpty(targetName))) + { + dict.Add("targetName", targetName); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMDebugger.setEventListenerBreakpoint", dict); + return methodResult; + } + + partial void ValidateSetInstrumentationBreakpoint(string eventName); + /// + /// Sets breakpoint on particular native event. + /// + /// Instrumentation name to stop on. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetInstrumentationBreakpointAsync(string eventName) + { + ValidateSetInstrumentationBreakpoint(eventName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("eventName", eventName); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMDebugger.setInstrumentationBreakpoint", dict); + return methodResult; + } + + partial void ValidateSetXHRBreakpoint(string url); + /// + /// Sets breakpoint on XMLHttpRequest. + /// + /// Resource URL substring. All XHRs having this substring in the URL will get stopped upon. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetXHRBreakpointAsync(string url) + { + ValidateSetXHRBreakpoint(url); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("url", url); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMDebugger.setXHRBreakpoint", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + /// + /// CaptureSnapshotResponse + /// + public class CaptureSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// documents + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documents")] + public System.Collections.Generic.IList Documents + { + get; + private set; + } + + /// + /// strings + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("strings")] + public string[] Strings + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOMSnapshot +{ + using System.Linq; + + /// + /// This domain facilitates obtaining document snapshots with DOM, layout, and style information. + /// + public partial class DOMSnapshotClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public DOMSnapshotClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Disables DOM snapshot agent for the given page. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMSnapshot.disable", dict); + return methodResult; + } + + /// + /// Enables DOM snapshot agent for the given page. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMSnapshot.enable", dict); + return methodResult; + } + + partial void ValidateCaptureSnapshot(string[] computedStyles, bool? includePaintOrder = null, bool? includeDOMRects = null); + /// + /// Returns a document snapshot, including the full DOM tree of the root node (including iframes, + /// template contents, and imported documents) in a flattened array, as well as layout and + /// white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is + /// flattened. + /// + /// Whitelist of computed styles to return. + /// Whether to include layout object paint orders into the snapshot. + /// Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot + /// returns System.Threading.Tasks.Task<CaptureSnapshotResponse> + public async System.Threading.Tasks.Task CaptureSnapshotAsync(string[] computedStyles, bool? includePaintOrder = null, bool? includeDOMRects = null) + { + ValidateCaptureSnapshot(computedStyles, includePaintOrder, includeDOMRects); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("computedStyles", computedStyles); + if (includePaintOrder.HasValue) + { + dict.Add("includePaintOrder", includePaintOrder.Value); + } + + if (includeDOMRects.HasValue) + { + dict.Add("includeDOMRects", includeDOMRects.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMSnapshot.captureSnapshot", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.DOMStorage +{ + /// + /// GetDOMStorageItemsResponse + /// + public class GetDOMStorageItemsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// entries + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("entries")] + public string[] Entries + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DOMStorage +{ + using System.Linq; + + /// + /// Query and modify DOM storage. + /// + public partial class DOMStorageClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public DOMStorageClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateClear(CefSharp.DevTools.DOMStorage.StorageId storageId); + /// + /// Clear + /// + /// storageId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearAsync(CefSharp.DevTools.DOMStorage.StorageId storageId) + { + ValidateClear(storageId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageId", storageId.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMStorage.clear", dict); + return methodResult; + } + + /// + /// Disables storage tracking, prevents storage events from being sent to the client. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMStorage.disable", dict); + return methodResult; + } + + /// + /// Enables storage tracking, storage events will now be delivered to the client. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMStorage.enable", dict); + return methodResult; + } + + partial void ValidateGetDOMStorageItems(CefSharp.DevTools.DOMStorage.StorageId storageId); + /// + /// GetDOMStorageItems + /// + /// storageId + /// returns System.Threading.Tasks.Task<GetDOMStorageItemsResponse> + public async System.Threading.Tasks.Task GetDOMStorageItemsAsync(CefSharp.DevTools.DOMStorage.StorageId storageId) + { + ValidateGetDOMStorageItems(storageId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageId", storageId.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMStorage.getDOMStorageItems", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateRemoveDOMStorageItem(CefSharp.DevTools.DOMStorage.StorageId storageId, string key); + /// + /// RemoveDOMStorageItem + /// + /// storageId + /// key + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RemoveDOMStorageItemAsync(CefSharp.DevTools.DOMStorage.StorageId storageId, string key) + { + ValidateRemoveDOMStorageItem(storageId, key); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageId", storageId.ToDictionary()); + dict.Add("key", key); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMStorage.removeDOMStorageItem", dict); + return methodResult; + } + + partial void ValidateSetDOMStorageItem(CefSharp.DevTools.DOMStorage.StorageId storageId, string key, string value); + /// + /// SetDOMStorageItem + /// + /// storageId + /// key + /// value + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetDOMStorageItemAsync(CefSharp.DevTools.DOMStorage.StorageId storageId, string key, string value) + { + ValidateSetDOMStorageItem(storageId, key, value); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageId", storageId.ToDictionary()); + dict.Add("key", key); + dict.Add("value", value); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DOMStorage.setDOMStorageItem", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Database +{ + /// + /// ExecuteSQLResponse + /// + public class ExecuteSQLResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// columnNames + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNames")] + public string[] ColumnNames + { + get; + private set; + } + + /// + /// values + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("values")] + public object[] Values + { + get; + private set; + } + + /// + /// sqlError + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sqlError")] + public CefSharp.DevTools.Database.Error SqlError + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Database +{ + /// + /// GetDatabaseTableNamesResponse + /// + public class GetDatabaseTableNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// tableNames + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("tableNames")] + public string[] TableNames + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Database +{ + using System.Linq; + + /// + /// Database + /// + public partial class DatabaseClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public DatabaseClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Disables database tracking, prevents database events from being sent to the client. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Database.disable", dict); + return methodResult; + } + + /// + /// Enables database tracking, database events will now be delivered to the client. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Database.enable", dict); + return methodResult; + } + + partial void ValidateExecuteSQL(string databaseId, string query); + /// + /// ExecuteSQL + /// + /// databaseId + /// query + /// returns System.Threading.Tasks.Task<ExecuteSQLResponse> + public async System.Threading.Tasks.Task ExecuteSQLAsync(string databaseId, string query) + { + ValidateExecuteSQL(databaseId, query); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseId", databaseId); + dict.Add("query", query); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Database.executeSQL", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetDatabaseTableNames(string databaseId); + /// + /// GetDatabaseTableNames + /// + /// databaseId + /// returns System.Threading.Tasks.Task<GetDatabaseTableNamesResponse> + public async System.Threading.Tasks.Task GetDatabaseTableNamesAsync(string databaseId) + { + ValidateGetDatabaseTableNames(databaseId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseId", databaseId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Database.getDatabaseTableNames", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.DeviceOrientation +{ + using System.Linq; + + /// + /// DeviceOrientation + /// + public partial class DeviceOrientationClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public DeviceOrientationClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Clears the overridden Device Orientation. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearDeviceOrientationOverrideAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("DeviceOrientation.clearDeviceOrientationOverride", dict); + return methodResult; + } + + partial void ValidateSetDeviceOrientationOverride(long alpha, long beta, long gamma); + /// + /// Overrides the Device Orientation. + /// + /// Mock alpha + /// Mock beta + /// Mock gamma + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetDeviceOrientationOverrideAsync(long alpha, long beta, long gamma) + { + ValidateSetDeviceOrientationOverride(alpha, beta, gamma); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("alpha", alpha); + dict.Add("beta", beta); + dict.Add("gamma", gamma); + var methodResult = await _client.ExecuteDevToolsMethodAsync("DeviceOrientation.setDeviceOrientationOverride", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Emulation +{ + /// + /// CanEmulateResponse + /// + public class CanEmulateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public bool Result + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Emulation +{ + /// + /// SetVirtualTimePolicyResponse + /// + public class SetVirtualTimePolicyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// virtualTimeTicksBase + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("virtualTimeTicksBase")] + public long VirtualTimeTicksBase + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Emulation +{ + using System.Linq; + + /// + /// This domain emulates different environments for the page. + /// + public partial class EmulationClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public EmulationClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Tells whether emulation is supported. + /// + /// returns System.Threading.Tasks.Task<CanEmulateResponse> + public async System.Threading.Tasks.Task CanEmulateAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.canEmulate", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Clears the overriden device metrics. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearDeviceMetricsOverrideAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.clearDeviceMetricsOverride", dict); + return methodResult; + } + + /// + /// Clears the overriden Geolocation Position and Error. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearGeolocationOverrideAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.clearGeolocationOverride", dict); + return methodResult; + } + + /// + /// Requests that page scale factor is reset to initial values. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ResetPageScaleFactorAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.resetPageScaleFactor", dict); + return methodResult; + } + + partial void ValidateSetFocusEmulationEnabled(bool enabled); + /// + /// Enables or disables simulating a focused and active page. + /// + /// Whether to enable to disable focus emulation. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetFocusEmulationEnabledAsync(bool enabled) + { + ValidateSetFocusEmulationEnabled(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setFocusEmulationEnabled", dict); + return methodResult; + } + + partial void ValidateSetCPUThrottlingRate(long rate); + /// + /// Enables CPU throttling to emulate slow CPUs. + /// + /// Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc). + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetCPUThrottlingRateAsync(long rate) + { + ValidateSetCPUThrottlingRate(rate); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("rate", rate); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setCPUThrottlingRate", dict); + return methodResult; + } + + partial void ValidateSetDefaultBackgroundColorOverride(CefSharp.DevTools.DOM.RGBA color = null); + /// + /// Sets or clears an override of the default background color of the frame. This override is used + /// if the content does not specify one. + /// + /// RGBA of the default background color. If not specified, any existing override will be + public async System.Threading.Tasks.Task SetDefaultBackgroundColorOverrideAsync(CefSharp.DevTools.DOM.RGBA color = null) + { + ValidateSetDefaultBackgroundColorOverride(color); + var dict = new System.Collections.Generic.Dictionary(); + if ((color) != (null)) + { + dict.Add("color", color.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setDefaultBackgroundColorOverride", dict); + return methodResult; + } + + partial void ValidateSetDeviceMetricsOverride(int width, int height, long deviceScaleFactor, bool mobile, long? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null); + /// + /// Overrides the values of device screen dimensions (window.screen.width, window.screen.height, + /// window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media + /// query results). + /// + /// Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. + /// Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. + /// Overriding device scale factor value. 0 disables the override. + /// Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text + public async System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, long deviceScaleFactor, bool mobile, long? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null) + { + ValidateSetDeviceMetricsOverride(width, height, deviceScaleFactor, mobile, scale, screenWidth, screenHeight, positionX, positionY, dontSetVisibleSize, screenOrientation, viewport, displayFeature); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("width", width); + dict.Add("height", height); + dict.Add("deviceScaleFactor", deviceScaleFactor); + dict.Add("mobile", mobile); + if (scale.HasValue) + { + dict.Add("scale", scale.Value); + } + + if (screenWidth.HasValue) + { + dict.Add("screenWidth", screenWidth.Value); + } + + if (screenHeight.HasValue) + { + dict.Add("screenHeight", screenHeight.Value); + } + + if (positionX.HasValue) + { + dict.Add("positionX", positionX.Value); + } + + if (positionY.HasValue) + { + dict.Add("positionY", positionY.Value); + } + + if (dontSetVisibleSize.HasValue) + { + dict.Add("dontSetVisibleSize", dontSetVisibleSize.Value); + } + + if ((screenOrientation) != (null)) + { + dict.Add("screenOrientation", screenOrientation.ToDictionary()); + } + + if ((viewport) != (null)) + { + dict.Add("viewport", viewport.ToDictionary()); + } + + if ((displayFeature) != (null)) + { + dict.Add("displayFeature", displayFeature.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setDeviceMetricsOverride", dict); + return methodResult; + } + + partial void ValidateSetScrollbarsHidden(bool hidden); + /// + /// SetScrollbarsHidden + /// + /// Whether scrollbars should be always hidden. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetScrollbarsHiddenAsync(bool hidden) + { + ValidateSetScrollbarsHidden(hidden); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("hidden", hidden); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setScrollbarsHidden", dict); + return methodResult; + } + + partial void ValidateSetDocumentCookieDisabled(bool disabled); + /// + /// SetDocumentCookieDisabled + /// + /// Whether document.coookie API should be disabled. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetDocumentCookieDisabledAsync(bool disabled) + { + ValidateSetDocumentCookieDisabled(disabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("disabled", disabled); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setDocumentCookieDisabled", dict); + return methodResult; + } + + partial void ValidateSetEmitTouchEventsForMouse(bool enabled, string configuration = null); + /// + /// SetEmitTouchEventsForMouse + /// + /// Whether touch emulation based on mouse input should be enabled. + /// Touch/gesture events configuration. Default: current platform. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetEmitTouchEventsForMouseAsync(bool enabled, string configuration = null) + { + ValidateSetEmitTouchEventsForMouse(enabled, configuration); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + if (!(string.IsNullOrEmpty(configuration))) + { + dict.Add("configuration", configuration); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setEmitTouchEventsForMouse", dict); + return methodResult; + } + + partial void ValidateSetEmulatedMedia(string media = null, System.Collections.Generic.IList features = null); + /// + /// Emulates the given media type or media feature for CSS media queries. + /// + /// Media type to emulate. Empty string disables the override. + /// Media features to emulate. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetEmulatedMediaAsync(string media = null, System.Collections.Generic.IList features = null) + { + ValidateSetEmulatedMedia(media, features); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(media))) + { + dict.Add("media", media); + } + + if ((features) != (null)) + { + dict.Add("features", features.Select(x => x.ToDictionary())); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setEmulatedMedia", dict); + return methodResult; + } + + partial void ValidateSetEmulatedVisionDeficiency(string type); + /// + /// Emulates the given vision deficiency. + /// + /// Vision deficiency to emulate. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetEmulatedVisionDeficiencyAsync(string type) + { + ValidateSetEmulatedVisionDeficiency(type); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("type", type); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setEmulatedVisionDeficiency", dict); + return methodResult; + } + + partial void ValidateSetGeolocationOverride(long? latitude = null, long? longitude = null, long? accuracy = null); + /// + /// Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position + /// unavailable. + /// + /// Mock latitude + /// Mock longitude + /// Mock accuracy + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetGeolocationOverrideAsync(long? latitude = null, long? longitude = null, long? accuracy = null) + { + ValidateSetGeolocationOverride(latitude, longitude, accuracy); + var dict = new System.Collections.Generic.Dictionary(); + if (latitude.HasValue) + { + dict.Add("latitude", latitude.Value); + } + + if (longitude.HasValue) + { + dict.Add("longitude", longitude.Value); + } + + if (accuracy.HasValue) + { + dict.Add("accuracy", accuracy.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setGeolocationOverride", dict); + return methodResult; + } + + partial void ValidateSetIdleOverride(bool isUserActive, bool isScreenUnlocked); + /// + /// Overrides the Idle state. + /// + /// Mock isUserActive + /// Mock isScreenUnlocked + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetIdleOverrideAsync(bool isUserActive, bool isScreenUnlocked) + { + ValidateSetIdleOverride(isUserActive, isScreenUnlocked); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("isUserActive", isUserActive); + dict.Add("isScreenUnlocked", isScreenUnlocked); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setIdleOverride", dict); + return methodResult; + } + + /// + /// Clears Idle state overrides. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearIdleOverrideAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.clearIdleOverride", dict); + return methodResult; + } + + partial void ValidateSetPageScaleFactor(long pageScaleFactor); + /// + /// Sets a specified page scale factor. + /// + /// Page scale factor. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetPageScaleFactorAsync(long pageScaleFactor) + { + ValidateSetPageScaleFactor(pageScaleFactor); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("pageScaleFactor", pageScaleFactor); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setPageScaleFactor", dict); + return methodResult; + } + + partial void ValidateSetScriptExecutionDisabled(bool value); + /// + /// Switches script execution in the page. + /// + /// Whether script execution should be disabled in the page. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetScriptExecutionDisabledAsync(bool value) + { + ValidateSetScriptExecutionDisabled(value); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("value", value); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setScriptExecutionDisabled", dict); + return methodResult; + } + + partial void ValidateSetTouchEmulationEnabled(bool enabled, int? maxTouchPoints = null); + /// + /// Enables touch on platforms which do not support them. + /// + /// Whether the touch event emulation should be enabled. + /// Maximum touch points supported. Defaults to one. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetTouchEmulationEnabledAsync(bool enabled, int? maxTouchPoints = null) + { + ValidateSetTouchEmulationEnabled(enabled, maxTouchPoints); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + if (maxTouchPoints.HasValue) + { + dict.Add("maxTouchPoints", maxTouchPoints.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setTouchEmulationEnabled", dict); + return methodResult; + } + + partial void ValidateSetVirtualTimePolicy(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, long? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = null, long? initialVirtualTime = null); + /// + /// Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets + /// the current virtual time policy. Note this supersedes any previous time budget. + /// + /// policy + /// If set, after this many virtual milliseconds have elapsed virtual time will be paused and a + public async System.Threading.Tasks.Task SetVirtualTimePolicyAsync(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, long? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = null, long? initialVirtualTime = null) + { + ValidateSetVirtualTimePolicy(policy, budget, maxVirtualTimeTaskStarvationCount, waitForNavigation, initialVirtualTime); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("policy", this.EnumToString(policy)); + if (budget.HasValue) + { + dict.Add("budget", budget.Value); + } + + if (maxVirtualTimeTaskStarvationCount.HasValue) + { + dict.Add("maxVirtualTimeTaskStarvationCount", maxVirtualTimeTaskStarvationCount.Value); + } + + if (waitForNavigation.HasValue) + { + dict.Add("waitForNavigation", waitForNavigation.Value); + } + + if (initialVirtualTime.HasValue) + { + dict.Add("initialVirtualTime", initialVirtualTime.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setVirtualTimePolicy", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetLocaleOverride(string locale = null); + /// + /// Overrides default host system locale with the specified one. + /// + /// ICU style C locale (e.g. "en_US"). If not specified or empty, disables the override and + public async System.Threading.Tasks.Task SetLocaleOverrideAsync(string locale = null) + { + ValidateSetLocaleOverride(locale); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(locale))) + { + dict.Add("locale", locale); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setLocaleOverride", dict); + return methodResult; + } + + partial void ValidateSetTimezoneOverride(string timezoneId); + /// + /// Overrides default host system timezone with the specified one. + /// + /// The timezone identifier. If empty, disables the override and + public async System.Threading.Tasks.Task SetTimezoneOverrideAsync(string timezoneId) + { + ValidateSetTimezoneOverride(timezoneId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("timezoneId", timezoneId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setTimezoneOverride", 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. + /// + /// User agent to use. + /// Browser langugage to emulate. + /// The platform navigator.platform should return. + /// To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetUserAgentOverrideAsync(string userAgent, string acceptLanguage = null, string platform = null, CefSharp.DevTools.Emulation.UserAgentMetadata userAgentMetadata = null) + { + ValidateSetUserAgentOverride(userAgent, acceptLanguage, platform, userAgentMetadata); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("userAgent", userAgent); + if (!(string.IsNullOrEmpty(acceptLanguage))) + { + dict.Add("acceptLanguage", acceptLanguage); + } + + if (!(string.IsNullOrEmpty(platform))) + { + dict.Add("platform", platform); + } + + if ((userAgentMetadata) != (null)) + { + dict.Add("userAgentMetadata", userAgentMetadata.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setUserAgentOverride", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.HeadlessExperimental +{ + /// + /// BeginFrameResponse + /// + public class BeginFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// hasDamage + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasDamage")] + public bool HasDamage + { + get; + private set; + } + + /// + /// screenshotData + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("screenshotData")] + public byte[] ScreenshotData + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.HeadlessExperimental +{ + using System.Linq; + + /// + /// This domain provides experimental commands only supported in headless mode. + /// + public partial class HeadlessExperimentalClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public HeadlessExperimentalClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateBeginFrame(long? frameTimeTicks = null, long? interval = null, bool? noDisplayUpdates = null, CefSharp.DevTools.HeadlessExperimental.ScreenshotParams screenshot = null); + /// + /// Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a + /// screenshot from the resulting frame. Requires that the target was created with enabled + /// BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also + /// https://goo.gl/3zHXhB for more background. + /// + /// Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set, + public async System.Threading.Tasks.Task BeginFrameAsync(long? frameTimeTicks = null, long? interval = null, bool? noDisplayUpdates = null, CefSharp.DevTools.HeadlessExperimental.ScreenshotParams screenshot = null) + { + ValidateBeginFrame(frameTimeTicks, interval, noDisplayUpdates, screenshot); + var dict = new System.Collections.Generic.Dictionary(); + if (frameTimeTicks.HasValue) + { + dict.Add("frameTimeTicks", frameTimeTicks.Value); + } + + if (interval.HasValue) + { + dict.Add("interval", interval.Value); + } + + if (noDisplayUpdates.HasValue) + { + dict.Add("noDisplayUpdates", noDisplayUpdates.Value); + } + + if ((screenshot) != (null)) + { + dict.Add("screenshot", screenshot.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeadlessExperimental.beginFrame", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Disables headless events for the target. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeadlessExperimental.disable", dict); + return methodResult; + } + + /// + /// Enables headless events for the target. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeadlessExperimental.enable", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.IO +{ + /// + /// ReadResponse + /// + public class ReadResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// base64Encoded + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("base64Encoded")] + public bool? Base64Encoded + { + get; + private set; + } + + /// + /// data + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + public string Data + { + get; + private set; + } + + /// + /// eof + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("eof")] + public bool Eof + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.IO +{ + /// + /// ResolveBlobResponse + /// + public class ResolveBlobResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// uuid + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("uuid")] + public string Uuid + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.IO +{ + using System.Linq; + + /// + /// Input/Output operations for streams produced by DevTools. + /// + public partial class IOClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public IOClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateClose(string handle); + /// + /// Close the stream, discard any temporary backing storage. + /// + /// Handle of the stream to close. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task CloseAsync(string handle) + { + ValidateClose(handle); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("handle", handle); + var methodResult = await _client.ExecuteDevToolsMethodAsync("IO.close", dict); + return methodResult; + } + + partial void ValidateRead(string handle, int? offset = null, int? size = null); + /// + /// Read a chunk of the stream + /// + /// Handle of the stream to read. + /// Seek to the specified offset before reading (if not specificed, proceed with offset + public async System.Threading.Tasks.Task ReadAsync(string handle, int? offset = null, int? size = null) + { + ValidateRead(handle, offset, size); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("handle", handle); + if (offset.HasValue) + { + dict.Add("offset", offset.Value); + } + + if (size.HasValue) + { + dict.Add("size", size.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("IO.read", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateResolveBlob(string objectId); + /// + /// Return UUID of Blob object specified by a remote object id. + /// + /// Object id of a Blob object wrapper. + /// returns System.Threading.Tasks.Task<ResolveBlobResponse> + public async System.Threading.Tasks.Task ResolveBlobAsync(string objectId) + { + ValidateResolveBlob(objectId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("objectId", objectId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("IO.resolveBlob", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.IndexedDB +{ + /// + /// RequestDataResponse + /// + public class RequestDataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// objectStoreDataEntries + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("objectStoreDataEntries")] + public System.Collections.Generic.IList ObjectStoreDataEntries + { + get; + private set; + } + + /// + /// hasMore + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasMore")] + public bool HasMore + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.IndexedDB +{ + /// + /// GetMetadataResponse + /// + public class GetMetadataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// entriesCount + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("entriesCount")] + public long EntriesCount + { + get; + private set; + } + + /// + /// keyGeneratorValue + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyGeneratorValue")] + public long KeyGeneratorValue + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.IndexedDB +{ + /// + /// RequestDatabaseResponse + /// + public class RequestDatabaseResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// databaseWithObjectStores + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("databaseWithObjectStores")] + public CefSharp.DevTools.IndexedDB.DatabaseWithObjectStores DatabaseWithObjectStores + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.IndexedDB +{ + /// + /// RequestDatabaseNamesResponse + /// + public class RequestDatabaseNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// databaseNames + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("databaseNames")] + public string[] DatabaseNames + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.IndexedDB +{ + using System.Linq; + + /// + /// IndexedDB + /// + public partial class IndexedDBClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public IndexedDBClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateClearObjectStore(string securityOrigin, string databaseName, string objectStoreName); + /// + /// Clears all entries from an object store. + /// + /// Security origin. + /// Database name. + /// Object store name. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearObjectStoreAsync(string securityOrigin, string databaseName, string objectStoreName) + { + ValidateClearObjectStore(securityOrigin, databaseName, objectStoreName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("securityOrigin", securityOrigin); + dict.Add("databaseName", databaseName); + dict.Add("objectStoreName", objectStoreName); + var methodResult = await _client.ExecuteDevToolsMethodAsync("IndexedDB.clearObjectStore", dict); + return methodResult; + } + + partial void ValidateDeleteDatabase(string securityOrigin, string databaseName); + /// + /// Deletes a database. + /// + /// Security origin. + /// Database name. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DeleteDatabaseAsync(string securityOrigin, string databaseName) + { + ValidateDeleteDatabase(securityOrigin, databaseName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("securityOrigin", securityOrigin); + dict.Add("databaseName", databaseName); + var methodResult = await _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteDatabase", dict); + return methodResult; + } + + partial void ValidateDeleteObjectStoreEntries(string securityOrigin, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange); + /// + /// Delete a range of entries from an object store + /// + /// securityOrigin + /// databaseName + /// objectStoreName + /// Range of entry keys to delete + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string securityOrigin, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange) + { + ValidateDeleteObjectStoreEntries(securityOrigin, databaseName, objectStoreName, keyRange); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("securityOrigin", securityOrigin); + dict.Add("databaseName", databaseName); + dict.Add("objectStoreName", objectStoreName); + dict.Add("keyRange", keyRange.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteObjectStoreEntries", dict); + return methodResult; + } + + /// + /// Disables events from backend. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("IndexedDB.disable", dict); + return methodResult; + } + + /// + /// Enables events from backend. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("IndexedDB.enable", dict); + return methodResult; + } + + partial void ValidateRequestData(string securityOrigin, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); + /// + /// Requests data from object store or index. + /// + /// Security origin. + /// Database name. + /// Object store name. + /// Index name, empty string for object store data requests. + /// Number of records to skip. + /// Number of records to fetch. + /// Key range. + /// returns System.Threading.Tasks.Task<RequestDataResponse> + public async System.Threading.Tasks.Task RequestDataAsync(string securityOrigin, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) + { + ValidateRequestData(securityOrigin, databaseName, objectStoreName, indexName, skipCount, pageSize, keyRange); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("securityOrigin", securityOrigin); + dict.Add("databaseName", databaseName); + dict.Add("objectStoreName", objectStoreName); + dict.Add("indexName", indexName); + dict.Add("skipCount", skipCount); + dict.Add("pageSize", pageSize); + if ((keyRange) != (null)) + { + dict.Add("keyRange", keyRange.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("IndexedDB.requestData", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetMetadata(string securityOrigin, string databaseName, string objectStoreName); + /// + /// Gets metadata of an object store + /// + /// Security origin. + /// Database name. + /// Object store name. + /// returns System.Threading.Tasks.Task<GetMetadataResponse> + public async System.Threading.Tasks.Task GetMetadataAsync(string securityOrigin, string databaseName, string objectStoreName) + { + ValidateGetMetadata(securityOrigin, databaseName, objectStoreName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("securityOrigin", securityOrigin); + dict.Add("databaseName", databaseName); + dict.Add("objectStoreName", objectStoreName); + var methodResult = await _client.ExecuteDevToolsMethodAsync("IndexedDB.getMetadata", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateRequestDatabase(string securityOrigin, string databaseName); + /// + /// Requests database with given name in given frame. + /// + /// Security origin. + /// Database name. + /// returns System.Threading.Tasks.Task<RequestDatabaseResponse> + public async System.Threading.Tasks.Task RequestDatabaseAsync(string securityOrigin, string databaseName) + { + ValidateRequestDatabase(securityOrigin, databaseName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("securityOrigin", securityOrigin); + dict.Add("databaseName", databaseName); + var methodResult = await _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabase", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateRequestDatabaseNames(string securityOrigin); + /// + /// Requests database names for given security origin. + /// + /// Security origin. + /// returns System.Threading.Tasks.Task<RequestDatabaseNamesResponse> + public async System.Threading.Tasks.Task RequestDatabaseNamesAsync(string securityOrigin) + { + ValidateRequestDatabaseNames(securityOrigin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("securityOrigin", securityOrigin); + var methodResult = await _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabaseNames", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.Input +{ + using System.Linq; + + /// + /// Input + /// + public partial class InputClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public InputClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateDispatchKeyEvent(string type, int? modifiers = null, long? timestamp = null, string text = null, string unmodifiedText = null, string keyIdentifier = null, string code = null, string key = null, int? windowsVirtualKeyCode = null, int? nativeVirtualKeyCode = null, bool? autoRepeat = null, bool? isKeypad = null, bool? isSystemKey = null, int? location = null, string[] commands = null); + /// + /// Dispatches a key event to the page. + /// + /// Type of the key event. + /// Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 + public async System.Threading.Tasks.Task DispatchKeyEventAsync(string type, int? modifiers = null, long? timestamp = null, string text = null, string unmodifiedText = null, string keyIdentifier = null, string code = null, string key = null, int? windowsVirtualKeyCode = null, int? nativeVirtualKeyCode = null, bool? autoRepeat = null, bool? isKeypad = null, bool? isSystemKey = null, int? location = null, string[] commands = null) + { + ValidateDispatchKeyEvent(type, modifiers, timestamp, text, unmodifiedText, keyIdentifier, code, key, windowsVirtualKeyCode, nativeVirtualKeyCode, autoRepeat, isKeypad, isSystemKey, location, commands); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("type", type); + if (modifiers.HasValue) + { + dict.Add("modifiers", modifiers.Value); + } + + if (timestamp.HasValue) + { + dict.Add("timestamp", timestamp.Value); + } + + if (!(string.IsNullOrEmpty(text))) + { + dict.Add("text", text); + } + + if (!(string.IsNullOrEmpty(unmodifiedText))) + { + dict.Add("unmodifiedText", unmodifiedText); + } + + if (!(string.IsNullOrEmpty(keyIdentifier))) + { + dict.Add("keyIdentifier", keyIdentifier); + } + + if (!(string.IsNullOrEmpty(code))) + { + dict.Add("code", code); + } + + if (!(string.IsNullOrEmpty(key))) + { + dict.Add("key", key); + } + + if (windowsVirtualKeyCode.HasValue) + { + dict.Add("windowsVirtualKeyCode", windowsVirtualKeyCode.Value); + } + + if (nativeVirtualKeyCode.HasValue) + { + dict.Add("nativeVirtualKeyCode", nativeVirtualKeyCode.Value); + } + + if (autoRepeat.HasValue) + { + dict.Add("autoRepeat", autoRepeat.Value); + } + + if (isKeypad.HasValue) + { + dict.Add("isKeypad", isKeypad.Value); + } + + if (isSystemKey.HasValue) + { + dict.Add("isSystemKey", isSystemKey.Value); + } + + if (location.HasValue) + { + dict.Add("location", location.Value); + } + + if ((commands) != (null)) + { + dict.Add("commands", commands); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Input.dispatchKeyEvent", dict); + return methodResult; + } + + partial void ValidateInsertText(string text); + /// + /// This method emulates inserting text that doesn't come from a key press, + /// for example an emoji keyboard or an IME. + /// + /// The text to insert. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task InsertTextAsync(string text) + { + ValidateInsertText(text); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("text", text); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Input.insertText", dict); + return methodResult; + } + + partial void ValidateDispatchMouseEvent(string type, long x, long y, int? modifiers = null, long? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, long? deltaX = null, long? deltaY = null, string pointerType = null); + /// + /// Dispatches a mouse event to the page. + /// + /// Type of the mouse event. + /// X coordinate of the event relative to the main frame's viewport in CSS pixels. + /// Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to + public async System.Threading.Tasks.Task DispatchMouseEventAsync(string type, long x, long y, int? modifiers = null, long? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, long? deltaX = null, long? deltaY = null, string pointerType = null) + { + ValidateDispatchMouseEvent(type, x, y, modifiers, timestamp, button, buttons, clickCount, deltaX, deltaY, pointerType); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("type", type); + dict.Add("x", x); + dict.Add("y", y); + if (modifiers.HasValue) + { + dict.Add("modifiers", modifiers.Value); + } + + if (timestamp.HasValue) + { + dict.Add("timestamp", timestamp.Value); + } + + if (button.HasValue) + { + dict.Add("button", this.EnumToString(button)); + } + + if (buttons.HasValue) + { + dict.Add("buttons", buttons.Value); + } + + if (clickCount.HasValue) + { + dict.Add("clickCount", clickCount.Value); + } + + if (deltaX.HasValue) + { + dict.Add("deltaX", deltaX.Value); + } + + if (deltaY.HasValue) + { + dict.Add("deltaY", deltaY.Value); + } + + if (!(string.IsNullOrEmpty(pointerType))) + { + dict.Add("pointerType", pointerType); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Input.dispatchMouseEvent", dict); + return methodResult; + } + + partial void ValidateDispatchTouchEvent(string type, System.Collections.Generic.IList touchPoints, int? modifiers = null, long? timestamp = null); + /// + /// Dispatches a touch event to the page. + /// + /// Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while + public async System.Threading.Tasks.Task DispatchTouchEventAsync(string type, System.Collections.Generic.IList touchPoints, int? modifiers = null, long? timestamp = null) + { + ValidateDispatchTouchEvent(type, touchPoints, modifiers, timestamp); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("type", type); + dict.Add("touchPoints", touchPoints.Select(x => x.ToDictionary())); + if (modifiers.HasValue) + { + dict.Add("modifiers", modifiers.Value); + } + + if (timestamp.HasValue) + { + dict.Add("timestamp", timestamp.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Input.dispatchTouchEvent", dict); + return methodResult; + } + + partial void ValidateEmulateTouchFromMouseEvent(string type, int x, int y, CefSharp.DevTools.Input.MouseButton button, long? timestamp = null, long? deltaX = null, long? deltaY = null, int? modifiers = null, int? clickCount = null); + /// + /// Emulates touch event from the mouse event parameters. + /// + /// Type of the mouse event. + /// X coordinate of the mouse pointer in DIP. + /// Y coordinate of the mouse pointer in DIP. + /// Mouse button. Only "none", "left", "right" are supported. + /// Time at which the event occurred (default: current time). + /// X delta in DIP for mouse wheel event (default: 0). + /// Y delta in DIP for mouse wheel event (default: 0). + /// Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 + public async System.Threading.Tasks.Task EmulateTouchFromMouseEventAsync(string type, int x, int y, CefSharp.DevTools.Input.MouseButton button, long? timestamp = null, long? deltaX = null, long? deltaY = null, int? modifiers = null, int? clickCount = null) + { + ValidateEmulateTouchFromMouseEvent(type, x, y, button, timestamp, deltaX, deltaY, modifiers, clickCount); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("type", type); + dict.Add("x", x); + dict.Add("y", y); + dict.Add("button", this.EnumToString(button)); + if (timestamp.HasValue) + { + dict.Add("timestamp", timestamp.Value); + } + + if (deltaX.HasValue) + { + dict.Add("deltaX", deltaX.Value); + } + + if (deltaY.HasValue) + { + dict.Add("deltaY", deltaY.Value); + } + + if (modifiers.HasValue) + { + dict.Add("modifiers", modifiers.Value); + } + + if (clickCount.HasValue) + { + dict.Add("clickCount", clickCount.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Input.emulateTouchFromMouseEvent", dict); + return methodResult; + } + + partial void ValidateSetIgnoreInputEvents(bool ignore); + /// + /// Ignores input events (useful while auditing page). + /// + /// Ignores input events processing when set to true. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetIgnoreInputEventsAsync(bool ignore) + { + ValidateSetIgnoreInputEvents(ignore); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ignore", ignore); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Input.setIgnoreInputEvents", dict); + return methodResult; + } + + partial void ValidateSynthesizePinchGesture(long x, long y, long scaleFactor, int? relativeSpeed = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null); + /// + /// Synthesizes a pinch gesture over a time period by issuing appropriate touch events. + /// + /// X coordinate of the start of the gesture in CSS pixels. + /// Y coordinate of the start of the gesture in CSS pixels. + /// Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out). + /// Relative pointer speed in pixels per second (default: 800). + /// Which type of input events to be generated (default: 'default', which queries the platform + public async System.Threading.Tasks.Task SynthesizePinchGestureAsync(long x, long y, long scaleFactor, int? relativeSpeed = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null) + { + ValidateSynthesizePinchGesture(x, y, scaleFactor, relativeSpeed, gestureSourceType); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("x", x); + dict.Add("y", y); + dict.Add("scaleFactor", scaleFactor); + if (relativeSpeed.HasValue) + { + dict.Add("relativeSpeed", relativeSpeed.Value); + } + + if (gestureSourceType.HasValue) + { + dict.Add("gestureSourceType", this.EnumToString(gestureSourceType)); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Input.synthesizePinchGesture", dict); + return methodResult; + } + + partial void ValidateSynthesizeScrollGesture(long x, long y, long? xDistance = null, long? yDistance = null, long? xOverscroll = null, long? yOverscroll = null, bool? preventFling = null, int? speed = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null, int? repeatCount = null, int? repeatDelayMs = null, string interactionMarkerName = null); + /// + /// Synthesizes a scroll gesture over a time period by issuing appropriate touch events. + /// + /// X coordinate of the start of the gesture in CSS pixels. + /// Y coordinate of the start of the gesture in CSS pixels. + /// The distance to scroll along the X axis (positive to scroll left). + /// The distance to scroll along the Y axis (positive to scroll up). + /// The number of additional pixels to scroll back along the X axis, in addition to the given + public async System.Threading.Tasks.Task SynthesizeScrollGestureAsync(long x, long y, long? xDistance = null, long? yDistance = null, long? xOverscroll = null, long? yOverscroll = null, bool? preventFling = null, int? speed = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null, int? repeatCount = null, int? repeatDelayMs = null, string interactionMarkerName = null) + { + ValidateSynthesizeScrollGesture(x, y, xDistance, yDistance, xOverscroll, yOverscroll, preventFling, speed, gestureSourceType, repeatCount, repeatDelayMs, interactionMarkerName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("x", x); + dict.Add("y", y); + if (xDistance.HasValue) + { + dict.Add("xDistance", xDistance.Value); + } + + if (yDistance.HasValue) + { + dict.Add("yDistance", yDistance.Value); + } + + if (xOverscroll.HasValue) + { + dict.Add("xOverscroll", xOverscroll.Value); + } + + if (yOverscroll.HasValue) + { + dict.Add("yOverscroll", yOverscroll.Value); + } + + if (preventFling.HasValue) + { + dict.Add("preventFling", preventFling.Value); + } + + if (speed.HasValue) + { + dict.Add("speed", speed.Value); + } + + if (gestureSourceType.HasValue) + { + dict.Add("gestureSourceType", this.EnumToString(gestureSourceType)); + } + + if (repeatCount.HasValue) + { + dict.Add("repeatCount", repeatCount.Value); + } + + if (repeatDelayMs.HasValue) + { + dict.Add("repeatDelayMs", repeatDelayMs.Value); + } + + if (!(string.IsNullOrEmpty(interactionMarkerName))) + { + dict.Add("interactionMarkerName", interactionMarkerName); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Input.synthesizeScrollGesture", dict); + return methodResult; + } + + partial void ValidateSynthesizeTapGesture(long x, long y, int? duration = null, int? tapCount = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null); + /// + /// Synthesizes a tap gesture over a time period by issuing appropriate touch events. + /// + /// X coordinate of the start of the gesture in CSS pixels. + /// Y coordinate of the start of the gesture in CSS pixels. + /// Duration between touchdown and touchup events in ms (default: 50). + /// Number of times to perform the tap (e.g. 2 for double tap, default: 1). + /// Which type of input events to be generated (default: 'default', which queries the platform + public async System.Threading.Tasks.Task SynthesizeTapGestureAsync(long x, long y, int? duration = null, int? tapCount = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null) + { + ValidateSynthesizeTapGesture(x, y, duration, tapCount, gestureSourceType); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("x", x); + dict.Add("y", y); + if (duration.HasValue) + { + dict.Add("duration", duration.Value); + } + + if (tapCount.HasValue) + { + dict.Add("tapCount", tapCount.Value); + } + + if (gestureSourceType.HasValue) + { + dict.Add("gestureSourceType", this.EnumToString(gestureSourceType)); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Input.synthesizeTapGesture", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Inspector +{ + using System.Linq; + + /// + /// Inspector + /// + public partial class InspectorClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public InspectorClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Disables inspector domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Inspector.disable", dict); + return methodResult; + } + + /// + /// Enables inspector domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Inspector.enable", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.LayerTree +{ + /// + /// CompositingReasonsResponse + /// + public class CompositingReasonsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// compositingReasons + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("compositingReasons")] + public string[] CompositingReasons + { + get; + private set; + } + + /// + /// compositingReasonIds + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("compositingReasonIds")] + public string[] CompositingReasonIds + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.LayerTree +{ + /// + /// LoadSnapshotResponse + /// + public class LoadSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// snapshotId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("snapshotId")] + public string SnapshotId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.LayerTree +{ + /// + /// MakeSnapshotResponse + /// + public class MakeSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// snapshotId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("snapshotId")] + public string SnapshotId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.LayerTree +{ + /// + /// ProfileSnapshotResponse + /// + public class ProfileSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// timings + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timings")] + public long[] Timings + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.LayerTree +{ + /// + /// ReplaySnapshotResponse + /// + public class ReplaySnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// dataURL + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("dataURL")] + public string DataURL + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.LayerTree +{ + /// + /// SnapshotCommandLogResponse + /// + public class SnapshotCommandLogResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// commandLog + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("commandLog")] + public System.Collections.Generic.IList CommandLog + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.LayerTree +{ + using System.Linq; + + /// + /// LayerTree + /// + public partial class LayerTreeClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public LayerTreeClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateCompositingReasons(string layerId); + /// + /// Provides the reasons why the given layer was composited. + /// + /// The id of the layer for which we want to get the reasons it was composited. + /// returns System.Threading.Tasks.Task<CompositingReasonsResponse> + public async System.Threading.Tasks.Task CompositingReasonsAsync(string layerId) + { + ValidateCompositingReasons(layerId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("layerId", layerId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("LayerTree.compositingReasons", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Disables compositing tree inspection. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("LayerTree.disable", dict); + return methodResult; + } + + /// + /// Enables compositing tree inspection. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("LayerTree.enable", dict); + return methodResult; + } + + partial void ValidateLoadSnapshot(System.Collections.Generic.IList tiles); + /// + /// Returns the snapshot identifier. + /// + /// An array of tiles composing the snapshot. + /// returns System.Threading.Tasks.Task<LoadSnapshotResponse> + public async System.Threading.Tasks.Task LoadSnapshotAsync(System.Collections.Generic.IList tiles) + { + ValidateLoadSnapshot(tiles); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("tiles", tiles.Select(x => x.ToDictionary())); + var methodResult = await _client.ExecuteDevToolsMethodAsync("LayerTree.loadSnapshot", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateMakeSnapshot(string layerId); + /// + /// Returns the layer snapshot identifier. + /// + /// The id of the layer. + /// returns System.Threading.Tasks.Task<MakeSnapshotResponse> + public async System.Threading.Tasks.Task MakeSnapshotAsync(string layerId) + { + ValidateMakeSnapshot(layerId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("layerId", layerId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("LayerTree.makeSnapshot", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateProfileSnapshot(string snapshotId, int? minRepeatCount = null, long? minDuration = null, CefSharp.DevTools.DOM.Rect clipRect = null); + /// + /// ProfileSnapshot + /// + /// The id of the layer snapshot. + /// The maximum number of times to replay the snapshot (1, if not specified). + /// The minimum duration (in seconds) to replay the snapshot. + /// The clip rectangle to apply when replaying the snapshot. + /// returns System.Threading.Tasks.Task<ProfileSnapshotResponse> + public async System.Threading.Tasks.Task ProfileSnapshotAsync(string snapshotId, int? minRepeatCount = null, long? minDuration = null, CefSharp.DevTools.DOM.Rect clipRect = null) + { + ValidateProfileSnapshot(snapshotId, minRepeatCount, minDuration, clipRect); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("snapshotId", snapshotId); + if (minRepeatCount.HasValue) + { + dict.Add("minRepeatCount", minRepeatCount.Value); + } + + if (minDuration.HasValue) + { + dict.Add("minDuration", minDuration.Value); + } + + if ((clipRect) != (null)) + { + dict.Add("clipRect", clipRect.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("LayerTree.profileSnapshot", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateReleaseSnapshot(string snapshotId); + /// + /// Releases layer snapshot captured by the back-end. + /// + /// The id of the layer snapshot. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ReleaseSnapshotAsync(string snapshotId) + { + ValidateReleaseSnapshot(snapshotId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("snapshotId", snapshotId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("LayerTree.releaseSnapshot", dict); + return methodResult; + } + + partial void ValidateReplaySnapshot(string snapshotId, int? fromStep = null, int? toStep = null, long? scale = null); + /// + /// Replays the layer snapshot and returns the resulting bitmap. + /// + /// The id of the layer snapshot. + /// The first step to replay from (replay from the very start if not specified). + /// The last step to replay to (replay till the end if not specified). + /// The scale to apply while replaying (defaults to 1). + /// returns System.Threading.Tasks.Task<ReplaySnapshotResponse> + public async System.Threading.Tasks.Task ReplaySnapshotAsync(string snapshotId, int? fromStep = null, int? toStep = null, long? scale = null) + { + ValidateReplaySnapshot(snapshotId, fromStep, toStep, scale); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("snapshotId", snapshotId); + if (fromStep.HasValue) + { + dict.Add("fromStep", fromStep.Value); + } + + if (toStep.HasValue) + { + dict.Add("toStep", toStep.Value); + } + + if (scale.HasValue) + { + dict.Add("scale", scale.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("LayerTree.replaySnapshot", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSnapshotCommandLog(string snapshotId); + /// + /// Replays the layer snapshot and returns canvas log. + /// + /// The id of the layer snapshot. + /// returns System.Threading.Tasks.Task<SnapshotCommandLogResponse> + public async System.Threading.Tasks.Task SnapshotCommandLogAsync(string snapshotId) + { + ValidateSnapshotCommandLog(snapshotId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("snapshotId", snapshotId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("LayerTree.snapshotCommandLog", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.Log +{ + using System.Linq; + + /// + /// Provides access to log entries. + /// + public partial class LogClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public LogClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Clears the log. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Log.clear", dict); + return methodResult; + } + + /// + /// Disables log domain, prevents further log entries from being reported to the client. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Log.disable", dict); + return methodResult; + } + + /// + /// Enables log domain, sends the entries collected so far to the client by means of the + /// `entryAdded` notification. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Log.enable", dict); + return methodResult; + } + + partial void ValidateStartViolationsReport(System.Collections.Generic.IList config); + /// + /// start violation reporting. + /// + /// Configuration for violations. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StartViolationsReportAsync(System.Collections.Generic.IList config) + { + ValidateStartViolationsReport(config); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("config", config.Select(x => x.ToDictionary())); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Log.startViolationsReport", dict); + return methodResult; + } + + /// + /// Stop violation reporting. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StopViolationsReportAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Log.stopViolationsReport", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Memory +{ + /// + /// GetDOMCountersResponse + /// + public class GetDOMCountersResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// documents + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documents")] + public int Documents + { + get; + private set; + } + + /// + /// nodes + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + public int Nodes + { + get; + private set; + } + + /// + /// jsEventListeners + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("jsEventListeners")] + public int JsEventListeners + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Memory +{ + /// + /// GetAllTimeSamplingProfileResponse + /// + public class GetAllTimeSamplingProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// profile + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + public CefSharp.DevTools.Memory.SamplingProfile Profile + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Memory +{ + /// + /// GetBrowserSamplingProfileResponse + /// + public class GetBrowserSamplingProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// profile + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + public CefSharp.DevTools.Memory.SamplingProfile Profile + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Memory +{ + /// + /// GetSamplingProfileResponse + /// + public class GetSamplingProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// profile + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + public CefSharp.DevTools.Memory.SamplingProfile Profile + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Memory +{ + using System.Linq; + + /// + /// Memory + /// + public partial class MemoryClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public MemoryClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// GetDOMCounters + /// + /// returns System.Threading.Tasks.Task<GetDOMCountersResponse> + public async System.Threading.Tasks.Task GetDOMCountersAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Memory.getDOMCounters", dict); + return methodResult.DeserializeJson(); + } + + /// + /// PrepareForLeakDetection + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task PrepareForLeakDetectionAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Memory.prepareForLeakDetection", dict); + return methodResult; + } + + /// + /// Simulate OomIntervention by purging V8 memory. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ForciblyPurgeJavaScriptMemoryAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Memory.forciblyPurgeJavaScriptMemory", dict); + return methodResult; + } + + partial void ValidateSetPressureNotificationsSuppressed(bool suppressed); + /// + /// Enable/disable suppressing memory pressure notifications in all processes. + /// + /// If true, memory pressure notifications will be suppressed. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetPressureNotificationsSuppressedAsync(bool suppressed) + { + ValidateSetPressureNotificationsSuppressed(suppressed); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("suppressed", suppressed); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Memory.setPressureNotificationsSuppressed", dict); + return methodResult; + } + + partial void ValidateSimulatePressureNotification(CefSharp.DevTools.Memory.PressureLevel level); + /// + /// Simulate a memory pressure notification in all processes. + /// + /// Memory pressure level of the notification. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SimulatePressureNotificationAsync(CefSharp.DevTools.Memory.PressureLevel level) + { + ValidateSimulatePressureNotification(level); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("level", this.EnumToString(level)); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Memory.simulatePressureNotification", dict); + return methodResult; + } + + partial void ValidateStartSampling(int? samplingInterval = null, bool? suppressRandomness = null); + /// + /// Start collecting native memory profile. + /// + /// Average number of bytes between samples. + /// Do not randomize intervals between samples. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StartSamplingAsync(int? samplingInterval = null, bool? suppressRandomness = null) + { + ValidateStartSampling(samplingInterval, suppressRandomness); + var dict = new System.Collections.Generic.Dictionary(); + if (samplingInterval.HasValue) + { + dict.Add("samplingInterval", samplingInterval.Value); + } + + if (suppressRandomness.HasValue) + { + dict.Add("suppressRandomness", suppressRandomness.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Memory.startSampling", dict); + return methodResult; + } + + /// + /// Stop collecting native memory profile. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StopSamplingAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Memory.stopSampling", dict); + return methodResult; + } + + /// + /// Retrieve native memory allocations profile + /// collected since renderer process startup. + /// + /// returns System.Threading.Tasks.Task<GetAllTimeSamplingProfileResponse> + public async System.Threading.Tasks.Task GetAllTimeSamplingProfileAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Memory.getAllTimeSamplingProfile", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Retrieve native memory allocations profile + /// collected since browser process startup. + /// + /// returns System.Threading.Tasks.Task<GetBrowserSamplingProfileResponse> + public async System.Threading.Tasks.Task GetBrowserSamplingProfileAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Memory.getBrowserSamplingProfile", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Retrieve native memory allocations profile collected since last + /// `startSampling` call. + /// + /// returns System.Threading.Tasks.Task<GetSamplingProfileResponse> + public async System.Threading.Tasks.Task GetSamplingProfileAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Memory.getSamplingProfile", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// GetAllCookiesResponse + /// + public class GetAllCookiesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// cookies + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookies")] + public System.Collections.Generic.IList Cookies + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// GetCertificateResponse + /// + public class GetCertificateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// tableNames + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("tableNames")] + public string[] TableNames + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// GetCookiesResponse + /// + public class GetCookiesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// cookies + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookies")] + public System.Collections.Generic.IList Cookies + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// GetResponseBodyResponse + /// + public class GetResponseBodyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// body + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("body")] + public string Body + { + get; + private set; + } + + /// + /// base64Encoded + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("base64Encoded")] + public bool Base64Encoded + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// GetRequestPostDataResponse + /// + public class GetRequestPostDataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// postData + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("postData")] + public string PostData + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// GetResponseBodyForInterceptionResponse + /// + public class GetResponseBodyForInterceptionResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// body + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("body")] + public string Body + { + get; + private set; + } + + /// + /// base64Encoded + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("base64Encoded")] + public bool Base64Encoded + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// TakeResponseBodyForInterceptionAsStreamResponse + /// + public class TakeResponseBodyForInterceptionAsStreamResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// stream + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stream")] + public string Stream + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// SearchInResponseBodyResponse + /// + public class SearchInResponseBodyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public System.Collections.Generic.IList Result + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// SetCookieResponse + /// + public class SetCookieResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// success + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("success")] + public bool Success + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// GetSecurityIsolationStatusResponse + /// + public class GetSecurityIsolationStatusResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// status + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + public CefSharp.DevTools.Network.SecurityIsolationStatus Status + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + /// + /// LoadNetworkResourceResponse + /// + public class LoadNetworkResourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// resource + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resource")] + public CefSharp.DevTools.Network.LoadNetworkResourcePageResult Resource + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Network +{ + using System.Linq; + + /// + /// Network domain allows tracking network activities of the page. It exposes information about http, + /// file, data and other requests and responses, their headers, bodies, timing, etc. + /// + public partial class NetworkClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public NetworkClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Clears browser cache. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearBrowserCacheAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.clearBrowserCache", dict); + return methodResult; + } + + /// + /// Clears browser cookies. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearBrowserCookiesAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.clearBrowserCookies", dict); + return methodResult; + } + + partial void ValidateDeleteCookies(string name, string url = null, string domain = null, string path = null); + /// + /// Deletes browser cookies with matching name and url or domain/path pair. + /// + /// Name of the cookies to remove. + /// If specified, deletes all the cookies with the given name where domain and path match + public async System.Threading.Tasks.Task DeleteCookiesAsync(string name, string url = null, string domain = null, string path = null) + { + ValidateDeleteCookies(name, url, domain, path); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("name", name); + if (!(string.IsNullOrEmpty(url))) + { + dict.Add("url", url); + } + + if (!(string.IsNullOrEmpty(domain))) + { + dict.Add("domain", domain); + } + + if (!(string.IsNullOrEmpty(path))) + { + dict.Add("path", path); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.deleteCookies", dict); + return methodResult; + } + + /// + /// Disables network tracking, prevents network events from being sent to the client. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.disable", dict); + return methodResult; + } + + partial void ValidateEmulateNetworkConditions(bool offline, long latency, long downloadThroughput, long uploadThroughput, CefSharp.DevTools.Network.ConnectionType? connectionType = null); + /// + /// Activates emulation of network conditions. + /// + /// True to emulate internet disconnection. + /// Minimum latency from request sent to response headers received (ms). + /// Maximal aggregated download throughput (bytes/sec). -1 disables download throttling. + /// Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling. + /// Connection type if known. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EmulateNetworkConditionsAsync(bool offline, long latency, long downloadThroughput, long uploadThroughput, CefSharp.DevTools.Network.ConnectionType? connectionType = null) + { + ValidateEmulateNetworkConditions(offline, latency, downloadThroughput, uploadThroughput, connectionType); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("offline", offline); + dict.Add("latency", latency); + dict.Add("downloadThroughput", downloadThroughput); + dict.Add("uploadThroughput", uploadThroughput); + if (connectionType.HasValue) + { + dict.Add("connectionType", this.EnumToString(connectionType)); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.emulateNetworkConditions", dict); + return methodResult; + } + + partial void ValidateEnable(int? maxTotalBufferSize = null, int? maxResourceBufferSize = null, int? maxPostDataSize = null); + /// + /// Enables network tracking, network events will now be delivered to the client. + /// + /// Buffer size in bytes to use when preserving network payloads (XHRs, etc). + /// Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc). + /// Longest post body size (in bytes) that would be included in requestWillBeSent notification + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync(int? maxTotalBufferSize = null, int? maxResourceBufferSize = null, int? maxPostDataSize = null) + { + ValidateEnable(maxTotalBufferSize, maxResourceBufferSize, maxPostDataSize); + var dict = new System.Collections.Generic.Dictionary(); + if (maxTotalBufferSize.HasValue) + { + dict.Add("maxTotalBufferSize", maxTotalBufferSize.Value); + } + + if (maxResourceBufferSize.HasValue) + { + dict.Add("maxResourceBufferSize", maxResourceBufferSize.Value); + } + + if (maxPostDataSize.HasValue) + { + dict.Add("maxPostDataSize", maxPostDataSize.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.enable", dict); + return methodResult; + } + + /// + /// Returns all browser cookies. Depending on the backend support, will return detailed cookie + /// information in the `cookies` field. + /// + /// returns System.Threading.Tasks.Task<GetAllCookiesResponse> + public async System.Threading.Tasks.Task GetAllCookiesAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.getAllCookies", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetCertificate(string origin); + /// + /// Returns the DER-encoded certificate. + /// + /// Origin to get certificate for. + /// returns System.Threading.Tasks.Task<GetCertificateResponse> + public async System.Threading.Tasks.Task GetCertificateAsync(string origin) + { + ValidateGetCertificate(origin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("origin", origin); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.getCertificate", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetCookies(string[] urls = null); + /// + /// Returns all browser cookies for the current URL. Depending on the backend support, will return + /// detailed cookie information in the `cookies` field. + /// + /// The list of URLs for which applicable cookies will be fetched. + public async System.Threading.Tasks.Task GetCookiesAsync(string[] urls = null) + { + ValidateGetCookies(urls); + var dict = new System.Collections.Generic.Dictionary(); + if ((urls) != (null)) + { + dict.Add("urls", urls); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.getCookies", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetResponseBody(string requestId); + /// + /// Returns content served for the given request. + /// + /// Identifier of the network request to get content for. + /// returns System.Threading.Tasks.Task<GetResponseBodyResponse> + public async System.Threading.Tasks.Task GetResponseBodyAsync(string requestId) + { + ValidateGetResponseBody(requestId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.getResponseBody", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetRequestPostData(string requestId); + /// + /// Returns post data sent with the request. Returns an error when no data was sent with the request. + /// + /// Identifier of the network request to get content for. + /// returns System.Threading.Tasks.Task<GetRequestPostDataResponse> + public async System.Threading.Tasks.Task GetRequestPostDataAsync(string requestId) + { + ValidateGetRequestPostData(requestId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.getRequestPostData", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetResponseBodyForInterception(string interceptionId); + /// + /// Returns content served for the given currently intercepted request. + /// + /// Identifier for the intercepted request to get body for. + /// returns System.Threading.Tasks.Task<GetResponseBodyForInterceptionResponse> + public async System.Threading.Tasks.Task GetResponseBodyForInterceptionAsync(string interceptionId) + { + ValidateGetResponseBodyForInterception(interceptionId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("interceptionId", interceptionId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.getResponseBodyForInterception", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateTakeResponseBodyForInterceptionAsStream(string interceptionId); + /// + /// Returns a handle to the stream representing the response body. Note that after this command, + /// the intercepted request can't be continued as is -- you either need to cancel it or to provide + /// the response body. The stream only supports sequential read, IO.read will fail if the position + /// is specified. + /// + /// interceptionId + /// returns System.Threading.Tasks.Task<TakeResponseBodyForInterceptionAsStreamResponse> + public async System.Threading.Tasks.Task TakeResponseBodyForInterceptionAsStreamAsync(string interceptionId) + { + ValidateTakeResponseBodyForInterceptionAsStream(interceptionId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("interceptionId", interceptionId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.takeResponseBodyForInterceptionAsStream", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateReplayXHR(string requestId); + /// + /// This method sends a new XMLHttpRequest which is identical to the original one. The following + /// parameters should be identical: method, url, async, request body, extra headers, withCredentials + /// attribute, user, password. + /// + /// Identifier of XHR to replay. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ReplayXHRAsync(string requestId) + { + ValidateReplayXHR(requestId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.replayXHR", dict); + return methodResult; + } + + partial void ValidateSearchInResponseBody(string requestId, string query, bool? caseSensitive = null, bool? isRegex = null); + /// + /// Searches for given string in response content. + /// + /// Identifier of the network response to search. + /// String to search for. + /// If true, search is case sensitive. + /// If true, treats string parameter as regex. + /// returns System.Threading.Tasks.Task<SearchInResponseBodyResponse> + public async System.Threading.Tasks.Task SearchInResponseBodyAsync(string requestId, string query, bool? caseSensitive = null, bool? isRegex = null) + { + ValidateSearchInResponseBody(requestId, query, caseSensitive, isRegex); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("query", query); + if (caseSensitive.HasValue) + { + dict.Add("caseSensitive", caseSensitive.Value); + } + + if (isRegex.HasValue) + { + dict.Add("isRegex", isRegex.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.searchInResponseBody", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetBlockedURLs(string[] urls); + /// + /// Blocks URLs from loading. + /// + /// URL patterns to block. Wildcards ('*') are allowed. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetBlockedURLsAsync(string[] urls) + { + ValidateSetBlockedURLs(urls); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("urls", urls); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.setBlockedURLs", dict); + return methodResult; + } + + partial void ValidateSetBypassServiceWorker(bool bypass); + /// + /// Toggles ignoring of service worker for each request. + /// + /// Bypass service worker and load from network. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetBypassServiceWorkerAsync(bool bypass) + { + ValidateSetBypassServiceWorker(bypass); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("bypass", bypass); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.setBypassServiceWorker", dict); + return methodResult; + } + + partial void ValidateSetCacheDisabled(bool cacheDisabled); + /// + /// Toggles ignoring cache for each request. If `true`, cache will not be used. + /// + /// Cache disabled state. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetCacheDisabledAsync(bool cacheDisabled) + { + ValidateSetCacheDisabled(cacheDisabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("cacheDisabled", cacheDisabled); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.setCacheDisabled", dict); + return methodResult; + } + + partial void ValidateSetCookie(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, long? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null); + /// + /// Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. + /// + /// Cookie name. + /// Cookie value. + /// The request-URI to associate with the setting of the cookie. This value can affect the + public async System.Threading.Tasks.Task SetCookieAsync(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, long? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null) + { + ValidateSetCookie(name, value, url, domain, path, secure, httpOnly, sameSite, expires, priority); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("name", name); + dict.Add("value", value); + if (!(string.IsNullOrEmpty(url))) + { + dict.Add("url", url); + } + + if (!(string.IsNullOrEmpty(domain))) + { + dict.Add("domain", domain); + } + + if (!(string.IsNullOrEmpty(path))) + { + dict.Add("path", path); + } + + if (secure.HasValue) + { + dict.Add("secure", secure.Value); + } + + if (httpOnly.HasValue) + { + dict.Add("httpOnly", httpOnly.Value); + } + + if (sameSite.HasValue) + { + dict.Add("sameSite", this.EnumToString(sameSite)); + } + + if (expires.HasValue) + { + dict.Add("expires", expires.Value); + } + + if (priority.HasValue) + { + dict.Add("priority", this.EnumToString(priority)); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.setCookie", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetCookies(System.Collections.Generic.IList cookies); + /// + /// Sets given cookies. + /// + /// Cookies to be set. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetCookiesAsync(System.Collections.Generic.IList cookies) + { + ValidateSetCookies(cookies); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("cookies", cookies.Select(x => x.ToDictionary())); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.setCookies", dict); + return methodResult; + } + + partial void ValidateSetDataSizeLimitsForTest(int maxTotalSize, int maxResourceSize); + /// + /// For testing. + /// + /// Maximum total buffer size. + /// Maximum per-resource size. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetDataSizeLimitsForTestAsync(int maxTotalSize, int maxResourceSize) + { + ValidateSetDataSizeLimitsForTest(maxTotalSize, maxResourceSize); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("maxTotalSize", maxTotalSize); + dict.Add("maxResourceSize", maxResourceSize); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.setDataSizeLimitsForTest", dict); + return methodResult; + } + + partial void ValidateSetExtraHTTPHeaders(CefSharp.DevTools.Network.Headers headers); + /// + /// Specifies whether to always send extra HTTP headers with the requests from this page. + /// + /// Map with extra HTTP headers. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetExtraHTTPHeadersAsync(CefSharp.DevTools.Network.Headers headers) + { + ValidateSetExtraHTTPHeaders(headers); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("headers", headers.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.setExtraHTTPHeaders", dict); + 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. + /// + /// User agent to use. + /// Browser langugage to emulate. + /// The platform navigator.platform should return. + /// To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetUserAgentOverrideAsync(string userAgent, string acceptLanguage = null, string platform = null, CefSharp.DevTools.Emulation.UserAgentMetadata userAgentMetadata = null) + { + ValidateSetUserAgentOverride(userAgent, acceptLanguage, platform, userAgentMetadata); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("userAgent", userAgent); + if (!(string.IsNullOrEmpty(acceptLanguage))) + { + dict.Add("acceptLanguage", acceptLanguage); + } + + if (!(string.IsNullOrEmpty(platform))) + { + dict.Add("platform", platform); + } + + if ((userAgentMetadata) != (null)) + { + dict.Add("userAgentMetadata", userAgentMetadata.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Network.setUserAgentOverride", dict); + return methodResult; + } + + partial void ValidateGetSecurityIsolationStatus(string frameId = null); + /// + /// Returns information about the COEP/COOP isolation status. + /// + /// If no frameId is provided, the status of the target is provided. + /// returns System.Threading.Tasks.Task<GetSecurityIsolationStatusResponse> + public async System.Threading.Tasks.Task GetSecurityIsolationStatusAsync(string frameId = null) + { + ValidateGetSecurityIsolationStatus(frameId); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(frameId))) + { + dict.Add("frameId", frameId); + } + + 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(); + } + } +} + +namespace CefSharp.DevTools.Overlay +{ + /// + /// GetHighlightObjectForTestResponse + /// + public class GetHighlightObjectForTestResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// highlight + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("highlight")] + public object Highlight + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Overlay +{ + /// + /// GetGridHighlightObjectsForTestResponse + /// + public class GetGridHighlightObjectsForTestResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// highlights + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("highlights")] + public object Highlights + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Overlay +{ + /// + /// GetSourceOrderHighlightObjectForTestResponse + /// + public class GetSourceOrderHighlightObjectForTestResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// highlight + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("highlight")] + public object Highlight + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Overlay +{ + using System.Linq; + + /// + /// This domain provides various functionality related to drawing atop the inspected page. + /// + public partial class OverlayClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public OverlayClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Disables domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.disable", dict); + return methodResult; + } + + /// + /// Enables domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.enable", dict); + return methodResult; + } + + partial void ValidateGetHighlightObjectForTest(int nodeId, bool? includeDistance = null, bool? includeStyle = null, CefSharp.DevTools.Overlay.ColorFormat? colorFormat = null, bool? showAccessibilityInfo = null); + /// + /// For testing. + /// + /// Id of the node to get highlight object for. + /// Whether to include distance info. + /// Whether to include style info. + /// The color format to get config with (default: hex). + /// Whether to show accessibility info (default: true). + /// returns System.Threading.Tasks.Task<GetHighlightObjectForTestResponse> + public async System.Threading.Tasks.Task GetHighlightObjectForTestAsync(int nodeId, bool? includeDistance = null, bool? includeStyle = null, CefSharp.DevTools.Overlay.ColorFormat? colorFormat = null, bool? showAccessibilityInfo = null) + { + ValidateGetHighlightObjectForTest(nodeId, includeDistance, includeStyle, colorFormat, showAccessibilityInfo); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + if (includeDistance.HasValue) + { + dict.Add("includeDistance", includeDistance.Value); + } + + if (includeStyle.HasValue) + { + dict.Add("includeStyle", includeStyle.Value); + } + + if (colorFormat.HasValue) + { + dict.Add("colorFormat", this.EnumToString(colorFormat)); + } + + if (showAccessibilityInfo.HasValue) + { + dict.Add("showAccessibilityInfo", showAccessibilityInfo.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.getHighlightObjectForTest", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetGridHighlightObjectsForTest(int[] nodeIds); + /// + /// For Persistent Grid testing. + /// + /// Ids of the node to get highlight object for. + /// returns System.Threading.Tasks.Task<GetGridHighlightObjectsForTestResponse> + public async System.Threading.Tasks.Task GetGridHighlightObjectsForTestAsync(int[] nodeIds) + { + ValidateGetGridHighlightObjectsForTest(nodeIds); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeIds", nodeIds); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.getGridHighlightObjectsForTest", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetSourceOrderHighlightObjectForTest(int nodeId); + /// + /// For Source Order Viewer testing. + /// + /// Id of the node to highlight. + /// returns System.Threading.Tasks.Task<GetSourceOrderHighlightObjectForTestResponse> + public async System.Threading.Tasks.Task GetSourceOrderHighlightObjectForTestAsync(int nodeId) + { + ValidateGetSourceOrderHighlightObjectForTest(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.getSourceOrderHighlightObjectForTest", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Hides any highlight. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task HideHighlightAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.hideHighlight", dict); + return methodResult; + } + + partial void ValidateHighlightFrame(string frameId, CefSharp.DevTools.DOM.RGBA contentColor = null, CefSharp.DevTools.DOM.RGBA contentOutlineColor = null); + /// + /// Highlights owner element of the frame with given id. + /// + /// Identifier of the frame to highlight. + /// The content box highlight fill color (default: transparent). + /// The content box highlight outline color (default: transparent). + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task HighlightFrameAsync(string frameId, CefSharp.DevTools.DOM.RGBA contentColor = null, CefSharp.DevTools.DOM.RGBA contentOutlineColor = null) + { + ValidateHighlightFrame(frameId, contentColor, contentOutlineColor); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + if ((contentColor) != (null)) + { + dict.Add("contentColor", contentColor.ToDictionary()); + } + + if ((contentOutlineColor) != (null)) + { + dict.Add("contentOutlineColor", contentOutlineColor.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.highlightFrame", dict); + return methodResult; + } + + partial void ValidateHighlightNode(CefSharp.DevTools.Overlay.HighlightConfig highlightConfig, int? nodeId = null, int? backendNodeId = null, string objectId = null, string selector = null); + /// + /// Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or + /// objectId must be specified. + /// + /// A descriptor for the highlight appearance. + /// Identifier of the node to highlight. + /// Identifier of the backend node to highlight. + /// JavaScript object id of the node to be highlighted. + /// Selectors to highlight relevant nodes. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task HighlightNodeAsync(CefSharp.DevTools.Overlay.HighlightConfig highlightConfig, int? nodeId = null, int? backendNodeId = null, string objectId = null, string selector = null) + { + ValidateHighlightNode(highlightConfig, nodeId, backendNodeId, objectId, selector); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("highlightConfig", highlightConfig.ToDictionary()); + 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(selector))) + { + dict.Add("selector", selector); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.highlightNode", dict); + return methodResult; + } + + partial void ValidateHighlightQuad(long[] quad, CefSharp.DevTools.DOM.RGBA color = null, CefSharp.DevTools.DOM.RGBA outlineColor = null); + /// + /// Highlights given quad. Coordinates are absolute with respect to the main frame viewport. + /// + /// Quad to highlight + /// The highlight fill color (default: transparent). + /// The highlight outline color (default: transparent). + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task HighlightQuadAsync(long[] quad, CefSharp.DevTools.DOM.RGBA color = null, CefSharp.DevTools.DOM.RGBA outlineColor = null) + { + ValidateHighlightQuad(quad, color, outlineColor); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("quad", quad); + if ((color) != (null)) + { + dict.Add("color", color.ToDictionary()); + } + + if ((outlineColor) != (null)) + { + dict.Add("outlineColor", outlineColor.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.highlightQuad", dict); + return methodResult; + } + + partial void ValidateHighlightRect(int x, int y, int width, int height, CefSharp.DevTools.DOM.RGBA color = null, CefSharp.DevTools.DOM.RGBA outlineColor = null); + /// + /// Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. + /// + /// X coordinate + /// Y coordinate + /// Rectangle width + /// Rectangle height + /// The highlight fill color (default: transparent). + /// The highlight outline color (default: transparent). + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task HighlightRectAsync(int x, int y, int width, int height, CefSharp.DevTools.DOM.RGBA color = null, CefSharp.DevTools.DOM.RGBA outlineColor = null) + { + ValidateHighlightRect(x, y, width, height, color, outlineColor); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("x", x); + dict.Add("y", y); + dict.Add("width", width); + dict.Add("height", height); + if ((color) != (null)) + { + dict.Add("color", color.ToDictionary()); + } + + if ((outlineColor) != (null)) + { + dict.Add("outlineColor", outlineColor.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.highlightRect", dict); + return methodResult; + } + + partial void ValidateHighlightSourceOrder(CefSharp.DevTools.Overlay.SourceOrderConfig sourceOrderConfig, int? nodeId = null, int? backendNodeId = null, string objectId = null); + /// + /// Highlights the source order of the children of the DOM node with given id or with the given + /// JavaScript object wrapper. Either nodeId or objectId must be specified. + /// + /// A descriptor for the appearance of the overlay drawing. + /// Identifier of the node to highlight. + /// Identifier of the backend node to highlight. + /// JavaScript object id of the node to be highlighted. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task HighlightSourceOrderAsync(CefSharp.DevTools.Overlay.SourceOrderConfig sourceOrderConfig, int? nodeId = null, int? backendNodeId = null, string objectId = null) + { + ValidateHighlightSourceOrder(sourceOrderConfig, nodeId, backendNodeId, objectId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("sourceOrderConfig", sourceOrderConfig.ToDictionary()); + if (nodeId.HasValue) + { + dict.Add("nodeId", nodeId.Value); + } + + if (backendNodeId.HasValue) + { + dict.Add("backendNodeId", backendNodeId.Value); + } + + if (!(string.IsNullOrEmpty(objectId))) + { + dict.Add("objectId", objectId); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.highlightSourceOrder", dict); + return methodResult; + } + + partial void ValidateSetInspectMode(CefSharp.DevTools.Overlay.InspectMode mode, CefSharp.DevTools.Overlay.HighlightConfig highlightConfig = null); + /// + /// Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. + /// Backend then generates 'inspectNodeRequested' event upon element selection. + /// + /// Set an inspection mode. + /// A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled + public async System.Threading.Tasks.Task SetInspectModeAsync(CefSharp.DevTools.Overlay.InspectMode mode, CefSharp.DevTools.Overlay.HighlightConfig highlightConfig = null) + { + ValidateSetInspectMode(mode, highlightConfig); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("mode", this.EnumToString(mode)); + if ((highlightConfig) != (null)) + { + dict.Add("highlightConfig", highlightConfig.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.setInspectMode", dict); + return methodResult; + } + + partial void ValidateSetShowAdHighlights(bool show); + /// + /// Highlights owner element of all frames detected to be ads. + /// + /// True for showing ad highlights + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetShowAdHighlightsAsync(bool show) + { + ValidateSetShowAdHighlights(show); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("show", show); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.setShowAdHighlights", dict); + return methodResult; + } + + partial void ValidateSetPausedInDebuggerMessage(string message = null); + /// + /// SetPausedInDebuggerMessage + /// + /// The message to display, also triggers resume and step over controls. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetPausedInDebuggerMessageAsync(string message = null) + { + ValidateSetPausedInDebuggerMessage(message); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(message))) + { + dict.Add("message", message); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.setPausedInDebuggerMessage", dict); + return methodResult; + } + + partial void ValidateSetShowDebugBorders(bool show); + /// + /// Requests that backend shows debug borders on layers + /// + /// True for showing debug borders + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetShowDebugBordersAsync(bool show) + { + ValidateSetShowDebugBorders(show); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("show", show); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.setShowDebugBorders", dict); + return methodResult; + } + + partial void ValidateSetShowFPSCounter(bool show); + /// + /// Requests that backend shows the FPS counter + /// + /// True for showing the FPS counter + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetShowFPSCounterAsync(bool show) + { + ValidateSetShowFPSCounter(show); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("show", show); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.setShowFPSCounter", dict); + return methodResult; + } + + partial void ValidateSetShowGridOverlays(System.Collections.Generic.IList gridNodeHighlightConfigs); + /// + /// Highlight multiple elements with the CSS Grid overlay. + /// + /// An array of node identifiers and descriptors for the highlight appearance. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetShowGridOverlaysAsync(System.Collections.Generic.IList gridNodeHighlightConfigs) + { + ValidateSetShowGridOverlays(gridNodeHighlightConfigs); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("gridNodeHighlightConfigs", gridNodeHighlightConfigs.Select(x => x.ToDictionary())); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.setShowGridOverlays", dict); + return methodResult; + } + + partial void ValidateSetShowPaintRects(bool result); + /// + /// Requests that backend shows paint rectangles + /// + /// True for showing paint rectangles + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetShowPaintRectsAsync(bool result) + { + ValidateSetShowPaintRects(result); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("result", result); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.setShowPaintRects", dict); + return methodResult; + } + + partial void ValidateSetShowLayoutShiftRegions(bool result); + /// + /// Requests that backend shows layout shift regions + /// + /// True for showing layout shift regions + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetShowLayoutShiftRegionsAsync(bool result) + { + ValidateSetShowLayoutShiftRegions(result); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("result", result); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.setShowLayoutShiftRegions", dict); + return methodResult; + } + + partial void ValidateSetShowScrollBottleneckRects(bool show); + /// + /// Requests that backend shows scroll bottleneck rects + /// + /// True for showing scroll bottleneck rects + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetShowScrollBottleneckRectsAsync(bool show) + { + ValidateSetShowScrollBottleneckRects(show); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("show", show); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.setShowScrollBottleneckRects", dict); + return methodResult; + } + + partial void ValidateSetShowHitTestBorders(bool show); + /// + /// Requests that backend shows hit-test borders on layers + /// + /// True for showing hit-test borders + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetShowHitTestBordersAsync(bool show) + { + ValidateSetShowHitTestBorders(show); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("show", show); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.setShowHitTestBorders", dict); + return methodResult; + } + + partial void ValidateSetShowViewportSizeOnResize(bool show); + /// + /// Paints viewport size upon main frame resize. + /// + /// Whether to paint size or not. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetShowViewportSizeOnResizeAsync(bool show) + { + ValidateSetShowViewportSizeOnResize(show); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("show", show); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.setShowViewportSizeOnResize", dict); + return methodResult; + } + + partial void ValidateSetShowHinge(CefSharp.DevTools.Overlay.HingeConfig hingeConfig = null); + /// + /// Add a dual screen device hinge + /// + /// hinge data, null means hideHinge + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetShowHingeAsync(CefSharp.DevTools.Overlay.HingeConfig hingeConfig = null) + { + ValidateSetShowHinge(hingeConfig); + var dict = new System.Collections.Generic.Dictionary(); + if ((hingeConfig) != (null)) + { + dict.Add("hingeConfig", hingeConfig.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.setShowHinge", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// AddScriptToEvaluateOnNewDocumentResponse + /// + public class AddScriptToEvaluateOnNewDocumentResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// identifier + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("identifier")] + public string Identifier + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// CaptureScreenshotResponse + /// + public class CaptureScreenshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// data + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + public byte[] Data + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// CaptureSnapshotResponse + /// + public class CaptureSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// data + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + public string Data + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// CreateIsolatedWorldResponse + /// + public class CreateIsolatedWorldResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// executionContextId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + public int ExecutionContextId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// GetAppManifestResponse + /// + public class GetAppManifestResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// url + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + public string Url + { + get; + private set; + } + + /// + /// errors + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errors")] + public System.Collections.Generic.IList Errors + { + get; + private set; + } + + /// + /// data + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + public string Data + { + get; + private set; + } + + /// + /// parsed + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parsed")] + public CefSharp.DevTools.Page.AppManifestParsedProperties Parsed + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// GetInstallabilityErrorsResponse + /// + public class GetInstallabilityErrorsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// installabilityErrors + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("installabilityErrors")] + public System.Collections.Generic.IList InstallabilityErrors + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// GetManifestIconsResponse + /// + public class GetManifestIconsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// primaryIcon + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("primaryIcon")] + public byte[] PrimaryIcon + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// GetFrameTreeResponse + /// + public class GetFrameTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// frameTree + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameTree")] + public CefSharp.DevTools.Page.FrameTree FrameTree + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// GetLayoutMetricsResponse + /// + public class GetLayoutMetricsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// layoutViewport + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("layoutViewport")] + public CefSharp.DevTools.Page.LayoutViewport LayoutViewport + { + get; + private set; + } + + /// + /// visualViewport + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("visualViewport")] + public CefSharp.DevTools.Page.VisualViewport VisualViewport + { + get; + private set; + } + + /// + /// contentSize + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentSize")] + public CefSharp.DevTools.DOM.Rect ContentSize + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// GetNavigationHistoryResponse + /// + public class GetNavigationHistoryResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// currentIndex + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentIndex")] + public int CurrentIndex + { + get; + private set; + } + + /// + /// entries + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("entries")] + public System.Collections.Generic.IList Entries + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// GetResourceContentResponse + /// + public class GetResourceContentResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// content + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("content")] + public string Content + { + get; + private set; + } + + /// + /// base64Encoded + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("base64Encoded")] + public bool Base64Encoded + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// GetResourceTreeResponse + /// + public class GetResourceTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// frameTree + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameTree")] + public CefSharp.DevTools.Page.FrameResourceTree FrameTree + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// NavigateResponse + /// + public class NavigateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// frameId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + public string FrameId + { + get; + private set; + } + + /// + /// loaderId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaderId")] + public string LoaderId + { + get; + private set; + } + + /// + /// errorText + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorText")] + public string ErrorText + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// PrintToPDFResponse + /// + public class PrintToPDFResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// data + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + public byte[] Data + { + get; + private set; + } + + /// + /// stream + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stream")] + public string Stream + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + /// + /// SearchInResourceResponse + /// + public class SearchInResourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public System.Collections.Generic.IList Result + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Page +{ + using System.Linq; + + /// + /// Actions and events related to the inspected page belong to the page domain. + /// + public partial class PageClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public PageClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null); + /// + /// Evaluates given script in every frame upon creation (before loading frame's scripts). + /// + /// source + /// If specified, creates an isolated world with the given name and evaluates given script in it. + public async System.Threading.Tasks.Task AddScriptToEvaluateOnNewDocumentAsync(string source, string worldName = null) + { + ValidateAddScriptToEvaluateOnNewDocument(source, worldName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("source", source); + if (!(string.IsNullOrEmpty(worldName))) + { + dict.Add("worldName", worldName); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.addScriptToEvaluateOnNewDocument", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Brings page to front (activates tab). + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task BringToFrontAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.bringToFront", dict); + return methodResult; + } + + partial void ValidateCaptureScreenshot(string format = null, int? quality = null, CefSharp.DevTools.Page.Viewport clip = null, bool? fromSurface = null); + /// + /// Capture page screenshot. + /// + /// Image compression format (defaults to png). + /// Compression quality from range [0..100] (jpeg only). + /// Capture the screenshot of a given region only. + /// Capture the screenshot from the surface, rather than the view. Defaults to true. + /// returns System.Threading.Tasks.Task<CaptureScreenshotResponse> + public async System.Threading.Tasks.Task CaptureScreenshotAsync(string format = null, int? quality = null, CefSharp.DevTools.Page.Viewport clip = null, bool? fromSurface = null) + { + ValidateCaptureScreenshot(format, quality, clip, fromSurface); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(format))) + { + dict.Add("format", format); + } + + if (quality.HasValue) + { + dict.Add("quality", quality.Value); + } + + if ((clip) != (null)) + { + dict.Add("clip", clip.ToDictionary()); + } + + if (fromSurface.HasValue) + { + dict.Add("fromSurface", fromSurface.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.captureScreenshot", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateCaptureSnapshot(string format = null); + /// + /// Returns a snapshot of the page as a string. For MHTML format, the serialization includes + /// iframes, shadow DOM, external resources, and element-inline styles. + /// + /// Format (defaults to mhtml). + /// returns System.Threading.Tasks.Task<CaptureSnapshotResponse> + public async System.Threading.Tasks.Task CaptureSnapshotAsync(string format = null) + { + ValidateCaptureSnapshot(format); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(format))) + { + dict.Add("format", format); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.captureSnapshot", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateCreateIsolatedWorld(string frameId, string worldName = null, bool? grantUniveralAccess = null); + /// + /// Creates an isolated world for the given frame. + /// + /// Id of the frame in which the isolated world should be created. + /// An optional name which is reported in the Execution Context. + /// Whether or not universal access should be granted to the isolated world. This is a powerful + public async System.Threading.Tasks.Task CreateIsolatedWorldAsync(string frameId, string worldName = null, bool? grantUniveralAccess = null) + { + ValidateCreateIsolatedWorld(frameId, worldName, grantUniveralAccess); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + if (!(string.IsNullOrEmpty(worldName))) + { + dict.Add("worldName", worldName); + } + + if (grantUniveralAccess.HasValue) + { + dict.Add("grantUniveralAccess", grantUniveralAccess.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.createIsolatedWorld", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Disables page domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.disable", dict); + return methodResult; + } + + /// + /// Enables page domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.enable", dict); + return methodResult; + } + + /// + /// GetAppManifest + /// + /// returns System.Threading.Tasks.Task<GetAppManifestResponse> + public async System.Threading.Tasks.Task GetAppManifestAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.getAppManifest", dict); + return methodResult.DeserializeJson(); + } + + /// + /// GetInstallabilityErrors + /// + /// returns System.Threading.Tasks.Task<GetInstallabilityErrorsResponse> + public async System.Threading.Tasks.Task GetInstallabilityErrorsAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.getInstallabilityErrors", dict); + return methodResult.DeserializeJson(); + } + + /// + /// GetManifestIcons + /// + /// returns System.Threading.Tasks.Task<GetManifestIconsResponse> + public async System.Threading.Tasks.Task GetManifestIconsAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.getManifestIcons", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Returns present frame tree structure. + /// + /// returns System.Threading.Tasks.Task<GetFrameTreeResponse> + public async System.Threading.Tasks.Task GetFrameTreeAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.getFrameTree", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Returns metrics relating to the layouting of the page, such as viewport bounds/scale. + /// + /// returns System.Threading.Tasks.Task<GetLayoutMetricsResponse> + public async System.Threading.Tasks.Task GetLayoutMetricsAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.getLayoutMetrics", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Returns navigation history for the current page. + /// + /// returns System.Threading.Tasks.Task<GetNavigationHistoryResponse> + public async System.Threading.Tasks.Task GetNavigationHistoryAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.getNavigationHistory", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Resets navigation history for the current page. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ResetNavigationHistoryAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.resetNavigationHistory", dict); + return methodResult; + } + + partial void ValidateGetResourceContent(string frameId, string url); + /// + /// Returns content of the given resource. + /// + /// Frame id to get resource for. + /// URL of the resource to get content for. + /// returns System.Threading.Tasks.Task<GetResourceContentResponse> + public async System.Threading.Tasks.Task GetResourceContentAsync(string frameId, string url) + { + ValidateGetResourceContent(frameId, url); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + dict.Add("url", url); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.getResourceContent", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Returns present frame / resource tree structure. + /// + /// returns System.Threading.Tasks.Task<GetResourceTreeResponse> + public async System.Threading.Tasks.Task GetResourceTreeAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.getResourceTree", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateHandleJavaScriptDialog(bool accept, string promptText = null); + /// + /// Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload). + /// + /// Whether to accept or dismiss the dialog. + /// The text to enter into the dialog prompt before accepting. Used only if this is a prompt + public async System.Threading.Tasks.Task HandleJavaScriptDialogAsync(bool accept, string promptText = null) + { + ValidateHandleJavaScriptDialog(accept, promptText); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("accept", accept); + if (!(string.IsNullOrEmpty(promptText))) + { + dict.Add("promptText", promptText); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.handleJavaScriptDialog", dict); + return methodResult; + } + + partial void ValidateNavigate(string url, string referrer = null, CefSharp.DevTools.Page.TransitionType? transitionType = null, string frameId = null, CefSharp.DevTools.Page.ReferrerPolicy? referrerPolicy = null); + /// + /// Navigates current page to the given URL. + /// + /// URL to navigate the page to. + /// Referrer URL. + /// Intended transition type. + /// Frame id to navigate, if not specified navigates the top frame. + /// Referrer-policy used for the navigation. + /// returns System.Threading.Tasks.Task<NavigateResponse> + public async System.Threading.Tasks.Task NavigateAsync(string url, string referrer = null, CefSharp.DevTools.Page.TransitionType? transitionType = null, string frameId = null, CefSharp.DevTools.Page.ReferrerPolicy? referrerPolicy = null) + { + ValidateNavigate(url, referrer, transitionType, frameId, referrerPolicy); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("url", url); + if (!(string.IsNullOrEmpty(referrer))) + { + dict.Add("referrer", referrer); + } + + if (transitionType.HasValue) + { + dict.Add("transitionType", this.EnumToString(transitionType)); + } + + if (!(string.IsNullOrEmpty(frameId))) + { + dict.Add("frameId", frameId); + } + + if (referrerPolicy.HasValue) + { + dict.Add("referrerPolicy", this.EnumToString(referrerPolicy)); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.navigate", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateNavigateToHistoryEntry(int entryId); + /// + /// Navigates current page to the given history entry. + /// + /// Unique id of the entry to navigate to. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task NavigateToHistoryEntryAsync(int entryId) + { + ValidateNavigateToHistoryEntry(entryId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("entryId", entryId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.navigateToHistoryEntry", dict); + return methodResult; + } + + partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, long? scale = null, long? paperWidth = null, long? paperHeight = null, long? marginTop = null, long? marginBottom = null, long? marginLeft = null, long? marginRight = null, string pageRanges = null, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, string transferMode = null); + /// + /// Print page as PDF. + /// + /// Paper orientation. Defaults to false. + /// Display header and footer. Defaults to false. + /// Print background graphics. Defaults to false. + /// Scale of the webpage rendering. Defaults to 1. + /// Paper width in inches. Defaults to 8.5 inches. + /// Paper height in inches. Defaults to 11 inches. + /// Top margin in inches. Defaults to 1cm (~0.4 inches). + /// Bottom margin in inches. Defaults to 1cm (~0.4 inches). + /// Left margin in inches. Defaults to 1cm (~0.4 inches). + /// Right margin in inches. Defaults to 1cm (~0.4 inches). + /// Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means + public async System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, long? scale = null, long? paperWidth = null, long? paperHeight = null, long? marginTop = null, long? marginBottom = null, long? marginLeft = null, long? marginRight = null, string pageRanges = null, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, string transferMode = null) + { + ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, ignoreInvalidPageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode); + var dict = new System.Collections.Generic.Dictionary(); + if (landscape.HasValue) + { + dict.Add("landscape", landscape.Value); + } + + if (displayHeaderFooter.HasValue) + { + dict.Add("displayHeaderFooter", displayHeaderFooter.Value); + } + + if (printBackground.HasValue) + { + dict.Add("printBackground", printBackground.Value); + } + + if (scale.HasValue) + { + dict.Add("scale", scale.Value); + } + + if (paperWidth.HasValue) + { + dict.Add("paperWidth", paperWidth.Value); + } + + if (paperHeight.HasValue) + { + dict.Add("paperHeight", paperHeight.Value); + } + + if (marginTop.HasValue) + { + dict.Add("marginTop", marginTop.Value); + } + + if (marginBottom.HasValue) + { + dict.Add("marginBottom", marginBottom.Value); + } + + if (marginLeft.HasValue) + { + dict.Add("marginLeft", marginLeft.Value); + } + + if (marginRight.HasValue) + { + dict.Add("marginRight", marginRight.Value); + } + + if (!(string.IsNullOrEmpty(pageRanges))) + { + dict.Add("pageRanges", pageRanges); + } + + if (ignoreInvalidPageRanges.HasValue) + { + dict.Add("ignoreInvalidPageRanges", ignoreInvalidPageRanges.Value); + } + + if (!(string.IsNullOrEmpty(headerTemplate))) + { + dict.Add("headerTemplate", headerTemplate); + } + + if (!(string.IsNullOrEmpty(footerTemplate))) + { + dict.Add("footerTemplate", footerTemplate); + } + + if (preferCSSPageSize.HasValue) + { + dict.Add("preferCSSPageSize", preferCSSPageSize.Value); + } + + if (!(string.IsNullOrEmpty(transferMode))) + { + dict.Add("transferMode", transferMode); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.printToPDF", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateReload(bool? ignoreCache = null, string scriptToEvaluateOnLoad = null); + /// + /// Reloads given page optionally ignoring the cache. + /// + /// If true, browser cache is ignored (as if the user pressed Shift+refresh). + /// If set, the script will be injected into all frames of the inspected page after reload. + public async System.Threading.Tasks.Task ReloadAsync(bool? ignoreCache = null, string scriptToEvaluateOnLoad = null) + { + ValidateReload(ignoreCache, scriptToEvaluateOnLoad); + var dict = new System.Collections.Generic.Dictionary(); + if (ignoreCache.HasValue) + { + dict.Add("ignoreCache", ignoreCache.Value); + } + + if (!(string.IsNullOrEmpty(scriptToEvaluateOnLoad))) + { + dict.Add("scriptToEvaluateOnLoad", scriptToEvaluateOnLoad); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.reload", dict); + return methodResult; + } + + partial void ValidateRemoveScriptToEvaluateOnNewDocument(string identifier); + /// + /// Removes given script from the list. + /// + /// identifier + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RemoveScriptToEvaluateOnNewDocumentAsync(string identifier) + { + ValidateRemoveScriptToEvaluateOnNewDocument(identifier); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("identifier", identifier); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.removeScriptToEvaluateOnNewDocument", dict); + return methodResult; + } + + partial void ValidateScreencastFrameAck(int sessionId); + /// + /// Acknowledges that a screencast frame has been received by the frontend. + /// + /// Frame number. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ScreencastFrameAckAsync(int sessionId) + { + ValidateScreencastFrameAck(sessionId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("sessionId", sessionId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.screencastFrameAck", dict); + return methodResult; + } + + partial void ValidateSearchInResource(string frameId, string url, string query, bool? caseSensitive = null, bool? isRegex = null); + /// + /// Searches for given string in resource content. + /// + /// Frame id for resource to search in. + /// URL of the resource to search in. + /// String to search for. + /// If true, search is case sensitive. + /// If true, treats string parameter as regex. + /// returns System.Threading.Tasks.Task<SearchInResourceResponse> + public async System.Threading.Tasks.Task SearchInResourceAsync(string frameId, string url, string query, bool? caseSensitive = null, bool? isRegex = null) + { + ValidateSearchInResource(frameId, url, query, caseSensitive, isRegex); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + dict.Add("url", url); + dict.Add("query", query); + if (caseSensitive.HasValue) + { + dict.Add("caseSensitive", caseSensitive.Value); + } + + if (isRegex.HasValue) + { + dict.Add("isRegex", isRegex.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.searchInResource", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetAdBlockingEnabled(bool enabled); + /// + /// Enable Chrome's experimental ad filter on all sites. + /// + /// Whether to block ads. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetAdBlockingEnabledAsync(bool enabled) + { + ValidateSetAdBlockingEnabled(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.setAdBlockingEnabled", dict); + return methodResult; + } + + partial void ValidateSetBypassCSP(bool enabled); + /// + /// Enable page Content Security Policy by-passing. + /// + /// Whether to bypass page CSP. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetBypassCSPAsync(bool enabled) + { + ValidateSetBypassCSP(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.setBypassCSP", dict); + return methodResult; + } + + partial void ValidateSetFontFamilies(CefSharp.DevTools.Page.FontFamilies fontFamilies); + /// + /// Set generic font families. + /// + /// Specifies font families to set. If a font family is not specified, it won't be changed. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetFontFamiliesAsync(CefSharp.DevTools.Page.FontFamilies fontFamilies) + { + ValidateSetFontFamilies(fontFamilies); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("fontFamilies", fontFamilies.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.setFontFamilies", dict); + return methodResult; + } + + partial void ValidateSetFontSizes(CefSharp.DevTools.Page.FontSizes fontSizes); + /// + /// Set default font sizes. + /// + /// Specifies font sizes to set. If a font size is not specified, it won't be changed. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetFontSizesAsync(CefSharp.DevTools.Page.FontSizes fontSizes) + { + ValidateSetFontSizes(fontSizes); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("fontSizes", fontSizes.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.setFontSizes", dict); + return methodResult; + } + + partial void ValidateSetDocumentContent(string frameId, string html); + /// + /// Sets given markup as the document's HTML. + /// + /// Frame id to set HTML for. + /// HTML content to set. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetDocumentContentAsync(string frameId, string html) + { + ValidateSetDocumentContent(frameId, html); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + dict.Add("html", html); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.setDocumentContent", dict); + return methodResult; + } + + partial void ValidateSetLifecycleEventsEnabled(bool enabled); + /// + /// Controls whether page will emit lifecycle events. + /// + /// If true, starts emitting lifecycle events. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetLifecycleEventsEnabledAsync(bool enabled) + { + ValidateSetLifecycleEventsEnabled(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.setLifecycleEventsEnabled", dict); + return methodResult; + } + + partial void ValidateStartScreencast(string format = null, int? quality = null, int? maxWidth = null, int? maxHeight = null, int? everyNthFrame = null); + /// + /// Starts sending each frame using the `screencastFrame` event. + /// + /// Image compression format. + /// Compression quality from range [0..100]. + /// Maximum screenshot width. + /// Maximum screenshot height. + /// Send every n-th frame. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StartScreencastAsync(string format = null, int? quality = null, int? maxWidth = null, int? maxHeight = null, int? everyNthFrame = null) + { + ValidateStartScreencast(format, quality, maxWidth, maxHeight, everyNthFrame); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(format))) + { + dict.Add("format", format); + } + + if (quality.HasValue) + { + dict.Add("quality", quality.Value); + } + + if (maxWidth.HasValue) + { + dict.Add("maxWidth", maxWidth.Value); + } + + if (maxHeight.HasValue) + { + dict.Add("maxHeight", maxHeight.Value); + } + + if (everyNthFrame.HasValue) + { + dict.Add("everyNthFrame", everyNthFrame.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.startScreencast", dict); + return methodResult; + } + + /// + /// Force the page stop all navigations and pending resource fetches. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StopLoadingAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.stopLoading", dict); + return methodResult; + } + + /// + /// Crashes renderer on the IO thread, generates minidumps. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task CrashAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.crash", dict); + return methodResult; + } + + /// + /// Tries to close page, running its beforeunload hooks, if any. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task CloseAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.close", dict); + return methodResult; + } + + partial void ValidateSetWebLifecycleState(string state); + /// + /// Tries to update the web lifecycle state of the page. + /// It will transition the page to the given state according to: + /// https://github.com/WICG/web-lifecycle/ + /// + /// Target lifecycle state + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetWebLifecycleStateAsync(string state) + { + ValidateSetWebLifecycleState(state); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("state", state); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.setWebLifecycleState", dict); + return methodResult; + } + + /// + /// Stops sending each frame in the `screencastFrame`. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StopScreencastAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.stopScreencast", dict); + return methodResult; + } + + partial void ValidateSetProduceCompilationCache(bool enabled); + /// + /// Forces compilation cache to be generated for every subresource script. + /// + /// enabled + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetProduceCompilationCacheAsync(bool enabled) + { + ValidateSetProduceCompilationCache(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.setProduceCompilationCache", dict); + return methodResult; + } + + partial void ValidateAddCompilationCache(string url, byte[] data); + /// + /// Seeds compilation cache for given url. Compilation cache does not survive + /// cross-process navigation. + /// + /// url + /// Base64-encoded data + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task AddCompilationCacheAsync(string url, byte[] data) + { + ValidateAddCompilationCache(url, data); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("url", url); + dict.Add("data", ToBase64String(data)); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.addCompilationCache", dict); + return methodResult; + } + + /// + /// Clears seeded compilation cache. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearCompilationCacheAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.clearCompilationCache", dict); + return methodResult; + } + + partial void ValidateGenerateTestReport(string message, string group = null); + /// + /// Generates a report for testing. + /// + /// Message to be displayed in the report. + /// Specifies the endpoint group to deliver the report to. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task GenerateTestReportAsync(string message, string group = null) + { + ValidateGenerateTestReport(message, group); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("message", message); + if (!(string.IsNullOrEmpty(group))) + { + dict.Add("group", group); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.generateTestReport", dict); + return methodResult; + } + + /// + /// Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task WaitForDebuggerAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.waitForDebugger", dict); + return methodResult; + } + + partial void ValidateSetInterceptFileChooserDialog(bool enabled); + /// + /// Intercept file chooser requests and transfer control to protocol clients. + /// When file chooser interception is enabled, native file chooser dialog is not shown. + /// Instead, a protocol event `Page.fileChooserOpened` is emitted. + /// + /// enabled + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetInterceptFileChooserDialogAsync(bool enabled) + { + ValidateSetInterceptFileChooserDialog(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Page.setInterceptFileChooserDialog", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Performance +{ + /// + /// GetMetricsResponse + /// + public class GetMetricsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// metrics + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("metrics")] + public System.Collections.Generic.IList Metrics + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Performance +{ + using System.Linq; + + /// + /// Performance + /// + public partial class PerformanceClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public PerformanceClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Disable collecting and reporting metrics. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Performance.disable", dict); + return methodResult; + } + + partial void ValidateEnable(string timeDomain = null); + /// + /// Enable collecting and reporting metrics. + /// + /// Time domain to use for collecting and reporting duration metrics. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync(string timeDomain = null) + { + ValidateEnable(timeDomain); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(timeDomain))) + { + dict.Add("timeDomain", timeDomain); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Performance.enable", dict); + return methodResult; + } + + /// + /// Retrieve current values of run-time metrics. + /// + /// returns System.Threading.Tasks.Task<GetMetricsResponse> + public async System.Threading.Tasks.Task GetMetricsAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Performance.getMetrics", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.Security +{ + using System.Linq; + + /// + /// Security + /// + public partial class SecurityClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public SecurityClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Disables tracking security state changes. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Security.disable", dict); + return methodResult; + } + + /// + /// Enables tracking security state changes. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Security.enable", dict); + return methodResult; + } + + partial void ValidateSetIgnoreCertificateErrors(bool ignore); + /// + /// Enable/disable whether all certificate errors should be ignored. + /// + /// If true, all certificate errors will be ignored. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetIgnoreCertificateErrorsAsync(bool ignore) + { + ValidateSetIgnoreCertificateErrors(ignore); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ignore", ignore); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Security.setIgnoreCertificateErrors", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.ServiceWorker +{ + using System.Linq; + + /// + /// ServiceWorker + /// + public partial class ServiceWorkerClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public ServiceWorkerClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateDeliverPushMessage(string origin, string registrationId, string data); + /// + /// DeliverPushMessage + /// + /// origin + /// registrationId + /// data + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DeliverPushMessageAsync(string origin, string registrationId, string data) + { + ValidateDeliverPushMessage(origin, registrationId, data); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("origin", origin); + dict.Add("registrationId", registrationId); + dict.Add("data", data); + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.deliverPushMessage", dict); + return methodResult; + } + + /// + /// Disable + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.disable", dict); + return methodResult; + } + + partial void ValidateDispatchSyncEvent(string origin, string registrationId, string tag, bool lastChance); + /// + /// DispatchSyncEvent + /// + /// origin + /// registrationId + /// tag + /// lastChance + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DispatchSyncEventAsync(string origin, string registrationId, string tag, bool lastChance) + { + ValidateDispatchSyncEvent(origin, registrationId, tag, lastChance); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("origin", origin); + dict.Add("registrationId", registrationId); + dict.Add("tag", tag); + dict.Add("lastChance", lastChance); + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.dispatchSyncEvent", dict); + return methodResult; + } + + partial void ValidateDispatchPeriodicSyncEvent(string origin, string registrationId, string tag); + /// + /// DispatchPeriodicSyncEvent + /// + /// origin + /// registrationId + /// tag + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DispatchPeriodicSyncEventAsync(string origin, string registrationId, string tag) + { + ValidateDispatchPeriodicSyncEvent(origin, registrationId, tag); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("origin", origin); + dict.Add("registrationId", registrationId); + dict.Add("tag", tag); + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.dispatchPeriodicSyncEvent", dict); + return methodResult; + } + + /// + /// Enable + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.enable", dict); + return methodResult; + } + + partial void ValidateInspectWorker(string versionId); + /// + /// InspectWorker + /// + /// versionId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task InspectWorkerAsync(string versionId) + { + ValidateInspectWorker(versionId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("versionId", versionId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.inspectWorker", dict); + return methodResult; + } + + partial void ValidateSetForceUpdateOnPageLoad(bool forceUpdateOnPageLoad); + /// + /// SetForceUpdateOnPageLoad + /// + /// forceUpdateOnPageLoad + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetForceUpdateOnPageLoadAsync(bool forceUpdateOnPageLoad) + { + ValidateSetForceUpdateOnPageLoad(forceUpdateOnPageLoad); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("forceUpdateOnPageLoad", forceUpdateOnPageLoad); + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.setForceUpdateOnPageLoad", dict); + return methodResult; + } + + partial void ValidateSkipWaiting(string scopeURL); + /// + /// SkipWaiting + /// + /// scopeURL + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SkipWaitingAsync(string scopeURL) + { + ValidateSkipWaiting(scopeURL); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scopeURL", scopeURL); + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.skipWaiting", dict); + return methodResult; + } + + partial void ValidateStartWorker(string scopeURL); + /// + /// StartWorker + /// + /// scopeURL + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StartWorkerAsync(string scopeURL) + { + ValidateStartWorker(scopeURL); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scopeURL", scopeURL); + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.startWorker", dict); + return methodResult; + } + + /// + /// StopAllWorkers + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StopAllWorkersAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.stopAllWorkers", dict); + return methodResult; + } + + partial void ValidateStopWorker(string versionId); + /// + /// StopWorker + /// + /// versionId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StopWorkerAsync(string versionId) + { + ValidateStopWorker(versionId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("versionId", versionId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.stopWorker", dict); + return methodResult; + } + + partial void ValidateUnregister(string scopeURL); + /// + /// Unregister + /// + /// scopeURL + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task UnregisterAsync(string scopeURL) + { + ValidateUnregister(scopeURL); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scopeURL", scopeURL); + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.unregister", dict); + return methodResult; + } + + partial void ValidateUpdateRegistration(string scopeURL); + /// + /// UpdateRegistration + /// + /// scopeURL + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task UpdateRegistrationAsync(string scopeURL) + { + ValidateUpdateRegistration(scopeURL); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scopeURL", scopeURL); + var methodResult = await _client.ExecuteDevToolsMethodAsync("ServiceWorker.updateRegistration", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Storage +{ + /// + /// GetCookiesResponse + /// + public class GetCookiesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// cookies + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookies")] + public System.Collections.Generic.IList Cookies + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Storage +{ + /// + /// GetUsageAndQuotaResponse + /// + public class GetUsageAndQuotaResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// usage + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("usage")] + public long Usage + { + get; + private set; + } + + /// + /// quota + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("quota")] + public long Quota + { + get; + private set; + } + + /// + /// usageBreakdown + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("usageBreakdown")] + public System.Collections.Generic.IList UsageBreakdown + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Storage +{ + using System.Linq; + + /// + /// Storage + /// + public partial class StorageClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public StorageClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateClearDataForOrigin(string origin, string storageTypes); + /// + /// Clears storage for origin. + /// + /// Security origin. + /// Comma separated list of StorageType to clear. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearDataForOriginAsync(string origin, string storageTypes) + { + ValidateClearDataForOrigin(origin, storageTypes); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("origin", origin); + dict.Add("storageTypes", storageTypes); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Storage.clearDataForOrigin", dict); + return methodResult; + } + + partial void ValidateGetCookies(string browserContextId = null); + /// + /// Returns all browser cookies. + /// + /// Browser context to use when called on the browser endpoint. + /// returns System.Threading.Tasks.Task<GetCookiesResponse> + public async System.Threading.Tasks.Task GetCookiesAsync(string browserContextId = null) + { + ValidateGetCookies(browserContextId); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(browserContextId))) + { + dict.Add("browserContextId", browserContextId); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Storage.getCookies", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetCookies(System.Collections.Generic.IList cookies, string browserContextId = null); + /// + /// Sets given cookies. + /// + /// Cookies to be set. + /// Browser context to use when called on the browser endpoint. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetCookiesAsync(System.Collections.Generic.IList cookies, string browserContextId = null) + { + ValidateSetCookies(cookies, browserContextId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("cookies", cookies.Select(x => x.ToDictionary())); + if (!(string.IsNullOrEmpty(browserContextId))) + { + dict.Add("browserContextId", browserContextId); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Storage.setCookies", dict); + return methodResult; + } + + partial void ValidateClearCookies(string browserContextId = null); + /// + /// Clears cookies. + /// + /// Browser context to use when called on the browser endpoint. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearCookiesAsync(string browserContextId = null) + { + ValidateClearCookies(browserContextId); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(browserContextId))) + { + dict.Add("browserContextId", browserContextId); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Storage.clearCookies", dict); + return methodResult; + } + + partial void ValidateGetUsageAndQuota(string origin); + /// + /// Returns usage and quota in bytes. + /// + /// Security origin. + /// returns System.Threading.Tasks.Task<GetUsageAndQuotaResponse> + public async System.Threading.Tasks.Task GetUsageAndQuotaAsync(string origin) + { + ValidateGetUsageAndQuota(origin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("origin", origin); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Storage.getUsageAndQuota", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateTrackCacheStorageForOrigin(string origin); + /// + /// Registers origin to be notified when an update occurs to its cache storage list. + /// + /// Security origin. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task TrackCacheStorageForOriginAsync(string origin) + { + ValidateTrackCacheStorageForOrigin(origin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("origin", origin); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Storage.trackCacheStorageForOrigin", dict); + return methodResult; + } + + partial void ValidateTrackIndexedDBForOrigin(string origin); + /// + /// Registers origin to be notified when an update occurs to its IndexedDB. + /// + /// Security origin. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task TrackIndexedDBForOriginAsync(string origin) + { + ValidateTrackIndexedDBForOrigin(origin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("origin", origin); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Storage.trackIndexedDBForOrigin", dict); + return methodResult; + } + + partial void ValidateUntrackCacheStorageForOrigin(string origin); + /// + /// Unregisters origin from receiving notifications for cache storage. + /// + /// Security origin. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task UntrackCacheStorageForOriginAsync(string origin) + { + ValidateUntrackCacheStorageForOrigin(origin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("origin", origin); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Storage.untrackCacheStorageForOrigin", dict); + return methodResult; + } + + partial void ValidateUntrackIndexedDBForOrigin(string origin); + /// + /// Unregisters origin from receiving notifications for IndexedDB. + /// + /// Security origin. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task UntrackIndexedDBForOriginAsync(string origin) + { + ValidateUntrackIndexedDBForOrigin(origin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("origin", origin); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Storage.untrackIndexedDBForOrigin", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// GetInfoResponse + /// + public class GetInfoResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// gpu + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("gpu")] + public CefSharp.DevTools.SystemInfo.GPUInfo Gpu + { + get; + private set; + } + + /// + /// modelName + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("modelName")] + public string ModelName + { + get; + private set; + } + + /// + /// modelVersion + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("modelVersion")] + public string ModelVersion + { + get; + private set; + } + + /// + /// commandLine + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("commandLine")] + public string CommandLine + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// GetProcessInfoResponse + /// + public class GetProcessInfoResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// processInfo + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("processInfo")] + public System.Collections.Generic.IList ProcessInfo + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.SystemInfo +{ + using System.Linq; + + /// + /// The SystemInfo domain defines methods and events for querying low-level system information. + /// + public partial class SystemInfoClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public SystemInfoClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Returns information about the system. + /// + /// returns System.Threading.Tasks.Task<GetInfoResponse> + public async System.Threading.Tasks.Task GetInfoAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("SystemInfo.getInfo", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Returns information about all running processes. + /// + /// returns System.Threading.Tasks.Task<GetProcessInfoResponse> + public async System.Threading.Tasks.Task GetProcessInfoAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("SystemInfo.getProcessInfo", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.Target +{ + /// + /// AttachToTargetResponse + /// + public class AttachToTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// sessionId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sessionId")] + public string SessionId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Target +{ + /// + /// AttachToBrowserTargetResponse + /// + public class AttachToBrowserTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// sessionId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sessionId")] + public string SessionId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Target +{ + /// + /// CloseTargetResponse + /// + public class CloseTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// success + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("success")] + public bool Success + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Target +{ + /// + /// CreateBrowserContextResponse + /// + public class CreateBrowserContextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// browserContextId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("browserContextId")] + public string BrowserContextId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Target +{ + /// + /// GetBrowserContextsResponse + /// + public class GetBrowserContextsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// browserContextIds + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("browserContextIds")] + public string[] BrowserContextIds + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Target +{ + /// + /// CreateTargetResponse + /// + public class CreateTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// targetId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + public string TargetId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Target +{ + /// + /// GetTargetInfoResponse + /// + public class GetTargetInfoResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// targetInfo + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetInfo")] + public CefSharp.DevTools.Target.TargetInfo TargetInfo + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Target +{ + /// + /// GetTargetsResponse + /// + public class GetTargetsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// targetInfos + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetInfos")] + public System.Collections.Generic.IList TargetInfos + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Target +{ + using System.Linq; + + /// + /// Supports additional targets discovery and allows to attach to them. + /// + public partial class TargetClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public TargetClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateActivateTarget(string targetId); + /// + /// Activates (focuses) the target. + /// + /// targetId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ActivateTargetAsync(string targetId) + { + ValidateActivateTarget(targetId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("targetId", targetId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.activateTarget", dict); + return methodResult; + } + + partial void ValidateAttachToTarget(string targetId, bool? flatten = null); + /// + /// Attaches to the target with given id. + /// + /// targetId + /// Enables "flat" access to the session via specifying sessionId attribute in the commands. + public async System.Threading.Tasks.Task AttachToTargetAsync(string targetId, bool? flatten = null) + { + ValidateAttachToTarget(targetId, flatten); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("targetId", targetId); + if (flatten.HasValue) + { + dict.Add("flatten", flatten.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.attachToTarget", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Attaches to the browser target, only uses flat sessionId mode. + /// + /// returns System.Threading.Tasks.Task<AttachToBrowserTargetResponse> + public async System.Threading.Tasks.Task AttachToBrowserTargetAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.attachToBrowserTarget", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateCloseTarget(string targetId); + /// + /// Closes the target. If the target is a page that gets closed too. + /// + /// targetId + /// returns System.Threading.Tasks.Task<CloseTargetResponse> + public async System.Threading.Tasks.Task CloseTargetAsync(string targetId) + { + ValidateCloseTarget(targetId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("targetId", targetId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.closeTarget", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateExposeDevToolsProtocol(string targetId, string bindingName = null); + /// + /// Inject object to the target's main frame that provides a communication + /// channel with browser target. + /// + /// Injected object will be available as `window[bindingName]`. + /// + /// The object has the follwing API: + /// - `binding.send(json)` - a method to send messages over the remote debugging protocol + /// - `binding.onmessage = json => handleMessage(json)` - a callback that will be called for the protocol notifications and command responses. + /// + /// targetId + /// Binding name, 'cdp' if not specified. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ExposeDevToolsProtocolAsync(string targetId, string bindingName = null) + { + ValidateExposeDevToolsProtocol(targetId, bindingName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("targetId", targetId); + if (!(string.IsNullOrEmpty(bindingName))) + { + dict.Add("bindingName", bindingName); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.exposeDevToolsProtocol", dict); + return methodResult; + } + + partial void ValidateCreateBrowserContext(bool? disposeOnDetach = null, string proxyServer = null, string proxyBypassList = null); + /// + /// Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than + /// one. + /// + /// If specified, disposes this context when debugging session disconnects. + /// Proxy server, similar to the one passed to --proxy-server + /// Proxy bypass list, similar to the one passed to --proxy-bypass-list + /// returns System.Threading.Tasks.Task<CreateBrowserContextResponse> + public async System.Threading.Tasks.Task CreateBrowserContextAsync(bool? disposeOnDetach = null, string proxyServer = null, string proxyBypassList = null) + { + ValidateCreateBrowserContext(disposeOnDetach, proxyServer, proxyBypassList); + var dict = new System.Collections.Generic.Dictionary(); + if (disposeOnDetach.HasValue) + { + dict.Add("disposeOnDetach", disposeOnDetach.Value); + } + + if (!(string.IsNullOrEmpty(proxyServer))) + { + dict.Add("proxyServer", proxyServer); + } + + if (!(string.IsNullOrEmpty(proxyBypassList))) + { + dict.Add("proxyBypassList", proxyBypassList); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.createBrowserContext", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Returns all browser contexts created with `Target.createBrowserContext` method. + /// + /// returns System.Threading.Tasks.Task<GetBrowserContextsResponse> + public async System.Threading.Tasks.Task GetBrowserContextsAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.getBrowserContexts", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateCreateTarget(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null); + /// + /// Creates a new page. + /// + /// The initial URL the page will be navigated to. + /// Frame width in DIP (headless chrome only). + /// Frame height in DIP (headless chrome only). + /// The browser context to create the page in. + /// Whether BeginFrames for this target will be controlled via DevTools (headless chrome only, + public async 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) + { + ValidateCreateTarget(url, width, height, browserContextId, enableBeginFrameControl, newWindow, background); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("url", url); + if (width.HasValue) + { + dict.Add("width", width.Value); + } + + if (height.HasValue) + { + dict.Add("height", height.Value); + } + + if (!(string.IsNullOrEmpty(browserContextId))) + { + dict.Add("browserContextId", browserContextId); + } + + if (enableBeginFrameControl.HasValue) + { + dict.Add("enableBeginFrameControl", enableBeginFrameControl.Value); + } + + if (newWindow.HasValue) + { + dict.Add("newWindow", newWindow.Value); + } + + if (background.HasValue) + { + dict.Add("background", background.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.createTarget", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateDetachFromTarget(string sessionId = null, string targetId = null); + /// + /// Detaches session with given id. + /// + /// Session to detach. + /// Deprecated. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DetachFromTargetAsync(string sessionId = null, string targetId = null) + { + ValidateDetachFromTarget(sessionId, targetId); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(sessionId))) + { + dict.Add("sessionId", sessionId); + } + + if (!(string.IsNullOrEmpty(targetId))) + { + dict.Add("targetId", targetId); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.detachFromTarget", dict); + return methodResult; + } + + partial void ValidateDisposeBrowserContext(string browserContextId); + /// + /// Deletes a BrowserContext. All the belonging pages will be closed without calling their + /// beforeunload hooks. + /// + /// browserContextId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisposeBrowserContextAsync(string browserContextId) + { + ValidateDisposeBrowserContext(browserContextId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("browserContextId", browserContextId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.disposeBrowserContext", dict); + return methodResult; + } + + partial void ValidateGetTargetInfo(string targetId = null); + /// + /// Returns information about a target. + /// + /// targetId + /// returns System.Threading.Tasks.Task<GetTargetInfoResponse> + public async System.Threading.Tasks.Task GetTargetInfoAsync(string targetId = null) + { + ValidateGetTargetInfo(targetId); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(targetId))) + { + dict.Add("targetId", targetId); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.getTargetInfo", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Retrieves a list of available targets. + /// + /// returns System.Threading.Tasks.Task<GetTargetsResponse> + public async System.Threading.Tasks.Task GetTargetsAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.getTargets", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetAutoAttach(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null); + /// + /// Controls whether to automatically attach to new targets which are considered to be related to + /// this one. When turned on, attaches to all existing related targets as well. When turned off, + /// automatically detaches from all currently attached targets. + /// + /// Whether to auto-attach to related targets. + /// Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger` + public async System.Threading.Tasks.Task SetAutoAttachAsync(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null) + { + ValidateSetAutoAttach(autoAttach, waitForDebuggerOnStart, flatten); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("autoAttach", autoAttach); + dict.Add("waitForDebuggerOnStart", waitForDebuggerOnStart); + if (flatten.HasValue) + { + dict.Add("flatten", flatten.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.setAutoAttach", dict); + return methodResult; + } + + partial void ValidateSetDiscoverTargets(bool discover); + /// + /// Controls whether to discover available targets and notify via + /// `targetCreated/targetInfoChanged/targetDestroyed` events. + /// + /// Whether to discover available targets. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetDiscoverTargetsAsync(bool discover) + { + ValidateSetDiscoverTargets(discover); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("discover", discover); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.setDiscoverTargets", dict); + return methodResult; + } + + partial void ValidateSetRemoteLocations(System.Collections.Generic.IList locations); + /// + /// Enables target discovery for the specified locations, when `setDiscoverTargets` was set to + /// `true`. + /// + /// List of remote locations. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetRemoteLocationsAsync(System.Collections.Generic.IList locations) + { + ValidateSetRemoteLocations(locations); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("locations", locations.Select(x => x.ToDictionary())); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Target.setRemoteLocations", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Tethering +{ + using System.Linq; + + /// + /// The Tethering domain defines methods and events for browser port binding. + /// + public partial class TetheringClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public TetheringClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateBind(int port); + /// + /// Request browser port binding. + /// + /// Port number to bind. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task BindAsync(int port) + { + ValidateBind(port); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("port", port); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Tethering.bind", dict); + return methodResult; + } + + partial void ValidateUnbind(int port); + /// + /// Request browser port unbinding. + /// + /// Port number to unbind. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task UnbindAsync(int port) + { + ValidateUnbind(port); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("port", port); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Tethering.unbind", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Tracing +{ + /// + /// GetCategoriesResponse + /// + public class GetCategoriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// categories + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("categories")] + public string[] Categories + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Tracing +{ + /// + /// RequestMemoryDumpResponse + /// + public class RequestMemoryDumpResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// dumpGuid + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("dumpGuid")] + public string DumpGuid + { + get; + private set; + } + + /// + /// success + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("success")] + public bool Success + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Tracing +{ + using System.Linq; + + /// + /// Tracing + /// + public partial class TracingClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public TracingClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Stop trace events collection. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EndAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Tracing.end", dict); + return methodResult; + } + + /// + /// Gets supported tracing categories. + /// + /// returns System.Threading.Tasks.Task<GetCategoriesResponse> + public async System.Threading.Tasks.Task GetCategoriesAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Tracing.getCategories", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateRecordClockSyncMarker(string syncId); + /// + /// Record a clock sync marker in the trace. + /// + /// The ID of this clock sync marker + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RecordClockSyncMarkerAsync(string syncId) + { + ValidateRecordClockSyncMarker(syncId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("syncId", syncId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Tracing.recordClockSyncMarker", dict); + return methodResult; + } + + partial void ValidateRequestMemoryDump(bool? deterministic = null); + /// + /// Request a global memory dump. + /// + /// Enables more deterministic results by forcing garbage collection + /// returns System.Threading.Tasks.Task<RequestMemoryDumpResponse> + public async System.Threading.Tasks.Task RequestMemoryDumpAsync(bool? deterministic = null) + { + ValidateRequestMemoryDump(deterministic); + var dict = new System.Collections.Generic.Dictionary(); + if (deterministic.HasValue) + { + dict.Add("deterministic", deterministic.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Tracing.requestMemoryDump", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateStart(string categories = null, string options = null, long? bufferUsageReportingInterval = null, string transferMode = null, CefSharp.DevTools.Tracing.StreamFormat? streamFormat = null, CefSharp.DevTools.Tracing.StreamCompression? streamCompression = null, CefSharp.DevTools.Tracing.TraceConfig traceConfig = null); + /// + /// Start trace events collection. + /// + /// Category/tag filter + /// Tracing options + /// If set, the agent will issue bufferUsage events at this interval, specified in milliseconds + /// Whether to report trace events as series of dataCollected events or to save trace to a + public async System.Threading.Tasks.Task StartAsync(string categories = null, string options = null, long? bufferUsageReportingInterval = null, string transferMode = null, CefSharp.DevTools.Tracing.StreamFormat? streamFormat = null, CefSharp.DevTools.Tracing.StreamCompression? streamCompression = null, CefSharp.DevTools.Tracing.TraceConfig traceConfig = null) + { + ValidateStart(categories, options, bufferUsageReportingInterval, transferMode, streamFormat, streamCompression, traceConfig); + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(categories))) + { + dict.Add("categories", categories); + } + + if (!(string.IsNullOrEmpty(options))) + { + dict.Add("options", options); + } + + if (bufferUsageReportingInterval.HasValue) + { + dict.Add("bufferUsageReportingInterval", bufferUsageReportingInterval.Value); + } + + if (!(string.IsNullOrEmpty(transferMode))) + { + dict.Add("transferMode", transferMode); + } + + if (streamFormat.HasValue) + { + dict.Add("streamFormat", this.EnumToString(streamFormat)); + } + + if (streamCompression.HasValue) + { + dict.Add("streamCompression", this.EnumToString(streamCompression)); + } + + if ((traceConfig) != (null)) + { + dict.Add("traceConfig", traceConfig.ToDictionary()); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Tracing.start", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Fetch +{ + /// + /// GetResponseBodyResponse + /// + public class GetResponseBodyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// body + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("body")] + public string Body + { + get; + private set; + } + + /// + /// base64Encoded + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("base64Encoded")] + public bool Base64Encoded + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Fetch +{ + /// + /// TakeResponseBodyAsStreamResponse + /// + public class TakeResponseBodyAsStreamResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// stream + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stream")] + public string Stream + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Fetch +{ + using System.Linq; + + /// + /// A domain for letting clients substitute browser's network layer with client code. + /// + public partial class FetchClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public FetchClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Disables the fetch domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Fetch.disable", dict); + return methodResult; + } + + partial void ValidateEnable(System.Collections.Generic.IList patterns = null, bool? handleAuthRequests = null); + /// + /// Enables issuing of requestPaused events. A request will be paused until client + /// calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth. + /// + /// If specified, only requests matching any of these patterns will produce + public async System.Threading.Tasks.Task EnableAsync(System.Collections.Generic.IList patterns = null, bool? handleAuthRequests = null) + { + ValidateEnable(patterns, handleAuthRequests); + var dict = new System.Collections.Generic.Dictionary(); + if ((patterns) != (null)) + { + dict.Add("patterns", patterns.Select(x => x.ToDictionary())); + } + + if (handleAuthRequests.HasValue) + { + dict.Add("handleAuthRequests", handleAuthRequests.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Fetch.enable", dict); + return methodResult; + } + + partial void ValidateFailRequest(string requestId, CefSharp.DevTools.Network.ErrorReason errorReason); + /// + /// Causes the request to fail with specified reason. + /// + /// An id the client received in requestPaused event. + /// Causes the request to fail with the given reason. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task FailRequestAsync(string requestId, CefSharp.DevTools.Network.ErrorReason errorReason) + { + ValidateFailRequest(requestId, errorReason); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("errorReason", this.EnumToString(errorReason)); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Fetch.failRequest", dict); + return methodResult; + } + + partial void ValidateFulfillRequest(string requestId, int responseCode, System.Collections.Generic.IList responseHeaders = null, byte[] binaryResponseHeaders = null, byte[] body = null, string responsePhrase = null); + /// + /// Provides response to the request. + /// + /// An id the client received in requestPaused event. + /// An HTTP response code. + /// Response headers. + /// Alternative way of specifying response headers as a \0-separated + public async System.Threading.Tasks.Task FulfillRequestAsync(string requestId, int responseCode, System.Collections.Generic.IList responseHeaders = null, byte[] binaryResponseHeaders = null, byte[] body = null, string responsePhrase = null) + { + ValidateFulfillRequest(requestId, responseCode, responseHeaders, binaryResponseHeaders, body, responsePhrase); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("responseCode", responseCode); + if ((responseHeaders) != (null)) + { + dict.Add("responseHeaders", responseHeaders.Select(x => x.ToDictionary())); + } + + if ((binaryResponseHeaders) != (null)) + { + dict.Add("binaryResponseHeaders", ToBase64String(binaryResponseHeaders)); + } + + if ((body) != (null)) + { + dict.Add("body", ToBase64String(body)); + } + + if (!(string.IsNullOrEmpty(responsePhrase))) + { + dict.Add("responsePhrase", responsePhrase); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Fetch.fulfillRequest", dict); + return methodResult; + } + + partial void ValidateContinueRequest(string requestId, string url = null, string method = null, byte[] postData = null, System.Collections.Generic.IList headers = null); + /// + /// Continues the request, optionally modifying some of its parameters. + /// + /// An id the client received in requestPaused event. + /// If set, the request url will be modified in a way that's not observable by page. + /// If set, the request method is overridden. + /// If set, overrides the post data in the request. + /// If set, overrides the request headers. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ContinueRequestAsync(string requestId, string url = null, string method = null, byte[] postData = null, System.Collections.Generic.IList headers = null) + { + ValidateContinueRequest(requestId, url, method, postData, headers); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + if (!(string.IsNullOrEmpty(url))) + { + dict.Add("url", url); + } + + if (!(string.IsNullOrEmpty(method))) + { + dict.Add("method", method); + } + + if ((postData) != (null)) + { + dict.Add("postData", ToBase64String(postData)); + } + + if ((headers) != (null)) + { + dict.Add("headers", headers.Select(x => x.ToDictionary())); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Fetch.continueRequest", dict); + return methodResult; + } + + partial void ValidateContinueWithAuth(string requestId, CefSharp.DevTools.Fetch.AuthChallengeResponse authChallengeResponse); + /// + /// Continues a request supplying authChallengeResponse following authRequired event. + /// + /// An id the client received in authRequired event. + /// Response to with an authChallenge. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ContinueWithAuthAsync(string requestId, CefSharp.DevTools.Fetch.AuthChallengeResponse authChallengeResponse) + { + ValidateContinueWithAuth(requestId, authChallengeResponse); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + dict.Add("authChallengeResponse", authChallengeResponse.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Fetch.continueWithAuth", dict); + return methodResult; + } + + partial void ValidateGetResponseBody(string requestId); + /// + /// Causes the body of the response to be received from the server and + /// returned as a single string. May only be issued for a request that + /// is paused in the Response stage and is mutually exclusive with + /// takeResponseBodyForInterceptionAsStream. Calling other methods that + /// affect the request or disabling fetch domain before body is received + /// results in an undefined behavior. + /// + /// Identifier for the intercepted request to get body for. + /// returns System.Threading.Tasks.Task<GetResponseBodyResponse> + public async System.Threading.Tasks.Task GetResponseBodyAsync(string requestId) + { + ValidateGetResponseBody(requestId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Fetch.getResponseBody", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateTakeResponseBodyAsStream(string requestId); + /// + /// Returns a handle to the stream representing the response body. + /// The request must be paused in the HeadersReceived stage. + /// Note that after this command the request can't be continued + /// as is -- client either needs to cancel it or to provide the + /// response body. + /// The stream only supports sequential read, IO.read will fail if the position + /// is specified. + /// This method is mutually exclusive with getResponseBody. + /// Calling other methods that affect the request or disabling fetch + /// domain before body is received results in an undefined behavior. + /// + /// requestId + /// returns System.Threading.Tasks.Task<TakeResponseBodyAsStreamResponse> + public async System.Threading.Tasks.Task TakeResponseBodyAsStreamAsync(string requestId) + { + ValidateTakeResponseBodyAsStream(requestId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("requestId", requestId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Fetch.takeResponseBodyAsStream", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.WebAudio +{ + /// + /// GetRealtimeDataResponse + /// + public class GetRealtimeDataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// realtimeData + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("realtimeData")] + public CefSharp.DevTools.WebAudio.ContextRealtimeData RealtimeData + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.WebAudio +{ + using System.Linq; + + /// + /// This domain allows inspection of Web Audio API. + /// https://webaudio.github.io/web-audio-api/ + /// + public partial class WebAudioClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public WebAudioClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Enables the WebAudio domain and starts sending context lifetime events. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAudio.enable", dict); + return methodResult; + } + + /// + /// Disables the WebAudio domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAudio.disable", dict); + return methodResult; + } + + partial void ValidateGetRealtimeData(string contextId); + /// + /// Fetch the realtime data from the registered contexts. + /// + /// contextId + /// returns System.Threading.Tasks.Task<GetRealtimeDataResponse> + public async System.Threading.Tasks.Task GetRealtimeDataAsync(string contextId) + { + ValidateGetRealtimeData(contextId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("contextId", contextId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAudio.getRealtimeData", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.WebAuthn +{ + /// + /// AddVirtualAuthenticatorResponse + /// + public class AddVirtualAuthenticatorResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// authenticatorId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("authenticatorId")] + public string AuthenticatorId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.WebAuthn +{ + /// + /// GetCredentialResponse + /// + public class GetCredentialResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// credential + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("credential")] + public CefSharp.DevTools.WebAuthn.Credential Credential + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.WebAuthn +{ + /// + /// GetCredentialsResponse + /// + public class GetCredentialsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// credentials + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("credentials")] + public System.Collections.Generic.IList Credentials + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.WebAuthn +{ + using System.Linq; + + /// + /// This domain allows configuring virtual authenticators to test the WebAuthn + /// API. + /// + public partial class WebAuthnClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public WebAuthnClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Enable the WebAuthn domain and start intercepting credential storage and + /// retrieval with a virtual authenticator. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAuthn.enable", dict); + return methodResult; + } + + /// + /// Disable the WebAuthn domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAuthn.disable", dict); + return methodResult; + } + + partial void ValidateAddVirtualAuthenticator(CefSharp.DevTools.WebAuthn.VirtualAuthenticatorOptions options); + /// + /// Creates and adds a virtual authenticator. + /// + /// options + /// returns System.Threading.Tasks.Task<AddVirtualAuthenticatorResponse> + public async System.Threading.Tasks.Task AddVirtualAuthenticatorAsync(CefSharp.DevTools.WebAuthn.VirtualAuthenticatorOptions options) + { + ValidateAddVirtualAuthenticator(options); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("options", options.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAuthn.addVirtualAuthenticator", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateRemoveVirtualAuthenticator(string authenticatorId); + /// + /// Removes the given authenticator. + /// + /// authenticatorId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RemoveVirtualAuthenticatorAsync(string authenticatorId) + { + ValidateRemoveVirtualAuthenticator(authenticatorId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("authenticatorId", authenticatorId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAuthn.removeVirtualAuthenticator", dict); + return methodResult; + } + + partial void ValidateAddCredential(string authenticatorId, CefSharp.DevTools.WebAuthn.Credential credential); + /// + /// Adds the credential to the specified authenticator. + /// + /// authenticatorId + /// credential + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task AddCredentialAsync(string authenticatorId, CefSharp.DevTools.WebAuthn.Credential credential) + { + ValidateAddCredential(authenticatorId, credential); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("authenticatorId", authenticatorId); + dict.Add("credential", credential.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAuthn.addCredential", dict); + return methodResult; + } + + partial void ValidateGetCredential(string authenticatorId, byte[] credentialId); + /// + /// Returns a single credential stored in the given virtual authenticator that + /// matches the credential ID. + /// + /// authenticatorId + /// credentialId + /// returns System.Threading.Tasks.Task<GetCredentialResponse> + public async System.Threading.Tasks.Task GetCredentialAsync(string authenticatorId, byte[] credentialId) + { + ValidateGetCredential(authenticatorId, credentialId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("authenticatorId", authenticatorId); + dict.Add("credentialId", ToBase64String(credentialId)); + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAuthn.getCredential", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetCredentials(string authenticatorId); + /// + /// Returns all the credentials stored in the given virtual authenticator. + /// + /// authenticatorId + /// returns System.Threading.Tasks.Task<GetCredentialsResponse> + public async System.Threading.Tasks.Task GetCredentialsAsync(string authenticatorId) + { + ValidateGetCredentials(authenticatorId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("authenticatorId", authenticatorId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAuthn.getCredentials", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateRemoveCredential(string authenticatorId, byte[] credentialId); + /// + /// Removes a credential from the authenticator. + /// + /// authenticatorId + /// credentialId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RemoveCredentialAsync(string authenticatorId, byte[] credentialId) + { + ValidateRemoveCredential(authenticatorId, credentialId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("authenticatorId", authenticatorId); + dict.Add("credentialId", ToBase64String(credentialId)); + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAuthn.removeCredential", dict); + return methodResult; + } + + partial void ValidateClearCredentials(string authenticatorId); + /// + /// Clears all the credentials from the specified device. + /// + /// authenticatorId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ClearCredentialsAsync(string authenticatorId) + { + ValidateClearCredentials(authenticatorId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("authenticatorId", authenticatorId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAuthn.clearCredentials", dict); + return methodResult; + } + + partial void ValidateSetUserVerified(string authenticatorId, bool isUserVerified); + /// + /// Sets whether User Verification succeeds or fails for an authenticator. + /// The default is true. + /// + /// authenticatorId + /// isUserVerified + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetUserVerifiedAsync(string authenticatorId, bool isUserVerified) + { + ValidateSetUserVerified(authenticatorId, isUserVerified); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("authenticatorId", authenticatorId); + dict.Add("isUserVerified", isUserVerified); + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAuthn.setUserVerified", dict); + return methodResult; + } + + partial void ValidateSetAutomaticPresenceSimulation(string authenticatorId, bool enabled); + /// + /// Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator. + /// The default is true. + /// + /// authenticatorId + /// enabled + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetAutomaticPresenceSimulationAsync(string authenticatorId, bool enabled) + { + ValidateSetAutomaticPresenceSimulation(authenticatorId, enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("authenticatorId", authenticatorId); + dict.Add("enabled", enabled); + var methodResult = await _client.ExecuteDevToolsMethodAsync("WebAuthn.setAutomaticPresenceSimulation", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Media +{ + using System.Linq; + + /// + /// This domain allows detailed inspection of media elements + /// + public partial class MediaClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public MediaClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Enables the Media domain + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Media.enable", dict); + return methodResult; + } + + /// + /// Disables the Media domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Media.disable", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// EnableResponse + /// + public class EnableResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// debuggerId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("debuggerId")] + public string DebuggerId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// EvaluateOnCallFrameResponse + /// + public class EvaluateOnCallFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public CefSharp.DevTools.Runtime.RemoteObject Result + { + get; + private set; + } + + /// + /// exceptionDetails + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// ExecuteWasmEvaluatorResponse + /// + public class ExecuteWasmEvaluatorResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public CefSharp.DevTools.Runtime.RemoteObject Result + { + get; + private set; + } + + /// + /// exceptionDetails + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// GetPossibleBreakpointsResponse + /// + public class GetPossibleBreakpointsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// locations + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("locations")] + public System.Collections.Generic.IList Locations + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// GetScriptSourceResponse + /// + public class GetScriptSourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// scriptSource + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptSource")] + public string ScriptSource + { + get; + private set; + } + + /// + /// bytecode + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bytecode")] + public byte[] Bytecode + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// GetStackTraceResponse + /// + public class GetStackTraceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// stackTrace + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackTrace")] + public CefSharp.DevTools.Runtime.StackTrace StackTrace + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// RestartFrameResponse + /// + public class RestartFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// callFrames + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrames")] + public System.Collections.Generic.IList CallFrames + { + get; + private set; + } + + /// + /// asyncStackTrace + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncStackTrace")] + public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace + { + get; + private set; + } + + /// + /// asyncStackTraceId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncStackTraceId")] + public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// SearchInContentResponse + /// + public class SearchInContentResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public System.Collections.Generic.IList Result + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// SetBreakpointResponse + /// + public class SetBreakpointResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// breakpointId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("breakpointId")] + public string BreakpointId + { + get; + private set; + } + + /// + /// actualLocation + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("actualLocation")] + public CefSharp.DevTools.Debugger.Location ActualLocation + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// SetInstrumentationBreakpointResponse + /// + public class SetInstrumentationBreakpointResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// breakpointId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("breakpointId")] + public string BreakpointId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// SetBreakpointByUrlResponse + /// + public class SetBreakpointByUrlResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// breakpointId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("breakpointId")] + public string BreakpointId + { + get; + private set; + } + + /// + /// locations + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("locations")] + public System.Collections.Generic.IList Locations + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// SetBreakpointOnFunctionCallResponse + /// + public class SetBreakpointOnFunctionCallResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// breakpointId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("breakpointId")] + public string BreakpointId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// SetScriptSourceResponse + /// + public class SetScriptSourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// callFrames + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrames")] + public System.Collections.Generic.IList CallFrames + { + get; + private set; + } + + /// + /// stackChanged + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackChanged")] + public bool? StackChanged + { + get; + private set; + } + + /// + /// asyncStackTrace + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncStackTrace")] + public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace + { + get; + private set; + } + + /// + /// asyncStackTraceId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncStackTraceId")] + public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId + { + get; + private set; + } + + /// + /// exceptionDetails + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + using System.Linq; + + /// + /// Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing + /// breakpoints, stepping through execution, exploring stack traces, etc. + /// + public partial class DebuggerClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public DebuggerClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateContinueToLocation(CefSharp.DevTools.Debugger.Location location, string targetCallFrames = null); + /// + /// Continues execution until specific location is reached. + /// + /// Location to continue to. + /// targetCallFrames + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ContinueToLocationAsync(CefSharp.DevTools.Debugger.Location location, string targetCallFrames = null) + { + ValidateContinueToLocation(location, targetCallFrames); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("location", location.ToDictionary()); + if (!(string.IsNullOrEmpty(targetCallFrames))) + { + dict.Add("targetCallFrames", targetCallFrames); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.continueToLocation", dict); + return methodResult; + } + + /// + /// Disables debugger for given page. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.disable", dict); + return methodResult; + } + + partial void ValidateEnable(long? maxScriptsCacheSize = null); + /// + /// Enables debugger for the given page. Clients should not assume that the debugging has been + /// enabled until the result for this command is received. + /// + /// The maximum size in bytes of collected scripts (not referenced by other heap objects) + public async System.Threading.Tasks.Task EnableAsync(long? maxScriptsCacheSize = null) + { + ValidateEnable(maxScriptsCacheSize); + var dict = new System.Collections.Generic.Dictionary(); + if (maxScriptsCacheSize.HasValue) + { + dict.Add("maxScriptsCacheSize", maxScriptsCacheSize.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.enable", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateEvaluateOnCallFrame(string callFrameId, string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? throwOnSideEffect = null, long? timeout = null); + /// + /// Evaluates expression on a given call frame. + /// + /// Call frame identifier to evaluate on. + /// Expression to evaluate. + /// String object group name to put result into (allows rapid releasing resulting object handles + public async System.Threading.Tasks.Task EvaluateOnCallFrameAsync(string callFrameId, string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? throwOnSideEffect = null, long? timeout = null) + { + ValidateEvaluateOnCallFrame(callFrameId, expression, objectGroup, includeCommandLineAPI, silent, returnByValue, generatePreview, throwOnSideEffect, timeout); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("callFrameId", callFrameId); + dict.Add("expression", expression); + if (!(string.IsNullOrEmpty(objectGroup))) + { + dict.Add("objectGroup", objectGroup); + } + + if (includeCommandLineAPI.HasValue) + { + dict.Add("includeCommandLineAPI", includeCommandLineAPI.Value); + } + + if (silent.HasValue) + { + dict.Add("silent", silent.Value); + } + + if (returnByValue.HasValue) + { + dict.Add("returnByValue", returnByValue.Value); + } + + if (generatePreview.HasValue) + { + dict.Add("generatePreview", generatePreview.Value); + } + + if (throwOnSideEffect.HasValue) + { + dict.Add("throwOnSideEffect", throwOnSideEffect.Value); + } + + if (timeout.HasValue) + { + dict.Add("timeout", timeout.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.evaluateOnCallFrame", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateExecuteWasmEvaluator(string callFrameId, byte[] evaluator, long? timeout = null); + /// + /// Execute a Wasm Evaluator module on a given call frame. + /// + /// WebAssembly call frame identifier to evaluate on. + /// Code of the evaluator module. + /// Terminate execution after timing out (number of milliseconds). + /// returns System.Threading.Tasks.Task<ExecuteWasmEvaluatorResponse> + public async System.Threading.Tasks.Task ExecuteWasmEvaluatorAsync(string callFrameId, byte[] evaluator, long? timeout = null) + { + ValidateExecuteWasmEvaluator(callFrameId, evaluator, timeout); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("callFrameId", callFrameId); + dict.Add("evaluator", ToBase64String(evaluator)); + if (timeout.HasValue) + { + dict.Add("timeout", timeout.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.executeWasmEvaluator", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetPossibleBreakpoints(CefSharp.DevTools.Debugger.Location start, CefSharp.DevTools.Debugger.Location end = null, bool? restrictToFunction = null); + /// + /// Returns possible locations for breakpoint. scriptId in start and end range locations should be + /// the same. + /// + /// Start of range to search possible breakpoint locations in. + /// End of range to search possible breakpoint locations in (excluding). When not specified, end + public async System.Threading.Tasks.Task GetPossibleBreakpointsAsync(CefSharp.DevTools.Debugger.Location start, CefSharp.DevTools.Debugger.Location end = null, bool? restrictToFunction = null) + { + ValidateGetPossibleBreakpoints(start, end, restrictToFunction); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("start", start.ToDictionary()); + if ((end) != (null)) + { + dict.Add("end", end.ToDictionary()); + } + + if (restrictToFunction.HasValue) + { + dict.Add("restrictToFunction", restrictToFunction.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.getPossibleBreakpoints", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetScriptSource(string scriptId); + /// + /// Returns source for the script with given id. + /// + /// Id of the script to get source for. + /// returns System.Threading.Tasks.Task<GetScriptSourceResponse> + public async System.Threading.Tasks.Task GetScriptSourceAsync(string scriptId) + { + ValidateGetScriptSource(scriptId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scriptId", scriptId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.getScriptSource", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetStackTrace(CefSharp.DevTools.Runtime.StackTraceId stackTraceId); + /// + /// Returns stack trace with given `stackTraceId`. + /// + /// stackTraceId + /// returns System.Threading.Tasks.Task<GetStackTraceResponse> + public async System.Threading.Tasks.Task GetStackTraceAsync(CefSharp.DevTools.Runtime.StackTraceId stackTraceId) + { + ValidateGetStackTrace(stackTraceId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("stackTraceId", stackTraceId.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.getStackTrace", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Stops on the next JavaScript statement. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task PauseAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.pause", dict); + return methodResult; + } + + partial void ValidateRemoveBreakpoint(string breakpointId); + /// + /// Removes JavaScript breakpoint. + /// + /// breakpointId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RemoveBreakpointAsync(string breakpointId) + { + ValidateRemoveBreakpoint(breakpointId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("breakpointId", breakpointId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.removeBreakpoint", dict); + return methodResult; + } + + partial void ValidateRestartFrame(string callFrameId); + /// + /// Restarts particular call frame from the beginning. + /// + /// Call frame identifier to evaluate on. + /// returns System.Threading.Tasks.Task<RestartFrameResponse> + public async System.Threading.Tasks.Task RestartFrameAsync(string callFrameId) + { + ValidateRestartFrame(callFrameId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("callFrameId", callFrameId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.restartFrame", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateResume(bool? terminateOnResume = null); + /// + /// Resumes JavaScript execution. + /// + /// Set to true to terminate execution upon resuming execution. In contrast + public async System.Threading.Tasks.Task ResumeAsync(bool? terminateOnResume = null) + { + ValidateResume(terminateOnResume); + var dict = new System.Collections.Generic.Dictionary(); + if (terminateOnResume.HasValue) + { + dict.Add("terminateOnResume", terminateOnResume.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.resume", dict); + return methodResult; + } + + partial void ValidateSearchInContent(string scriptId, string query, bool? caseSensitive = null, bool? isRegex = null); + /// + /// Searches for given string in script content. + /// + /// Id of the script to search in. + /// String to search for. + /// If true, search is case sensitive. + /// If true, treats string parameter as regex. + /// returns System.Threading.Tasks.Task<SearchInContentResponse> + public async System.Threading.Tasks.Task SearchInContentAsync(string scriptId, string query, bool? caseSensitive = null, bool? isRegex = null) + { + ValidateSearchInContent(scriptId, query, caseSensitive, isRegex); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scriptId", scriptId); + dict.Add("query", query); + if (caseSensitive.HasValue) + { + dict.Add("caseSensitive", caseSensitive.Value); + } + + if (isRegex.HasValue) + { + dict.Add("isRegex", isRegex.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.searchInContent", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetAsyncCallStackDepth(int maxDepth); + /// + /// Enables or disables async call stacks tracking. + /// + /// Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async + public async System.Threading.Tasks.Task SetAsyncCallStackDepthAsync(int maxDepth) + { + ValidateSetAsyncCallStackDepth(maxDepth); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("maxDepth", maxDepth); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setAsyncCallStackDepth", dict); + return methodResult; + } + + partial void ValidateSetBlackboxPatterns(string[] patterns); + /// + /// Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in + /// scripts with url matching one of the patterns. VM will try to leave blackboxed script by + /// performing 'step in' several times, finally resorting to 'step out' if unsuccessful. + /// + /// Array of regexps that will be used to check script url for blackbox state. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetBlackboxPatternsAsync(string[] patterns) + { + ValidateSetBlackboxPatterns(patterns); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("patterns", patterns); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setBlackboxPatterns", dict); + return methodResult; + } + + partial void ValidateSetBlackboxedRanges(string scriptId, System.Collections.Generic.IList positions); + /// + /// Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted + /// scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. + /// Positions array contains positions where blackbox state is changed. First interval isn't + /// blackboxed. Array should be sorted. + /// + /// Id of the script. + /// positions + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetBlackboxedRangesAsync(string scriptId, System.Collections.Generic.IList positions) + { + ValidateSetBlackboxedRanges(scriptId, positions); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scriptId", scriptId); + dict.Add("positions", positions.Select(x => x.ToDictionary())); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setBlackboxedRanges", dict); + return methodResult; + } + + partial void ValidateSetBreakpoint(CefSharp.DevTools.Debugger.Location location, string condition = null); + /// + /// Sets JavaScript breakpoint at a given location. + /// + /// Location to set breakpoint in. + /// Expression to use as a breakpoint condition. When specified, debugger will only stop on the + public async System.Threading.Tasks.Task SetBreakpointAsync(CefSharp.DevTools.Debugger.Location location, string condition = null) + { + ValidateSetBreakpoint(location, condition); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("location", location.ToDictionary()); + if (!(string.IsNullOrEmpty(condition))) + { + dict.Add("condition", condition); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setBreakpoint", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetInstrumentationBreakpoint(string instrumentation); + /// + /// Sets instrumentation breakpoint. + /// + /// Instrumentation name. + /// returns System.Threading.Tasks.Task<SetInstrumentationBreakpointResponse> + public async System.Threading.Tasks.Task SetInstrumentationBreakpointAsync(string instrumentation) + { + ValidateSetInstrumentationBreakpoint(instrumentation); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("instrumentation", instrumentation); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setInstrumentationBreakpoint", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetBreakpointByUrl(int lineNumber, string url = null, string urlRegex = null, string scriptHash = null, int? columnNumber = null, string condition = null); + /// + /// Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this + /// command is issued, all existing parsed scripts will have breakpoints resolved and returned in + /// `locations` property. Further matching script parsing will result in subsequent + /// `breakpointResolved` events issued. This logical breakpoint will survive page reloads. + /// + /// Line number to set breakpoint at. + /// URL of the resources to set breakpoint on. + /// Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or + public async System.Threading.Tasks.Task SetBreakpointByUrlAsync(int lineNumber, string url = null, string urlRegex = null, string scriptHash = null, int? columnNumber = null, string condition = null) + { + ValidateSetBreakpointByUrl(lineNumber, url, urlRegex, scriptHash, columnNumber, condition); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("lineNumber", lineNumber); + if (!(string.IsNullOrEmpty(url))) + { + dict.Add("url", url); + } + + if (!(string.IsNullOrEmpty(urlRegex))) + { + dict.Add("urlRegex", urlRegex); + } + + if (!(string.IsNullOrEmpty(scriptHash))) + { + dict.Add("scriptHash", scriptHash); + } + + if (columnNumber.HasValue) + { + dict.Add("columnNumber", columnNumber.Value); + } + + if (!(string.IsNullOrEmpty(condition))) + { + dict.Add("condition", condition); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setBreakpointByUrl", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetBreakpointOnFunctionCall(string objectId, string condition = null); + /// + /// Sets JavaScript breakpoint before each call to the given function. + /// If another function was created from the same source as a given one, + /// calling it will also trigger the breakpoint. + /// + /// Function object id. + /// Expression to use as a breakpoint condition. When specified, debugger will + public async System.Threading.Tasks.Task SetBreakpointOnFunctionCallAsync(string objectId, string condition = null) + { + ValidateSetBreakpointOnFunctionCall(objectId, condition); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("objectId", objectId); + if (!(string.IsNullOrEmpty(condition))) + { + dict.Add("condition", condition); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setBreakpointOnFunctionCall", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetBreakpointsActive(bool active); + /// + /// Activates / deactivates all breakpoints on the page. + /// + /// New value for breakpoints active state. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetBreakpointsActiveAsync(bool active) + { + ValidateSetBreakpointsActive(active); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("active", active); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setBreakpointsActive", dict); + return methodResult; + } + + partial void ValidateSetPauseOnExceptions(string state); + /// + /// Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or + /// no exceptions. Initial pause on exceptions state is `none`. + /// + /// Pause on exceptions mode. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetPauseOnExceptionsAsync(string state) + { + ValidateSetPauseOnExceptions(state); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("state", state); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setPauseOnExceptions", dict); + return methodResult; + } + + partial void ValidateSetReturnValue(CefSharp.DevTools.Runtime.CallArgument newValue); + /// + /// Changes return value in top frame. Available only at return break position. + /// + /// New return value. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetReturnValueAsync(CefSharp.DevTools.Runtime.CallArgument newValue) + { + ValidateSetReturnValue(newValue); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("newValue", newValue.ToDictionary()); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setReturnValue", dict); + return methodResult; + } + + partial void ValidateSetScriptSource(string scriptId, string scriptSource, bool? dryRun = null); + /// + /// Edits JavaScript source live. + /// + /// 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 result + public async System.Threading.Tasks.Task SetScriptSourceAsync(string scriptId, string scriptSource, bool? dryRun = null) + { + ValidateSetScriptSource(scriptId, scriptSource, dryRun); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scriptId", scriptId); + dict.Add("scriptSource", scriptSource); + if (dryRun.HasValue) + { + dict.Add("dryRun", dryRun.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setScriptSource", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetSkipAllPauses(bool skip); + /// + /// Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). + /// + /// New value for skip pauses state. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetSkipAllPausesAsync(bool skip) + { + ValidateSetSkipAllPauses(skip); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("skip", skip); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setSkipAllPauses", dict); + return methodResult; + } + + partial void ValidateSetVariableValue(int scopeNumber, string variableName, CefSharp.DevTools.Runtime.CallArgument newValue, string callFrameId); + /// + /// Changes value of variable in a callframe. Object-based scopes are not supported and must be + /// mutated manually. + /// + /// 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' + public async System.Threading.Tasks.Task SetVariableValueAsync(int scopeNumber, string variableName, CefSharp.DevTools.Runtime.CallArgument newValue, string callFrameId) + { + ValidateSetVariableValue(scopeNumber, variableName, newValue, callFrameId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scopeNumber", scopeNumber); + dict.Add("variableName", variableName); + dict.Add("newValue", newValue.ToDictionary()); + dict.Add("callFrameId", callFrameId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.setVariableValue", dict); + return methodResult; + } + + partial void ValidateStepInto(bool? breakOnAsyncCall = null, System.Collections.Generic.IList skipList = null); + /// + /// Steps into the function call. + /// + /// Debugger will pause on the execution of the first async task which was scheduled + public async System.Threading.Tasks.Task StepIntoAsync(bool? breakOnAsyncCall = null, System.Collections.Generic.IList skipList = null) + { + ValidateStepInto(breakOnAsyncCall, skipList); + var dict = new System.Collections.Generic.Dictionary(); + if (breakOnAsyncCall.HasValue) + { + dict.Add("breakOnAsyncCall", breakOnAsyncCall.Value); + } + + if ((skipList) != (null)) + { + dict.Add("skipList", skipList.Select(x => x.ToDictionary())); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.stepInto", dict); + return methodResult; + } + + /// + /// Steps out of the function call. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StepOutAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.stepOut", dict); + return methodResult; + } + + partial void ValidateStepOver(System.Collections.Generic.IList skipList = null); + /// + /// Steps over the statement. + /// + /// The skipList specifies location ranges that should be skipped on step over. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StepOverAsync(System.Collections.Generic.IList skipList = null) + { + ValidateStepOver(skipList); + var dict = new System.Collections.Generic.Dictionary(); + if ((skipList) != (null)) + { + dict.Add("skipList", skipList.Select(x => x.ToDictionary())); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Debugger.stepOver", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.HeapProfiler +{ + /// + /// GetHeapObjectIdResponse + /// + public class GetHeapObjectIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// heapSnapshotObjectId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("heapSnapshotObjectId")] + public string HeapSnapshotObjectId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.HeapProfiler +{ + /// + /// GetObjectByHeapObjectIdResponse + /// + public class GetObjectByHeapObjectIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public CefSharp.DevTools.Runtime.RemoteObject Result + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.HeapProfiler +{ + /// + /// GetSamplingProfileResponse + /// + public class GetSamplingProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// profile + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + public CefSharp.DevTools.HeapProfiler.SamplingHeapProfile Profile + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.HeapProfiler +{ + /// + /// StopSamplingResponse + /// + public class StopSamplingResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// profile + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + public CefSharp.DevTools.HeapProfiler.SamplingHeapProfile Profile + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.HeapProfiler +{ + using System.Linq; + + /// + /// HeapProfiler + /// + public partial class HeapProfilerClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public HeapProfilerClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateAddInspectedHeapObject(string heapObjectId); + /// + /// Enables console to refer to the node with given id via $x (see Command Line API for more details + /// $x functions). + /// + /// Heap snapshot object id to be accessible by means of $x command line API. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task AddInspectedHeapObjectAsync(string heapObjectId) + { + ValidateAddInspectedHeapObject(heapObjectId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("heapObjectId", heapObjectId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeapProfiler.addInspectedHeapObject", dict); + return methodResult; + } + + /// + /// CollectGarbage + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task CollectGarbageAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeapProfiler.collectGarbage", dict); + return methodResult; + } + + /// + /// Disable + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeapProfiler.disable", dict); + return methodResult; + } + + /// + /// Enable + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeapProfiler.enable", dict); + return methodResult; + } + + partial void ValidateGetHeapObjectId(string objectId); + /// + /// GetHeapObjectId + /// + /// Identifier of the object to get heap object id for. + /// returns System.Threading.Tasks.Task<GetHeapObjectIdResponse> + public async System.Threading.Tasks.Task GetHeapObjectIdAsync(string objectId) + { + ValidateGetHeapObjectId(objectId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("objectId", objectId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeapProfiler.getHeapObjectId", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetObjectByHeapObjectId(string objectId, string objectGroup = null); + /// + /// GetObjectByHeapObjectId + /// + /// objectId + /// Symbolic group name that can be used to release multiple objects. + /// returns System.Threading.Tasks.Task<GetObjectByHeapObjectIdResponse> + public async System.Threading.Tasks.Task GetObjectByHeapObjectIdAsync(string objectId, string objectGroup = null) + { + ValidateGetObjectByHeapObjectId(objectId, objectGroup); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("objectId", objectId); + if (!(string.IsNullOrEmpty(objectGroup))) + { + dict.Add("objectGroup", objectGroup); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeapProfiler.getObjectByHeapObjectId", dict); + return methodResult.DeserializeJson(); + } + + /// + /// GetSamplingProfile + /// + /// returns System.Threading.Tasks.Task<GetSamplingProfileResponse> + public async System.Threading.Tasks.Task GetSamplingProfileAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeapProfiler.getSamplingProfile", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateStartSampling(long? samplingInterval = null); + /// + /// StartSampling + /// + /// Average sample interval in bytes. Poisson distribution is used for the intervals. The + public async System.Threading.Tasks.Task StartSamplingAsync(long? samplingInterval = null) + { + ValidateStartSampling(samplingInterval); + var dict = new System.Collections.Generic.Dictionary(); + if (samplingInterval.HasValue) + { + dict.Add("samplingInterval", samplingInterval.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeapProfiler.startSampling", dict); + return methodResult; + } + + partial void ValidateStartTrackingHeapObjects(bool? trackAllocations = null); + /// + /// StartTrackingHeapObjects + /// + /// trackAllocations + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StartTrackingHeapObjectsAsync(bool? trackAllocations = null) + { + ValidateStartTrackingHeapObjects(trackAllocations); + var dict = new System.Collections.Generic.Dictionary(); + if (trackAllocations.HasValue) + { + dict.Add("trackAllocations", trackAllocations.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeapProfiler.startTrackingHeapObjects", dict); + return methodResult; + } + + /// + /// StopSampling + /// + /// returns System.Threading.Tasks.Task<StopSamplingResponse> + public async System.Threading.Tasks.Task StopSamplingAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeapProfiler.stopSampling", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateStopTrackingHeapObjects(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null); + /// + /// StopTrackingHeapObjects + /// + /// If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken + public async System.Threading.Tasks.Task StopTrackingHeapObjectsAsync(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null) + { + ValidateStopTrackingHeapObjects(reportProgress, treatGlobalObjectsAsRoots); + var dict = new System.Collections.Generic.Dictionary(); + if (reportProgress.HasValue) + { + dict.Add("reportProgress", reportProgress.Value); + } + + if (treatGlobalObjectsAsRoots.HasValue) + { + dict.Add("treatGlobalObjectsAsRoots", treatGlobalObjectsAsRoots.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeapProfiler.stopTrackingHeapObjects", dict); + return methodResult; + } + + partial void ValidateTakeHeapSnapshot(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null); + /// + /// TakeHeapSnapshot + /// + /// If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. + /// If true, a raw snapshot without artifical roots will be generated + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task TakeHeapSnapshotAsync(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null) + { + ValidateTakeHeapSnapshot(reportProgress, treatGlobalObjectsAsRoots); + var dict = new System.Collections.Generic.Dictionary(); + if (reportProgress.HasValue) + { + dict.Add("reportProgress", reportProgress.Value); + } + + if (treatGlobalObjectsAsRoots.HasValue) + { + dict.Add("treatGlobalObjectsAsRoots", treatGlobalObjectsAsRoots.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("HeapProfiler.takeHeapSnapshot", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// GetBestEffortCoverageResponse + /// + public class GetBestEffortCoverageResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public System.Collections.Generic.IList Result + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// StartPreciseCoverageResponse + /// + public class StartPreciseCoverageResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// timestamp + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public long Timestamp + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// StopResponse + /// + public class StopResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// profile + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + public CefSharp.DevTools.Profiler.Profile Profile + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// TakePreciseCoverageResponse + /// + public class TakePreciseCoverageResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public System.Collections.Generic.IList Result + { + get; + private set; + } + + /// + /// timestamp + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public long Timestamp + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// TakeTypeProfileResponse + /// + public class TakeTypeProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public System.Collections.Generic.IList Result + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// GetCountersResponse + /// + public class GetCountersResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public System.Collections.Generic.IList Result + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + /// + /// GetRuntimeCallStatsResponse + /// + public class GetRuntimeCallStatsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public System.Collections.Generic.IList Result + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Profiler +{ + using System.Linq; + + /// + /// Profiler + /// + public partial class ProfilerClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public ProfilerClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Disable + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.disable", dict); + return methodResult; + } + + /// + /// Enable + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.enable", dict); + return methodResult; + } + + /// + /// Collect coverage data for the current isolate. The coverage data may be incomplete due to + /// garbage collection. + /// + /// returns System.Threading.Tasks.Task<GetBestEffortCoverageResponse> + public async System.Threading.Tasks.Task GetBestEffortCoverageAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.getBestEffortCoverage", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetSamplingInterval(int interval); + /// + /// Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. + /// + /// New sampling interval in microseconds. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetSamplingIntervalAsync(int interval) + { + ValidateSetSamplingInterval(interval); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("interval", interval); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.setSamplingInterval", dict); + return methodResult; + } + + /// + /// Start + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StartAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.start", dict); + return methodResult; + } + + partial void ValidateStartPreciseCoverage(bool? callCount = null, bool? detailed = null, bool? allowTriggeredUpdates = null); + /// + /// Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code + /// coverage may be incomplete. Enabling prevents running optimized code and resets execution + /// counters. + /// + /// Collect accurate call counts beyond simple 'covered' or 'not covered'. + /// Collect block-based coverage. + /// Allow the backend to send updates on its own initiative + /// returns System.Threading.Tasks.Task<StartPreciseCoverageResponse> + public async System.Threading.Tasks.Task StartPreciseCoverageAsync(bool? callCount = null, bool? detailed = null, bool? allowTriggeredUpdates = null) + { + ValidateStartPreciseCoverage(callCount, detailed, allowTriggeredUpdates); + var dict = new System.Collections.Generic.Dictionary(); + if (callCount.HasValue) + { + dict.Add("callCount", callCount.Value); + } + + if (detailed.HasValue) + { + dict.Add("detailed", detailed.Value); + } + + if (allowTriggeredUpdates.HasValue) + { + dict.Add("allowTriggeredUpdates", allowTriggeredUpdates.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.startPreciseCoverage", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Enable type profile. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StartTypeProfileAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.startTypeProfile", dict); + return methodResult; + } + + /// + /// Stop + /// + /// returns System.Threading.Tasks.Task<StopResponse> + public async System.Threading.Tasks.Task StopAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.stop", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Disable precise code coverage. Disabling releases unnecessary execution count records and allows + /// executing optimized code. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StopPreciseCoverageAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.stopPreciseCoverage", dict); + return methodResult; + } + + /// + /// Disable type profile. Disabling releases type profile data collected so far. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task StopTypeProfileAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.stopTypeProfile", dict); + return methodResult; + } + + /// + /// Collect coverage data for the current isolate, and resets execution counters. Precise code + /// coverage needs to have started. + /// + /// returns System.Threading.Tasks.Task<TakePreciseCoverageResponse> + public async System.Threading.Tasks.Task TakePreciseCoverageAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.takePreciseCoverage", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Collect type profile. + /// + /// returns System.Threading.Tasks.Task<TakeTypeProfileResponse> + public async System.Threading.Tasks.Task TakeTypeProfileAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.takeTypeProfile", dict); + 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. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableRuntimeCallStatsAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.enableRuntimeCallStats", dict); + return methodResult; + } + + /// + /// Disable run time call stats collection. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableRuntimeCallStatsAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.disableRuntimeCallStats", dict); + return methodResult; + } + + /// + /// Retrieve run time call stats. + /// + /// returns System.Threading.Tasks.Task<GetRuntimeCallStatsResponse> + public async System.Threading.Tasks.Task GetRuntimeCallStatsAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Profiler.getRuntimeCallStats", dict); + return methodResult.DeserializeJson(); + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// AwaitPromiseResponse + /// + public class AwaitPromiseResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public CefSharp.DevTools.Runtime.RemoteObject Result + { + get; + private set; + } + + /// + /// exceptionDetails + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// CallFunctionOnResponse + /// + public class CallFunctionOnResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public CefSharp.DevTools.Runtime.RemoteObject Result + { + get; + private set; + } + + /// + /// exceptionDetails + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// CompileScriptResponse + /// + public class CompileScriptResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// scriptId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + public string ScriptId + { + get; + private set; + } + + /// + /// exceptionDetails + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// EvaluateResponse + /// + public class EvaluateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public CefSharp.DevTools.Runtime.RemoteObject Result + { + get; + private set; + } + + /// + /// exceptionDetails + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// GetIsolateIdResponse + /// + public class GetIsolateIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// id + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + public string Id + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// GetHeapUsageResponse + /// + public class GetHeapUsageResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// usedSize + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("usedSize")] + public long UsedSize + { + get; + private set; + } + + /// + /// totalSize + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("totalSize")] + public long TotalSize + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// GetPropertiesResponse + /// + public class GetPropertiesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public System.Collections.Generic.IList Result + { + get; + private set; + } + + /// + /// internalProperties + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("internalProperties")] + public System.Collections.Generic.IList InternalProperties + { + get; + private set; + } + + /// + /// privateProperties + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("privateProperties")] + public System.Collections.Generic.IList PrivateProperties + { + get; + private set; + } + + /// + /// exceptionDetails + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// GlobalLexicalScopeNamesResponse + /// + public class GlobalLexicalScopeNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// names + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("names")] + public string[] Names + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// QueryObjectsResponse + /// + public class QueryObjectsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// objects + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("objects")] + public CefSharp.DevTools.Runtime.RemoteObject Objects + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + /// + /// RunScriptResponse + /// + public class RunScriptResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// result + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public CefSharp.DevTools.Runtime.RemoteObject Result + { + get; + private set; + } + + /// + /// exceptionDetails + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Runtime +{ + using System.Linq; + + /// + /// Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. + /// Evaluation results are returned as mirror object that expose object type, string representation + /// and unique identifier that can be used for further object reference. Original objects are + /// maintained in memory unless they are either explicitly released or are released along with the + /// other objects in their object group. + /// + public partial class RuntimeClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + public RuntimeClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateAwaitPromise(string promiseObjectId, bool? returnByValue = null, bool? generatePreview = null); + /// + /// Add handler to promise with given promise object id. + /// + /// Identifier of the promise. + /// Whether the result is expected to be a JSON object that should be sent by value. + /// Whether preview should be generated for the result. + /// returns System.Threading.Tasks.Task<AwaitPromiseResponse> + public async System.Threading.Tasks.Task AwaitPromiseAsync(string promiseObjectId, bool? returnByValue = null, bool? generatePreview = null) + { + ValidateAwaitPromise(promiseObjectId, returnByValue, generatePreview); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("promiseObjectId", promiseObjectId); + if (returnByValue.HasValue) + { + dict.Add("returnByValue", returnByValue.Value); + } + + if (generatePreview.HasValue) + { + dict.Add("generatePreview", generatePreview.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.awaitPromise", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null); + /// + /// Calls function with given declaration on the given object. Object group of the result is + /// inherited from the target object. + /// + /// Declaration of the function to call. + /// Identifier of the object to call function on. Either objectId or executionContextId should + public async System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null) + { + ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("functionDeclaration", functionDeclaration); + if (!(string.IsNullOrEmpty(objectId))) + { + dict.Add("objectId", objectId); + } + + if ((arguments) != (null)) + { + dict.Add("arguments", arguments.Select(x => x.ToDictionary())); + } + + if (silent.HasValue) + { + dict.Add("silent", silent.Value); + } + + if (returnByValue.HasValue) + { + dict.Add("returnByValue", returnByValue.Value); + } + + if (generatePreview.HasValue) + { + dict.Add("generatePreview", generatePreview.Value); + } + + if (userGesture.HasValue) + { + dict.Add("userGesture", userGesture.Value); + } + + if (awaitPromise.HasValue) + { + dict.Add("awaitPromise", awaitPromise.Value); + } + + if (executionContextId.HasValue) + { + dict.Add("executionContextId", executionContextId.Value); + } + + if (!(string.IsNullOrEmpty(objectGroup))) + { + dict.Add("objectGroup", objectGroup); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.callFunctionOn", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateCompileScript(string expression, string sourceURL, bool persistScript, int? executionContextId = null); + /// + /// Compiles expression. + /// + /// Expression to compile. + /// Source url to be set for the script. + /// Specifies whether the compiled script should be persisted. + /// Specifies in which execution context to perform script run. If the parameter is omitted the + public async System.Threading.Tasks.Task CompileScriptAsync(string expression, string sourceURL, bool persistScript, int? executionContextId = null) + { + ValidateCompileScript(expression, sourceURL, persistScript, executionContextId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("expression", expression); + dict.Add("sourceURL", sourceURL); + dict.Add("persistScript", persistScript); + if (executionContextId.HasValue) + { + dict.Add("executionContextId", executionContextId.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.compileScript", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Disables reporting of execution contexts creation. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.disable", dict); + return methodResult; + } + + /// + /// Discards collected exceptions and console API calls. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task DiscardConsoleEntriesAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.discardConsoleEntries", dict); + return methodResult; + } + + /// + /// Enables reporting of execution contexts creation by means of `executionContextCreated` event. + /// When the reporting gets enabled the event will be sent immediately for each existing execution + /// context. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.enable", dict); + return methodResult; + } + + partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, long? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null); + /// + /// Evaluates expression on global object. + /// + /// Expression to evaluate. + /// Symbolic group name that can be used to release multiple objects. + /// Determines whether Command Line API should be available during the evaluation. + /// In silent mode exceptions thrown during evaluation are not reported and do not pause + public async System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, long? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null) + { + ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("expression", expression); + if (!(string.IsNullOrEmpty(objectGroup))) + { + dict.Add("objectGroup", objectGroup); + } + + if (includeCommandLineAPI.HasValue) + { + dict.Add("includeCommandLineAPI", includeCommandLineAPI.Value); + } + + if (silent.HasValue) + { + dict.Add("silent", silent.Value); + } + + if (contextId.HasValue) + { + dict.Add("contextId", contextId.Value); + } + + if (returnByValue.HasValue) + { + dict.Add("returnByValue", returnByValue.Value); + } + + if (generatePreview.HasValue) + { + dict.Add("generatePreview", generatePreview.Value); + } + + if (userGesture.HasValue) + { + dict.Add("userGesture", userGesture.Value); + } + + if (awaitPromise.HasValue) + { + dict.Add("awaitPromise", awaitPromise.Value); + } + + if (throwOnSideEffect.HasValue) + { + dict.Add("throwOnSideEffect", throwOnSideEffect.Value); + } + + if (timeout.HasValue) + { + dict.Add("timeout", timeout.Value); + } + + if (disableBreaks.HasValue) + { + dict.Add("disableBreaks", disableBreaks.Value); + } + + if (replMode.HasValue) + { + dict.Add("replMode", replMode.Value); + } + + if (allowUnsafeEvalBlockedByCSP.HasValue) + { + dict.Add("allowUnsafeEvalBlockedByCSP", allowUnsafeEvalBlockedByCSP.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.evaluate", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Returns the isolate id. + /// + /// returns System.Threading.Tasks.Task<GetIsolateIdResponse> + public async System.Threading.Tasks.Task GetIsolateIdAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.getIsolateId", dict); + return methodResult.DeserializeJson(); + } + + /// + /// Returns the JavaScript heap usage. + /// It is the total usage of the corresponding isolate not scoped to a particular Runtime. + /// + /// returns System.Threading.Tasks.Task<GetHeapUsageResponse> + public async System.Threading.Tasks.Task GetHeapUsageAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.getHeapUsage", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGetProperties(string objectId, bool? ownProperties = null, bool? accessorPropertiesOnly = null, bool? generatePreview = null); + /// + /// Returns properties of a given object. Object group of the result is inherited from the target + /// object. + /// + /// Identifier of the object to return properties for. + /// If true, returns properties belonging only to the element itself, not to its prototype + public async System.Threading.Tasks.Task GetPropertiesAsync(string objectId, bool? ownProperties = null, bool? accessorPropertiesOnly = null, bool? generatePreview = null) + { + ValidateGetProperties(objectId, ownProperties, accessorPropertiesOnly, generatePreview); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("objectId", objectId); + if (ownProperties.HasValue) + { + dict.Add("ownProperties", ownProperties.Value); + } + + if (accessorPropertiesOnly.HasValue) + { + dict.Add("accessorPropertiesOnly", accessorPropertiesOnly.Value); + } + + if (generatePreview.HasValue) + { + dict.Add("generatePreview", generatePreview.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.getProperties", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateGlobalLexicalScopeNames(int? executionContextId = null); + /// + /// Returns all let, const and class variables from global scope. + /// + /// Specifies in which execution context to lookup global scope variables. + /// returns System.Threading.Tasks.Task<GlobalLexicalScopeNamesResponse> + public async System.Threading.Tasks.Task GlobalLexicalScopeNamesAsync(int? executionContextId = null) + { + ValidateGlobalLexicalScopeNames(executionContextId); + var dict = new System.Collections.Generic.Dictionary(); + if (executionContextId.HasValue) + { + dict.Add("executionContextId", executionContextId.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.globalLexicalScopeNames", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateQueryObjects(string prototypeObjectId, string objectGroup = null); + /// + /// QueryObjects + /// + /// Identifier of the prototype to return objects for. + /// Symbolic group name that can be used to release the results. + /// returns System.Threading.Tasks.Task<QueryObjectsResponse> + public async System.Threading.Tasks.Task QueryObjectsAsync(string prototypeObjectId, string objectGroup = null) + { + ValidateQueryObjects(prototypeObjectId, objectGroup); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("prototypeObjectId", prototypeObjectId); + if (!(string.IsNullOrEmpty(objectGroup))) + { + dict.Add("objectGroup", objectGroup); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.queryObjects", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateReleaseObject(string objectId); + /// + /// Releases remote object with given id. + /// + /// Identifier of the object to release. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ReleaseObjectAsync(string objectId) + { + ValidateReleaseObject(objectId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("objectId", objectId); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.releaseObject", dict); + return methodResult; + } + + partial void ValidateReleaseObjectGroup(string objectGroup); + /// + /// Releases all remote objects that belong to a given group. + /// + /// Symbolic object group name. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task ReleaseObjectGroupAsync(string objectGroup) + { + ValidateReleaseObjectGroup(objectGroup); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("objectGroup", objectGroup); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.releaseObjectGroup", dict); + return methodResult; + } + + /// + /// Tells inspected instance to run if it was waiting for debugger to attach. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RunIfWaitingForDebuggerAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.runIfWaitingForDebugger", dict); + return methodResult; + } + + partial void ValidateRunScript(string scriptId, int? executionContextId = null, string objectGroup = null, bool? silent = null, bool? includeCommandLineAPI = null, bool? returnByValue = null, bool? generatePreview = null, bool? awaitPromise = null); + /// + /// Runs script with given id in a given context. + /// + /// Id of the script to run. + /// Specifies in which execution context to perform script run. If the parameter is omitted the + public async System.Threading.Tasks.Task RunScriptAsync(string scriptId, int? executionContextId = null, string objectGroup = null, bool? silent = null, bool? includeCommandLineAPI = null, bool? returnByValue = null, bool? generatePreview = null, bool? awaitPromise = null) + { + ValidateRunScript(scriptId, executionContextId, objectGroup, silent, includeCommandLineAPI, returnByValue, generatePreview, awaitPromise); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scriptId", scriptId); + if (executionContextId.HasValue) + { + dict.Add("executionContextId", executionContextId.Value); + } + + if (!(string.IsNullOrEmpty(objectGroup))) + { + dict.Add("objectGroup", objectGroup); + } + + if (silent.HasValue) + { + dict.Add("silent", silent.Value); + } + + if (includeCommandLineAPI.HasValue) + { + dict.Add("includeCommandLineAPI", includeCommandLineAPI.Value); + } + + if (returnByValue.HasValue) + { + dict.Add("returnByValue", returnByValue.Value); + } + + if (generatePreview.HasValue) + { + dict.Add("generatePreview", generatePreview.Value); + } + + if (awaitPromise.HasValue) + { + dict.Add("awaitPromise", awaitPromise.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.runScript", dict); + return methodResult.DeserializeJson(); + } + + partial void ValidateSetAsyncCallStackDepth(int maxDepth); + /// + /// Enables or disables async call stacks tracking. + /// + /// Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async + public async System.Threading.Tasks.Task SetAsyncCallStackDepthAsync(int maxDepth) + { + ValidateSetAsyncCallStackDepth(maxDepth); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("maxDepth", maxDepth); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.setAsyncCallStackDepth", dict); + return methodResult; + } + + partial void ValidateSetCustomObjectFormatterEnabled(bool enabled); + /// + /// SetCustomObjectFormatterEnabled + /// + /// enabled + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetCustomObjectFormatterEnabledAsync(bool enabled) + { + ValidateSetCustomObjectFormatterEnabled(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.setCustomObjectFormatterEnabled", dict); + return methodResult; + } + + partial void ValidateSetMaxCallStackSizeToCapture(int size); + /// + /// SetMaxCallStackSizeToCapture + /// + /// size + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task SetMaxCallStackSizeToCaptureAsync(int size) + { + ValidateSetMaxCallStackSizeToCapture(size); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("size", size); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.setMaxCallStackSizeToCapture", dict); + return methodResult; + } + + /// + /// Terminate current or next JavaScript execution. + /// Will cancel the termination when the outer-most script execution ends. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task TerminateExecutionAsync() + { + System.Collections.Generic.Dictionary dict = null; + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.terminateExecution", dict); + return methodResult; + } + + partial void ValidateAddBinding(string name, int? executionContextId = null); + /// + /// If executionContextId is empty, adds binding with the given name on the + /// global objects of all inspected contexts, including those created later, + /// bindings survive reloads. + /// If executionContextId is specified, adds binding only on global object of + /// given execution context. + /// Binding function takes exactly one argument, this argument should be string, + /// in case of any other input, function throws an exception. + /// Each binding function call produces Runtime.bindingCalled notification. + /// + /// name + /// executionContextId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task AddBindingAsync(string name, int? executionContextId = null) + { + ValidateAddBinding(name, executionContextId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("name", name); + if (executionContextId.HasValue) + { + dict.Add("executionContextId", executionContextId.Value); + } + + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.addBinding", dict); + return methodResult; + } + + partial void ValidateRemoveBinding(string name); + /// + /// This method does not remove binding function from global object but + /// unsubscribes current runtime agent from Runtime.bindingCalled notifications. + /// + /// name + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public async System.Threading.Tasks.Task RemoveBindingAsync(string name) + { + ValidateRemoveBinding(name); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("name", name); + var methodResult = await _client.ExecuteDevToolsMethodAsync("Runtime.removeBinding", dict); + return methodResult; + } + } +} + +namespace CefSharp.DevTools +{ + /// + /// Generated DevToolsClient methods + /// + public partial class DevToolsClient + { + private CefSharp.DevTools.Accessibility.AccessibilityClient _Accessibility; + public CefSharp.DevTools.Accessibility.AccessibilityClient Accessibility + { + get + { + if ((_Accessibility) == (null)) + { + _Accessibility = (new CefSharp.DevTools.Accessibility.AccessibilityClient(this)); + } + + return _Accessibility; + } + } + + private CefSharp.DevTools.Animation.AnimationClient _Animation; + public CefSharp.DevTools.Animation.AnimationClient Animation + { + get + { + if ((_Animation) == (null)) + { + _Animation = (new CefSharp.DevTools.Animation.AnimationClient(this)); + } + + return _Animation; + } + } + + private CefSharp.DevTools.ApplicationCache.ApplicationCacheClient _ApplicationCache; + public CefSharp.DevTools.ApplicationCache.ApplicationCacheClient ApplicationCache + { + get + { + if ((_ApplicationCache) == (null)) + { + _ApplicationCache = (new CefSharp.DevTools.ApplicationCache.ApplicationCacheClient(this)); + } + + return _ApplicationCache; + } + } + + private CefSharp.DevTools.Audits.AuditsClient _Audits; + public CefSharp.DevTools.Audits.AuditsClient Audits + { + get + { + if ((_Audits) == (null)) + { + _Audits = (new CefSharp.DevTools.Audits.AuditsClient(this)); + } + + return _Audits; + } + } + + private CefSharp.DevTools.BackgroundService.BackgroundServiceClient _BackgroundService; + public CefSharp.DevTools.BackgroundService.BackgroundServiceClient BackgroundService + { + get + { + if ((_BackgroundService) == (null)) + { + _BackgroundService = (new CefSharp.DevTools.BackgroundService.BackgroundServiceClient(this)); + } + + return _BackgroundService; + } + } + + private CefSharp.DevTools.Browser.BrowserClient _Browser; + public CefSharp.DevTools.Browser.BrowserClient Browser + { + get + { + if ((_Browser) == (null)) + { + _Browser = (new CefSharp.DevTools.Browser.BrowserClient(this)); + } + + return _Browser; + } + } + + private CefSharp.DevTools.CSS.CSSClient _CSS; + public CefSharp.DevTools.CSS.CSSClient CSS + { + get + { + if ((_CSS) == (null)) + { + _CSS = (new CefSharp.DevTools.CSS.CSSClient(this)); + } + + return _CSS; + } + } + + private CefSharp.DevTools.CacheStorage.CacheStorageClient _CacheStorage; + public CefSharp.DevTools.CacheStorage.CacheStorageClient CacheStorage + { + get + { + if ((_CacheStorage) == (null)) + { + _CacheStorage = (new CefSharp.DevTools.CacheStorage.CacheStorageClient(this)); + } + + return _CacheStorage; + } + } + + private CefSharp.DevTools.Cast.CastClient _Cast; + public CefSharp.DevTools.Cast.CastClient Cast + { + get + { + if ((_Cast) == (null)) + { + _Cast = (new CefSharp.DevTools.Cast.CastClient(this)); + } + + return _Cast; + } + } + + private CefSharp.DevTools.DOM.DOMClient _DOM; + public CefSharp.DevTools.DOM.DOMClient DOM + { + get + { + if ((_DOM) == (null)) + { + _DOM = (new CefSharp.DevTools.DOM.DOMClient(this)); + } + + return _DOM; + } + } + + private CefSharp.DevTools.DOMDebugger.DOMDebuggerClient _DOMDebugger; + public CefSharp.DevTools.DOMDebugger.DOMDebuggerClient DOMDebugger + { + get + { + if ((_DOMDebugger) == (null)) + { + _DOMDebugger = (new CefSharp.DevTools.DOMDebugger.DOMDebuggerClient(this)); + } + + return _DOMDebugger; + } + } + + private CefSharp.DevTools.DOMSnapshot.DOMSnapshotClient _DOMSnapshot; + public CefSharp.DevTools.DOMSnapshot.DOMSnapshotClient DOMSnapshot + { + get + { + if ((_DOMSnapshot) == (null)) + { + _DOMSnapshot = (new CefSharp.DevTools.DOMSnapshot.DOMSnapshotClient(this)); + } + + return _DOMSnapshot; + } + } + + private CefSharp.DevTools.DOMStorage.DOMStorageClient _DOMStorage; + public CefSharp.DevTools.DOMStorage.DOMStorageClient DOMStorage + { + get + { + if ((_DOMStorage) == (null)) + { + _DOMStorage = (new CefSharp.DevTools.DOMStorage.DOMStorageClient(this)); + } + + return _DOMStorage; + } + } + + private CefSharp.DevTools.Database.DatabaseClient _Database; + public CefSharp.DevTools.Database.DatabaseClient Database + { + get + { + if ((_Database) == (null)) + { + _Database = (new CefSharp.DevTools.Database.DatabaseClient(this)); + } + + return _Database; + } + } + + private CefSharp.DevTools.DeviceOrientation.DeviceOrientationClient _DeviceOrientation; + public CefSharp.DevTools.DeviceOrientation.DeviceOrientationClient DeviceOrientation + { + get + { + if ((_DeviceOrientation) == (null)) + { + _DeviceOrientation = (new CefSharp.DevTools.DeviceOrientation.DeviceOrientationClient(this)); + } + + return _DeviceOrientation; + } + } + + private CefSharp.DevTools.Emulation.EmulationClient _Emulation; + public CefSharp.DevTools.Emulation.EmulationClient Emulation + { + get + { + if ((_Emulation) == (null)) + { + _Emulation = (new CefSharp.DevTools.Emulation.EmulationClient(this)); + } + + return _Emulation; + } + } + + private CefSharp.DevTools.HeadlessExperimental.HeadlessExperimentalClient _HeadlessExperimental; + public CefSharp.DevTools.HeadlessExperimental.HeadlessExperimentalClient HeadlessExperimental + { + get + { + if ((_HeadlessExperimental) == (null)) + { + _HeadlessExperimental = (new CefSharp.DevTools.HeadlessExperimental.HeadlessExperimentalClient(this)); + } + + return _HeadlessExperimental; + } + } + + private CefSharp.DevTools.IO.IOClient _IO; + public CefSharp.DevTools.IO.IOClient IO + { + get + { + if ((_IO) == (null)) + { + _IO = (new CefSharp.DevTools.IO.IOClient(this)); + } + + return _IO; + } + } + + private CefSharp.DevTools.IndexedDB.IndexedDBClient _IndexedDB; + public CefSharp.DevTools.IndexedDB.IndexedDBClient IndexedDB + { + get + { + if ((_IndexedDB) == (null)) + { + _IndexedDB = (new CefSharp.DevTools.IndexedDB.IndexedDBClient(this)); + } + + return _IndexedDB; + } + } + + private CefSharp.DevTools.Input.InputClient _Input; + public CefSharp.DevTools.Input.InputClient Input + { + get + { + if ((_Input) == (null)) + { + _Input = (new CefSharp.DevTools.Input.InputClient(this)); + } + + return _Input; + } + } + + private CefSharp.DevTools.Inspector.InspectorClient _Inspector; + public CefSharp.DevTools.Inspector.InspectorClient Inspector + { + get + { + if ((_Inspector) == (null)) + { + _Inspector = (new CefSharp.DevTools.Inspector.InspectorClient(this)); + } + + return _Inspector; + } + } + + private CefSharp.DevTools.LayerTree.LayerTreeClient _LayerTree; + public CefSharp.DevTools.LayerTree.LayerTreeClient LayerTree + { + get + { + if ((_LayerTree) == (null)) + { + _LayerTree = (new CefSharp.DevTools.LayerTree.LayerTreeClient(this)); + } + + return _LayerTree; + } + } + + private CefSharp.DevTools.Log.LogClient _Log; + public CefSharp.DevTools.Log.LogClient Log + { + get + { + if ((_Log) == (null)) + { + _Log = (new CefSharp.DevTools.Log.LogClient(this)); + } + + return _Log; + } + } + + private CefSharp.DevTools.Memory.MemoryClient _Memory; + public CefSharp.DevTools.Memory.MemoryClient Memory + { + get + { + if ((_Memory) == (null)) + { + _Memory = (new CefSharp.DevTools.Memory.MemoryClient(this)); + } + + return _Memory; + } + } + + private CefSharp.DevTools.Network.NetworkClient _Network; + public CefSharp.DevTools.Network.NetworkClient Network + { + get + { + if ((_Network) == (null)) + { + _Network = (new CefSharp.DevTools.Network.NetworkClient(this)); + } + + return _Network; + } + } + + private CefSharp.DevTools.Overlay.OverlayClient _Overlay; + public CefSharp.DevTools.Overlay.OverlayClient Overlay + { + get + { + if ((_Overlay) == (null)) + { + _Overlay = (new CefSharp.DevTools.Overlay.OverlayClient(this)); + } + + return _Overlay; + } + } + + private CefSharp.DevTools.Page.PageClient _Page; + public CefSharp.DevTools.Page.PageClient Page + { + get + { + if ((_Page) == (null)) + { + _Page = (new CefSharp.DevTools.Page.PageClient(this)); + } + + return _Page; + } + } + + private CefSharp.DevTools.Performance.PerformanceClient _Performance; + public CefSharp.DevTools.Performance.PerformanceClient Performance + { + get + { + if ((_Performance) == (null)) + { + _Performance = (new CefSharp.DevTools.Performance.PerformanceClient(this)); + } + + return _Performance; + } + } + + private CefSharp.DevTools.Security.SecurityClient _Security; + public CefSharp.DevTools.Security.SecurityClient Security + { + get + { + if ((_Security) == (null)) + { + _Security = (new CefSharp.DevTools.Security.SecurityClient(this)); + } + + return _Security; + } + } + + private CefSharp.DevTools.ServiceWorker.ServiceWorkerClient _ServiceWorker; + public CefSharp.DevTools.ServiceWorker.ServiceWorkerClient ServiceWorker + { + get + { + if ((_ServiceWorker) == (null)) + { + _ServiceWorker = (new CefSharp.DevTools.ServiceWorker.ServiceWorkerClient(this)); + } + + return _ServiceWorker; + } + } + + private CefSharp.DevTools.Storage.StorageClient _Storage; + public CefSharp.DevTools.Storage.StorageClient Storage + { + get + { + if ((_Storage) == (null)) + { + _Storage = (new CefSharp.DevTools.Storage.StorageClient(this)); + } + + return _Storage; + } + } + + private CefSharp.DevTools.SystemInfo.SystemInfoClient _SystemInfo; + public CefSharp.DevTools.SystemInfo.SystemInfoClient SystemInfo + { + get + { + if ((_SystemInfo) == (null)) + { + _SystemInfo = (new CefSharp.DevTools.SystemInfo.SystemInfoClient(this)); + } + + return _SystemInfo; + } + } + + private CefSharp.DevTools.Target.TargetClient _Target; + public CefSharp.DevTools.Target.TargetClient Target + { + get + { + if ((_Target) == (null)) + { + _Target = (new CefSharp.DevTools.Target.TargetClient(this)); + } + + return _Target; + } + } + + private CefSharp.DevTools.Tethering.TetheringClient _Tethering; + public CefSharp.DevTools.Tethering.TetheringClient Tethering + { + get + { + if ((_Tethering) == (null)) + { + _Tethering = (new CefSharp.DevTools.Tethering.TetheringClient(this)); + } + + return _Tethering; + } + } + + private CefSharp.DevTools.Tracing.TracingClient _Tracing; + public CefSharp.DevTools.Tracing.TracingClient Tracing + { + get + { + if ((_Tracing) == (null)) + { + _Tracing = (new CefSharp.DevTools.Tracing.TracingClient(this)); + } + + return _Tracing; + } + } + + private CefSharp.DevTools.Fetch.FetchClient _Fetch; + public CefSharp.DevTools.Fetch.FetchClient Fetch + { + get + { + if ((_Fetch) == (null)) + { + _Fetch = (new CefSharp.DevTools.Fetch.FetchClient(this)); + } + + return _Fetch; + } + } + + private CefSharp.DevTools.WebAudio.WebAudioClient _WebAudio; + public CefSharp.DevTools.WebAudio.WebAudioClient WebAudio + { + get + { + if ((_WebAudio) == (null)) + { + _WebAudio = (new CefSharp.DevTools.WebAudio.WebAudioClient(this)); + } + + return _WebAudio; + } + } + + private CefSharp.DevTools.WebAuthn.WebAuthnClient _WebAuthn; + public CefSharp.DevTools.WebAuthn.WebAuthnClient WebAuthn + { + get + { + if ((_WebAuthn) == (null)) + { + _WebAuthn = (new CefSharp.DevTools.WebAuthn.WebAuthnClient(this)); + } + + return _WebAuthn; + } + } + + private CefSharp.DevTools.Media.MediaClient _Media; + public CefSharp.DevTools.Media.MediaClient Media + { + get + { + if ((_Media) == (null)) + { + _Media = (new CefSharp.DevTools.Media.MediaClient(this)); + } + + return _Media; + } + } + + private CefSharp.DevTools.Debugger.DebuggerClient _Debugger; + public CefSharp.DevTools.Debugger.DebuggerClient Debugger + { + get + { + if ((_Debugger) == (null)) + { + _Debugger = (new CefSharp.DevTools.Debugger.DebuggerClient(this)); + } + + return _Debugger; + } + } + + private CefSharp.DevTools.HeapProfiler.HeapProfilerClient _HeapProfiler; + public CefSharp.DevTools.HeapProfiler.HeapProfilerClient HeapProfiler + { + get + { + if ((_HeapProfiler) == (null)) + { + _HeapProfiler = (new CefSharp.DevTools.HeapProfiler.HeapProfilerClient(this)); + } + + return _HeapProfiler; + } + } + + private CefSharp.DevTools.Profiler.ProfilerClient _Profiler; + public CefSharp.DevTools.Profiler.ProfilerClient Profiler + { + get + { + if ((_Profiler) == (null)) + { + _Profiler = (new CefSharp.DevTools.Profiler.ProfilerClient(this)); + } + + return _Profiler; + } + } + + private CefSharp.DevTools.Runtime.RuntimeClient _Runtime; + public CefSharp.DevTools.Runtime.RuntimeClient Runtime + { + get + { + if ((_Runtime) == (null)) + { + _Runtime = (new CefSharp.DevTools.Runtime.RuntimeClient(this)); + } + + return _Runtime; + } + } + } +} diff --git a/CefSharp/DevTools/DevToolsDomainBase.cs b/CefSharp/DevTools/DevToolsDomainBase.cs index 262a96273..0d952b5a9 100644 --- a/CefSharp/DevTools/DevToolsDomainBase.cs +++ b/CefSharp/DevTools/DevToolsDomainBase.cs @@ -12,6 +12,20 @@ namespace CefSharp.DevTools { public abstract class DevToolsDomainBase { +#if NETCOREAPP + protected string EnumToString(Enum val) + { + return Internals.Json.JsonEnumConverterFactory.ConvertEnumToString(val); + } + + protected IEnumerable EnumToString(PermissionType[] values) + { + foreach (var val in values) + { + yield return Internals.Json.JsonEnumConverterFactory.ConvertEnumToString(val); + } + } +#else protected string EnumToString(Enum val) { var memInfo = val.GetType().GetMember(val.ToString()); @@ -30,6 +44,7 @@ namespace CefSharp.DevTools yield return dataMemberAttribute.Value; } } +#endif protected string ToBase64String(byte[] bytes) { diff --git a/CefSharp/DevTools/DevToolsDomainEntityBase.cs b/CefSharp/DevTools/DevToolsDomainEntityBase.cs index 81fcc4f4e..3a4802f17 100644 --- a/CefSharp/DevTools/DevToolsDomainEntityBase.cs +++ b/CefSharp/DevTools/DevToolsDomainEntityBase.cs @@ -10,10 +10,41 @@ using System.Runtime.Serialization; namespace CefSharp.DevTools { + /// + /// Common Base class for DevTools Domain Model classes + /// [DataContract] public abstract class DevToolsDomainEntityBase { - public static object StringToEnum(Type enumType, string input) +#if NETCOREAPP + internal static string EnumToString(Enum e) + { + var memberInfo = e.GetType().GetMember(e.ToString()).FirstOrDefault(); + + var enumMemberAttribute = (System.Text.Json.Serialization.JsonPropertyNameAttribute)Attribute.GetCustomAttribute(memberInfo, typeof(System.Text.Json.Serialization.JsonPropertyNameAttribute), false); + + return enumMemberAttribute.Name; + } + + internal static string EnumToString(Array enumArray) + { + var returnValue = "["; + + foreach (var e in enumArray) + { + var memberInfo = e.GetType().GetMember(e.ToString()).FirstOrDefault(); + + var enumMemberAttribute = (System.Text.Json.Serialization.JsonPropertyNameAttribute)Attribute.GetCustomAttribute(memberInfo, typeof(System.Text.Json.Serialization.JsonPropertyNameAttribute), false); + + returnValue += enumMemberAttribute.Name + ","; + } + + returnValue += returnValue.Substring(0, returnValue.Length - 1) + "]"; + + return returnValue; + } +#else + internal static object StringToEnum(Type enumType, string input) { if (enumType.IsArray) { @@ -66,7 +97,7 @@ namespace CefSharp.DevTools return (Enum.GetValues(enumType).GetValue(0)); } - public static string EnumToString(Enum e) + internal static string EnumToString(Enum e) { var memberInfo = e.GetType().GetMember(e.ToString()).FirstOrDefault(); @@ -75,7 +106,7 @@ namespace CefSharp.DevTools return enumMemberAttribute.Value; } - public static string EnumToString(Array enumArray) + internal static string EnumToString(Array enumArray) { var returnValue = "["; @@ -92,7 +123,72 @@ namespace CefSharp.DevTools return returnValue; } +#endif + + +#if NETCOREAPP + public IDictionary ToDictionary() + { + var dict = new Dictionary(); + + var properties = GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance); + + foreach (var prop in properties) + { + var propertyAttribute = (System.Text.Json.Serialization.JsonPropertyNameAttribute)Attribute.GetCustomAttribute(prop, typeof(System.Text.Json.Serialization.JsonPropertyNameAttribute), false); + + //Only add members that have JsonPropertyNameAttribute + if (propertyAttribute == null) + { + continue; + } + + var propertyName = propertyAttribute.Name; + var propertyRequired = Attribute.IsDefined(prop, typeof(System.Diagnostics.CodeAnalysis.DisallowNullAttribute)); + + var propertyValue = prop.GetValue(this); + + if (propertyRequired && propertyValue == null) + { + throw new DevToolsClientException(prop.Name + " is required"); + } + + //Not required and value null, don't add to dictionary + if (propertyValue == null) + { + continue; + } + + var propertyValueType = propertyValue.GetType(); + + if (typeof(DevToolsDomainEntityBase).IsAssignableFrom(propertyValueType)) + { + propertyValue = ((DevToolsDomainEntityBase)(propertyValue)).ToDictionary(); + } + else if (propertyValueType.IsEnum) + { + propertyValue = EnumToString((Enum)propertyValue); + } + else if(propertyValueType.IsGenericType) + { + var nullableType = Nullable.GetUnderlyingType(propertyValueType); + if(nullableType != null && nullableType.IsEnum) + { + propertyValue = EnumToString((Enum)propertyValue); + } + } + else if(propertyValueType.IsArray && propertyValueType.GetElementType().IsEnum) + { + propertyValue = EnumToString((Array)propertyValue); + } + + dict.Add(propertyName, propertyValue); + } + + return dict; + } +#else public IDictionary ToDictionary() { var dict = new Dictionary(); @@ -136,5 +232,6 @@ namespace CefSharp.DevTools return dict; } +#endif } } diff --git a/CefSharp/DevTools/DevToolsMethodResponse.cs b/CefSharp/DevTools/DevToolsMethodResponse.cs index f25ccdd8b..c84ef99ff 100644 --- a/CefSharp/DevTools/DevToolsMethodResponse.cs +++ b/CefSharp/DevTools/DevToolsMethodResponse.cs @@ -32,12 +32,26 @@ namespace CefSharp.DevTools { if (Success) { +#if NETCOREAPP + var options = new System.Text.Json.JsonSerializerOptions + { + //AllowTrailingCommas = true, + PropertyNameCaseInsensitive = true, + IgnoreNullValues = true, + //PropertyNamingPolicy = System.Text.Json.JsonNamingPolicy.CamelCase + }; + + options.Converters.Add(new Internals.Json.JsonEnumConverterFactory()); + + return System.Text.Json.JsonSerializer.Deserialize(ResponseAsJsonString, options); +#else var bytes = Encoding.UTF8.GetBytes(ResponseAsJsonString); using (var ms = new MemoryStream(bytes)) { var dcs = new DataContractJsonSerializer(typeof(T)); return (T)dcs.ReadObject(ms); } +#endif } throw new DevToolsClientException(ResponseAsJsonString); diff --git a/CefSharp/Internals/Json/JsonEnumConverter.cs b/CefSharp/Internals/Json/JsonEnumConverter.cs new file mode 100644 index 000000000..2cc13e2d4 --- /dev/null +++ b/CefSharp/Internals/Json/JsonEnumConverter.cs @@ -0,0 +1,52 @@ +// Copyright © 2021 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace CefSharp.Internals.Json +{ + /// + /// System.Text.Json Enum Converter for the DevToolsClient + /// Only handles enums as strings and converts from .Net naming + /// to the naming convention used by DevTools protocol + /// + /// type + /// + /// There aren't any Type constraints on T currently, we just rely on the + /// to only use this for + /// Enum and Nullable Enum + /// + public class JsonEnumConverter : JsonConverter + { + /// + public override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var nullableType = Nullable.GetUnderlyingType(typeToConvert); + var val = reader.GetString(); + + if (nullableType == null) + { + return (T)JsonEnumConverterFactory.ConvertStringToEnum(val, typeToConvert); + } + + if(string.IsNullOrEmpty(val)) + { + return default; + } + + return (T)JsonEnumConverterFactory.ConvertStringToEnum(val, nullableType); + } + + /// + public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options) + { + //Not called when the Nullable enum value is null so we don't need to perform any sort of null checking + var str = JsonEnumConverterFactory.ConvertEnumToString(value); + + writer.WriteStringValue(str); + } + } +} diff --git a/CefSharp/Internals/Json/JsonEnumConverterFactory.cs b/CefSharp/Internals/Json/JsonEnumConverterFactory.cs new file mode 100644 index 000000000..76b7e7590 --- /dev/null +++ b/CefSharp/Internals/Json/JsonEnumConverterFactory.cs @@ -0,0 +1,74 @@ +// Copyright © 2021 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; +using System.Linq; +using System.Reflection; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace CefSharp.Internals.Json +{ + /// + /// DevTools Json Enum Converter Factory + /// + public class JsonEnumConverterFactory : JsonConverterFactory + { + /// + public override bool CanConvert(Type typeToConvert) + { + if(typeToConvert.IsEnum) + { + return true; + } + + var nullType = Nullable.GetUnderlyingType(typeToConvert); + + return nullType?.IsEnum ?? false; + } + + /// + public override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options) + { + var converter = (JsonConverter)Activator.CreateInstance( + typeof(JsonEnumConverter<>).MakeGenericType(typeToConvert), + BindingFlags.Instance | BindingFlags.Public, + binder: null, + args: null, + culture: null); + + return converter; + } + + public static object ConvertStringToEnum(string val, Type typeToConvert) + { + foreach (var name in Enum.GetNames(typeToConvert)) + { + var attribute = typeToConvert.GetField(name) + .GetCustomAttributes(false) + .OfType() + .Single(); + + if (attribute.Name == val) + { + return Enum.Parse(typeToConvert, name); + } + } + + throw new JsonException("Unable to convert Enum"); + } + + public static string ConvertEnumToString(object value) + { + var type = value.GetType(); + var name = Enum.GetName(type, value); + var attribute = type.GetField(name) + .GetCustomAttributes(false) + .OfType() + .Single(); + + return attribute.Name; + } + } +} diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.nuspec b/NuGet/PackageReference/CefSharp.Common.NETCore.nuspec index f080228b3..473eb7e81 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.nuspec +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.nuspec @@ -14,7 +14,11 @@ + + + +