// 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 145.0.7632.76 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility { /// /// Enum of possible property types. /// public enum AXValueType { /// /// boolean /// [JsonPropertyName("boolean")] Boolean, /// /// tristate /// [JsonPropertyName("tristate")] Tristate, /// /// booleanOrUndefined /// [JsonPropertyName("booleanOrUndefined")] BooleanOrUndefined, /// /// idref /// [JsonPropertyName("idref")] Idref, /// /// idrefList /// [JsonPropertyName("idrefList")] IdrefList, /// /// integer /// [JsonPropertyName("integer")] Integer, /// /// node /// [JsonPropertyName("node")] Node, /// /// nodeList /// [JsonPropertyName("nodeList")] NodeList, /// /// number /// [JsonPropertyName("number")] Number, /// /// string /// [JsonPropertyName("string")] String, /// /// computedString /// [JsonPropertyName("computedString")] ComputedString, /// /// token /// [JsonPropertyName("token")] Token, /// /// tokenList /// [JsonPropertyName("tokenList")] TokenList, /// /// domRelation /// [JsonPropertyName("domRelation")] DomRelation, /// /// role /// [JsonPropertyName("role")] Role, /// /// internalRole /// [JsonPropertyName("internalRole")] InternalRole, /// /// valueUndefined /// [JsonPropertyName("valueUndefined")] ValueUndefined } /// /// Enum of possible property sources. /// public enum AXValueSourceType { /// /// attribute /// [JsonPropertyName("attribute")] Attribute, /// /// implicit /// [JsonPropertyName("implicit")] Implicit, /// /// style /// [JsonPropertyName("style")] Style, /// /// contents /// [JsonPropertyName("contents")] Contents, /// /// placeholder /// [JsonPropertyName("placeholder")] Placeholder, /// /// relatedElement /// [JsonPropertyName("relatedElement")] RelatedElement } /// /// Enum of possible native property sources (as a subtype of a particular AXValueSourceType). /// public enum AXValueNativeSourceType { /// /// description /// [JsonPropertyName("description")] Description, /// /// figcaption /// [JsonPropertyName("figcaption")] Figcaption, /// /// label /// [JsonPropertyName("label")] Label, /// /// labelfor /// [JsonPropertyName("labelfor")] Labelfor, /// /// labelwrapped /// [JsonPropertyName("labelwrapped")] Labelwrapped, /// /// legend /// [JsonPropertyName("legend")] Legend, /// /// rubyannotation /// [JsonPropertyName("rubyannotation")] Rubyannotation, /// /// tablecaption /// [JsonPropertyName("tablecaption")] Tablecaption, /// /// title /// [JsonPropertyName("title")] Title, /// /// other /// [JsonPropertyName("other")] Other } /// /// A single source for a computed AX property. /// public partial class AXValueSource : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// What type of source this is. /// [JsonPropertyName("type")] public CefSharp.DevTools.Accessibility.AXValueSourceType Type { get; set; } /// /// The value of this property source. /// [JsonPropertyName("value")] public CefSharp.DevTools.Accessibility.AXValue Value { get; set; } /// /// The name of the relevant attribute, if any. /// [JsonPropertyName("attribute")] public string Attribute { get; set; } /// /// The value of the relevant attribute, if any. /// [JsonPropertyName("attributeValue")] public CefSharp.DevTools.Accessibility.AXValue AttributeValue { get; set; } /// /// Whether this source is superseded by a higher priority source. /// [JsonPropertyName("superseded")] public bool? Superseded { get; set; } /// /// The native markup source for this value, e.g. a `<label>` element. /// [JsonPropertyName("nativeSource")] public CefSharp.DevTools.Accessibility.AXValueNativeSourceType? NativeSource { get; set; } /// /// The value, such as a node or node list, of the native source. /// [JsonPropertyName("nativeSourceValue")] public CefSharp.DevTools.Accessibility.AXValue NativeSourceValue { get; set; } /// /// Whether the value for this property is invalid. /// [JsonPropertyName("invalid")] public bool? Invalid { get; set; } /// /// Reason for the value being invalid, if it is. /// [JsonPropertyName("invalidReason")] public string InvalidReason { get; set; } } /// /// AXRelatedNode /// public partial class AXRelatedNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The BackendNodeId of the related DOM node. /// [JsonPropertyName("backendDOMNodeId")] public int BackendDOMNodeId { get; set; } /// /// The IDRef value provided, if any. /// [JsonPropertyName("idref")] public string Idref { get; set; } /// /// The text alternative of this node in the current context. /// [JsonPropertyName("text")] public string Text { get; set; } } /// /// AXProperty /// public partial class AXProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The name of this property. /// [JsonPropertyName("name")] public CefSharp.DevTools.Accessibility.AXPropertyName Name { get; set; } /// /// The value of this property. /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Accessibility.AXValue Value { get; set; } } /// /// A single computed AX property. /// public partial class AXValue : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The type of this value. /// [JsonPropertyName("type")] public CefSharp.DevTools.Accessibility.AXValueType Type { get; set; } /// /// The computed value of this property. /// [JsonPropertyName("value")] public object Value { get; set; } /// /// One or more related nodes, if applicable. /// [JsonPropertyName("relatedNodes")] public System.Collections.Generic.IList RelatedNodes { get; set; } /// /// The sources which contributed to the computation of this property. /// [JsonPropertyName("sources")] public System.Collections.Generic.IList Sources { get; set; } } /// /// 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 'activeFullscreenElement' to 'uninteresting': reasons why this noode is hidden /// public enum AXPropertyName { /// /// actions /// [JsonPropertyName("actions")] Actions, /// /// busy /// [JsonPropertyName("busy")] Busy, /// /// disabled /// [JsonPropertyName("disabled")] Disabled, /// /// editable /// [JsonPropertyName("editable")] Editable, /// /// focusable /// [JsonPropertyName("focusable")] Focusable, /// /// focused /// [JsonPropertyName("focused")] Focused, /// /// hidden /// [JsonPropertyName("hidden")] Hidden, /// /// hiddenRoot /// [JsonPropertyName("hiddenRoot")] HiddenRoot, /// /// invalid /// [JsonPropertyName("invalid")] Invalid, /// /// keyshortcuts /// [JsonPropertyName("keyshortcuts")] Keyshortcuts, /// /// settable /// [JsonPropertyName("settable")] Settable, /// /// roledescription /// [JsonPropertyName("roledescription")] Roledescription, /// /// live /// [JsonPropertyName("live")] Live, /// /// atomic /// [JsonPropertyName("atomic")] Atomic, /// /// relevant /// [JsonPropertyName("relevant")] Relevant, /// /// root /// [JsonPropertyName("root")] Root, /// /// autocomplete /// [JsonPropertyName("autocomplete")] Autocomplete, /// /// hasPopup /// [JsonPropertyName("hasPopup")] HasPopup, /// /// level /// [JsonPropertyName("level")] Level, /// /// multiselectable /// [JsonPropertyName("multiselectable")] Multiselectable, /// /// orientation /// [JsonPropertyName("orientation")] Orientation, /// /// multiline /// [JsonPropertyName("multiline")] Multiline, /// /// readonly /// [JsonPropertyName("readonly")] Readonly, /// /// required /// [JsonPropertyName("required")] Required, /// /// valuemin /// [JsonPropertyName("valuemin")] Valuemin, /// /// valuemax /// [JsonPropertyName("valuemax")] Valuemax, /// /// valuetext /// [JsonPropertyName("valuetext")] Valuetext, /// /// checked /// [JsonPropertyName("checked")] Checked, /// /// expanded /// [JsonPropertyName("expanded")] Expanded, /// /// modal /// [JsonPropertyName("modal")] Modal, /// /// pressed /// [JsonPropertyName("pressed")] Pressed, /// /// selected /// [JsonPropertyName("selected")] Selected, /// /// activedescendant /// [JsonPropertyName("activedescendant")] Activedescendant, /// /// controls /// [JsonPropertyName("controls")] Controls, /// /// describedby /// [JsonPropertyName("describedby")] Describedby, /// /// details /// [JsonPropertyName("details")] Details, /// /// errormessage /// [JsonPropertyName("errormessage")] Errormessage, /// /// flowto /// [JsonPropertyName("flowto")] Flowto, /// /// labelledby /// [JsonPropertyName("labelledby")] Labelledby, /// /// owns /// [JsonPropertyName("owns")] Owns, /// /// url /// [JsonPropertyName("url")] Url, /// /// activeFullscreenElement /// [JsonPropertyName("activeFullscreenElement")] ActiveFullscreenElement, /// /// activeModalDialog /// [JsonPropertyName("activeModalDialog")] ActiveModalDialog, /// /// activeAriaModalDialog /// [JsonPropertyName("activeAriaModalDialog")] ActiveAriaModalDialog, /// /// ariaHiddenElement /// [JsonPropertyName("ariaHiddenElement")] AriaHiddenElement, /// /// ariaHiddenSubtree /// [JsonPropertyName("ariaHiddenSubtree")] AriaHiddenSubtree, /// /// emptyAlt /// [JsonPropertyName("emptyAlt")] EmptyAlt, /// /// emptyText /// [JsonPropertyName("emptyText")] EmptyText, /// /// inertElement /// [JsonPropertyName("inertElement")] InertElement, /// /// inertSubtree /// [JsonPropertyName("inertSubtree")] InertSubtree, /// /// labelContainer /// [JsonPropertyName("labelContainer")] LabelContainer, /// /// labelFor /// [JsonPropertyName("labelFor")] LabelFor, /// /// notRendered /// [JsonPropertyName("notRendered")] NotRendered, /// /// notVisible /// [JsonPropertyName("notVisible")] NotVisible, /// /// presentationalRole /// [JsonPropertyName("presentationalRole")] PresentationalRole, /// /// probablyPresentational /// [JsonPropertyName("probablyPresentational")] ProbablyPresentational, /// /// inactiveCarouselTabContent /// [JsonPropertyName("inactiveCarouselTabContent")] InactiveCarouselTabContent, /// /// uninteresting /// [JsonPropertyName("uninteresting")] Uninteresting } /// /// A node in the accessibility tree. /// public partial class AXNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Unique identifier for this node. /// [JsonPropertyName("nodeId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeId { get; set; } /// /// Whether this node is ignored for accessibility /// [JsonPropertyName("ignored")] public bool Ignored { get; set; } /// /// Collection of reasons why this node is hidden. /// [JsonPropertyName("ignoredReasons")] public System.Collections.Generic.IList IgnoredReasons { get; set; } /// /// This `Node`'s role, whether explicit or implicit. /// [JsonPropertyName("role")] public CefSharp.DevTools.Accessibility.AXValue Role { get; set; } /// /// This `Node`'s Chrome raw role. /// [JsonPropertyName("chromeRole")] public CefSharp.DevTools.Accessibility.AXValue ChromeRole { get; set; } /// /// The accessible name for this `Node`. /// [JsonPropertyName("name")] public CefSharp.DevTools.Accessibility.AXValue Name { get; set; } /// /// The accessible description for this `Node`. /// [JsonPropertyName("description")] public CefSharp.DevTools.Accessibility.AXValue Description { get; set; } /// /// The value for this `Node`. /// [JsonPropertyName("value")] public CefSharp.DevTools.Accessibility.AXValue Value { get; set; } /// /// All other properties /// [JsonPropertyName("properties")] public System.Collections.Generic.IList Properties { get; set; } /// /// ID for this node's parent. /// [JsonPropertyName("parentId")] public string ParentId { get; set; } /// /// IDs for each of this node's child nodes. /// [JsonPropertyName("childIds")] public string[] ChildIds { get; set; } /// /// The backend ID for the associated DOM node, if any. /// [JsonPropertyName("backendDOMNodeId")] public int? BackendDOMNodeId { get; set; } /// /// The frame ID for the frame associated with this nodes document. /// [JsonPropertyName("frameId")] public string FrameId { get; set; } } /// /// The loadComplete event mirrors the load complete event sent by the browser to assistive /// technology when the web page has finished loading. /// public class LoadCompleteEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// New document root node. /// [JsonInclude] [JsonPropertyName("root")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Accessibility.AXNode Root { get; private set; } } /// /// The nodesUpdated event is sent every time a previously requested node has changed the in tree. /// public class NodesUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Updated node data. /// [JsonInclude] [JsonPropertyName("nodes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Nodes { get; private set; } } } namespace CefSharp.DevTools.Animation { /// /// Animation type of `Animation`. /// public enum AnimationType { /// /// CSSTransition /// [JsonPropertyName("CSSTransition")] CSSTransition, /// /// CSSAnimation /// [JsonPropertyName("CSSAnimation")] CSSAnimation, /// /// WebAnimation /// [JsonPropertyName("WebAnimation")] WebAnimation } /// /// Animation instance. /// public partial class Animation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `Animation`'s id. /// [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; set; } /// /// `Animation`'s name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// `Animation`'s internal paused state. /// [JsonPropertyName("pausedState")] public bool PausedState { get; set; } /// /// `Animation`'s play state. /// [JsonPropertyName("playState")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlayState { get; set; } /// /// `Animation`'s playback rate. /// [JsonPropertyName("playbackRate")] public double PlaybackRate { get; set; } /// /// `Animation`'s start time. /// Milliseconds for time based animations and /// percentage [0 - 100] for scroll driven animations /// (i.e. when viewOrScrollTimeline exists). /// [JsonPropertyName("startTime")] public double StartTime { get; set; } /// /// `Animation`'s current time. /// [JsonPropertyName("currentTime")] public double CurrentTime { get; set; } /// /// Animation type of `Animation`. /// [JsonPropertyName("type")] public CefSharp.DevTools.Animation.AnimationType Type { get; set; } /// /// `Animation`'s source animation node. /// [JsonPropertyName("source")] public CefSharp.DevTools.Animation.AnimationEffect Source { get; set; } /// /// A unique ID for `Animation` representing the sources that triggered this CSS /// animation/transition. /// [JsonPropertyName("cssId")] public string CssId { get; set; } /// /// View or scroll timeline /// [JsonPropertyName("viewOrScrollTimeline")] public CefSharp.DevTools.Animation.ViewOrScrollTimeline ViewOrScrollTimeline { get; set; } } /// /// Timeline instance /// public partial class ViewOrScrollTimeline : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Scroll container node /// [JsonPropertyName("sourceNodeId")] public int? SourceNodeId { get; set; } /// /// Represents the starting scroll position of the timeline /// as a length offset in pixels from scroll origin. /// [JsonPropertyName("startOffset")] public double? StartOffset { get; set; } /// /// Represents the ending scroll position of the timeline /// as a length offset in pixels from scroll origin. /// [JsonPropertyName("endOffset")] public double? EndOffset { get; set; } /// /// The element whose principal box's visibility in the /// scrollport defined the progress of the timeline. /// Does not exist for animations with ScrollTimeline /// [JsonPropertyName("subjectNodeId")] public int? SubjectNodeId { get; set; } /// /// Orientation of the scroll /// [JsonPropertyName("axis")] public CefSharp.DevTools.DOM.ScrollOrientation Axis { get; set; } } /// /// AnimationEffect instance /// public partial class AnimationEffect : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `AnimationEffect`'s delay. /// [JsonPropertyName("delay")] public double Delay { get; set; } /// /// `AnimationEffect`'s end delay. /// [JsonPropertyName("endDelay")] public double EndDelay { get; set; } /// /// `AnimationEffect`'s iteration start. /// [JsonPropertyName("iterationStart")] public double IterationStart { get; set; } /// /// `AnimationEffect`'s iterations. Omitted if the value is infinite. /// [JsonPropertyName("iterations")] public double? Iterations { get; set; } /// /// `AnimationEffect`'s iteration duration. /// Milliseconds for time based animations and /// percentage [0 - 100] for scroll driven animations /// (i.e. when viewOrScrollTimeline exists). /// [JsonPropertyName("duration")] public double Duration { get; set; } /// /// `AnimationEffect`'s playback direction. /// [JsonPropertyName("direction")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Direction { get; set; } /// /// `AnimationEffect`'s fill mode. /// [JsonPropertyName("fill")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Fill { get; set; } /// /// `AnimationEffect`'s target node. /// [JsonPropertyName("backendNodeId")] public int? BackendNodeId { get; set; } /// /// `AnimationEffect`'s keyframes. /// [JsonPropertyName("keyframesRule")] public CefSharp.DevTools.Animation.KeyframesRule KeyframesRule { get; set; } /// /// `AnimationEffect`'s timing function. /// [JsonPropertyName("easing")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Easing { get; set; } } /// /// Keyframes Rule /// public partial class KeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CSS keyframed animation's name. /// [JsonPropertyName("name")] public string Name { get; set; } /// /// List of animation keyframes. /// [JsonPropertyName("keyframes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Keyframes { get; set; } } /// /// Keyframe Style /// public partial class KeyframeStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Keyframe's time offset. /// [JsonPropertyName("offset")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Offset { get; set; } /// /// `AnimationEffect`'s timing function. /// [JsonPropertyName("easing")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Easing { get; set; } } /// /// Event for when an animation has been cancelled. /// public class AnimationCanceledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the animation that was cancelled. /// [JsonInclude] [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; private set; } } /// /// Event for each animation that has been created. /// public class AnimationCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the animation that was created. /// [JsonInclude] [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; private set; } } /// /// Event for animation that has been started. /// public class AnimationStartedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Animation that was started. /// [JsonInclude] [JsonPropertyName("animation")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Animation.Animation Animation { get; private set; } } /// /// Event for animation that has been updated. /// public class AnimationUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Animation that was updated. /// [JsonInclude] [JsonPropertyName("animation")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Animation.Animation Animation { get; private set; } } } namespace CefSharp.DevTools.Audits { /// /// Information about a cookie that is affected by an inspector issue. /// public partial class AffectedCookie : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The following three properties uniquely identify a cookie /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Path /// [JsonPropertyName("path")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Path { get; set; } /// /// Domain /// [JsonPropertyName("domain")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Domain { get; set; } } /// /// Information about a request that is affected by an inspector issue. /// public partial class AffectedRequest : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The unique request id. /// [JsonPropertyName("requestId")] public string RequestId { get; set; } /// /// Url /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } } /// /// Information about the frame affected by an inspector issue. /// public partial class AffectedFrame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// FrameId /// [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; set; } } /// /// CookieExclusionReason /// public enum CookieExclusionReason { /// /// ExcludeSameSiteUnspecifiedTreatedAsLax /// [JsonPropertyName("ExcludeSameSiteUnspecifiedTreatedAsLax")] ExcludeSameSiteUnspecifiedTreatedAsLax, /// /// ExcludeSameSiteNoneInsecure /// [JsonPropertyName("ExcludeSameSiteNoneInsecure")] ExcludeSameSiteNoneInsecure, /// /// ExcludeSameSiteLax /// [JsonPropertyName("ExcludeSameSiteLax")] ExcludeSameSiteLax, /// /// ExcludeSameSiteStrict /// [JsonPropertyName("ExcludeSameSiteStrict")] ExcludeSameSiteStrict, /// /// ExcludeInvalidSameParty /// [JsonPropertyName("ExcludeInvalidSameParty")] ExcludeInvalidSameParty, /// /// ExcludeSamePartyCrossPartyContext /// [JsonPropertyName("ExcludeSamePartyCrossPartyContext")] ExcludeSamePartyCrossPartyContext, /// /// ExcludeDomainNonASCII /// [JsonPropertyName("ExcludeDomainNonASCII")] ExcludeDomainNonASCII, /// /// ExcludeThirdPartyCookieBlockedInFirstPartySet /// [JsonPropertyName("ExcludeThirdPartyCookieBlockedInFirstPartySet")] ExcludeThirdPartyCookieBlockedInFirstPartySet, /// /// ExcludeThirdPartyPhaseout /// [JsonPropertyName("ExcludeThirdPartyPhaseout")] ExcludeThirdPartyPhaseout, /// /// ExcludePortMismatch /// [JsonPropertyName("ExcludePortMismatch")] ExcludePortMismatch, /// /// ExcludeSchemeMismatch /// [JsonPropertyName("ExcludeSchemeMismatch")] ExcludeSchemeMismatch } /// /// CookieWarningReason /// public enum CookieWarningReason { /// /// WarnSameSiteUnspecifiedCrossSiteContext /// [JsonPropertyName("WarnSameSiteUnspecifiedCrossSiteContext")] WarnSameSiteUnspecifiedCrossSiteContext, /// /// WarnSameSiteNoneInsecure /// [JsonPropertyName("WarnSameSiteNoneInsecure")] WarnSameSiteNoneInsecure, /// /// WarnSameSiteUnspecifiedLaxAllowUnsafe /// [JsonPropertyName("WarnSameSiteUnspecifiedLaxAllowUnsafe")] WarnSameSiteUnspecifiedLaxAllowUnsafe, /// /// WarnSameSiteStrictLaxDowngradeStrict /// [JsonPropertyName("WarnSameSiteStrictLaxDowngradeStrict")] WarnSameSiteStrictLaxDowngradeStrict, /// /// WarnSameSiteStrictCrossDowngradeStrict /// [JsonPropertyName("WarnSameSiteStrictCrossDowngradeStrict")] WarnSameSiteStrictCrossDowngradeStrict, /// /// WarnSameSiteStrictCrossDowngradeLax /// [JsonPropertyName("WarnSameSiteStrictCrossDowngradeLax")] WarnSameSiteStrictCrossDowngradeLax, /// /// WarnSameSiteLaxCrossDowngradeStrict /// [JsonPropertyName("WarnSameSiteLaxCrossDowngradeStrict")] WarnSameSiteLaxCrossDowngradeStrict, /// /// WarnSameSiteLaxCrossDowngradeLax /// [JsonPropertyName("WarnSameSiteLaxCrossDowngradeLax")] WarnSameSiteLaxCrossDowngradeLax, /// /// WarnAttributeValueExceedsMaxSize /// [JsonPropertyName("WarnAttributeValueExceedsMaxSize")] WarnAttributeValueExceedsMaxSize, /// /// WarnDomainNonASCII /// [JsonPropertyName("WarnDomainNonASCII")] WarnDomainNonASCII, /// /// WarnThirdPartyPhaseout /// [JsonPropertyName("WarnThirdPartyPhaseout")] WarnThirdPartyPhaseout, /// /// WarnCrossSiteRedirectDowngradeChangesInclusion /// [JsonPropertyName("WarnCrossSiteRedirectDowngradeChangesInclusion")] WarnCrossSiteRedirectDowngradeChangesInclusion, /// /// WarnDeprecationTrialMetadata /// [JsonPropertyName("WarnDeprecationTrialMetadata")] WarnDeprecationTrialMetadata, /// /// WarnThirdPartyCookieHeuristic /// [JsonPropertyName("WarnThirdPartyCookieHeuristic")] WarnThirdPartyCookieHeuristic } /// /// CookieOperation /// public enum CookieOperation { /// /// SetCookie /// [JsonPropertyName("SetCookie")] SetCookie, /// /// ReadCookie /// [JsonPropertyName("ReadCookie")] ReadCookie } /// /// Represents the category of insight that a cookie issue falls under. /// public enum InsightType { /// /// GitHubResource /// [JsonPropertyName("GitHubResource")] GitHubResource, /// /// GracePeriod /// [JsonPropertyName("GracePeriod")] GracePeriod, /// /// Heuristics /// [JsonPropertyName("Heuristics")] Heuristics } /// /// Information about the suggested solution to a cookie issue. /// public partial class CookieIssueInsight : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type /// [JsonPropertyName("type")] public CefSharp.DevTools.Audits.InsightType Type { get; set; } /// /// Link to table entry in third-party cookie migration readiness list. /// [JsonPropertyName("tableEntryUrl")] public string TableEntryUrl { get; set; } } /// /// This information is currently necessary, as the front-end has a difficult /// time finding a specific cookie. With this, we can convey specific error /// information without the cookie. /// public partial class CookieIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// If AffectedCookie is not set then rawCookieLine contains the raw /// Set-Cookie header string. This hints at a problem where the /// cookie line is syntactically or semantically malformed in a way /// that no valid cookie could be created. /// [JsonPropertyName("cookie")] public CefSharp.DevTools.Audits.AffectedCookie Cookie { get; set; } /// /// RawCookieLine /// [JsonPropertyName("rawCookieLine")] public string RawCookieLine { get; set; } /// /// CookieWarningReasons /// [JsonPropertyName("cookieWarningReasons")] public CefSharp.DevTools.Audits.CookieWarningReason[] CookieWarningReasons { get; set; } /// /// CookieExclusionReasons /// [JsonPropertyName("cookieExclusionReasons")] public CefSharp.DevTools.Audits.CookieExclusionReason[] CookieExclusionReasons { get; set; } /// /// Optionally identifies the site-for-cookies and the cookie url, which /// may be used by the front-end as additional context. /// [JsonPropertyName("operation")] public CefSharp.DevTools.Audits.CookieOperation Operation { get; set; } /// /// SiteForCookies /// [JsonPropertyName("siteForCookies")] public string SiteForCookies { get; set; } /// /// CookieUrl /// [JsonPropertyName("cookieUrl")] public string CookieUrl { get; set; } /// /// Request /// [JsonPropertyName("request")] public CefSharp.DevTools.Audits.AffectedRequest Request { get; set; } /// /// The recommended solution to the issue. /// [JsonPropertyName("insight")] public CefSharp.DevTools.Audits.CookieIssueInsight Insight { get; set; } } /// /// MixedContentResolutionStatus /// public enum MixedContentResolutionStatus { /// /// MixedContentBlocked /// [JsonPropertyName("MixedContentBlocked")] MixedContentBlocked, /// /// MixedContentAutomaticallyUpgraded /// [JsonPropertyName("MixedContentAutomaticallyUpgraded")] MixedContentAutomaticallyUpgraded, /// /// MixedContentWarning /// [JsonPropertyName("MixedContentWarning")] MixedContentWarning } /// /// MixedContentResourceType /// public enum MixedContentResourceType { /// /// AttributionSrc /// [JsonPropertyName("AttributionSrc")] AttributionSrc, /// /// Audio /// [JsonPropertyName("Audio")] Audio, /// /// Beacon /// [JsonPropertyName("Beacon")] Beacon, /// /// CSPReport /// [JsonPropertyName("CSPReport")] CSPReport, /// /// Download /// [JsonPropertyName("Download")] Download, /// /// EventSource /// [JsonPropertyName("EventSource")] EventSource, /// /// Favicon /// [JsonPropertyName("Favicon")] Favicon, /// /// Font /// [JsonPropertyName("Font")] Font, /// /// Form /// [JsonPropertyName("Form")] Form, /// /// Frame /// [JsonPropertyName("Frame")] Frame, /// /// Image /// [JsonPropertyName("Image")] Image, /// /// Import /// [JsonPropertyName("Import")] Import, /// /// JSON /// [JsonPropertyName("JSON")] JSON, /// /// Manifest /// [JsonPropertyName("Manifest")] Manifest, /// /// Ping /// [JsonPropertyName("Ping")] Ping, /// /// PluginData /// [JsonPropertyName("PluginData")] PluginData, /// /// PluginResource /// [JsonPropertyName("PluginResource")] PluginResource, /// /// Prefetch /// [JsonPropertyName("Prefetch")] Prefetch, /// /// Resource /// [JsonPropertyName("Resource")] Resource, /// /// Script /// [JsonPropertyName("Script")] Script, /// /// ServiceWorker /// [JsonPropertyName("ServiceWorker")] ServiceWorker, /// /// SharedWorker /// [JsonPropertyName("SharedWorker")] SharedWorker, /// /// SpeculationRules /// [JsonPropertyName("SpeculationRules")] SpeculationRules, /// /// Stylesheet /// [JsonPropertyName("Stylesheet")] Stylesheet, /// /// Track /// [JsonPropertyName("Track")] Track, /// /// Video /// [JsonPropertyName("Video")] Video, /// /// Worker /// [JsonPropertyName("Worker")] Worker, /// /// XMLHttpRequest /// [JsonPropertyName("XMLHttpRequest")] XMLHttpRequest, /// /// XSLT /// [JsonPropertyName("XSLT")] XSLT } /// /// MixedContentIssueDetails /// public partial 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 /// [JsonPropertyName("resourceType")] public CefSharp.DevTools.Audits.MixedContentResourceType? ResourceType { get; set; } /// /// The way the mixed content issue is being resolved. /// [JsonPropertyName("resolutionStatus")] public CefSharp.DevTools.Audits.MixedContentResolutionStatus ResolutionStatus { get; set; } /// /// The unsafe http url causing the mixed content issue. /// [JsonPropertyName("insecureURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InsecureURL { get; set; } /// /// The url responsible for the call to an unsafe url. /// [JsonPropertyName("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). /// [JsonPropertyName("request")] public CefSharp.DevTools.Audits.AffectedRequest Request { get; set; } /// /// Optional because not every mixed content issue is necessarily linked to a frame. /// [JsonPropertyName("frame")] public CefSharp.DevTools.Audits.AffectedFrame Frame { get; set; } } /// /// Enum indicating the reason a response has been blocked. These reasons are /// refinements of the net error BLOCKED_BY_RESPONSE. /// public enum BlockedByResponseReason { /// /// CoepFrameResourceNeedsCoepHeader /// [JsonPropertyName("CoepFrameResourceNeedsCoepHeader")] CoepFrameResourceNeedsCoepHeader, /// /// CoopSandboxedIFrameCannotNavigateToCoopPage /// [JsonPropertyName("CoopSandboxedIFrameCannotNavigateToCoopPage")] CoopSandboxedIFrameCannotNavigateToCoopPage, /// /// CorpNotSameOrigin /// [JsonPropertyName("CorpNotSameOrigin")] CorpNotSameOrigin, /// /// CorpNotSameOriginAfterDefaultedToSameOriginByCoep /// [JsonPropertyName("CorpNotSameOriginAfterDefaultedToSameOriginByCoep")] CorpNotSameOriginAfterDefaultedToSameOriginByCoep, /// /// CorpNotSameOriginAfterDefaultedToSameOriginByDip /// [JsonPropertyName("CorpNotSameOriginAfterDefaultedToSameOriginByDip")] CorpNotSameOriginAfterDefaultedToSameOriginByDip, /// /// CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip /// [JsonPropertyName("CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip")] CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip, /// /// CorpNotSameSite /// [JsonPropertyName("CorpNotSameSite")] CorpNotSameSite, /// /// SRIMessageSignatureMismatch /// [JsonPropertyName("SRIMessageSignatureMismatch")] SRIMessageSignatureMismatch } /// /// 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 partial class BlockedByResponseIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Request /// [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.AffectedRequest Request { get; set; } /// /// ParentFrame /// [JsonPropertyName("parentFrame")] public CefSharp.DevTools.Audits.AffectedFrame ParentFrame { get; set; } /// /// BlockedFrame /// [JsonPropertyName("blockedFrame")] public CefSharp.DevTools.Audits.AffectedFrame BlockedFrame { get; set; } /// /// Reason /// [JsonPropertyName("reason")] public CefSharp.DevTools.Audits.BlockedByResponseReason Reason { get; set; } } /// /// HeavyAdResolutionStatus /// public enum HeavyAdResolutionStatus { /// /// HeavyAdBlocked /// [JsonPropertyName("HeavyAdBlocked")] HeavyAdBlocked, /// /// HeavyAdWarning /// [JsonPropertyName("HeavyAdWarning")] HeavyAdWarning } /// /// HeavyAdReason /// public enum HeavyAdReason { /// /// NetworkTotalLimit /// [JsonPropertyName("NetworkTotalLimit")] NetworkTotalLimit, /// /// CpuTotalLimit /// [JsonPropertyName("CpuTotalLimit")] CpuTotalLimit, /// /// CpuPeakLimit /// [JsonPropertyName("CpuPeakLimit")] CpuPeakLimit } /// /// HeavyAdIssueDetails /// public partial class HeavyAdIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The resolution status, either blocking the content or warning. /// [JsonPropertyName("resolution")] public CefSharp.DevTools.Audits.HeavyAdResolutionStatus Resolution { get; set; } /// /// The reason the ad was blocked, total network or cpu or peak cpu. /// [JsonPropertyName("reason")] public CefSharp.DevTools.Audits.HeavyAdReason Reason { get; set; } /// /// The frame that was blocked. /// [JsonPropertyName("frame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.AffectedFrame Frame { get; set; } } /// /// ContentSecurityPolicyViolationType /// public enum ContentSecurityPolicyViolationType { /// /// kInlineViolation /// [JsonPropertyName("kInlineViolation")] KInlineViolation, /// /// kEvalViolation /// [JsonPropertyName("kEvalViolation")] KEvalViolation, /// /// kURLViolation /// [JsonPropertyName("kURLViolation")] KURLViolation, /// /// kSRIViolation /// [JsonPropertyName("kSRIViolation")] KSRIViolation, /// /// kTrustedTypesSinkViolation /// [JsonPropertyName("kTrustedTypesSinkViolation")] KTrustedTypesSinkViolation, /// /// kTrustedTypesPolicyViolation /// [JsonPropertyName("kTrustedTypesPolicyViolation")] KTrustedTypesPolicyViolation, /// /// kWasmEvalViolation /// [JsonPropertyName("kWasmEvalViolation")] KWasmEvalViolation } /// /// SourceCodeLocation /// public partial class SourceCodeLocation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ScriptId /// [JsonPropertyName("scriptId")] public string ScriptId { get; set; } /// /// Url /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// LineNumber /// [JsonPropertyName("lineNumber")] public int LineNumber { get; set; } /// /// ColumnNumber /// [JsonPropertyName("columnNumber")] public int ColumnNumber { get; set; } } /// /// ContentSecurityPolicyIssueDetails /// public partial class ContentSecurityPolicyIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The url not included in allowed sources. /// [JsonPropertyName("blockedURL")] public string BlockedURL { get; set; } /// /// Specific directive that is violated, causing the CSP issue. /// [JsonPropertyName("violatedDirective")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ViolatedDirective { get; set; } /// /// IsReportOnly /// [JsonPropertyName("isReportOnly")] public bool IsReportOnly { get; set; } /// /// ContentSecurityPolicyViolationType /// [JsonPropertyName("contentSecurityPolicyViolationType")] public CefSharp.DevTools.Audits.ContentSecurityPolicyViolationType ContentSecurityPolicyViolationType { get; set; } /// /// FrameAncestor /// [JsonPropertyName("frameAncestor")] public CefSharp.DevTools.Audits.AffectedFrame FrameAncestor { get; set; } /// /// SourceCodeLocation /// [JsonPropertyName("sourceCodeLocation")] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { get; set; } /// /// ViolatingNodeId /// [JsonPropertyName("violatingNodeId")] public int? ViolatingNodeId { get; set; } } /// /// SharedArrayBufferIssueType /// public enum SharedArrayBufferIssueType { /// /// TransferIssue /// [JsonPropertyName("TransferIssue")] TransferIssue, /// /// CreationIssue /// [JsonPropertyName("CreationIssue")] CreationIssue } /// /// Details for a issue arising from an SAB being instantiated in, or /// transferred to a context that is not cross-origin isolated. /// public partial class SharedArrayBufferIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// SourceCodeLocation /// [JsonPropertyName("sourceCodeLocation")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { get; set; } /// /// IsWarning /// [JsonPropertyName("isWarning")] public bool IsWarning { get; set; } /// /// Type /// [JsonPropertyName("type")] public CefSharp.DevTools.Audits.SharedArrayBufferIssueType Type { get; set; } } /// /// LowTextContrastIssueDetails /// public partial class LowTextContrastIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ViolatingNodeId /// [JsonPropertyName("violatingNodeId")] public int ViolatingNodeId { get; set; } /// /// ViolatingNodeSelector /// [JsonPropertyName("violatingNodeSelector")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ViolatingNodeSelector { get; set; } /// /// ContrastRatio /// [JsonPropertyName("contrastRatio")] public double ContrastRatio { get; set; } /// /// ThresholdAA /// [JsonPropertyName("thresholdAA")] public double ThresholdAA { get; set; } /// /// ThresholdAAA /// [JsonPropertyName("thresholdAAA")] public double ThresholdAAA { get; set; } /// /// FontSize /// [JsonPropertyName("fontSize")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontSize { get; set; } /// /// FontWeight /// [JsonPropertyName("fontWeight")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontWeight { get; set; } } /// /// Details for a CORS related issue, e.g. a warning or error related to /// CORS RFC1918 enforcement. /// public partial class CorsIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CorsErrorStatus /// [JsonPropertyName("corsErrorStatus")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.CorsErrorStatus CorsErrorStatus { get; set; } /// /// IsWarning /// [JsonPropertyName("isWarning")] public bool IsWarning { get; set; } /// /// Request /// [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.AffectedRequest Request { get; set; } /// /// Location /// [JsonPropertyName("location")] public CefSharp.DevTools.Audits.SourceCodeLocation Location { get; set; } /// /// InitiatorOrigin /// [JsonPropertyName("initiatorOrigin")] public string InitiatorOrigin { get; set; } /// /// ResourceIPAddressSpace /// [JsonPropertyName("resourceIPAddressSpace")] public CefSharp.DevTools.Network.IPAddressSpace? ResourceIPAddressSpace { get; set; } /// /// ClientSecurityState /// [JsonPropertyName("clientSecurityState")] public CefSharp.DevTools.Network.ClientSecurityState ClientSecurityState { get; set; } } /// /// AttributionReportingIssueType /// public enum AttributionReportingIssueType { /// /// PermissionPolicyDisabled /// [JsonPropertyName("PermissionPolicyDisabled")] PermissionPolicyDisabled, /// /// UntrustworthyReportingOrigin /// [JsonPropertyName("UntrustworthyReportingOrigin")] UntrustworthyReportingOrigin, /// /// InsecureContext /// [JsonPropertyName("InsecureContext")] InsecureContext, /// /// InvalidHeader /// [JsonPropertyName("InvalidHeader")] InvalidHeader, /// /// InvalidRegisterTriggerHeader /// [JsonPropertyName("InvalidRegisterTriggerHeader")] InvalidRegisterTriggerHeader, /// /// SourceAndTriggerHeaders /// [JsonPropertyName("SourceAndTriggerHeaders")] SourceAndTriggerHeaders, /// /// SourceIgnored /// [JsonPropertyName("SourceIgnored")] SourceIgnored, /// /// TriggerIgnored /// [JsonPropertyName("TriggerIgnored")] TriggerIgnored, /// /// OsSourceIgnored /// [JsonPropertyName("OsSourceIgnored")] OsSourceIgnored, /// /// OsTriggerIgnored /// [JsonPropertyName("OsTriggerIgnored")] OsTriggerIgnored, /// /// InvalidRegisterOsSourceHeader /// [JsonPropertyName("InvalidRegisterOsSourceHeader")] InvalidRegisterOsSourceHeader, /// /// InvalidRegisterOsTriggerHeader /// [JsonPropertyName("InvalidRegisterOsTriggerHeader")] InvalidRegisterOsTriggerHeader, /// /// WebAndOsHeaders /// [JsonPropertyName("WebAndOsHeaders")] WebAndOsHeaders, /// /// NoWebOrOsSupport /// [JsonPropertyName("NoWebOrOsSupport")] NoWebOrOsSupport, /// /// NavigationRegistrationWithoutTransientUserActivation /// [JsonPropertyName("NavigationRegistrationWithoutTransientUserActivation")] NavigationRegistrationWithoutTransientUserActivation, /// /// InvalidInfoHeader /// [JsonPropertyName("InvalidInfoHeader")] InvalidInfoHeader, /// /// NoRegisterSourceHeader /// [JsonPropertyName("NoRegisterSourceHeader")] NoRegisterSourceHeader, /// /// NoRegisterTriggerHeader /// [JsonPropertyName("NoRegisterTriggerHeader")] NoRegisterTriggerHeader, /// /// NoRegisterOsSourceHeader /// [JsonPropertyName("NoRegisterOsSourceHeader")] NoRegisterOsSourceHeader, /// /// NoRegisterOsTriggerHeader /// [JsonPropertyName("NoRegisterOsTriggerHeader")] NoRegisterOsTriggerHeader, /// /// NavigationRegistrationUniqueScopeAlreadySet /// [JsonPropertyName("NavigationRegistrationUniqueScopeAlreadySet")] NavigationRegistrationUniqueScopeAlreadySet } /// /// SharedDictionaryError /// public enum SharedDictionaryError { /// /// UseErrorCrossOriginNoCorsRequest /// [JsonPropertyName("UseErrorCrossOriginNoCorsRequest")] UseErrorCrossOriginNoCorsRequest, /// /// UseErrorDictionaryLoadFailure /// [JsonPropertyName("UseErrorDictionaryLoadFailure")] UseErrorDictionaryLoadFailure, /// /// UseErrorMatchingDictionaryNotUsed /// [JsonPropertyName("UseErrorMatchingDictionaryNotUsed")] UseErrorMatchingDictionaryNotUsed, /// /// UseErrorUnexpectedContentDictionaryHeader /// [JsonPropertyName("UseErrorUnexpectedContentDictionaryHeader")] UseErrorUnexpectedContentDictionaryHeader, /// /// WriteErrorCossOriginNoCorsRequest /// [JsonPropertyName("WriteErrorCossOriginNoCorsRequest")] WriteErrorCossOriginNoCorsRequest, /// /// WriteErrorDisallowedBySettings /// [JsonPropertyName("WriteErrorDisallowedBySettings")] WriteErrorDisallowedBySettings, /// /// WriteErrorExpiredResponse /// [JsonPropertyName("WriteErrorExpiredResponse")] WriteErrorExpiredResponse, /// /// WriteErrorFeatureDisabled /// [JsonPropertyName("WriteErrorFeatureDisabled")] WriteErrorFeatureDisabled, /// /// WriteErrorInsufficientResources /// [JsonPropertyName("WriteErrorInsufficientResources")] WriteErrorInsufficientResources, /// /// WriteErrorInvalidMatchField /// [JsonPropertyName("WriteErrorInvalidMatchField")] WriteErrorInvalidMatchField, /// /// WriteErrorInvalidStructuredHeader /// [JsonPropertyName("WriteErrorInvalidStructuredHeader")] WriteErrorInvalidStructuredHeader, /// /// WriteErrorInvalidTTLField /// [JsonPropertyName("WriteErrorInvalidTTLField")] WriteErrorInvalidTTLField, /// /// WriteErrorNavigationRequest /// [JsonPropertyName("WriteErrorNavigationRequest")] WriteErrorNavigationRequest, /// /// WriteErrorNoMatchField /// [JsonPropertyName("WriteErrorNoMatchField")] WriteErrorNoMatchField, /// /// WriteErrorNonIntegerTTLField /// [JsonPropertyName("WriteErrorNonIntegerTTLField")] WriteErrorNonIntegerTTLField, /// /// WriteErrorNonListMatchDestField /// [JsonPropertyName("WriteErrorNonListMatchDestField")] WriteErrorNonListMatchDestField, /// /// WriteErrorNonSecureContext /// [JsonPropertyName("WriteErrorNonSecureContext")] WriteErrorNonSecureContext, /// /// WriteErrorNonStringIdField /// [JsonPropertyName("WriteErrorNonStringIdField")] WriteErrorNonStringIdField, /// /// WriteErrorNonStringInMatchDestList /// [JsonPropertyName("WriteErrorNonStringInMatchDestList")] WriteErrorNonStringInMatchDestList, /// /// WriteErrorNonStringMatchField /// [JsonPropertyName("WriteErrorNonStringMatchField")] WriteErrorNonStringMatchField, /// /// WriteErrorNonTokenTypeField /// [JsonPropertyName("WriteErrorNonTokenTypeField")] WriteErrorNonTokenTypeField, /// /// WriteErrorRequestAborted /// [JsonPropertyName("WriteErrorRequestAborted")] WriteErrorRequestAborted, /// /// WriteErrorShuttingDown /// [JsonPropertyName("WriteErrorShuttingDown")] WriteErrorShuttingDown, /// /// WriteErrorTooLongIdField /// [JsonPropertyName("WriteErrorTooLongIdField")] WriteErrorTooLongIdField, /// /// WriteErrorUnsupportedType /// [JsonPropertyName("WriteErrorUnsupportedType")] WriteErrorUnsupportedType } /// /// SRIMessageSignatureError /// public enum SRIMessageSignatureError { /// /// MissingSignatureHeader /// [JsonPropertyName("MissingSignatureHeader")] MissingSignatureHeader, /// /// MissingSignatureInputHeader /// [JsonPropertyName("MissingSignatureInputHeader")] MissingSignatureInputHeader, /// /// InvalidSignatureHeader /// [JsonPropertyName("InvalidSignatureHeader")] InvalidSignatureHeader, /// /// InvalidSignatureInputHeader /// [JsonPropertyName("InvalidSignatureInputHeader")] InvalidSignatureInputHeader, /// /// SignatureHeaderValueIsNotByteSequence /// [JsonPropertyName("SignatureHeaderValueIsNotByteSequence")] SignatureHeaderValueIsNotByteSequence, /// /// SignatureHeaderValueIsParameterized /// [JsonPropertyName("SignatureHeaderValueIsParameterized")] SignatureHeaderValueIsParameterized, /// /// SignatureHeaderValueIsIncorrectLength /// [JsonPropertyName("SignatureHeaderValueIsIncorrectLength")] SignatureHeaderValueIsIncorrectLength, /// /// SignatureInputHeaderMissingLabel /// [JsonPropertyName("SignatureInputHeaderMissingLabel")] SignatureInputHeaderMissingLabel, /// /// SignatureInputHeaderValueNotInnerList /// [JsonPropertyName("SignatureInputHeaderValueNotInnerList")] SignatureInputHeaderValueNotInnerList, /// /// SignatureInputHeaderValueMissingComponents /// [JsonPropertyName("SignatureInputHeaderValueMissingComponents")] SignatureInputHeaderValueMissingComponents, /// /// SignatureInputHeaderInvalidComponentType /// [JsonPropertyName("SignatureInputHeaderInvalidComponentType")] SignatureInputHeaderInvalidComponentType, /// /// SignatureInputHeaderInvalidComponentName /// [JsonPropertyName("SignatureInputHeaderInvalidComponentName")] SignatureInputHeaderInvalidComponentName, /// /// SignatureInputHeaderInvalidHeaderComponentParameter /// [JsonPropertyName("SignatureInputHeaderInvalidHeaderComponentParameter")] SignatureInputHeaderInvalidHeaderComponentParameter, /// /// SignatureInputHeaderInvalidDerivedComponentParameter /// [JsonPropertyName("SignatureInputHeaderInvalidDerivedComponentParameter")] SignatureInputHeaderInvalidDerivedComponentParameter, /// /// SignatureInputHeaderKeyIdLength /// [JsonPropertyName("SignatureInputHeaderKeyIdLength")] SignatureInputHeaderKeyIdLength, /// /// SignatureInputHeaderInvalidParameter /// [JsonPropertyName("SignatureInputHeaderInvalidParameter")] SignatureInputHeaderInvalidParameter, /// /// SignatureInputHeaderMissingRequiredParameters /// [JsonPropertyName("SignatureInputHeaderMissingRequiredParameters")] SignatureInputHeaderMissingRequiredParameters, /// /// ValidationFailedSignatureExpired /// [JsonPropertyName("ValidationFailedSignatureExpired")] ValidationFailedSignatureExpired, /// /// ValidationFailedInvalidLength /// [JsonPropertyName("ValidationFailedInvalidLength")] ValidationFailedInvalidLength, /// /// ValidationFailedSignatureMismatch /// [JsonPropertyName("ValidationFailedSignatureMismatch")] ValidationFailedSignatureMismatch, /// /// ValidationFailedIntegrityMismatch /// [JsonPropertyName("ValidationFailedIntegrityMismatch")] ValidationFailedIntegrityMismatch } /// /// UnencodedDigestError /// public enum UnencodedDigestError { /// /// MalformedDictionary /// [JsonPropertyName("MalformedDictionary")] MalformedDictionary, /// /// UnknownAlgorithm /// [JsonPropertyName("UnknownAlgorithm")] UnknownAlgorithm, /// /// IncorrectDigestType /// [JsonPropertyName("IncorrectDigestType")] IncorrectDigestType, /// /// IncorrectDigestLength /// [JsonPropertyName("IncorrectDigestLength")] IncorrectDigestLength } /// /// Details for issues around "Attribution Reporting API" usage. /// Explainer: https://github.com/WICG/attribution-reporting-api /// public partial class AttributionReportingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ViolationType /// [JsonPropertyName("violationType")] public CefSharp.DevTools.Audits.AttributionReportingIssueType ViolationType { get; set; } /// /// Request /// [JsonPropertyName("request")] public CefSharp.DevTools.Audits.AffectedRequest Request { get; set; } /// /// ViolatingNodeId /// [JsonPropertyName("violatingNodeId")] public int? ViolatingNodeId { get; set; } /// /// InvalidParameter /// [JsonPropertyName("invalidParameter")] public string InvalidParameter { get; set; } } /// /// Details for issues about documents in Quirks Mode /// or Limited Quirks Mode that affects page layouting. /// public partial class QuirksModeIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// If false, it means the document's mode is "quirks" /// instead of "limited-quirks". /// [JsonPropertyName("isLimitedQuirksMode")] public bool IsLimitedQuirksMode { get; set; } /// /// DocumentNodeId /// [JsonPropertyName("documentNodeId")] public int DocumentNodeId { get; set; } /// /// Url /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// FrameId /// [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; set; } /// /// LoaderId /// [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { get; set; } } /// /// NavigatorUserAgentIssueDetails /// public partial class NavigatorUserAgentIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Url /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Location /// [JsonPropertyName("location")] public CefSharp.DevTools.Audits.SourceCodeLocation Location { get; set; } } /// /// SharedDictionaryIssueDetails /// public partial class SharedDictionaryIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// SharedDictionaryError /// [JsonPropertyName("sharedDictionaryError")] public CefSharp.DevTools.Audits.SharedDictionaryError SharedDictionaryError { get; set; } /// /// Request /// [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.AffectedRequest Request { get; set; } } /// /// SRIMessageSignatureIssueDetails /// public partial class SRIMessageSignatureIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Error /// [JsonPropertyName("error")] public CefSharp.DevTools.Audits.SRIMessageSignatureError Error { get; set; } /// /// SignatureBase /// [JsonPropertyName("signatureBase")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SignatureBase { get; set; } /// /// IntegrityAssertions /// [JsonPropertyName("integrityAssertions")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] IntegrityAssertions { get; set; } /// /// Request /// [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.AffectedRequest Request { get; set; } } /// /// UnencodedDigestIssueDetails /// public partial class UnencodedDigestIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Error /// [JsonPropertyName("error")] public CefSharp.DevTools.Audits.UnencodedDigestError Error { get; set; } /// /// Request /// [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.AffectedRequest Request { get; set; } } /// /// GenericIssueErrorType /// public enum GenericIssueErrorType { /// /// FormLabelForNameError /// [JsonPropertyName("FormLabelForNameError")] FormLabelForNameError, /// /// FormDuplicateIdForInputError /// [JsonPropertyName("FormDuplicateIdForInputError")] FormDuplicateIdForInputError, /// /// FormInputWithNoLabelError /// [JsonPropertyName("FormInputWithNoLabelError")] FormInputWithNoLabelError, /// /// FormAutocompleteAttributeEmptyError /// [JsonPropertyName("FormAutocompleteAttributeEmptyError")] FormAutocompleteAttributeEmptyError, /// /// FormEmptyIdAndNameAttributesForInputError /// [JsonPropertyName("FormEmptyIdAndNameAttributesForInputError")] FormEmptyIdAndNameAttributesForInputError, /// /// FormAriaLabelledByToNonExistingIdError /// [JsonPropertyName("FormAriaLabelledByToNonExistingIdError")] FormAriaLabelledByToNonExistingIdError, /// /// FormInputAssignedAutocompleteValueToIdOrNameAttributeError /// [JsonPropertyName("FormInputAssignedAutocompleteValueToIdOrNameAttributeError")] FormInputAssignedAutocompleteValueToIdOrNameAttributeError, /// /// FormLabelHasNeitherForNorNestedInputError /// [JsonPropertyName("FormLabelHasNeitherForNorNestedInputError")] FormLabelHasNeitherForNorNestedInputError, /// /// FormLabelForMatchesNonExistingIdError /// [JsonPropertyName("FormLabelForMatchesNonExistingIdError")] FormLabelForMatchesNonExistingIdError, /// /// FormInputHasWrongButWellIntendedAutocompleteValueError /// [JsonPropertyName("FormInputHasWrongButWellIntendedAutocompleteValueError")] FormInputHasWrongButWellIntendedAutocompleteValueError, /// /// ResponseWasBlockedByORB /// [JsonPropertyName("ResponseWasBlockedByORB")] ResponseWasBlockedByORB, /// /// NavigationEntryMarkedSkippable /// [JsonPropertyName("NavigationEntryMarkedSkippable")] NavigationEntryMarkedSkippable, /// /// AutofillAndManualTextPolicyControlledFeaturesInfo /// [JsonPropertyName("AutofillAndManualTextPolicyControlledFeaturesInfo")] AutofillAndManualTextPolicyControlledFeaturesInfo, /// /// AutofillPolicyControlledFeatureInfo /// [JsonPropertyName("AutofillPolicyControlledFeatureInfo")] AutofillPolicyControlledFeatureInfo, /// /// ManualTextPolicyControlledFeatureInfo /// [JsonPropertyName("ManualTextPolicyControlledFeatureInfo")] ManualTextPolicyControlledFeatureInfo } /// /// Depending on the concrete errorType, different properties are set. /// public partial class GenericIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Issues with the same errorType are aggregated in the frontend. /// [JsonPropertyName("errorType")] public CefSharp.DevTools.Audits.GenericIssueErrorType ErrorType { get; set; } /// /// FrameId /// [JsonPropertyName("frameId")] public string FrameId { get; set; } /// /// ViolatingNodeId /// [JsonPropertyName("violatingNodeId")] public int? ViolatingNodeId { get; set; } /// /// ViolatingNodeAttribute /// [JsonPropertyName("violatingNodeAttribute")] public string ViolatingNodeAttribute { get; set; } /// /// Request /// [JsonPropertyName("request")] public CefSharp.DevTools.Audits.AffectedRequest Request { get; set; } } /// /// This issue tracks information needed to print a deprecation message. /// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md /// public partial class DeprecationIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// AffectedFrame /// [JsonPropertyName("affectedFrame")] public CefSharp.DevTools.Audits.AffectedFrame AffectedFrame { get; set; } /// /// SourceCodeLocation /// [JsonPropertyName("sourceCodeLocation")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { get; set; } /// /// One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5 /// [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { get; set; } } /// /// This issue warns about sites in the redirect chain of a finished navigation /// that may be flagged as trackers and have their state cleared if they don't /// receive a user interaction. Note that in this context 'site' means eTLD+1. /// For example, if the URL `https://example.test:80/bounce` was in the /// redirect chain, the site reported would be `example.test`. /// public partial class BounceTrackingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// TrackingSites /// [JsonPropertyName("trackingSites")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] TrackingSites { get; set; } } /// /// This issue warns about third-party sites that are accessing cookies on the /// current page, and have been permitted due to having a global metadata grant. /// Note that in this context 'site' means eTLD+1. For example, if the URL /// `https://example.test:80/web_page` was accessing cookies, the site reported /// would be `example.test`. /// public partial class CookieDeprecationMetadataIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// AllowedSites /// [JsonPropertyName("allowedSites")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] AllowedSites { get; set; } /// /// OptOutPercentage /// [JsonPropertyName("optOutPercentage")] public double OptOutPercentage { get; set; } /// /// IsOptOutTopLevel /// [JsonPropertyName("isOptOutTopLevel")] public bool IsOptOutTopLevel { get; set; } /// /// Operation /// [JsonPropertyName("operation")] public CefSharp.DevTools.Audits.CookieOperation Operation { get; set; } } /// /// ClientHintIssueReason /// public enum ClientHintIssueReason { /// /// MetaTagAllowListInvalidOrigin /// [JsonPropertyName("MetaTagAllowListInvalidOrigin")] MetaTagAllowListInvalidOrigin, /// /// MetaTagModifiedHTML /// [JsonPropertyName("MetaTagModifiedHTML")] MetaTagModifiedHTML } /// /// FederatedAuthRequestIssueDetails /// public partial class FederatedAuthRequestIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// FederatedAuthRequestIssueReason /// [JsonPropertyName("federatedAuthRequestIssueReason")] public CefSharp.DevTools.Audits.FederatedAuthRequestIssueReason FederatedAuthRequestIssueReason { get; set; } } /// /// Represents the failure reason when a federated authentication reason fails. /// Should be updated alongside RequestIdTokenStatus in /// third_party/blink/public/mojom/devtools/inspector_issue.mojom to include /// all cases except for success. /// public enum FederatedAuthRequestIssueReason { /// /// ShouldEmbargo /// [JsonPropertyName("ShouldEmbargo")] ShouldEmbargo, /// /// TooManyRequests /// [JsonPropertyName("TooManyRequests")] TooManyRequests, /// /// WellKnownHttpNotFound /// [JsonPropertyName("WellKnownHttpNotFound")] WellKnownHttpNotFound, /// /// WellKnownNoResponse /// [JsonPropertyName("WellKnownNoResponse")] WellKnownNoResponse, /// /// WellKnownInvalidResponse /// [JsonPropertyName("WellKnownInvalidResponse")] WellKnownInvalidResponse, /// /// WellKnownListEmpty /// [JsonPropertyName("WellKnownListEmpty")] WellKnownListEmpty, /// /// WellKnownInvalidContentType /// [JsonPropertyName("WellKnownInvalidContentType")] WellKnownInvalidContentType, /// /// ConfigNotInWellKnown /// [JsonPropertyName("ConfigNotInWellKnown")] ConfigNotInWellKnown, /// /// WellKnownTooBig /// [JsonPropertyName("WellKnownTooBig")] WellKnownTooBig, /// /// ConfigHttpNotFound /// [JsonPropertyName("ConfigHttpNotFound")] ConfigHttpNotFound, /// /// ConfigNoResponse /// [JsonPropertyName("ConfigNoResponse")] ConfigNoResponse, /// /// ConfigInvalidResponse /// [JsonPropertyName("ConfigInvalidResponse")] ConfigInvalidResponse, /// /// ConfigInvalidContentType /// [JsonPropertyName("ConfigInvalidContentType")] ConfigInvalidContentType, /// /// ClientMetadataHttpNotFound /// [JsonPropertyName("ClientMetadataHttpNotFound")] ClientMetadataHttpNotFound, /// /// ClientMetadataNoResponse /// [JsonPropertyName("ClientMetadataNoResponse")] ClientMetadataNoResponse, /// /// ClientMetadataInvalidResponse /// [JsonPropertyName("ClientMetadataInvalidResponse")] ClientMetadataInvalidResponse, /// /// ClientMetadataInvalidContentType /// [JsonPropertyName("ClientMetadataInvalidContentType")] ClientMetadataInvalidContentType, /// /// IdpNotPotentiallyTrustworthy /// [JsonPropertyName("IdpNotPotentiallyTrustworthy")] IdpNotPotentiallyTrustworthy, /// /// DisabledInSettings /// [JsonPropertyName("DisabledInSettings")] DisabledInSettings, /// /// DisabledInFlags /// [JsonPropertyName("DisabledInFlags")] DisabledInFlags, /// /// ErrorFetchingSignin /// [JsonPropertyName("ErrorFetchingSignin")] ErrorFetchingSignin, /// /// InvalidSigninResponse /// [JsonPropertyName("InvalidSigninResponse")] InvalidSigninResponse, /// /// AccountsHttpNotFound /// [JsonPropertyName("AccountsHttpNotFound")] AccountsHttpNotFound, /// /// AccountsNoResponse /// [JsonPropertyName("AccountsNoResponse")] AccountsNoResponse, /// /// AccountsInvalidResponse /// [JsonPropertyName("AccountsInvalidResponse")] AccountsInvalidResponse, /// /// AccountsListEmpty /// [JsonPropertyName("AccountsListEmpty")] AccountsListEmpty, /// /// AccountsInvalidContentType /// [JsonPropertyName("AccountsInvalidContentType")] AccountsInvalidContentType, /// /// IdTokenHttpNotFound /// [JsonPropertyName("IdTokenHttpNotFound")] IdTokenHttpNotFound, /// /// IdTokenNoResponse /// [JsonPropertyName("IdTokenNoResponse")] IdTokenNoResponse, /// /// IdTokenInvalidResponse /// [JsonPropertyName("IdTokenInvalidResponse")] IdTokenInvalidResponse, /// /// IdTokenIdpErrorResponse /// [JsonPropertyName("IdTokenIdpErrorResponse")] IdTokenIdpErrorResponse, /// /// IdTokenCrossSiteIdpErrorResponse /// [JsonPropertyName("IdTokenCrossSiteIdpErrorResponse")] IdTokenCrossSiteIdpErrorResponse, /// /// IdTokenInvalidRequest /// [JsonPropertyName("IdTokenInvalidRequest")] IdTokenInvalidRequest, /// /// IdTokenInvalidContentType /// [JsonPropertyName("IdTokenInvalidContentType")] IdTokenInvalidContentType, /// /// ErrorIdToken /// [JsonPropertyName("ErrorIdToken")] ErrorIdToken, /// /// Canceled /// [JsonPropertyName("Canceled")] Canceled, /// /// RpPageNotVisible /// [JsonPropertyName("RpPageNotVisible")] RpPageNotVisible, /// /// SilentMediationFailure /// [JsonPropertyName("SilentMediationFailure")] SilentMediationFailure, /// /// ThirdPartyCookiesBlocked /// [JsonPropertyName("ThirdPartyCookiesBlocked")] ThirdPartyCookiesBlocked, /// /// NotSignedInWithIdp /// [JsonPropertyName("NotSignedInWithIdp")] NotSignedInWithIdp, /// /// MissingTransientUserActivation /// [JsonPropertyName("MissingTransientUserActivation")] MissingTransientUserActivation, /// /// ReplacedByActiveMode /// [JsonPropertyName("ReplacedByActiveMode")] ReplacedByActiveMode, /// /// InvalidFieldsSpecified /// [JsonPropertyName("InvalidFieldsSpecified")] InvalidFieldsSpecified, /// /// RelyingPartyOriginIsOpaque /// [JsonPropertyName("RelyingPartyOriginIsOpaque")] RelyingPartyOriginIsOpaque, /// /// TypeNotMatching /// [JsonPropertyName("TypeNotMatching")] TypeNotMatching, /// /// UiDismissedNoEmbargo /// [JsonPropertyName("UiDismissedNoEmbargo")] UiDismissedNoEmbargo, /// /// CorsError /// [JsonPropertyName("CorsError")] CorsError, /// /// SuppressedBySegmentationPlatform /// [JsonPropertyName("SuppressedBySegmentationPlatform")] SuppressedBySegmentationPlatform } /// /// FederatedAuthUserInfoRequestIssueDetails /// public partial class FederatedAuthUserInfoRequestIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// FederatedAuthUserInfoRequestIssueReason /// [JsonPropertyName("federatedAuthUserInfoRequestIssueReason")] public CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueReason FederatedAuthUserInfoRequestIssueReason { get; set; } } /// /// Represents the failure reason when a getUserInfo() call fails. /// Should be updated alongside FederatedAuthUserInfoRequestResult in /// third_party/blink/public/mojom/devtools/inspector_issue.mojom. /// public enum FederatedAuthUserInfoRequestIssueReason { /// /// NotSameOrigin /// [JsonPropertyName("NotSameOrigin")] NotSameOrigin, /// /// NotIframe /// [JsonPropertyName("NotIframe")] NotIframe, /// /// NotPotentiallyTrustworthy /// [JsonPropertyName("NotPotentiallyTrustworthy")] NotPotentiallyTrustworthy, /// /// NoApiPermission /// [JsonPropertyName("NoApiPermission")] NoApiPermission, /// /// NotSignedInWithIdp /// [JsonPropertyName("NotSignedInWithIdp")] NotSignedInWithIdp, /// /// NoAccountSharingPermission /// [JsonPropertyName("NoAccountSharingPermission")] NoAccountSharingPermission, /// /// InvalidConfigOrWellKnown /// [JsonPropertyName("InvalidConfigOrWellKnown")] InvalidConfigOrWellKnown, /// /// InvalidAccountsResponse /// [JsonPropertyName("InvalidAccountsResponse")] InvalidAccountsResponse, /// /// NoReturningUserFromFetchedAccounts /// [JsonPropertyName("NoReturningUserFromFetchedAccounts")] NoReturningUserFromFetchedAccounts } /// /// This issue tracks client hints related issues. It's used to deprecate old /// features, encourage the use of new ones, and provide general guidance. /// public partial class ClientHintIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// SourceCodeLocation /// [JsonPropertyName("sourceCodeLocation")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { get; set; } /// /// ClientHintIssueReason /// [JsonPropertyName("clientHintIssueReason")] public CefSharp.DevTools.Audits.ClientHintIssueReason ClientHintIssueReason { get; set; } } /// /// FailedRequestInfo /// public partial class FailedRequestInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The URL that failed to load. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// The failure message for the failed request. /// [JsonPropertyName("failureMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FailureMessage { get; set; } /// /// RequestId /// [JsonPropertyName("requestId")] public string RequestId { get; set; } } /// /// PartitioningBlobURLInfo /// public enum PartitioningBlobURLInfo { /// /// BlockedCrossPartitionFetching /// [JsonPropertyName("BlockedCrossPartitionFetching")] BlockedCrossPartitionFetching, /// /// EnforceNoopenerForNavigation /// [JsonPropertyName("EnforceNoopenerForNavigation")] EnforceNoopenerForNavigation } /// /// PartitioningBlobURLIssueDetails /// public partial class PartitioningBlobURLIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The BlobURL that failed to load. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Additional information about the Partitioning Blob URL issue. /// [JsonPropertyName("partitioningBlobURLInfo")] public CefSharp.DevTools.Audits.PartitioningBlobURLInfo PartitioningBlobURLInfo { get; set; } } /// /// ElementAccessibilityIssueReason /// public enum ElementAccessibilityIssueReason { /// /// DisallowedSelectChild /// [JsonPropertyName("DisallowedSelectChild")] DisallowedSelectChild, /// /// DisallowedOptGroupChild /// [JsonPropertyName("DisallowedOptGroupChild")] DisallowedOptGroupChild, /// /// NonPhrasingContentOptionChild /// [JsonPropertyName("NonPhrasingContentOptionChild")] NonPhrasingContentOptionChild, /// /// InteractiveContentOptionChild /// [JsonPropertyName("InteractiveContentOptionChild")] InteractiveContentOptionChild, /// /// InteractiveContentLegendChild /// [JsonPropertyName("InteractiveContentLegendChild")] InteractiveContentLegendChild, /// /// InteractiveContentSummaryDescendant /// [JsonPropertyName("InteractiveContentSummaryDescendant")] InteractiveContentSummaryDescendant } /// /// This issue warns about errors in the select or summary element content model. /// public partial class ElementAccessibilityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// NodeId /// [JsonPropertyName("nodeId")] public int NodeId { get; set; } /// /// ElementAccessibilityIssueReason /// [JsonPropertyName("elementAccessibilityIssueReason")] public CefSharp.DevTools.Audits.ElementAccessibilityIssueReason ElementAccessibilityIssueReason { get; set; } /// /// HasDisallowedAttributes /// [JsonPropertyName("hasDisallowedAttributes")] public bool HasDisallowedAttributes { get; set; } } /// /// StyleSheetLoadingIssueReason /// public enum StyleSheetLoadingIssueReason { /// /// LateImportRule /// [JsonPropertyName("LateImportRule")] LateImportRule, /// /// RequestFailed /// [JsonPropertyName("RequestFailed")] RequestFailed } /// /// This issue warns when a referenced stylesheet couldn't be loaded. /// public partial class StylesheetLoadingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source code position that referenced the failing stylesheet. /// [JsonPropertyName("sourceCodeLocation")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { get; set; } /// /// Reason why the stylesheet couldn't be loaded. /// [JsonPropertyName("styleSheetLoadingIssueReason")] public CefSharp.DevTools.Audits.StyleSheetLoadingIssueReason StyleSheetLoadingIssueReason { get; set; } /// /// Contains additional info when the failure was due to a request. /// [JsonPropertyName("failedRequestInfo")] public CefSharp.DevTools.Audits.FailedRequestInfo FailedRequestInfo { get; set; } } /// /// PropertyRuleIssueReason /// public enum PropertyRuleIssueReason { /// /// InvalidSyntax /// [JsonPropertyName("InvalidSyntax")] InvalidSyntax, /// /// InvalidInitialValue /// [JsonPropertyName("InvalidInitialValue")] InvalidInitialValue, /// /// InvalidInherits /// [JsonPropertyName("InvalidInherits")] InvalidInherits, /// /// InvalidName /// [JsonPropertyName("InvalidName")] InvalidName } /// /// This issue warns about errors in property rules that lead to property /// registrations being ignored. /// public partial class PropertyRuleIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source code position of the property rule. /// [JsonPropertyName("sourceCodeLocation")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { get; set; } /// /// Reason why the property rule was discarded. /// [JsonPropertyName("propertyRuleIssueReason")] public CefSharp.DevTools.Audits.PropertyRuleIssueReason PropertyRuleIssueReason { get; set; } /// /// The value of the property rule property that failed to parse /// [JsonPropertyName("propertyValue")] public string PropertyValue { get; set; } } /// /// UserReidentificationIssueType /// public enum UserReidentificationIssueType { /// /// BlockedFrameNavigation /// [JsonPropertyName("BlockedFrameNavigation")] BlockedFrameNavigation, /// /// BlockedSubresource /// [JsonPropertyName("BlockedSubresource")] BlockedSubresource, /// /// NoisedCanvasReadback /// [JsonPropertyName("NoisedCanvasReadback")] NoisedCanvasReadback } /// /// This issue warns about uses of APIs that may be considered misuse to /// re-identify users. /// public partial class UserReidentificationIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type /// [JsonPropertyName("type")] public CefSharp.DevTools.Audits.UserReidentificationIssueType Type { get; set; } /// /// Applies to BlockedFrameNavigation and BlockedSubresource issue types. /// [JsonPropertyName("request")] public CefSharp.DevTools.Audits.AffectedRequest Request { get; set; } /// /// Applies to NoisedCanvasReadback issue type. /// [JsonPropertyName("sourceCodeLocation")] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { get; set; } } /// /// PermissionElementIssueType /// public enum PermissionElementIssueType { /// /// InvalidType /// [JsonPropertyName("InvalidType")] InvalidType, /// /// FencedFrameDisallowed /// [JsonPropertyName("FencedFrameDisallowed")] FencedFrameDisallowed, /// /// CspFrameAncestorsMissing /// [JsonPropertyName("CspFrameAncestorsMissing")] CspFrameAncestorsMissing, /// /// PermissionsPolicyBlocked /// [JsonPropertyName("PermissionsPolicyBlocked")] PermissionsPolicyBlocked, /// /// PaddingRightUnsupported /// [JsonPropertyName("PaddingRightUnsupported")] PaddingRightUnsupported, /// /// PaddingBottomUnsupported /// [JsonPropertyName("PaddingBottomUnsupported")] PaddingBottomUnsupported, /// /// InsetBoxShadowUnsupported /// [JsonPropertyName("InsetBoxShadowUnsupported")] InsetBoxShadowUnsupported, /// /// RequestInProgress /// [JsonPropertyName("RequestInProgress")] RequestInProgress, /// /// UntrustedEvent /// [JsonPropertyName("UntrustedEvent")] UntrustedEvent, /// /// RegistrationFailed /// [JsonPropertyName("RegistrationFailed")] RegistrationFailed, /// /// TypeNotSupported /// [JsonPropertyName("TypeNotSupported")] TypeNotSupported, /// /// InvalidTypeActivation /// [JsonPropertyName("InvalidTypeActivation")] InvalidTypeActivation, /// /// SecurityChecksFailed /// [JsonPropertyName("SecurityChecksFailed")] SecurityChecksFailed, /// /// ActivationDisabled /// [JsonPropertyName("ActivationDisabled")] ActivationDisabled, /// /// GeolocationDeprecated /// [JsonPropertyName("GeolocationDeprecated")] GeolocationDeprecated, /// /// InvalidDisplayStyle /// [JsonPropertyName("InvalidDisplayStyle")] InvalidDisplayStyle, /// /// NonOpaqueColor /// [JsonPropertyName("NonOpaqueColor")] NonOpaqueColor, /// /// LowContrast /// [JsonPropertyName("LowContrast")] LowContrast, /// /// FontSizeTooSmall /// [JsonPropertyName("FontSizeTooSmall")] FontSizeTooSmall, /// /// FontSizeTooLarge /// [JsonPropertyName("FontSizeTooLarge")] FontSizeTooLarge, /// /// InvalidSizeValue /// [JsonPropertyName("InvalidSizeValue")] InvalidSizeValue } /// /// This issue warns about improper usage of the <permission> element. /// public partial class PermissionElementIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// IssueType /// [JsonPropertyName("issueType")] public CefSharp.DevTools.Audits.PermissionElementIssueType IssueType { get; set; } /// /// The value of the type attribute. /// [JsonPropertyName("type")] public string Type { get; set; } /// /// The node ID of the <permission> element. /// [JsonPropertyName("nodeId")] public int? NodeId { get; set; } /// /// True if the issue is a warning, false if it is an error. /// [JsonPropertyName("isWarning")] public bool? IsWarning { get; set; } /// /// Fields for message construction: /// Used for messages that reference a specific permission name /// [JsonPropertyName("permissionName")] public string PermissionName { get; set; } /// /// Used for messages about occlusion /// [JsonPropertyName("occluderNodeInfo")] public string OccluderNodeInfo { get; set; } /// /// Used for messages about occluder's parent /// [JsonPropertyName("occluderParentNodeInfo")] public string OccluderParentNodeInfo { get; set; } /// /// Used for messages about activation disabled reason /// [JsonPropertyName("disableReason")] public string DisableReason { get; set; } } /// /// 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 { /// /// CookieIssue /// [JsonPropertyName("CookieIssue")] CookieIssue, /// /// MixedContentIssue /// [JsonPropertyName("MixedContentIssue")] MixedContentIssue, /// /// BlockedByResponseIssue /// [JsonPropertyName("BlockedByResponseIssue")] BlockedByResponseIssue, /// /// HeavyAdIssue /// [JsonPropertyName("HeavyAdIssue")] HeavyAdIssue, /// /// ContentSecurityPolicyIssue /// [JsonPropertyName("ContentSecurityPolicyIssue")] ContentSecurityPolicyIssue, /// /// SharedArrayBufferIssue /// [JsonPropertyName("SharedArrayBufferIssue")] SharedArrayBufferIssue, /// /// LowTextContrastIssue /// [JsonPropertyName("LowTextContrastIssue")] LowTextContrastIssue, /// /// CorsIssue /// [JsonPropertyName("CorsIssue")] CorsIssue, /// /// AttributionReportingIssue /// [JsonPropertyName("AttributionReportingIssue")] AttributionReportingIssue, /// /// QuirksModeIssue /// [JsonPropertyName("QuirksModeIssue")] QuirksModeIssue, /// /// PartitioningBlobURLIssue /// [JsonPropertyName("PartitioningBlobURLIssue")] PartitioningBlobURLIssue, /// /// NavigatorUserAgentIssue /// [JsonPropertyName("NavigatorUserAgentIssue")] NavigatorUserAgentIssue, /// /// GenericIssue /// [JsonPropertyName("GenericIssue")] GenericIssue, /// /// DeprecationIssue /// [JsonPropertyName("DeprecationIssue")] DeprecationIssue, /// /// ClientHintIssue /// [JsonPropertyName("ClientHintIssue")] ClientHintIssue, /// /// FederatedAuthRequestIssue /// [JsonPropertyName("FederatedAuthRequestIssue")] FederatedAuthRequestIssue, /// /// BounceTrackingIssue /// [JsonPropertyName("BounceTrackingIssue")] BounceTrackingIssue, /// /// CookieDeprecationMetadataIssue /// [JsonPropertyName("CookieDeprecationMetadataIssue")] CookieDeprecationMetadataIssue, /// /// StylesheetLoadingIssue /// [JsonPropertyName("StylesheetLoadingIssue")] StylesheetLoadingIssue, /// /// FederatedAuthUserInfoRequestIssue /// [JsonPropertyName("FederatedAuthUserInfoRequestIssue")] FederatedAuthUserInfoRequestIssue, /// /// PropertyRuleIssue /// [JsonPropertyName("PropertyRuleIssue")] PropertyRuleIssue, /// /// SharedDictionaryIssue /// [JsonPropertyName("SharedDictionaryIssue")] SharedDictionaryIssue, /// /// ElementAccessibilityIssue /// [JsonPropertyName("ElementAccessibilityIssue")] ElementAccessibilityIssue, /// /// SRIMessageSignatureIssue /// [JsonPropertyName("SRIMessageSignatureIssue")] SRIMessageSignatureIssue, /// /// UnencodedDigestIssue /// [JsonPropertyName("UnencodedDigestIssue")] UnencodedDigestIssue, /// /// UserReidentificationIssue /// [JsonPropertyName("UserReidentificationIssue")] UserReidentificationIssue, /// /// PermissionElementIssue /// [JsonPropertyName("PermissionElementIssue")] PermissionElementIssue } /// /// 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 partial class InspectorIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CookieIssueDetails /// [JsonPropertyName("cookieIssueDetails")] public CefSharp.DevTools.Audits.CookieIssueDetails CookieIssueDetails { get; set; } /// /// MixedContentIssueDetails /// [JsonPropertyName("mixedContentIssueDetails")] public CefSharp.DevTools.Audits.MixedContentIssueDetails MixedContentIssueDetails { get; set; } /// /// BlockedByResponseIssueDetails /// [JsonPropertyName("blockedByResponseIssueDetails")] public CefSharp.DevTools.Audits.BlockedByResponseIssueDetails BlockedByResponseIssueDetails { get; set; } /// /// HeavyAdIssueDetails /// [JsonPropertyName("heavyAdIssueDetails")] public CefSharp.DevTools.Audits.HeavyAdIssueDetails HeavyAdIssueDetails { get; set; } /// /// ContentSecurityPolicyIssueDetails /// [JsonPropertyName("contentSecurityPolicyIssueDetails")] public CefSharp.DevTools.Audits.ContentSecurityPolicyIssueDetails ContentSecurityPolicyIssueDetails { get; set; } /// /// SharedArrayBufferIssueDetails /// [JsonPropertyName("sharedArrayBufferIssueDetails")] public CefSharp.DevTools.Audits.SharedArrayBufferIssueDetails SharedArrayBufferIssueDetails { get; set; } /// /// LowTextContrastIssueDetails /// [JsonPropertyName("lowTextContrastIssueDetails")] public CefSharp.DevTools.Audits.LowTextContrastIssueDetails LowTextContrastIssueDetails { get; set; } /// /// CorsIssueDetails /// [JsonPropertyName("corsIssueDetails")] public CefSharp.DevTools.Audits.CorsIssueDetails CorsIssueDetails { get; set; } /// /// AttributionReportingIssueDetails /// [JsonPropertyName("attributionReportingIssueDetails")] public CefSharp.DevTools.Audits.AttributionReportingIssueDetails AttributionReportingIssueDetails { get; set; } /// /// QuirksModeIssueDetails /// [JsonPropertyName("quirksModeIssueDetails")] public CefSharp.DevTools.Audits.QuirksModeIssueDetails QuirksModeIssueDetails { get; set; } /// /// PartitioningBlobURLIssueDetails /// [JsonPropertyName("partitioningBlobURLIssueDetails")] public CefSharp.DevTools.Audits.PartitioningBlobURLIssueDetails PartitioningBlobURLIssueDetails { get; set; } /// /// NavigatorUserAgentIssueDetails /// [JsonPropertyName("navigatorUserAgentIssueDetails")] public CefSharp.DevTools.Audits.NavigatorUserAgentIssueDetails NavigatorUserAgentIssueDetails { get; set; } /// /// GenericIssueDetails /// [JsonPropertyName("genericIssueDetails")] public CefSharp.DevTools.Audits.GenericIssueDetails GenericIssueDetails { get; set; } /// /// DeprecationIssueDetails /// [JsonPropertyName("deprecationIssueDetails")] public CefSharp.DevTools.Audits.DeprecationIssueDetails DeprecationIssueDetails { get; set; } /// /// ClientHintIssueDetails /// [JsonPropertyName("clientHintIssueDetails")] public CefSharp.DevTools.Audits.ClientHintIssueDetails ClientHintIssueDetails { get; set; } /// /// FederatedAuthRequestIssueDetails /// [JsonPropertyName("federatedAuthRequestIssueDetails")] public CefSharp.DevTools.Audits.FederatedAuthRequestIssueDetails FederatedAuthRequestIssueDetails { get; set; } /// /// BounceTrackingIssueDetails /// [JsonPropertyName("bounceTrackingIssueDetails")] public CefSharp.DevTools.Audits.BounceTrackingIssueDetails BounceTrackingIssueDetails { get; set; } /// /// CookieDeprecationMetadataIssueDetails /// [JsonPropertyName("cookieDeprecationMetadataIssueDetails")] public CefSharp.DevTools.Audits.CookieDeprecationMetadataIssueDetails CookieDeprecationMetadataIssueDetails { get; set; } /// /// StylesheetLoadingIssueDetails /// [JsonPropertyName("stylesheetLoadingIssueDetails")] public CefSharp.DevTools.Audits.StylesheetLoadingIssueDetails StylesheetLoadingIssueDetails { get; set; } /// /// PropertyRuleIssueDetails /// [JsonPropertyName("propertyRuleIssueDetails")] public CefSharp.DevTools.Audits.PropertyRuleIssueDetails PropertyRuleIssueDetails { get; set; } /// /// FederatedAuthUserInfoRequestIssueDetails /// [JsonPropertyName("federatedAuthUserInfoRequestIssueDetails")] public CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueDetails FederatedAuthUserInfoRequestIssueDetails { get; set; } /// /// SharedDictionaryIssueDetails /// [JsonPropertyName("sharedDictionaryIssueDetails")] public CefSharp.DevTools.Audits.SharedDictionaryIssueDetails SharedDictionaryIssueDetails { get; set; } /// /// ElementAccessibilityIssueDetails /// [JsonPropertyName("elementAccessibilityIssueDetails")] public CefSharp.DevTools.Audits.ElementAccessibilityIssueDetails ElementAccessibilityIssueDetails { get; set; } /// /// SriMessageSignatureIssueDetails /// [JsonPropertyName("sriMessageSignatureIssueDetails")] public CefSharp.DevTools.Audits.SRIMessageSignatureIssueDetails SriMessageSignatureIssueDetails { get; set; } /// /// UnencodedDigestIssueDetails /// [JsonPropertyName("unencodedDigestIssueDetails")] public CefSharp.DevTools.Audits.UnencodedDigestIssueDetails UnencodedDigestIssueDetails { get; set; } /// /// UserReidentificationIssueDetails /// [JsonPropertyName("userReidentificationIssueDetails")] public CefSharp.DevTools.Audits.UserReidentificationIssueDetails UserReidentificationIssueDetails { get; set; } /// /// PermissionElementIssueDetails /// [JsonPropertyName("permissionElementIssueDetails")] public CefSharp.DevTools.Audits.PermissionElementIssueDetails PermissionElementIssueDetails { get; set; } } /// /// An inspector issue reported from the back-end. /// public partial class InspectorIssue : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Code /// [JsonPropertyName("code")] public CefSharp.DevTools.Audits.InspectorIssueCode Code { get; set; } /// /// Details /// [JsonPropertyName("details")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.InspectorIssueDetails Details { get; set; } /// /// A unique id for this issue. May be omitted if no other entity (e.g. /// exception, CDP message, etc.) is referencing this issue. /// [JsonPropertyName("issueId")] public string IssueId { get; set; } } /// /// issueAdded /// public class IssueAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Issue /// [JsonInclude] [JsonPropertyName("issue")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.InspectorIssue Issue { get; private set; } } } namespace CefSharp.DevTools.Autofill { /// /// CreditCard /// public partial class CreditCard : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// 16-digit credit card number. /// [JsonPropertyName("number")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Number { get; set; } /// /// Name of the credit card owner. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// 2-digit expiry month. /// [JsonPropertyName("expiryMonth")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ExpiryMonth { get; set; } /// /// 4-digit expiry year. /// [JsonPropertyName("expiryYear")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ExpiryYear { get; set; } /// /// 3-digit card verification code. /// [JsonPropertyName("cvc")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Cvc { get; set; } } /// /// AddressField /// public partial class AddressField : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// address field name, for example GIVEN_NAME. /// The full list of supported field names: /// https://source.chromium.org/chromium/chromium/src/+/main:components/autofill/core/browser/field_types.cc;l=38 /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// address field value, for example Jon Doe. /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// A list of address fields. /// public partial class AddressFields : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Fields /// [JsonPropertyName("fields")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Fields { get; set; } } /// /// Address /// public partial class Address : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// fields and values defining an address. /// [JsonPropertyName("fields")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Fields { get; set; } } /// /// Defines how an address can be displayed like in chrome://settings/addresses. /// Address UI is a two dimensional array, each inner array is an "address information line", and when rendered in a UI surface should be displayed as such. /// The following address UI for instance: /// [[{name: "GIVE_NAME", value: "Jon"}, {name: "FAMILY_NAME", value: "Doe"}], [{name: "CITY", value: "Munich"}, {name: "ZIP", value: "81456"}]] /// should allow the receiver to render: /// Jon Doe /// Munich 81456 /// public partial class AddressUI : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A two dimension array containing the representation of values from an address profile. /// [JsonPropertyName("addressFields")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList AddressFields { get; set; } } /// /// Specified whether a filled field was done so by using the html autocomplete attribute or autofill heuristics. /// public enum FillingStrategy { /// /// autocompleteAttribute /// [JsonPropertyName("autocompleteAttribute")] AutocompleteAttribute, /// /// autofillInferred /// [JsonPropertyName("autofillInferred")] AutofillInferred } /// /// FilledField /// public partial class FilledField : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The type of the field, e.g text, password etc. /// [JsonPropertyName("htmlType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string HtmlType { get; set; } /// /// the html id /// [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; set; } /// /// the html name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// the field value /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } /// /// The actual field type, e.g FAMILY_NAME /// [JsonPropertyName("autofillType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string AutofillType { get; set; } /// /// The filling strategy /// [JsonPropertyName("fillingStrategy")] public CefSharp.DevTools.Autofill.FillingStrategy FillingStrategy { get; set; } /// /// The frame the field belongs to /// [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; set; } /// /// The form field's DOM node /// [JsonPropertyName("fieldId")] public int FieldId { get; set; } } /// /// Emitted when an address form is filled. /// public class AddressFormFilledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Information about the fields that were filled /// [JsonInclude] [JsonPropertyName("filledFields")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList FilledFields { get; private set; } /// /// An UI representation of the address used to fill the form. /// Consists of a 2D array where each child represents an address/profile line. /// [JsonInclude] [JsonPropertyName("addressUi")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Autofill.AddressUI AddressUi { get; private 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 /// [JsonPropertyName("backgroundFetch")] BackgroundFetch, /// /// backgroundSync /// [JsonPropertyName("backgroundSync")] BackgroundSync, /// /// pushMessaging /// [JsonPropertyName("pushMessaging")] PushMessaging, /// /// notifications /// [JsonPropertyName("notifications")] Notifications, /// /// paymentHandler /// [JsonPropertyName("paymentHandler")] PaymentHandler, /// /// periodicBackgroundSync /// [JsonPropertyName("periodicBackgroundSync")] PeriodicBackgroundSync } /// /// A key-value pair for additional event information to pass along. /// public partial class EventMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key /// [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { get; set; } /// /// Value /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// BackgroundServiceEvent /// public partial class BackgroundServiceEvent : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Timestamp of the event (in seconds). /// [JsonPropertyName("timestamp")] public double Timestamp { get; set; } /// /// The origin this event belongs to. /// [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; set; } /// /// The Service Worker ID that initiated the event. /// [JsonPropertyName("serviceWorkerRegistrationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ServiceWorkerRegistrationId { get; set; } /// /// The Background Service this event belongs to. /// [JsonPropertyName("service")] public CefSharp.DevTools.BackgroundService.ServiceName Service { get; set; } /// /// A description of the event. /// [JsonPropertyName("eventName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string EventName { get; set; } /// /// An identifier that groups related events together. /// [JsonPropertyName("instanceId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InstanceId { get; set; } /// /// A list of event-specific information. /// [JsonPropertyName("eventMetadata")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList EventMetadata { get; set; } /// /// Storage key this event belongs to. /// [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { get; set; } } /// /// Called when the recording state for the service has been updated. /// public class RecordingStateChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// IsRecording /// [JsonInclude] [JsonPropertyName("isRecording")] public bool IsRecording { get; private set; } /// /// Service /// [JsonInclude] [JsonPropertyName("service")] public CefSharp.DevTools.BackgroundService.ServiceName Service { get; private set; } } /// /// Called with all existing backgroundServiceEvents when enabled, and all new /// events afterwards if enabled and recording. /// public class BackgroundServiceEventReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// BackgroundServiceEvent /// [JsonInclude] [JsonPropertyName("backgroundServiceEvent")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.BackgroundService.BackgroundServiceEvent BackgroundServiceEvent { get; private set; } } } namespace CefSharp.DevTools.BluetoothEmulation { /// /// Indicates the various states of Central. /// public enum CentralState { /// /// absent /// [JsonPropertyName("absent")] Absent, /// /// powered-off /// [JsonPropertyName("powered-off")] PoweredOff, /// /// powered-on /// [JsonPropertyName("powered-on")] PoweredOn } /// /// Indicates the various types of GATT event. /// public enum GATTOperationType { /// /// connection /// [JsonPropertyName("connection")] Connection, /// /// discovery /// [JsonPropertyName("discovery")] Discovery } /// /// Indicates the various types of characteristic write. /// public enum CharacteristicWriteType { /// /// write-default-deprecated /// [JsonPropertyName("write-default-deprecated")] WriteDefaultDeprecated, /// /// write-with-response /// [JsonPropertyName("write-with-response")] WriteWithResponse, /// /// write-without-response /// [JsonPropertyName("write-without-response")] WriteWithoutResponse } /// /// Indicates the various types of characteristic operation. /// public enum CharacteristicOperationType { /// /// read /// [JsonPropertyName("read")] Read, /// /// write /// [JsonPropertyName("write")] Write, /// /// subscribe-to-notifications /// [JsonPropertyName("subscribe-to-notifications")] SubscribeToNotifications, /// /// unsubscribe-from-notifications /// [JsonPropertyName("unsubscribe-from-notifications")] UnsubscribeFromNotifications } /// /// Indicates the various types of descriptor operation. /// public enum DescriptorOperationType { /// /// read /// [JsonPropertyName("read")] Read, /// /// write /// [JsonPropertyName("write")] Write } /// /// Stores the manufacturer data /// public partial class ManufacturerData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Company identifier /// https://bitbucket.org/bluetooth-SIG/public/src/main/assigned_numbers/company_identifiers/company_identifiers.yaml /// https://usb.org/developers /// [JsonPropertyName("key")] public int Key { get; set; } /// /// Manufacturer-specific data /// [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] Data { get; set; } } /// /// Stores the byte data of the advertisement packet sent by a Bluetooth device. /// public partial class ScanRecord : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name /// [JsonPropertyName("name")] public string Name { get; set; } /// /// Uuids /// [JsonPropertyName("uuids")] public string[] Uuids { get; set; } /// /// Stores the external appearance description of the device. /// [JsonPropertyName("appearance")] public int? Appearance { get; set; } /// /// Stores the transmission power of a broadcasting device. /// [JsonPropertyName("txPower")] public int? TxPower { get; set; } /// /// Key is the company identifier and the value is an array of bytes of /// manufacturer specific data. /// [JsonPropertyName("manufacturerData")] public System.Collections.Generic.IList ManufacturerData { get; set; } } /// /// Stores the advertisement packet information that is sent by a Bluetooth device. /// public partial class ScanEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// DeviceAddress /// [JsonPropertyName("deviceAddress")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DeviceAddress { get; set; } /// /// Rssi /// [JsonPropertyName("rssi")] public int Rssi { get; set; } /// /// ScanRecord /// [JsonPropertyName("scanRecord")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.BluetoothEmulation.ScanRecord ScanRecord { get; set; } } /// /// Describes the properties of a characteristic. This follows Bluetooth Core /// Specification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties. /// public partial class CharacteristicProperties : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Broadcast /// [JsonPropertyName("broadcast")] public bool? Broadcast { get; set; } /// /// Read /// [JsonPropertyName("read")] public bool? Read { get; set; } /// /// WriteWithoutResponse /// [JsonPropertyName("writeWithoutResponse")] public bool? WriteWithoutResponse { get; set; } /// /// Write /// [JsonPropertyName("write")] public bool? Write { get; set; } /// /// Notify /// [JsonPropertyName("notify")] public bool? Notify { get; set; } /// /// Indicate /// [JsonPropertyName("indicate")] public bool? Indicate { get; set; } /// /// AuthenticatedSignedWrites /// [JsonPropertyName("authenticatedSignedWrites")] public bool? AuthenticatedSignedWrites { get; set; } /// /// ExtendedProperties /// [JsonPropertyName("extendedProperties")] public bool? ExtendedProperties { get; set; } } /// /// Event for when a GATT operation of |type| to the peripheral with |address| /// happened. /// public class GattOperationReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Address /// [JsonInclude] [JsonPropertyName("address")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Address { get; private set; } /// /// Type /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.BluetoothEmulation.GATTOperationType Type { get; private set; } } /// /// Event for when a characteristic operation of |type| to the characteristic /// respresented by |characteristicId| happened. |data| and |writeType| is /// expected to exist when |type| is write. /// public class CharacteristicOperationReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// CharacteristicId /// [JsonInclude] [JsonPropertyName("characteristicId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CharacteristicId { get; private set; } /// /// Type /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.BluetoothEmulation.CharacteristicOperationType Type { get; private set; } /// /// Data /// [JsonInclude] [JsonPropertyName("data")] public byte[] Data { get; private set; } /// /// WriteType /// [JsonInclude] [JsonPropertyName("writeType")] public CefSharp.DevTools.BluetoothEmulation.CharacteristicWriteType? WriteType { get; private set; } } /// /// Event for when a descriptor operation of |type| to the descriptor /// respresented by |descriptorId| happened. |data| is expected to exist when /// |type| is write. /// public class DescriptorOperationReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// DescriptorId /// [JsonInclude] [JsonPropertyName("descriptorId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DescriptorId { get; private set; } /// /// Type /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.BluetoothEmulation.DescriptorOperationType Type { get; private set; } /// /// Data /// [JsonInclude] [JsonPropertyName("data")] public byte[] Data { get; private set; } } } namespace CefSharp.DevTools.Browser { /// /// The state of the browser window. /// public enum WindowState { /// /// normal /// [JsonPropertyName("normal")] Normal, /// /// minimized /// [JsonPropertyName("minimized")] Minimized, /// /// maximized /// [JsonPropertyName("maximized")] Maximized, /// /// fullscreen /// [JsonPropertyName("fullscreen")] Fullscreen } /// /// Browser window bounds information /// public partial class Bounds : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The offset from the left edge of the screen to the window in pixels. /// [JsonPropertyName("left")] public int? Left { get; set; } /// /// The offset from the top edge of the screen to the window in pixels. /// [JsonPropertyName("top")] public int? Top { get; set; } /// /// The window width in pixels. /// [JsonPropertyName("width")] public int? Width { get; set; } /// /// The window height in pixels. /// [JsonPropertyName("height")] public int? Height { get; set; } /// /// The window state. Default to normal. /// [JsonPropertyName("windowState")] public CefSharp.DevTools.Browser.WindowState? WindowState { get; set; } } /// /// PermissionType /// public enum PermissionType { /// /// ar /// [JsonPropertyName("ar")] Ar, /// /// audioCapture /// [JsonPropertyName("audioCapture")] AudioCapture, /// /// automaticFullscreen /// [JsonPropertyName("automaticFullscreen")] AutomaticFullscreen, /// /// backgroundFetch /// [JsonPropertyName("backgroundFetch")] BackgroundFetch, /// /// backgroundSync /// [JsonPropertyName("backgroundSync")] BackgroundSync, /// /// cameraPanTiltZoom /// [JsonPropertyName("cameraPanTiltZoom")] CameraPanTiltZoom, /// /// capturedSurfaceControl /// [JsonPropertyName("capturedSurfaceControl")] CapturedSurfaceControl, /// /// clipboardReadWrite /// [JsonPropertyName("clipboardReadWrite")] ClipboardReadWrite, /// /// clipboardSanitizedWrite /// [JsonPropertyName("clipboardSanitizedWrite")] ClipboardSanitizedWrite, /// /// displayCapture /// [JsonPropertyName("displayCapture")] DisplayCapture, /// /// durableStorage /// [JsonPropertyName("durableStorage")] DurableStorage, /// /// geolocation /// [JsonPropertyName("geolocation")] Geolocation, /// /// handTracking /// [JsonPropertyName("handTracking")] HandTracking, /// /// idleDetection /// [JsonPropertyName("idleDetection")] IdleDetection, /// /// keyboardLock /// [JsonPropertyName("keyboardLock")] KeyboardLock, /// /// localFonts /// [JsonPropertyName("localFonts")] LocalFonts, /// /// localNetwork /// [JsonPropertyName("localNetwork")] LocalNetwork, /// /// localNetworkAccess /// [JsonPropertyName("localNetworkAccess")] LocalNetworkAccess, /// /// loopbackNetwork /// [JsonPropertyName("loopbackNetwork")] LoopbackNetwork, /// /// midi /// [JsonPropertyName("midi")] Midi, /// /// midiSysex /// [JsonPropertyName("midiSysex")] MidiSysex, /// /// nfc /// [JsonPropertyName("nfc")] Nfc, /// /// notifications /// [JsonPropertyName("notifications")] Notifications, /// /// paymentHandler /// [JsonPropertyName("paymentHandler")] PaymentHandler, /// /// periodicBackgroundSync /// [JsonPropertyName("periodicBackgroundSync")] PeriodicBackgroundSync, /// /// pointerLock /// [JsonPropertyName("pointerLock")] PointerLock, /// /// protectedMediaIdentifier /// [JsonPropertyName("protectedMediaIdentifier")] ProtectedMediaIdentifier, /// /// sensors /// [JsonPropertyName("sensors")] Sensors, /// /// smartCard /// [JsonPropertyName("smartCard")] SmartCard, /// /// speakerSelection /// [JsonPropertyName("speakerSelection")] SpeakerSelection, /// /// storageAccess /// [JsonPropertyName("storageAccess")] StorageAccess, /// /// topLevelStorageAccess /// [JsonPropertyName("topLevelStorageAccess")] TopLevelStorageAccess, /// /// videoCapture /// [JsonPropertyName("videoCapture")] VideoCapture, /// /// vr /// [JsonPropertyName("vr")] Vr, /// /// wakeLockScreen /// [JsonPropertyName("wakeLockScreen")] WakeLockScreen, /// /// wakeLockSystem /// [JsonPropertyName("wakeLockSystem")] WakeLockSystem, /// /// webAppInstallation /// [JsonPropertyName("webAppInstallation")] WebAppInstallation, /// /// webPrinting /// [JsonPropertyName("webPrinting")] WebPrinting, /// /// windowManagement /// [JsonPropertyName("windowManagement")] WindowManagement } /// /// PermissionSetting /// public enum PermissionSetting { /// /// granted /// [JsonPropertyName("granted")] Granted, /// /// denied /// [JsonPropertyName("denied")] Denied, /// /// prompt /// [JsonPropertyName("prompt")] Prompt } /// /// Definition of PermissionDescriptor defined in the Permissions API: /// https://w3c.github.io/permissions/#dom-permissiondescriptor. /// public partial 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. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// For "midi" permission, may also specify sysex control. /// [JsonPropertyName("sysex")] public bool? Sysex { get; set; } /// /// For "push" permission, may specify userVisibleOnly. /// Note that userVisibleOnly = true is the only currently supported type. /// [JsonPropertyName("userVisibleOnly")] public bool? UserVisibleOnly { get; set; } /// /// For "clipboard" permission, may specify allowWithoutSanitization. /// [JsonPropertyName("allowWithoutSanitization")] public bool? AllowWithoutSanitization { get; set; } /// /// For "fullscreen" permission, must specify allowWithoutGesture:true. /// [JsonPropertyName("allowWithoutGesture")] public bool? AllowWithoutGesture { get; set; } /// /// For "camera" permission, may specify panTiltZoom. /// [JsonPropertyName("panTiltZoom")] public bool? PanTiltZoom { get; set; } } /// /// Browser command ids used by executeBrowserCommand. /// public enum BrowserCommandId { /// /// openTabSearch /// [JsonPropertyName("openTabSearch")] OpenTabSearch, /// /// closeTabSearch /// [JsonPropertyName("closeTabSearch")] CloseTabSearch, /// /// openGlic /// [JsonPropertyName("openGlic")] OpenGlic } /// /// Chrome histogram bucket. /// public partial class Bucket : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Minimum value (inclusive). /// [JsonPropertyName("low")] public int Low { get; set; } /// /// Maximum value (exclusive). /// [JsonPropertyName("high")] public int High { get; set; } /// /// Number of samples. /// [JsonPropertyName("count")] public int Count { get; set; } } /// /// Chrome histogram. /// public partial class Histogram : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Sum of sample values. /// [JsonPropertyName("sum")] public int Sum { get; set; } /// /// Total number of samples. /// [JsonPropertyName("count")] public int Count { get; set; } /// /// Buckets. /// [JsonPropertyName("buckets")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Buckets { get; set; } } /// /// PrivacySandboxAPI /// public enum PrivacySandboxAPI { /// /// BiddingAndAuctionServices /// [JsonPropertyName("BiddingAndAuctionServices")] BiddingAndAuctionServices, /// /// TrustedKeyValue /// [JsonPropertyName("TrustedKeyValue")] TrustedKeyValue } /// /// Fired when page is about to start a download. /// public class DownloadWillBeginEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame that caused the download to begin. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// Global unique identifier of the download. /// [JsonInclude] [JsonPropertyName("guid")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Guid { get; private set; } /// /// URL of the resource being downloaded. /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Suggested file name of the resource (the actual name of the file saved on disk may differ). /// [JsonInclude] [JsonPropertyName("suggestedFilename")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SuggestedFilename { get; private set; } } /// /// Download status. /// public enum DownloadProgressState { /// /// inProgress /// [JsonPropertyName("inProgress")] InProgress, /// /// completed /// [JsonPropertyName("completed")] Completed, /// /// canceled /// [JsonPropertyName("canceled")] Canceled } /// /// Fired when download makes progress. Last call has |done| == true. /// public class DownloadProgressEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Global unique identifier of the download. /// [JsonInclude] [JsonPropertyName("guid")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Guid { get; private set; } /// /// Total expected bytes to download. /// [JsonInclude] [JsonPropertyName("totalBytes")] public double TotalBytes { get; private set; } /// /// Total bytes received. /// [JsonInclude] [JsonPropertyName("receivedBytes")] public double ReceivedBytes { get; private set; } /// /// Download status. /// [JsonInclude] [JsonPropertyName("state")] public CefSharp.DevTools.Browser.DownloadProgressState State { get; private set; } /// /// If download is "completed", provides the path of the downloaded file. /// Depending on the platform, it is not guaranteed to be set, nor the file /// is guaranteed to exist. /// [JsonInclude] [JsonPropertyName("filePath")] public string FilePath { get; private 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 /// [JsonPropertyName("injected")] Injected, /// /// user-agent /// [JsonPropertyName("user-agent")] UserAgent, /// /// inspector /// [JsonPropertyName("inspector")] Inspector, /// /// regular /// [JsonPropertyName("regular")] Regular } /// /// CSS rule collection for a single pseudo style. /// public partial class PseudoElementMatches : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Pseudo element type. /// [JsonPropertyName("pseudoType")] public CefSharp.DevTools.DOM.PseudoType PseudoType { get; set; } /// /// Pseudo element custom ident. /// [JsonPropertyName("pseudoIdentifier")] public string PseudoIdentifier { get; set; } /// /// Matches of CSS rules applicable to the pseudo style. /// [JsonPropertyName("matches")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Matches { get; set; } } /// /// CSS style coming from animations with the name of the animation. /// public partial class CSSAnimationStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The name of the animation. /// [JsonPropertyName("name")] public string Name { get; set; } /// /// The style coming from the animation. /// [JsonPropertyName("style")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSStyle Style { get; set; } } /// /// Inherited CSS rule collection from ancestor node. /// public partial class InheritedStyleEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The ancestor node's inline style, if any, in the style inheritance chain. /// [JsonPropertyName("inlineStyle")] public CefSharp.DevTools.CSS.CSSStyle InlineStyle { get; set; } /// /// Matches of CSS rules matching the ancestor node in the style inheritance chain. /// [JsonPropertyName("matchedCSSRules")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList MatchedCSSRules { get; set; } } /// /// Inherited CSS style collection for animated styles from ancestor node. /// public partial class InheritedAnimatedStyleEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Styles coming from the animations of the ancestor, if any, in the style inheritance chain. /// [JsonPropertyName("animationStyles")] public System.Collections.Generic.IList AnimationStyles { get; set; } /// /// The style coming from the transitions of the ancestor, if any, in the style inheritance chain. /// [JsonPropertyName("transitionsStyle")] public CefSharp.DevTools.CSS.CSSStyle TransitionsStyle { get; set; } } /// /// Inherited pseudo element matches from pseudos of an ancestor node. /// public partial class InheritedPseudoElementMatches : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Matches of pseudo styles from the pseudos of an ancestor node. /// [JsonPropertyName("pseudoElements")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList PseudoElements { get; set; } } /// /// Match data for a CSS rule. /// public partial class RuleMatch : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CSS rule in the match. /// [JsonPropertyName("rule")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSRule Rule { get; set; } /// /// Matching selector indices in the rule's selectorList selectors (0-based). /// [JsonPropertyName("matchingSelectors")] public int[] MatchingSelectors { get; set; } } /// /// Data for a simple selector (these are delimited by commas in a selector list). /// public partial class Value : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Value text. /// [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { get; set; } /// /// Value range in the underlying resource (if available). /// [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; set; } /// /// Specificity of the selector. /// [JsonPropertyName("specificity")] public CefSharp.DevTools.CSS.Specificity Specificity { get; set; } } /// /// Specificity: /// https://drafts.csswg.org/selectors/#specificity-rules /// public partial class Specificity : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The a component, which represents the number of ID selectors. /// [JsonPropertyName("a")] public int A { get; set; } /// /// The b component, which represents the number of class selectors, attributes selectors, and /// pseudo-classes. /// [JsonPropertyName("b")] public int B { get; set; } /// /// The c component, which represents the number of type selectors and pseudo-elements. /// [JsonPropertyName("c")] public int C { get; set; } } /// /// Selector list data. /// public partial class SelectorList : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Selectors in the list. /// [JsonPropertyName("selectors")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Selectors { get; set; } /// /// Rule selector text. /// [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { get; set; } } /// /// CSS stylesheet metainformation. /// public partial class CSSStyleSheetHeader : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The stylesheet identifier. /// [JsonPropertyName("styleSheetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StyleSheetId { get; set; } /// /// Owner frame identifier. /// [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; set; } /// /// Stylesheet resource URL. Empty if this is a constructed stylesheet created using /// new CSSStyleSheet() (but non-empty if this is a constructed stylesheet imported /// as a CSS module script). /// [JsonPropertyName("sourceURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceURL { get; set; } /// /// URL of source map associated with the stylesheet (if any). /// [JsonPropertyName("sourceMapURL")] public string SourceMapURL { get; set; } /// /// Stylesheet origin. /// [JsonPropertyName("origin")] public CefSharp.DevTools.CSS.StyleSheetOrigin Origin { get; set; } /// /// Stylesheet title. /// [JsonPropertyName("title")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Title { get; set; } /// /// The backend id for the owner node of the stylesheet. /// [JsonPropertyName("ownerNode")] public int? OwnerNode { get; set; } /// /// Denotes whether the stylesheet is disabled. /// [JsonPropertyName("disabled")] public bool Disabled { get; set; } /// /// Whether the sourceURL field value comes from the sourceURL comment. /// [JsonPropertyName("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. /// [JsonPropertyName("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. /// [JsonPropertyName("isMutable")] public bool IsMutable { get; set; } /// /// True if this stylesheet is created through new CSSStyleSheet() or imported as a /// CSS module script. /// [JsonPropertyName("isConstructed")] public bool IsConstructed { get; set; } /// /// Line offset of the stylesheet within the resource (zero based). /// [JsonPropertyName("startLine")] public double StartLine { get; set; } /// /// Column offset of the stylesheet within the resource (zero based). /// [JsonPropertyName("startColumn")] public double StartColumn { get; set; } /// /// Size of the content (in characters). /// [JsonPropertyName("length")] public double Length { get; set; } /// /// Line offset of the end of the stylesheet within the resource (zero based). /// [JsonPropertyName("endLine")] public double EndLine { get; set; } /// /// Column offset of the end of the stylesheet within the resource (zero based). /// [JsonPropertyName("endColumn")] public double EndColumn { get; set; } /// /// If the style sheet was loaded from a network resource, this indicates when the resource failed to load /// [JsonPropertyName("loadingFailed")] public bool? LoadingFailed { get; set; } } /// /// CSS rule representation. /// public partial class CSSRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } /// /// Rule selector data. /// [JsonPropertyName("selectorList")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.SelectorList SelectorList { get; set; } /// /// Array of selectors from ancestor style rules, sorted by distance from the current rule. /// [JsonPropertyName("nestingSelectors")] public string[] NestingSelectors { get; set; } /// /// Parent stylesheet's origin. /// [JsonPropertyName("origin")] public CefSharp.DevTools.CSS.StyleSheetOrigin Origin { get; set; } /// /// Associated style declaration. /// [JsonPropertyName("style")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSStyle Style { get; set; } /// /// The BackendNodeId of the DOM node that constitutes the origin tree scope of this rule. /// [JsonPropertyName("originTreeScopeNodeId")] public int? OriginTreeScopeNodeId { get; set; } /// /// Media list array (for rules involving media queries). The array enumerates media queries /// starting with the innermost one, going outwards. /// [JsonPropertyName("media")] public System.Collections.Generic.IList Media { get; set; } /// /// Container query list array (for rules involving container queries). /// The array enumerates container queries starting with the innermost one, going outwards. /// [JsonPropertyName("containerQueries")] public System.Collections.Generic.IList ContainerQueries { get; set; } /// /// @supports CSS at-rule array. /// The array enumerates @supports at-rules starting with the innermost one, going outwards. /// [JsonPropertyName("supports")] public System.Collections.Generic.IList Supports { get; set; } /// /// Cascade layer array. Contains the layer hierarchy that this rule belongs to starting /// with the innermost layer and going outwards. /// [JsonPropertyName("layers")] public System.Collections.Generic.IList Layers { get; set; } /// /// @scope CSS at-rule array. /// The array enumerates @scope at-rules starting with the innermost one, going outwards. /// [JsonPropertyName("scopes")] public System.Collections.Generic.IList Scopes { get; set; } /// /// The array keeps the types of ancestor CSSRules from the innermost going outwards. /// [JsonPropertyName("ruleTypes")] public CefSharp.DevTools.CSS.CSSRuleType[] RuleTypes { get; set; } /// /// @starting-style CSS at-rule array. /// The array enumerates @starting-style at-rules starting with the innermost one, going outwards. /// [JsonPropertyName("startingStyles")] public System.Collections.Generic.IList StartingStyles { get; set; } } /// /// Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors. /// This list only contains rule types that are collected during the ancestor rule collection. /// public enum CSSRuleType { /// /// MediaRule /// [JsonPropertyName("MediaRule")] MediaRule, /// /// SupportsRule /// [JsonPropertyName("SupportsRule")] SupportsRule, /// /// ContainerRule /// [JsonPropertyName("ContainerRule")] ContainerRule, /// /// LayerRule /// [JsonPropertyName("LayerRule")] LayerRule, /// /// ScopeRule /// [JsonPropertyName("ScopeRule")] ScopeRule, /// /// StyleRule /// [JsonPropertyName("StyleRule")] StyleRule, /// /// StartingStyleRule /// [JsonPropertyName("StartingStyleRule")] StartingStyleRule } /// /// CSS coverage information. /// public partial class RuleUsage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// [JsonPropertyName("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. /// [JsonPropertyName("startOffset")] public double StartOffset { get; set; } /// /// Offset of the end of the rule body from the beginning of the stylesheet. /// [JsonPropertyName("endOffset")] public double EndOffset { get; set; } /// /// Indicates whether the rule was actually used by some element in the page. /// [JsonPropertyName("used")] public bool Used { get; set; } } /// /// Text range within a resource. All numbers are zero-based. /// public partial class SourceRange : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Start line of range. /// [JsonPropertyName("startLine")] public int StartLine { get; set; } /// /// Start column of range (inclusive). /// [JsonPropertyName("startColumn")] public int StartColumn { get; set; } /// /// End line of range /// [JsonPropertyName("endLine")] public int EndLine { get; set; } /// /// End column of range (exclusive). /// [JsonPropertyName("endColumn")] public int EndColumn { get; set; } } /// /// ShorthandEntry /// public partial class ShorthandEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Shorthand name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Shorthand value. /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } /// /// Whether the property has "!important" annotation (implies `false` if absent). /// [JsonPropertyName("important")] public bool? Important { get; set; } } /// /// CSSComputedStyleProperty /// public partial class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Computed style property name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Computed style property value. /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// ComputedStyleExtraFields /// public partial class ComputedStyleExtraFields : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Returns whether or not this node is being rendered with base appearance, /// which happens when it has its appearance property set to base/base-select /// or it is in the subtree of an element being rendered with base appearance. /// [JsonPropertyName("isAppearanceBase")] public bool IsAppearanceBase { get; set; } } /// /// CSS style representation. /// public partial class CSSStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } /// /// CSS properties in the style. /// [JsonPropertyName("cssProperties")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList CssProperties { get; set; } /// /// Computed values for all shorthands found in the style. /// [JsonPropertyName("shorthandEntries")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ShorthandEntries { get; set; } /// /// Style declaration text (if available). /// [JsonPropertyName("cssText")] public string CssText { get; set; } /// /// Style declaration range in the enclosing stylesheet (if available). /// [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; set; } } /// /// CSS property declaration data. /// public partial class CSSProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The property name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// The property value. /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } /// /// Whether the property has "!important" annotation (implies `false` if absent). /// [JsonPropertyName("important")] public bool? Important { get; set; } /// /// Whether the property is implicit (implies `false` if absent). /// [JsonPropertyName("implicit")] public bool? Implicit { get; set; } /// /// The full property text as specified in the style. /// [JsonPropertyName("text")] public string Text { get; set; } /// /// Whether the property is understood by the browser (implies `true` if absent). /// [JsonPropertyName("parsedOk")] public bool? ParsedOk { get; set; } /// /// Whether the property is disabled by the user (present for source-based properties only). /// [JsonPropertyName("disabled")] public bool? Disabled { get; set; } /// /// The entire property range in the enclosing style declaration (if available). /// [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; set; } /// /// Parsed longhand components of this property if it is a shorthand. /// This field will be empty if the given property is not a shorthand. /// [JsonPropertyName("longhandProperties")] public System.Collections.Generic.IList LonghandProperties { 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. /// public enum CSSMediaSource { /// /// mediaRule /// [JsonPropertyName("mediaRule")] MediaRule, /// /// importRule /// [JsonPropertyName("importRule")] ImportRule, /// /// linkedSheet /// [JsonPropertyName("linkedSheet")] LinkedSheet, /// /// inlineSheet /// [JsonPropertyName("inlineSheet")] InlineSheet } /// /// CSS media rule descriptor. /// public partial class CSSMedia : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Media query text. /// [JsonPropertyName("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. /// [JsonPropertyName("source")] public CefSharp.DevTools.CSS.CSSMediaSource Source { get; set; } /// /// URL of the document containing the media query description. /// [JsonPropertyName("sourceURL")] public string SourceURL { get; set; } /// /// The associated rule (@media or @import) header range in the enclosing stylesheet (if /// available). /// [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; set; } /// /// Identifier of the stylesheet containing this object (if exists). /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } /// /// Array of media queries. /// [JsonPropertyName("mediaList")] public System.Collections.Generic.IList MediaList { get; set; } } /// /// Media query descriptor. /// public partial class MediaQuery : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Array of media query expressions. /// [JsonPropertyName("expressions")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Expressions { get; set; } /// /// Whether the media query condition is satisfied. /// [JsonPropertyName("active")] public bool Active { get; set; } } /// /// Media query expression descriptor. /// public partial class MediaQueryExpression : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Media query expression value. /// [JsonPropertyName("value")] public double Value { get; set; } /// /// Media query expression units. /// [JsonPropertyName("unit")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Unit { get; set; } /// /// Media query expression feature. /// [JsonPropertyName("feature")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Feature { get; set; } /// /// The associated range of the value text in the enclosing stylesheet (if available). /// [JsonPropertyName("valueRange")] public CefSharp.DevTools.CSS.SourceRange ValueRange { get; set; } /// /// Computed length of media query expression (if applicable). /// [JsonPropertyName("computedLength")] public double? ComputedLength { get; set; } } /// /// CSS container query rule descriptor. /// public partial class CSSContainerQuery : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Container query text. /// [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { get; set; } /// /// The associated rule header range in the enclosing stylesheet (if /// available). /// [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; set; } /// /// Identifier of the stylesheet containing this object (if exists). /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } /// /// Optional name for the container. /// [JsonPropertyName("name")] public string Name { get; set; } /// /// Optional physical axes queried for the container. /// [JsonPropertyName("physicalAxes")] public CefSharp.DevTools.DOM.PhysicalAxes? PhysicalAxes { get; set; } /// /// Optional logical axes queried for the container. /// [JsonPropertyName("logicalAxes")] public CefSharp.DevTools.DOM.LogicalAxes? LogicalAxes { get; set; } /// /// true if the query contains scroll-state() queries. /// [JsonPropertyName("queriesScrollState")] public bool? QueriesScrollState { get; set; } /// /// true if the query contains anchored() queries. /// [JsonPropertyName("queriesAnchored")] public bool? QueriesAnchored { get; set; } } /// /// CSS Supports at-rule descriptor. /// public partial class CSSSupports : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Supports rule text. /// [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { get; set; } /// /// Whether the supports condition is satisfied. /// [JsonPropertyName("active")] public bool Active { get; set; } /// /// The associated rule header range in the enclosing stylesheet (if /// available). /// [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; set; } /// /// Identifier of the stylesheet containing this object (if exists). /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } } /// /// CSS Scope at-rule descriptor. /// public partial class CSSScope : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Scope rule text. /// [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { get; set; } /// /// The associated rule header range in the enclosing stylesheet (if /// available). /// [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; set; } /// /// Identifier of the stylesheet containing this object (if exists). /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } } /// /// CSS Layer at-rule descriptor. /// public partial class CSSLayer : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Layer name. /// [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { get; set; } /// /// The associated rule header range in the enclosing stylesheet (if /// available). /// [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; set; } /// /// Identifier of the stylesheet containing this object (if exists). /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } } /// /// CSS Starting Style at-rule descriptor. /// public partial class CSSStartingStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The associated rule header range in the enclosing stylesheet (if /// available). /// [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; set; } /// /// Identifier of the stylesheet containing this object (if exists). /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } } /// /// CSS Layer data. /// public partial class CSSLayerData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Layer name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Direct sub-layers /// [JsonPropertyName("subLayers")] public System.Collections.Generic.IList SubLayers { get; set; } /// /// Layer order. The order determines the order of the layer in the cascade order. /// A higher number has higher priority in the cascade order. /// [JsonPropertyName("order")] public double Order { get; set; } } /// /// Information about amount of glyphs that were rendered with given font. /// public partial class PlatformFontUsage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Font's family name reported by platform. /// [JsonPropertyName("familyName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FamilyName { get; set; } /// /// Font's PostScript name reported by platform. /// [JsonPropertyName("postScriptName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PostScriptName { get; set; } /// /// Indicates if the font was downloaded or resolved locally. /// [JsonPropertyName("isCustomFont")] public bool IsCustomFont { get; set; } /// /// Amount of glyphs that were rendered with this font. /// [JsonPropertyName("glyphCount")] public double GlyphCount { get; set; } } /// /// Information about font variation axes for variable fonts /// public partial class FontVariationAxis : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The font-variation-setting tag (a.k.a. "axis tag"). /// [JsonPropertyName("tag")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Tag { get; set; } /// /// Human-readable variation name in the default language (normally, "en"). /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// The minimum value (inclusive) the font supports for this tag. /// [JsonPropertyName("minValue")] public double MinValue { get; set; } /// /// The maximum value (inclusive) the font supports for this tag. /// [JsonPropertyName("maxValue")] public double MaxValue { get; set; } /// /// The default value. /// [JsonPropertyName("defaultValue")] public double DefaultValue { get; set; } } /// /// 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 partial class FontFace : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The font-family. /// [JsonPropertyName("fontFamily")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontFamily { get; set; } /// /// The font-style. /// [JsonPropertyName("fontStyle")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontStyle { get; set; } /// /// The font-variant. /// [JsonPropertyName("fontVariant")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontVariant { get; set; } /// /// The font-weight. /// [JsonPropertyName("fontWeight")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontWeight { get; set; } /// /// The font-stretch. /// [JsonPropertyName("fontStretch")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontStretch { get; set; } /// /// The font-display. /// [JsonPropertyName("fontDisplay")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontDisplay { get; set; } /// /// The unicode-range. /// [JsonPropertyName("unicodeRange")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string UnicodeRange { get; set; } /// /// The src. /// [JsonPropertyName("src")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Src { get; set; } /// /// The resolved platform font family /// [JsonPropertyName("platformFontFamily")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlatformFontFamily { get; set; } /// /// Available variation settings (a.k.a. "axes"). /// [JsonPropertyName("fontVariationAxes")] public System.Collections.Generic.IList FontVariationAxes { get; set; } } /// /// CSS try rule representation. /// public partial class CSSTryRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } /// /// Parent stylesheet's origin. /// [JsonPropertyName("origin")] public CefSharp.DevTools.CSS.StyleSheetOrigin Origin { get; set; } /// /// Associated style declaration. /// [JsonPropertyName("style")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSStyle Style { get; set; } } /// /// CSS @position-try rule representation. /// public partial class CSSPositionTryRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The prelude dashed-ident name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.Value Name { get; set; } /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } /// /// Parent stylesheet's origin. /// [JsonPropertyName("origin")] public CefSharp.DevTools.CSS.StyleSheetOrigin Origin { get; set; } /// /// Associated style declaration. /// [JsonPropertyName("style")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSStyle Style { get; set; } /// /// Active /// [JsonPropertyName("active")] public bool Active { get; set; } } /// /// CSS keyframes rule representation. /// public partial class CSSKeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Animation name. /// [JsonPropertyName("animationName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.Value AnimationName { get; set; } /// /// List of keyframes. /// [JsonPropertyName("keyframes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Keyframes { get; set; } } /// /// Representation of a custom property registration through CSS.registerProperty /// public partial class CSSPropertyRegistration : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// PropertyName /// [JsonPropertyName("propertyName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PropertyName { get; set; } /// /// InitialValue /// [JsonPropertyName("initialValue")] public CefSharp.DevTools.CSS.Value InitialValue { get; set; } /// /// Inherits /// [JsonPropertyName("inherits")] public bool Inherits { get; set; } /// /// Syntax /// [JsonPropertyName("syntax")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Syntax { get; set; } } /// /// Type of at-rule. /// public enum CSSAtRuleType { /// /// font-face /// [JsonPropertyName("font-face")] FontFace, /// /// font-feature-values /// [JsonPropertyName("font-feature-values")] FontFeatureValues, /// /// font-palette-values /// [JsonPropertyName("font-palette-values")] FontPaletteValues } /// /// Subsection of font-feature-values, if this is a subsection. /// public enum CSSAtRuleSubsection { /// /// swash /// [JsonPropertyName("swash")] Swash, /// /// annotation /// [JsonPropertyName("annotation")] Annotation, /// /// ornaments /// [JsonPropertyName("ornaments")] Ornaments, /// /// stylistic /// [JsonPropertyName("stylistic")] Stylistic, /// /// styleset /// [JsonPropertyName("styleset")] Styleset, /// /// character-variant /// [JsonPropertyName("character-variant")] CharacterVariant } /// /// CSS generic @rule representation. /// public partial class CSSAtRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type of at-rule. /// [JsonPropertyName("type")] public CefSharp.DevTools.CSS.CSSAtRuleType Type { get; set; } /// /// Subsection of font-feature-values, if this is a subsection. /// [JsonPropertyName("subsection")] public CefSharp.DevTools.CSS.CSSAtRuleSubsection? Subsection { get; set; } /// /// LINT.ThenChange(//third_party/blink/renderer/core/inspector/inspector_style_sheet.cc:FontVariantAlternatesFeatureType,//third_party/blink/renderer/core/inspector/inspector_css_agent.cc:FontVariantAlternatesFeatureType) /// Associated name, if applicable. /// [JsonPropertyName("name")] public CefSharp.DevTools.CSS.Value Name { get; set; } /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } /// /// Parent stylesheet's origin. /// [JsonPropertyName("origin")] public CefSharp.DevTools.CSS.StyleSheetOrigin Origin { get; set; } /// /// Associated style declaration. /// [JsonPropertyName("style")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSStyle Style { get; set; } } /// /// CSS property at-rule representation. /// public partial class CSSPropertyRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } /// /// Parent stylesheet's origin. /// [JsonPropertyName("origin")] public CefSharp.DevTools.CSS.StyleSheetOrigin Origin { get; set; } /// /// Associated property name. /// [JsonPropertyName("propertyName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.Value PropertyName { get; set; } /// /// Associated style declaration. /// [JsonPropertyName("style")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSStyle Style { get; set; } } /// /// CSS function argument representation. /// public partial class CSSFunctionParameter : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The parameter name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// The parameter type. /// [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { get; set; } } /// /// CSS function conditional block representation. /// public partial class CSSFunctionConditionNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Media query for this conditional block. Only one type of condition should be set. /// [JsonPropertyName("media")] public CefSharp.DevTools.CSS.CSSMedia Media { get; set; } /// /// Container query for this conditional block. Only one type of condition should be set. /// [JsonPropertyName("containerQueries")] public CefSharp.DevTools.CSS.CSSContainerQuery ContainerQueries { get; set; } /// /// @supports CSS at-rule condition. Only one type of condition should be set. /// [JsonPropertyName("supports")] public CefSharp.DevTools.CSS.CSSSupports Supports { get; set; } /// /// Block body. /// [JsonPropertyName("children")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Children { get; set; } /// /// The condition text. /// [JsonPropertyName("conditionText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ConditionText { get; set; } } /// /// Section of the body of a CSS function rule. /// public partial class CSSFunctionNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A conditional block. If set, style should not be set. /// [JsonPropertyName("condition")] public CefSharp.DevTools.CSS.CSSFunctionConditionNode Condition { get; set; } /// /// Values set by this node. If set, condition should not be set. /// [JsonPropertyName("style")] public CefSharp.DevTools.CSS.CSSStyle Style { get; set; } } /// /// CSS function at-rule representation. /// public partial class CSSFunctionRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of the function. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.Value Name { get; set; } /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } /// /// Parent stylesheet's origin. /// [JsonPropertyName("origin")] public CefSharp.DevTools.CSS.StyleSheetOrigin Origin { get; set; } /// /// List of parameters. /// [JsonPropertyName("parameters")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Parameters { get; set; } /// /// Function body. /// [JsonPropertyName("children")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Children { get; set; } } /// /// CSS keyframe rule representation. /// public partial class CSSKeyframeRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; set; } /// /// Parent stylesheet's origin. /// [JsonPropertyName("origin")] public CefSharp.DevTools.CSS.StyleSheetOrigin Origin { get; set; } /// /// Associated key text. /// [JsonPropertyName("keyText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.Value KeyText { get; set; } /// /// Associated style declaration. /// [JsonPropertyName("style")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSStyle Style { get; set; } } /// /// A descriptor of operation to mutate style declaration text. /// public partial class StyleDeclarationEdit : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier. /// [JsonPropertyName("styleSheetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StyleSheetId { get; set; } /// /// The range of the style text in the enclosing stylesheet. /// [JsonPropertyName("range")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.SourceRange Range { get; set; } /// /// New style text. /// [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { get; set; } } /// /// Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded /// web font. /// public class FontsUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// The web font that has loaded. /// [JsonInclude] [JsonPropertyName("font")] public CefSharp.DevTools.CSS.FontFace Font { get; private set; } } /// /// Fired whenever an active document stylesheet is added. /// public class StyleSheetAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Added stylesheet metainfo. /// [JsonInclude] [JsonPropertyName("header")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSStyleSheetHeader Header { get; private set; } } /// /// Fired whenever a stylesheet is changed as a result of the client operation. /// public class StyleSheetChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// StyleSheetId /// [JsonInclude] [JsonPropertyName("styleSheetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StyleSheetId { get; private set; } } /// /// Fired whenever an active document stylesheet is removed. /// public class StyleSheetRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier of the removed stylesheet. /// [JsonInclude] [JsonPropertyName("styleSheetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StyleSheetId { get; private set; } } /// /// computedStyleUpdated /// public class ComputedStyleUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// The node id that has updated computed styles. /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } } } namespace CefSharp.DevTools.CacheStorage { /// /// type of HTTP response cached /// public enum CachedResponseType { /// /// basic /// [JsonPropertyName("basic")] Basic, /// /// cors /// [JsonPropertyName("cors")] Cors, /// /// default /// [JsonPropertyName("default")] Default, /// /// error /// [JsonPropertyName("error")] Error, /// /// opaqueResponse /// [JsonPropertyName("opaqueResponse")] OpaqueResponse, /// /// opaqueRedirect /// [JsonPropertyName("opaqueRedirect")] OpaqueRedirect } /// /// Data entry. /// public partial class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Request URL. /// [JsonPropertyName("requestURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestURL { get; set; } /// /// Request method. /// [JsonPropertyName("requestMethod")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestMethod { get; set; } /// /// Request headers /// [JsonPropertyName("requestHeaders")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList RequestHeaders { get; set; } /// /// Number of seconds since epoch. /// [JsonPropertyName("responseTime")] public double ResponseTime { get; set; } /// /// HTTP response status code. /// [JsonPropertyName("responseStatus")] public int ResponseStatus { get; set; } /// /// HTTP response status text. /// [JsonPropertyName("responseStatusText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ResponseStatusText { get; set; } /// /// HTTP response type /// [JsonPropertyName("responseType")] public CefSharp.DevTools.CacheStorage.CachedResponseType ResponseType { get; set; } /// /// Response headers /// [JsonPropertyName("responseHeaders")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ResponseHeaders { get; set; } } /// /// Cache identifier. /// public partial class Cache : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// An opaque unique id of the cache. /// [JsonPropertyName("cacheId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CacheId { get; set; } /// /// Security origin of the cache. /// [JsonPropertyName("securityOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SecurityOrigin { get; set; } /// /// Storage key of the cache. /// [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { get; set; } /// /// Storage bucket of the cache. /// [JsonPropertyName("storageBucket")] public CefSharp.DevTools.Storage.StorageBucket StorageBucket { get; set; } /// /// The name of the cache. /// [JsonPropertyName("cacheName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CacheName { get; set; } } /// /// Header /// public partial class Header : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Value /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// Cached response /// public partial class CachedResponse : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Entry content, base64-encoded. /// [JsonPropertyName("body")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] Body { get; set; } } } namespace CefSharp.DevTools.Cast { /// /// Sink /// public partial class Sink : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Id /// [JsonPropertyName("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. /// [JsonPropertyName("session")] public string Session { get; set; } } /// /// This is fired whenever the list of available sinks changes. A sink is a /// device or a software surface that you can cast to. /// public class SinksUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Sinks /// [JsonInclude] [JsonPropertyName("sinks")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Sinks { get; private set; } } /// /// This is fired whenever the outstanding issue/error message changes. /// |issueMessage| is empty if there is no issue. /// public class IssueUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// IssueMessage /// [JsonInclude] [JsonPropertyName("issueMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string IssueMessage { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// Backend node with a friendly name. /// public partial class BackendNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `Node`'s nodeType. /// [JsonPropertyName("nodeType")] public int NodeType { get; set; } /// /// `Node`'s nodeName. /// [JsonPropertyName("nodeName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeName { get; set; } /// /// BackendNodeId /// [JsonPropertyName("backendNodeId")] public int BackendNodeId { get; set; } } /// /// Pseudo element type. /// public enum PseudoType { /// /// first-line /// [JsonPropertyName("first-line")] FirstLine, /// /// first-letter /// [JsonPropertyName("first-letter")] FirstLetter, /// /// checkmark /// [JsonPropertyName("checkmark")] Checkmark, /// /// before /// [JsonPropertyName("before")] Before, /// /// after /// [JsonPropertyName("after")] After, /// /// picker-icon /// [JsonPropertyName("picker-icon")] PickerIcon, /// /// interest-hint /// [JsonPropertyName("interest-hint")] InterestHint, /// /// marker /// [JsonPropertyName("marker")] Marker, /// /// backdrop /// [JsonPropertyName("backdrop")] Backdrop, /// /// column /// [JsonPropertyName("column")] Column, /// /// selection /// [JsonPropertyName("selection")] Selection, /// /// search-text /// [JsonPropertyName("search-text")] SearchText, /// /// target-text /// [JsonPropertyName("target-text")] TargetText, /// /// spelling-error /// [JsonPropertyName("spelling-error")] SpellingError, /// /// grammar-error /// [JsonPropertyName("grammar-error")] GrammarError, /// /// highlight /// [JsonPropertyName("highlight")] Highlight, /// /// first-line-inherited /// [JsonPropertyName("first-line-inherited")] FirstLineInherited, /// /// scroll-marker /// [JsonPropertyName("scroll-marker")] ScrollMarker, /// /// scroll-marker-group /// [JsonPropertyName("scroll-marker-group")] ScrollMarkerGroup, /// /// scroll-button /// [JsonPropertyName("scroll-button")] ScrollButton, /// /// scrollbar /// [JsonPropertyName("scrollbar")] Scrollbar, /// /// scrollbar-thumb /// [JsonPropertyName("scrollbar-thumb")] ScrollbarThumb, /// /// scrollbar-button /// [JsonPropertyName("scrollbar-button")] ScrollbarButton, /// /// scrollbar-track /// [JsonPropertyName("scrollbar-track")] ScrollbarTrack, /// /// scrollbar-track-piece /// [JsonPropertyName("scrollbar-track-piece")] ScrollbarTrackPiece, /// /// scrollbar-corner /// [JsonPropertyName("scrollbar-corner")] ScrollbarCorner, /// /// resizer /// [JsonPropertyName("resizer")] Resizer, /// /// input-list-button /// [JsonPropertyName("input-list-button")] InputListButton, /// /// view-transition /// [JsonPropertyName("view-transition")] ViewTransition, /// /// view-transition-group /// [JsonPropertyName("view-transition-group")] ViewTransitionGroup, /// /// view-transition-image-pair /// [JsonPropertyName("view-transition-image-pair")] ViewTransitionImagePair, /// /// view-transition-group-children /// [JsonPropertyName("view-transition-group-children")] ViewTransitionGroupChildren, /// /// view-transition-old /// [JsonPropertyName("view-transition-old")] ViewTransitionOld, /// /// view-transition-new /// [JsonPropertyName("view-transition-new")] ViewTransitionNew, /// /// placeholder /// [JsonPropertyName("placeholder")] Placeholder, /// /// file-selector-button /// [JsonPropertyName("file-selector-button")] FileSelectorButton, /// /// details-content /// [JsonPropertyName("details-content")] DetailsContent, /// /// picker /// [JsonPropertyName("picker")] Picker, /// /// permission-icon /// [JsonPropertyName("permission-icon")] PermissionIcon, /// /// overscroll-area-parent /// [JsonPropertyName("overscroll-area-parent")] OverscrollAreaParent } /// /// Shadow root type. /// public enum ShadowRootType { /// /// user-agent /// [JsonPropertyName("user-agent")] UserAgent, /// /// open /// [JsonPropertyName("open")] Open, /// /// closed /// [JsonPropertyName("closed")] Closed } /// /// Document compatibility mode. /// public enum CompatibilityMode { /// /// QuirksMode /// [JsonPropertyName("QuirksMode")] QuirksMode, /// /// LimitedQuirksMode /// [JsonPropertyName("LimitedQuirksMode")] LimitedQuirksMode, /// /// NoQuirksMode /// [JsonPropertyName("NoQuirksMode")] NoQuirksMode } /// /// ContainerSelector physical axes /// public enum PhysicalAxes { /// /// Horizontal /// [JsonPropertyName("Horizontal")] Horizontal, /// /// Vertical /// [JsonPropertyName("Vertical")] Vertical, /// /// Both /// [JsonPropertyName("Both")] Both } /// /// ContainerSelector logical axes /// public enum LogicalAxes { /// /// Inline /// [JsonPropertyName("Inline")] Inline, /// /// Block /// [JsonPropertyName("Block")] Block, /// /// Both /// [JsonPropertyName("Both")] Both } /// /// Physical scroll orientation /// public enum ScrollOrientation { /// /// horizontal /// [JsonPropertyName("horizontal")] Horizontal, /// /// vertical /// [JsonPropertyName("vertical")] Vertical } /// /// DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. /// DOMNode is a base node mirror type. /// public partial 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. /// [JsonPropertyName("nodeId")] public int NodeId { get; set; } /// /// The id of the parent node if any. /// [JsonPropertyName("parentId")] public int? ParentId { get; set; } /// /// The BackendNodeId for this node. /// [JsonPropertyName("backendNodeId")] public int BackendNodeId { get; set; } /// /// `Node`'s nodeType. /// [JsonPropertyName("nodeType")] public int NodeType { get; set; } /// /// `Node`'s nodeName. /// [JsonPropertyName("nodeName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeName { get; set; } /// /// `Node`'s localName. /// [JsonPropertyName("localName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LocalName { get; set; } /// /// `Node`'s nodeValue. /// [JsonPropertyName("nodeValue")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeValue { get; set; } /// /// Child count for `Container` nodes. /// [JsonPropertyName("childNodeCount")] public int? ChildNodeCount { get; set; } /// /// Child nodes of this node when requested with children. /// [JsonPropertyName("children")] public System.Collections.Generic.IList Children { get; set; } /// /// Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`. /// [JsonPropertyName("attributes")] public string[] Attributes { get; set; } /// /// Document URL that `Document` or `FrameOwner` node points to. /// [JsonPropertyName("documentURL")] public string DocumentURL { get; set; } /// /// Base URL that `Document` or `FrameOwner` node uses for URL completion. /// [JsonPropertyName("baseURL")] public string BaseURL { get; set; } /// /// `DocumentType`'s publicId. /// [JsonPropertyName("publicId")] public string PublicId { get; set; } /// /// `DocumentType`'s systemId. /// [JsonPropertyName("systemId")] public string SystemId { get; set; } /// /// `DocumentType`'s internalSubset. /// [JsonPropertyName("internalSubset")] public string InternalSubset { get; set; } /// /// `Document`'s XML version in case of XML documents. /// [JsonPropertyName("xmlVersion")] public string XmlVersion { get; set; } /// /// `Attr`'s name. /// [JsonPropertyName("name")] public string Name { get; set; } /// /// `Attr`'s value. /// [JsonPropertyName("value")] public string Value { get; set; } /// /// Pseudo element type for this node. /// [JsonPropertyName("pseudoType")] public CefSharp.DevTools.DOM.PseudoType? PseudoType { get; set; } /// /// Pseudo element identifier for this node. Only present if there is a /// valid pseudoType. /// [JsonPropertyName("pseudoIdentifier")] public string PseudoIdentifier { get; set; } /// /// Shadow root type. /// [JsonPropertyName("shadowRootType")] public CefSharp.DevTools.DOM.ShadowRootType? ShadowRootType { get; set; } /// /// Frame ID for frame owner elements. /// [JsonPropertyName("frameId")] public string FrameId { get; set; } /// /// Content document for frame owner elements. /// [JsonPropertyName("contentDocument")] public CefSharp.DevTools.DOM.Node ContentDocument { get; set; } /// /// Shadow root list for given element host. /// [JsonPropertyName("shadowRoots")] public System.Collections.Generic.IList ShadowRoots { get; set; } /// /// Content document fragment for template elements. /// [JsonPropertyName("templateContent")] public CefSharp.DevTools.DOM.Node TemplateContent { get; set; } /// /// Pseudo elements associated with this node. /// [JsonPropertyName("pseudoElements")] public System.Collections.Generic.IList PseudoElements { get; set; } /// /// Deprecated, as the HTML Imports API has been removed (crbug.com/937746). /// This property used to return the imported document for the HTMLImport links. /// The property is always undefined now. /// [JsonPropertyName("importedDocument")] public CefSharp.DevTools.DOM.Node ImportedDocument { get; set; } /// /// Distributed nodes for given insertion point. /// [JsonPropertyName("distributedNodes")] public System.Collections.Generic.IList DistributedNodes { get; set; } /// /// Whether the node is SVG. /// [JsonPropertyName("isSVG")] public bool? IsSVG { get; set; } /// /// CompatibilityMode /// [JsonPropertyName("compatibilityMode")] public CefSharp.DevTools.DOM.CompatibilityMode? CompatibilityMode { get; set; } /// /// AssignedSlot /// [JsonPropertyName("assignedSlot")] public CefSharp.DevTools.DOM.BackendNode AssignedSlot { get; set; } /// /// IsScrollable /// [JsonPropertyName("isScrollable")] public bool? IsScrollable { get; set; } /// /// AffectedByStartingStyles /// [JsonPropertyName("affectedByStartingStyles")] public bool? AffectedByStartingStyles { get; set; } /// /// AdoptedStyleSheets /// [JsonPropertyName("adoptedStyleSheets")] public string[] AdoptedStyleSheets { get; set; } } /// /// A structure to hold the top-level node of a detached tree and an array of its retained descendants. /// public partial class DetachedElementInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// TreeNode /// [JsonPropertyName("treeNode")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Node TreeNode { get; set; } /// /// RetainedNodeIds /// [JsonPropertyName("retainedNodeIds")] public int[] RetainedNodeIds { get; set; } } /// /// A structure holding an RGBA color. /// public partial class RGBA : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The red component, in the [0-255] range. /// [JsonPropertyName("r")] public int R { get; set; } /// /// The green component, in the [0-255] range. /// [JsonPropertyName("g")] public int G { get; set; } /// /// The blue component, in the [0-255] range. /// [JsonPropertyName("b")] public int B { get; set; } /// /// The alpha component, in the [0-1] range (default: 1). /// [JsonPropertyName("a")] public double? A { get; set; } } /// /// Box model. /// public partial class BoxModel : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Content box /// [JsonPropertyName("content")] public double[] Content { get; set; } /// /// Padding box /// [JsonPropertyName("padding")] public double[] Padding { get; set; } /// /// Border box /// [JsonPropertyName("border")] public double[] Border { get; set; } /// /// Margin box /// [JsonPropertyName("margin")] public double[] Margin { get; set; } /// /// Node width /// [JsonPropertyName("width")] public int Width { get; set; } /// /// Node height /// [JsonPropertyName("height")] public int Height { get; set; } /// /// Shape outside coordinates /// [JsonPropertyName("shapeOutside")] public CefSharp.DevTools.DOM.ShapeOutsideInfo ShapeOutside { get; set; } } /// /// CSS Shape Outside details. /// public partial class ShapeOutsideInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Shape bounds /// [JsonPropertyName("bounds")] public double[] Bounds { get; set; } /// /// Shape coordinate details /// [JsonPropertyName("shape")] [System.Diagnostics.CodeAnalysis.DisallowNull] public object[] Shape { get; set; } /// /// Margin shape bounds /// [JsonPropertyName("marginShape")] [System.Diagnostics.CodeAnalysis.DisallowNull] public object[] MarginShape { get; set; } } /// /// Rectangle. /// public partial class Rect : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// X coordinate /// [JsonPropertyName("x")] public double X { get; set; } /// /// Y coordinate /// [JsonPropertyName("y")] public double Y { get; set; } /// /// Rectangle width /// [JsonPropertyName("width")] public double Width { get; set; } /// /// Rectangle height /// [JsonPropertyName("height")] public double Height { get; set; } } /// /// CSSComputedStyleProperty /// public partial class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Computed style property name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Computed style property value. /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// Fired when `Element`'s attribute is modified. /// public class AttributeModifiedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the node that has changed. /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } /// /// Attribute name. /// [JsonInclude] [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; private set; } /// /// Attribute value. /// [JsonInclude] [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; private set; } } /// /// Fired when `Element`'s adoptedStyleSheets are modified. /// public class AdoptedStyleSheetsModifiedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the node that has changed. /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } /// /// New adoptedStyleSheets array. /// [JsonInclude] [JsonPropertyName("adoptedStyleSheets")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] AdoptedStyleSheets { get; private set; } } /// /// Fired when `Element`'s attribute is removed. /// public class AttributeRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the node that has changed. /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } /// /// A ttribute name. /// [JsonInclude] [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; private set; } } /// /// Mirrors `DOMCharacterDataModified` event. /// public class CharacterDataModifiedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the node that has changed. /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } /// /// New text value. /// [JsonInclude] [JsonPropertyName("characterData")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CharacterData { get; private set; } } /// /// Fired when `Container`'s child node count has changed. /// public class ChildNodeCountUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the node that has changed. /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } /// /// New node count. /// [JsonInclude] [JsonPropertyName("childNodeCount")] public int ChildNodeCount { get; private set; } } /// /// Mirrors `DOMNodeInserted` event. /// public class ChildNodeInsertedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the node that has changed. /// [JsonInclude] [JsonPropertyName("parentNodeId")] public int ParentNodeId { get; private set; } /// /// Id of the previous sibling. /// [JsonInclude] [JsonPropertyName("previousNodeId")] public int PreviousNodeId { get; private set; } /// /// Inserted node data. /// [JsonInclude] [JsonPropertyName("node")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Node Node { get; private set; } } /// /// Mirrors `DOMNodeRemoved` event. /// public class ChildNodeRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Parent id. /// [JsonInclude] [JsonPropertyName("parentNodeId")] public int ParentNodeId { get; private set; } /// /// Id of the node that has been removed. /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } } /// /// Called when distribution is changed. /// public class DistributedNodesUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Insertion point where distributed nodes were updated. /// [JsonInclude] [JsonPropertyName("insertionPointId")] public int InsertionPointId { get; private set; } /// /// Distributed nodes for given insertion point. /// [JsonInclude] [JsonPropertyName("distributedNodes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList DistributedNodes { get; private set; } } /// /// Fired when `Element`'s inline style is modified via a CSS property modification. /// public class InlineStyleInvalidatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Ids of the nodes for which the inline styles have been invalidated. /// [JsonInclude] [JsonPropertyName("nodeIds")] public int[] NodeIds { get; private set; } } /// /// Called when a pseudo element is added to an element. /// public class PseudoElementAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Pseudo element's parent element id. /// [JsonInclude] [JsonPropertyName("parentId")] public int ParentId { get; private set; } /// /// The added pseudo element. /// [JsonInclude] [JsonPropertyName("pseudoElement")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Node PseudoElement { get; private set; } } /// /// Fired when a node's scrollability state changes. /// public class ScrollableFlagUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// The id of the node. /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } /// /// If the node is scrollable. /// [JsonInclude] [JsonPropertyName("isScrollable")] public bool IsScrollable { get; private set; } } /// /// Fired when a node's starting styles changes. /// public class AffectedByStartingStylesFlagUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// The id of the node. /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } /// /// If the node has starting styles. /// [JsonInclude] [JsonPropertyName("affectedByStartingStyles")] public bool AffectedByStartingStyles { get; private set; } } /// /// Called when a pseudo element is removed from an element. /// public class PseudoElementRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Pseudo element's parent element id. /// [JsonInclude] [JsonPropertyName("parentId")] public int ParentId { get; private set; } /// /// The removed pseudo element id. /// [JsonInclude] [JsonPropertyName("pseudoElementId")] public int PseudoElementId { get; private set; } } /// /// Fired when backend wants to provide client with the missing DOM structure. This happens upon /// most of the calls requesting node ids. /// public class SetChildNodesEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Parent node id to populate with children. /// [JsonInclude] [JsonPropertyName("parentId")] public int ParentId { get; private set; } /// /// Child nodes array. /// [JsonInclude] [JsonPropertyName("nodes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Nodes { get; private set; } } /// /// Called when shadow root is popped from the element. /// public class ShadowRootPoppedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Host element id. /// [JsonInclude] [JsonPropertyName("hostId")] public int HostId { get; private set; } /// /// Shadow root id. /// [JsonInclude] [JsonPropertyName("rootId")] public int RootId { get; private set; } } /// /// Called when shadow root is pushed into the element. /// public class ShadowRootPushedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Host element id. /// [JsonInclude] [JsonPropertyName("hostId")] public int HostId { get; private set; } /// /// Shadow root. /// [JsonInclude] [JsonPropertyName("root")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Node Root { get; private set; } } } namespace CefSharp.DevTools.DOMDebugger { /// /// DOM breakpoint type. /// public enum DOMBreakpointType { /// /// subtree-modified /// [JsonPropertyName("subtree-modified")] SubtreeModified, /// /// attribute-modified /// [JsonPropertyName("attribute-modified")] AttributeModified, /// /// node-removed /// [JsonPropertyName("node-removed")] NodeRemoved } /// /// CSP Violation type. /// public enum CSPViolationType { /// /// trustedtype-sink-violation /// [JsonPropertyName("trustedtype-sink-violation")] TrustedtypeSinkViolation, /// /// trustedtype-policy-violation /// [JsonPropertyName("trustedtype-policy-violation")] TrustedtypePolicyViolation } /// /// Object event listener. /// public partial class EventListener : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `EventListener`'s type. /// [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { get; set; } /// /// `EventListener`'s useCapture. /// [JsonPropertyName("useCapture")] public bool UseCapture { get; set; } /// /// `EventListener`'s passive flag. /// [JsonPropertyName("passive")] public bool Passive { get; set; } /// /// `EventListener`'s once flag. /// [JsonPropertyName("once")] public bool Once { get; set; } /// /// Script id of the handler code. /// [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { get; set; } /// /// Line number in the script (0-based). /// [JsonPropertyName("lineNumber")] public int LineNumber { get; set; } /// /// Column number in the script (0-based). /// [JsonPropertyName("columnNumber")] public int ColumnNumber { get; set; } /// /// Event handler function value. /// [JsonPropertyName("handler")] public CefSharp.DevTools.Runtime.RemoteObject Handler { get; set; } /// /// Event original handler function value. /// [JsonPropertyName("originalHandler")] public CefSharp.DevTools.Runtime.RemoteObject OriginalHandler { get; set; } /// /// Node the listener is added to (if any). /// [JsonPropertyName("backendNodeId")] public int? BackendNodeId { get; set; } } } namespace CefSharp.DevTools.DOMSnapshot { /// /// A Node in the DOM tree. /// public partial class DOMNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `Node`'s nodeType. /// [JsonPropertyName("nodeType")] public int NodeType { get; set; } /// /// `Node`'s nodeName. /// [JsonPropertyName("nodeName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeName { get; set; } /// /// `Node`'s nodeValue. /// [JsonPropertyName("nodeValue")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeValue { get; set; } /// /// Only set for textarea elements, contains the text value. /// [JsonPropertyName("textValue")] public string TextValue { get; set; } /// /// Only set for input elements, contains the input's associated text value. /// [JsonPropertyName("inputValue")] public string InputValue { get; set; } /// /// Only set for radio and checkbox input elements, indicates if the element has been checked /// [JsonPropertyName("inputChecked")] public bool? InputChecked { get; set; } /// /// Only set for option elements, indicates if the element has been selected /// [JsonPropertyName("optionSelected")] public bool? OptionSelected { get; set; } /// /// `Node`'s id, corresponds to DOM.Node.backendNodeId. /// [JsonPropertyName("backendNodeId")] public int BackendNodeId { get; set; } /// /// The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if /// any. /// [JsonPropertyName("childNodeIndexes")] public int[] ChildNodeIndexes { get; set; } /// /// Attributes of an `Element` node. /// [JsonPropertyName("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. /// [JsonPropertyName("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. /// [JsonPropertyName("layoutNodeIndex")] public int? LayoutNodeIndex { get; set; } /// /// Document URL that `Document` or `FrameOwner` node points to. /// [JsonPropertyName("documentURL")] public string DocumentURL { get; set; } /// /// Base URL that `Document` or `FrameOwner` node uses for URL completion. /// [JsonPropertyName("baseURL")] public string BaseURL { get; set; } /// /// Only set for documents, contains the document's content language. /// [JsonPropertyName("contentLanguage")] public string ContentLanguage { get; set; } /// /// Only set for documents, contains the document's character set encoding. /// [JsonPropertyName("documentEncoding")] public string DocumentEncoding { get; set; } /// /// `DocumentType` node's publicId. /// [JsonPropertyName("publicId")] public string PublicId { get; set; } /// /// `DocumentType` node's systemId. /// [JsonPropertyName("systemId")] public string SystemId { get; set; } /// /// Frame ID for frame owner elements and also for the document node. /// [JsonPropertyName("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. /// [JsonPropertyName("contentDocumentIndex")] public int? ContentDocumentIndex { get; set; } /// /// Type of a pseudo element node. /// [JsonPropertyName("pseudoType")] public CefSharp.DevTools.DOM.PseudoType? PseudoType { get; set; } /// /// Shadow root type. /// [JsonPropertyName("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. /// [JsonPropertyName("isClickable")] public bool? IsClickable { get; set; } /// /// Details of the node's event listeners, if any. /// [JsonPropertyName("eventListeners")] public System.Collections.Generic.IList EventListeners { get; set; } /// /// The selected url for nodes with a srcset attribute. /// [JsonPropertyName("currentSourceURL")] public string CurrentSourceURL { get; set; } /// /// The url of the script (if any) that generates this node. /// [JsonPropertyName("originURL")] public string OriginURL { get; set; } /// /// Scroll offsets, set when this node is a Document. /// [JsonPropertyName("scrollOffsetX")] public double? ScrollOffsetX { get; set; } /// /// ScrollOffsetY /// [JsonPropertyName("scrollOffsetY")] public double? ScrollOffsetY { get; set; } } /// /// Details of post layout rendered text positions. The exact layout should not be regarded as /// stable and may change between versions. /// public partial class InlineTextBox : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The bounding box in document coordinates. Note that scroll offset of the document is ignored. /// [JsonPropertyName("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. /// [JsonPropertyName("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. /// [JsonPropertyName("numCharacters")] public int NumCharacters { get; set; } } /// /// Details of an element in the DOM tree with a LayoutObject. /// public partial class LayoutTreeNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The index of the related DOM node in the `domNodes` array returned by `getSnapshot`. /// [JsonPropertyName("domNodeIndex")] public int DomNodeIndex { get; set; } /// /// The bounding box in document coordinates. Note that scroll offset of the document is ignored. /// [JsonPropertyName("boundingBox")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect BoundingBox { get; set; } /// /// Contents of the LayoutText, if any. /// [JsonPropertyName("layoutText")] public string LayoutText { get; set; } /// /// The post-layout inline text nodes, if any. /// [JsonPropertyName("inlineTextNodes")] public System.Collections.Generic.IList InlineTextNodes { get; set; } /// /// Index into the `computedStyles` array returned by `getSnapshot`. /// [JsonPropertyName("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. /// [JsonPropertyName("paintOrder")] public int? PaintOrder { get; set; } /// /// Set to true to indicate the element begins a new stacking context. /// [JsonPropertyName("isStackingContext")] public bool? IsStackingContext { get; set; } } /// /// A subset of the full ComputedStyle as defined by the request whitelist. /// public partial class ComputedStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name/value pairs of computed style properties. /// [JsonPropertyName("properties")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Properties { get; set; } } /// /// A name/value pair. /// public partial class NameValue : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Attribute/property name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Attribute/property value. /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// Data that is only present on rare nodes. /// public partial class RareStringData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index /// [JsonPropertyName("index")] public int[] Index { get; set; } /// /// Value /// [JsonPropertyName("value")] public int[] Value { get; set; } } /// /// RareBooleanData /// public partial class RareBooleanData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index /// [JsonPropertyName("index")] public int[] Index { get; set; } } /// /// RareIntegerData /// public partial class RareIntegerData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index /// [JsonPropertyName("index")] public int[] Index { get; set; } /// /// Value /// [JsonPropertyName("value")] public int[] Value { get; set; } } /// /// Document snapshot. /// public partial class DocumentSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Document URL that `Document` or `FrameOwner` node points to. /// [JsonPropertyName("documentURL")] public int DocumentURL { get; set; } /// /// Document title. /// [JsonPropertyName("title")] public int Title { get; set; } /// /// Base URL that `Document` or `FrameOwner` node uses for URL completion. /// [JsonPropertyName("baseURL")] public int BaseURL { get; set; } /// /// Contains the document's content language. /// [JsonPropertyName("contentLanguage")] public int ContentLanguage { get; set; } /// /// Contains the document's character set encoding. /// [JsonPropertyName("encodingName")] public int EncodingName { get; set; } /// /// `DocumentType` node's publicId. /// [JsonPropertyName("publicId")] public int PublicId { get; set; } /// /// `DocumentType` node's systemId. /// [JsonPropertyName("systemId")] public int SystemId { get; set; } /// /// Frame ID for frame owner elements and also for the document node. /// [JsonPropertyName("frameId")] public int FrameId { get; set; } /// /// A table with dom nodes. /// [JsonPropertyName("nodes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMSnapshot.NodeTreeSnapshot Nodes { get; set; } /// /// The nodes in the layout tree. /// [JsonPropertyName("layout")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMSnapshot.LayoutTreeSnapshot Layout { get; set; } /// /// The post-layout inline text nodes. /// [JsonPropertyName("textBoxes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMSnapshot.TextBoxSnapshot TextBoxes { get; set; } /// /// Horizontal scroll offset. /// [JsonPropertyName("scrollOffsetX")] public double? ScrollOffsetX { get; set; } /// /// Vertical scroll offset. /// [JsonPropertyName("scrollOffsetY")] public double? ScrollOffsetY { get; set; } /// /// Document content width. /// [JsonPropertyName("contentWidth")] public double? ContentWidth { get; set; } /// /// Document content height. /// [JsonPropertyName("contentHeight")] public double? ContentHeight { get; set; } } /// /// Table containing nodes. /// public partial class NodeTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Parent node index. /// [JsonPropertyName("parentIndex")] public int[] ParentIndex { get; set; } /// /// `Node`'s nodeType. /// [JsonPropertyName("nodeType")] public int[] NodeType { get; set; } /// /// Type of the shadow root the `Node` is in. String values are equal to the `ShadowRootType` enum. /// [JsonPropertyName("shadowRootType")] public CefSharp.DevTools.DOMSnapshot.RareStringData ShadowRootType { get; set; } /// /// `Node`'s nodeName. /// [JsonPropertyName("nodeName")] public int[] NodeName { get; set; } /// /// `Node`'s nodeValue. /// [JsonPropertyName("nodeValue")] public int[] NodeValue { get; set; } /// /// `Node`'s id, corresponds to DOM.Node.backendNodeId. /// [JsonPropertyName("backendNodeId")] public int[] BackendNodeId { get; set; } /// /// Attributes of an `Element` node. Flatten name, value pairs. /// [JsonPropertyName("attributes")] public int[] Attributes { get; set; } /// /// Only set for textarea elements, contains the text value. /// [JsonPropertyName("textValue")] public CefSharp.DevTools.DOMSnapshot.RareStringData TextValue { get; set; } /// /// Only set for input elements, contains the input's associated text value. /// [JsonPropertyName("inputValue")] public CefSharp.DevTools.DOMSnapshot.RareStringData InputValue { get; set; } /// /// Only set for radio and checkbox input elements, indicates if the element has been checked /// [JsonPropertyName("inputChecked")] public CefSharp.DevTools.DOMSnapshot.RareBooleanData InputChecked { get; set; } /// /// Only set for option elements, indicates if the element has been selected /// [JsonPropertyName("optionSelected")] public CefSharp.DevTools.DOMSnapshot.RareBooleanData OptionSelected { get; set; } /// /// The index of the document in the list of the snapshot documents. /// [JsonPropertyName("contentDocumentIndex")] public CefSharp.DevTools.DOMSnapshot.RareIntegerData ContentDocumentIndex { get; set; } /// /// Type of a pseudo element node. /// [JsonPropertyName("pseudoType")] public CefSharp.DevTools.DOMSnapshot.RareStringData PseudoType { get; set; } /// /// Pseudo element identifier for this node. Only present if there is a /// valid pseudoType. /// [JsonPropertyName("pseudoIdentifier")] public CefSharp.DevTools.DOMSnapshot.RareStringData PseudoIdentifier { 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. /// [JsonPropertyName("isClickable")] public CefSharp.DevTools.DOMSnapshot.RareBooleanData IsClickable { get; set; } /// /// The selected url for nodes with a srcset attribute. /// [JsonPropertyName("currentSourceURL")] public CefSharp.DevTools.DOMSnapshot.RareStringData CurrentSourceURL { get; set; } /// /// The url of the script (if any) that generates this node. /// [JsonPropertyName("originURL")] public CefSharp.DevTools.DOMSnapshot.RareStringData OriginURL { get; set; } } /// /// Table of details of an element in the DOM tree with a LayoutObject. /// public partial class LayoutTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`. /// [JsonPropertyName("nodeIndex")] public int[] NodeIndex { get; set; } /// /// Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`. /// [JsonPropertyName("styles")] public int[] Styles { get; set; } /// /// The absolute position bounding box. /// [JsonPropertyName("bounds")] public double[] Bounds { get; set; } /// /// Contents of the LayoutText, if any. /// [JsonPropertyName("text")] public int[] Text { get; set; } /// /// Stacking context information. /// [JsonPropertyName("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. /// [JsonPropertyName("paintOrders")] public int[] PaintOrders { get; set; } /// /// The offset rect of nodes. Only available when includeDOMRects is set to true /// [JsonPropertyName("offsetRects")] public double[] OffsetRects { get; set; } /// /// The scroll rect of nodes. Only available when includeDOMRects is set to true /// [JsonPropertyName("scrollRects")] public double[] ScrollRects { get; set; } /// /// The client rect of nodes. Only available when includeDOMRects is set to true /// [JsonPropertyName("clientRects")] public double[] ClientRects { get; set; } /// /// The list of background colors that are blended with colors of overlapping elements. /// [JsonPropertyName("blendedBackgroundColors")] public int[] BlendedBackgroundColors { get; set; } /// /// The list of computed text opacities. /// [JsonPropertyName("textColorOpacities")] public double[] TextColorOpacities { get; set; } } /// /// 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 partial class TextBoxSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index of the layout tree node that owns this box collection. /// [JsonPropertyName("layoutIndex")] public int[] LayoutIndex { get; set; } /// /// The absolute position bounding box. /// [JsonPropertyName("bounds")] public double[] 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. /// [JsonPropertyName("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. /// [JsonPropertyName("length")] public int[] Length { get; set; } } } namespace CefSharp.DevTools.DOMStorage { /// /// DOM Storage identifier. /// public partial class StorageId : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Security origin for the storage. /// [JsonPropertyName("securityOrigin")] public string SecurityOrigin { get; set; } /// /// Represents a key by which DOM Storage keys its CachedStorageAreas /// [JsonPropertyName("storageKey")] public string StorageKey { get; set; } /// /// Whether the storage is local storage (not session storage). /// [JsonPropertyName("isLocalStorage")] public bool IsLocalStorage { get; set; } } /// /// domStorageItemAdded /// public class DomStorageItemAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// StorageId /// [JsonInclude] [JsonPropertyName("storageId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMStorage.StorageId StorageId { get; private set; } /// /// Key /// [JsonInclude] [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { get; private set; } /// /// NewValue /// [JsonInclude] [JsonPropertyName("newValue")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NewValue { get; private set; } } /// /// domStorageItemRemoved /// public class DomStorageItemRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// StorageId /// [JsonInclude] [JsonPropertyName("storageId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMStorage.StorageId StorageId { get; private set; } /// /// Key /// [JsonInclude] [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { get; private set; } } /// /// domStorageItemUpdated /// public class DomStorageItemUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// StorageId /// [JsonInclude] [JsonPropertyName("storageId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMStorage.StorageId StorageId { get; private set; } /// /// Key /// [JsonInclude] [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { get; private set; } /// /// OldValue /// [JsonInclude] [JsonPropertyName("oldValue")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string OldValue { get; private set; } /// /// NewValue /// [JsonInclude] [JsonPropertyName("newValue")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NewValue { get; private set; } } /// /// domStorageItemsCleared /// public class DomStorageItemsClearedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// StorageId /// [JsonInclude] [JsonPropertyName("storageId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMStorage.StorageId StorageId { get; private set; } } } namespace CefSharp.DevTools.DeviceAccess { /// /// Device information displayed in a user prompt to select a device. /// public partial class PromptDevice : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Id /// [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; set; } /// /// Display name as it appears in a device request user prompt. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } } /// /// A device request opened a user prompt to select a device. Respond with the /// selectPrompt or cancelPrompt command. /// public class DeviceRequestPromptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id /// [JsonInclude] [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; private set; } /// /// Devices /// [JsonInclude] [JsonPropertyName("devices")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Devices { get; private set; } } } namespace CefSharp.DevTools.Emulation { /// /// SafeAreaInsets /// public partial class SafeAreaInsets : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Overrides safe-area-inset-top. /// [JsonPropertyName("top")] public int? Top { get; set; } /// /// Overrides safe-area-max-inset-top. /// [JsonPropertyName("topMax")] public int? TopMax { get; set; } /// /// Overrides safe-area-inset-left. /// [JsonPropertyName("left")] public int? Left { get; set; } /// /// Overrides safe-area-max-inset-left. /// [JsonPropertyName("leftMax")] public int? LeftMax { get; set; } /// /// Overrides safe-area-inset-bottom. /// [JsonPropertyName("bottom")] public int? Bottom { get; set; } /// /// Overrides safe-area-max-inset-bottom. /// [JsonPropertyName("bottomMax")] public int? BottomMax { get; set; } /// /// Overrides safe-area-inset-right. /// [JsonPropertyName("right")] public int? Right { get; set; } /// /// Overrides safe-area-max-inset-right. /// [JsonPropertyName("rightMax")] public int? RightMax { get; set; } } /// /// Orientation type. /// public enum ScreenOrientationType { /// /// portraitPrimary /// [JsonPropertyName("portraitPrimary")] PortraitPrimary, /// /// portraitSecondary /// [JsonPropertyName("portraitSecondary")] PortraitSecondary, /// /// landscapePrimary /// [JsonPropertyName("landscapePrimary")] LandscapePrimary, /// /// landscapeSecondary /// [JsonPropertyName("landscapeSecondary")] LandscapeSecondary } /// /// Screen orientation. /// public partial class ScreenOrientation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Orientation type. /// [JsonPropertyName("type")] public CefSharp.DevTools.Emulation.ScreenOrientationType Type { get; set; } /// /// Orientation angle. /// [JsonPropertyName("angle")] public int Angle { get; set; } } /// /// Orientation of a display feature in relation to screen /// public enum DisplayFeatureOrientation { /// /// vertical /// [JsonPropertyName("vertical")] Vertical, /// /// horizontal /// [JsonPropertyName("horizontal")] Horizontal } /// /// DisplayFeature /// public partial class DisplayFeature : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Orientation of a display feature in relation to screen /// [JsonPropertyName("orientation")] public CefSharp.DevTools.Emulation.DisplayFeatureOrientation Orientation { get; set; } /// /// The offset from the screen origin in either the x (for vertical /// orientation) or y (for horizontal orientation) direction. /// [JsonPropertyName("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. /// [JsonPropertyName("maskLength")] public int MaskLength { get; set; } } /// /// Current posture of the device /// public enum DevicePostureType { /// /// continuous /// [JsonPropertyName("continuous")] Continuous, /// /// folded /// [JsonPropertyName("folded")] Folded } /// /// DevicePosture /// public partial class DevicePosture : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Current posture of the device /// [JsonPropertyName("type")] public CefSharp.DevTools.Emulation.DevicePostureType Type { get; set; } } /// /// MediaFeature /// public partial class MediaFeature : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Value /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// 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 /// [JsonPropertyName("advance")] Advance, /// /// pause /// [JsonPropertyName("pause")] Pause, /// /// pauseIfNetworkFetchesPending /// [JsonPropertyName("pauseIfNetworkFetchesPending")] PauseIfNetworkFetchesPending } /// /// Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints /// public partial class UserAgentBrandVersion : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Brand /// [JsonPropertyName("brand")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Brand { get; set; } /// /// Version /// [JsonPropertyName("version")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Version { get; set; } } /// /// Used to specify User Agent Client Hints to emulate. See https://wicg.github.io/ua-client-hints /// Missing optional values will be filled in by the target with what it would normally use. /// public partial class UserAgentMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Brands appearing in Sec-CH-UA. /// [JsonPropertyName("brands")] public System.Collections.Generic.IList Brands { get; set; } /// /// Brands appearing in Sec-CH-UA-Full-Version-List. /// [JsonPropertyName("fullVersionList")] public System.Collections.Generic.IList FullVersionList { get; set; } /// /// FullVersion /// [JsonPropertyName("fullVersion")] public string FullVersion { get; set; } /// /// Platform /// [JsonPropertyName("platform")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Platform { get; set; } /// /// PlatformVersion /// [JsonPropertyName("platformVersion")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlatformVersion { get; set; } /// /// Architecture /// [JsonPropertyName("architecture")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Architecture { get; set; } /// /// Model /// [JsonPropertyName("model")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Model { get; set; } /// /// Mobile /// [JsonPropertyName("mobile")] public bool Mobile { get; set; } /// /// Bitness /// [JsonPropertyName("bitness")] public string Bitness { get; set; } /// /// Wow64 /// [JsonPropertyName("wow64")] public bool? Wow64 { get; set; } /// /// Used to specify User Agent form-factor values. /// See https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors /// [JsonPropertyName("formFactors")] public string[] FormFactors { get; set; } } /// /// Used to specify sensor types to emulate. /// See https://w3c.github.io/sensors/#automation for more information. /// public enum SensorType { /// /// absolute-orientation /// [JsonPropertyName("absolute-orientation")] AbsoluteOrientation, /// /// accelerometer /// [JsonPropertyName("accelerometer")] Accelerometer, /// /// ambient-light /// [JsonPropertyName("ambient-light")] AmbientLight, /// /// gravity /// [JsonPropertyName("gravity")] Gravity, /// /// gyroscope /// [JsonPropertyName("gyroscope")] Gyroscope, /// /// linear-acceleration /// [JsonPropertyName("linear-acceleration")] LinearAcceleration, /// /// magnetometer /// [JsonPropertyName("magnetometer")] Magnetometer, /// /// relative-orientation /// [JsonPropertyName("relative-orientation")] RelativeOrientation } /// /// SensorMetadata /// public partial class SensorMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Available /// [JsonPropertyName("available")] public bool? Available { get; set; } /// /// MinimumFrequency /// [JsonPropertyName("minimumFrequency")] public double? MinimumFrequency { get; set; } /// /// MaximumFrequency /// [JsonPropertyName("maximumFrequency")] public double? MaximumFrequency { get; set; } } /// /// SensorReadingSingle /// public partial class SensorReadingSingle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Value /// [JsonPropertyName("value")] public double Value { get; set; } } /// /// SensorReadingXYZ /// public partial class SensorReadingXYZ : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// X /// [JsonPropertyName("x")] public double X { get; set; } /// /// Y /// [JsonPropertyName("y")] public double Y { get; set; } /// /// Z /// [JsonPropertyName("z")] public double Z { get; set; } } /// /// SensorReadingQuaternion /// public partial class SensorReadingQuaternion : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// X /// [JsonPropertyName("x")] public double X { get; set; } /// /// Y /// [JsonPropertyName("y")] public double Y { get; set; } /// /// Z /// [JsonPropertyName("z")] public double Z { get; set; } /// /// W /// [JsonPropertyName("w")] public double W { get; set; } } /// /// SensorReading /// public partial class SensorReading : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Single /// [JsonPropertyName("single")] public CefSharp.DevTools.Emulation.SensorReadingSingle Single { get; set; } /// /// Xyz /// [JsonPropertyName("xyz")] public CefSharp.DevTools.Emulation.SensorReadingXYZ Xyz { get; set; } /// /// Quaternion /// [JsonPropertyName("quaternion")] public CefSharp.DevTools.Emulation.SensorReadingQuaternion Quaternion { get; set; } } /// /// PressureSource /// public enum PressureSource { /// /// cpu /// [JsonPropertyName("cpu")] Cpu } /// /// PressureState /// public enum PressureState { /// /// nominal /// [JsonPropertyName("nominal")] Nominal, /// /// fair /// [JsonPropertyName("fair")] Fair, /// /// serious /// [JsonPropertyName("serious")] Serious, /// /// critical /// [JsonPropertyName("critical")] Critical } /// /// PressureMetadata /// public partial class PressureMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Available /// [JsonPropertyName("available")] public bool? Available { get; set; } } /// /// WorkAreaInsets /// public partial class WorkAreaInsets : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Work area top inset in pixels. Default is 0; /// [JsonPropertyName("top")] public int? Top { get; set; } /// /// Work area left inset in pixels. Default is 0; /// [JsonPropertyName("left")] public int? Left { get; set; } /// /// Work area bottom inset in pixels. Default is 0; /// [JsonPropertyName("bottom")] public int? Bottom { get; set; } /// /// Work area right inset in pixels. Default is 0; /// [JsonPropertyName("right")] public int? Right { get; set; } } /// /// Screen information similar to the one returned by window.getScreenDetails() method, /// see https://w3c.github.io/window-management/#screendetailed. /// public partial class ScreenInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Offset of the left edge of the screen. /// [JsonPropertyName("left")] public int Left { get; set; } /// /// Offset of the top edge of the screen. /// [JsonPropertyName("top")] public int Top { get; set; } /// /// Width of the screen. /// [JsonPropertyName("width")] public int Width { get; set; } /// /// Height of the screen. /// [JsonPropertyName("height")] public int Height { get; set; } /// /// Offset of the left edge of the available screen area. /// [JsonPropertyName("availLeft")] public int AvailLeft { get; set; } /// /// Offset of the top edge of the available screen area. /// [JsonPropertyName("availTop")] public int AvailTop { get; set; } /// /// Width of the available screen area. /// [JsonPropertyName("availWidth")] public int AvailWidth { get; set; } /// /// Height of the available screen area. /// [JsonPropertyName("availHeight")] public int AvailHeight { get; set; } /// /// Specifies the screen's device pixel ratio. /// [JsonPropertyName("devicePixelRatio")] public double DevicePixelRatio { get; set; } /// /// Specifies the screen's orientation. /// [JsonPropertyName("orientation")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Emulation.ScreenOrientation Orientation { get; set; } /// /// Specifies the screen's color depth in bits. /// [JsonPropertyName("colorDepth")] public int ColorDepth { get; set; } /// /// Indicates whether the device has multiple screens. /// [JsonPropertyName("isExtended")] public bool IsExtended { get; set; } /// /// Indicates whether the screen is internal to the device or external, attached to the device. /// [JsonPropertyName("isInternal")] public bool IsInternal { get; set; } /// /// Indicates whether the screen is set as the the operating system primary screen. /// [JsonPropertyName("isPrimary")] public bool IsPrimary { get; set; } /// /// Specifies the descriptive label for the screen. /// [JsonPropertyName("label")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Label { get; set; } /// /// Specifies the unique identifier of the screen. /// [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; set; } } /// /// Enum of image types that can be disabled. /// public enum DisabledImageType { /// /// avif /// [JsonPropertyName("avif")] Avif, /// /// webp /// [JsonPropertyName("webp")] Webp } } namespace CefSharp.DevTools.Extensions { /// /// Storage areas. /// public enum StorageArea { /// /// session /// [JsonPropertyName("session")] Session, /// /// local /// [JsonPropertyName("local")] Local, /// /// sync /// [JsonPropertyName("sync")] Sync, /// /// managed /// [JsonPropertyName("managed")] Managed } } namespace CefSharp.DevTools.FedCm { /// /// Whether this is a sign-up or sign-in action for this account, i.e. /// whether this account has ever been used to sign in to this RP before. /// public enum LoginState { /// /// SignIn /// [JsonPropertyName("SignIn")] SignIn, /// /// SignUp /// [JsonPropertyName("SignUp")] SignUp } /// /// The types of FedCM dialogs. /// public enum DialogType { /// /// AccountChooser /// [JsonPropertyName("AccountChooser")] AccountChooser, /// /// AutoReauthn /// [JsonPropertyName("AutoReauthn")] AutoReauthn, /// /// ConfirmIdpLogin /// [JsonPropertyName("ConfirmIdpLogin")] ConfirmIdpLogin, /// /// Error /// [JsonPropertyName("Error")] Error } /// /// The buttons on the FedCM dialog. /// public enum DialogButton { /// /// ConfirmIdpLoginContinue /// [JsonPropertyName("ConfirmIdpLoginContinue")] ConfirmIdpLoginContinue, /// /// ErrorGotIt /// [JsonPropertyName("ErrorGotIt")] ErrorGotIt, /// /// ErrorMoreDetails /// [JsonPropertyName("ErrorMoreDetails")] ErrorMoreDetails } /// /// The URLs that each account has /// public enum AccountUrlType { /// /// TermsOfService /// [JsonPropertyName("TermsOfService")] TermsOfService, /// /// PrivacyPolicy /// [JsonPropertyName("PrivacyPolicy")] PrivacyPolicy } /// /// Corresponds to IdentityRequestAccount /// public partial class Account : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// AccountId /// [JsonPropertyName("accountId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string AccountId { get; set; } /// /// Email /// [JsonPropertyName("email")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Email { get; set; } /// /// Name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// GivenName /// [JsonPropertyName("givenName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string GivenName { get; set; } /// /// PictureUrl /// [JsonPropertyName("pictureUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PictureUrl { get; set; } /// /// IdpConfigUrl /// [JsonPropertyName("idpConfigUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string IdpConfigUrl { get; set; } /// /// IdpLoginUrl /// [JsonPropertyName("idpLoginUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string IdpLoginUrl { get; set; } /// /// LoginState /// [JsonPropertyName("loginState")] public CefSharp.DevTools.FedCm.LoginState LoginState { get; set; } /// /// These two are only set if the loginState is signUp /// [JsonPropertyName("termsOfServiceUrl")] public string TermsOfServiceUrl { get; set; } /// /// PrivacyPolicyUrl /// [JsonPropertyName("privacyPolicyUrl")] public string PrivacyPolicyUrl { get; set; } } /// /// dialogShown /// public class DialogShownEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// DialogId /// [JsonInclude] [JsonPropertyName("dialogId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DialogId { get; private set; } /// /// DialogType /// [JsonInclude] [JsonPropertyName("dialogType")] public CefSharp.DevTools.FedCm.DialogType DialogType { get; private set; } /// /// Accounts /// [JsonInclude] [JsonPropertyName("accounts")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Accounts { get; private set; } /// /// These exist primarily so that the caller can verify the /// RP context was used appropriately. /// [JsonInclude] [JsonPropertyName("title")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Title { get; private set; } /// /// Subtitle /// [JsonInclude] [JsonPropertyName("subtitle")] public string Subtitle { get; private set; } } /// /// Triggered when a dialog is closed, either by user action, JS abort, /// or a command below. /// public class DialogClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// DialogId /// [JsonInclude] [JsonPropertyName("dialogId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DialogId { get; private set; } } } 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 /// [JsonPropertyName("Request")] Request, /// /// Response /// [JsonPropertyName("Response")] Response } /// /// RequestPattern /// public partial class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is /// backslash. Omitting is equivalent to `"*"`. /// [JsonPropertyName("urlPattern")] public string UrlPattern { get; set; } /// /// If set, only requests for matching resource types will be intercepted. /// [JsonPropertyName("resourceType")] public CefSharp.DevTools.Network.ResourceType? ResourceType { get; set; } /// /// Stage at which to begin intercepting requests. Default is Request. /// [JsonPropertyName("requestStage")] public CefSharp.DevTools.Fetch.RequestStage? RequestStage { get; set; } } /// /// Response HTTP header entry /// public partial class HeaderEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Value /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// Source of the authentication challenge. /// public enum AuthChallengeSource { /// /// Server /// [JsonPropertyName("Server")] Server, /// /// Proxy /// [JsonPropertyName("Proxy")] Proxy } /// /// Authorization challenge for HTTP status code 401 or 407. /// public partial class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source of the authentication challenge. /// [JsonPropertyName("source")] public CefSharp.DevTools.Fetch.AuthChallengeSource? Source { get; set; } /// /// Origin of the challenger. /// [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; set; } /// /// The authentication scheme used, such as basic or digest /// [JsonPropertyName("scheme")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Scheme { get; set; } /// /// The realm of the challenge. May be empty. /// [JsonPropertyName("realm")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Realm { get; set; } } /// /// 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. /// public enum AuthChallengeResponseResponse { /// /// Default /// [JsonPropertyName("Default")] Default, /// /// CancelAuth /// [JsonPropertyName("CancelAuth")] CancelAuth, /// /// ProvideCredentials /// [JsonPropertyName("ProvideCredentials")] ProvideCredentials } /// /// Response to an AuthChallenge. /// public partial 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. /// [JsonPropertyName("response")] public CefSharp.DevTools.Fetch.AuthChallengeResponseResponse Response { get; set; } /// /// The username to provide, possibly empty. Should only be set if response is /// ProvideCredentials. /// [JsonPropertyName("username")] public string Username { get; set; } /// /// The password to provide, possibly empty. Should only be set if response is /// ProvideCredentials. /// [JsonPropertyName("password")] public string Password { get; set; } } /// /// Issued when the domain is enabled and the request URL matches the /// specified filter. The request is paused until the client responds /// with one of continueRequest, failRequest or fulfillRequest. /// The stage of the request can be determined by presence of responseErrorReason /// and responseStatusCode -- the request is at the response stage if either /// of these fields is present and in the request stage otherwise. /// Redirect responses and subsequent requests are reported similarly to regular /// responses and requests. Redirect responses may be distinguished by the value /// of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with /// presence of the `location` header. Requests resulting from a redirect will /// have `redirectedRequestId` field set. /// public class RequestPausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Each request the page makes will have a unique id. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// The details of the request. /// [JsonInclude] [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Request Request { get; private set; } /// /// The id of the frame that initiated the request. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// How the requested resource will be used. /// [JsonInclude] [JsonPropertyName("resourceType")] public CefSharp.DevTools.Network.ResourceType ResourceType { get; private set; } /// /// Response error if intercepted at response stage. /// [JsonInclude] [JsonPropertyName("responseErrorReason")] public CefSharp.DevTools.Network.ErrorReason? ResponseErrorReason { get; private set; } /// /// Response code if intercepted at response stage. /// [JsonInclude] [JsonPropertyName("responseStatusCode")] public int? ResponseStatusCode { get; private set; } /// /// Response status text if intercepted at response stage. /// [JsonInclude] [JsonPropertyName("responseStatusText")] public string ResponseStatusText { get; private set; } /// /// Response headers if intercepted at the response stage. /// [JsonInclude] [JsonPropertyName("responseHeaders")] public System.Collections.Generic.IList ResponseHeaders { get; private set; } /// /// If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, /// then this networkId will be the same as the requestId present in the requestWillBeSent event. /// [JsonInclude] [JsonPropertyName("networkId")] public string NetworkId { get; private set; } /// /// If the request is due to a redirect response from the server, the id of the request that /// has caused the redirect. /// [JsonInclude] [JsonPropertyName("redirectedRequestId")] public string RedirectedRequestId { get; private set; } } /// /// Issued when the domain is enabled with handleAuthRequests set to true. /// The request is paused until client responds with continueWithAuth. /// public class AuthRequiredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Each request the page makes will have a unique id. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// The details of the request. /// [JsonInclude] [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Request Request { get; private set; } /// /// The id of the frame that initiated the request. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// How the requested resource will be used. /// [JsonInclude] [JsonPropertyName("resourceType")] public CefSharp.DevTools.Network.ResourceType ResourceType { get; private set; } /// /// Details of the Authorization Challenge encountered. /// If this is set, client should respond with continueRequest that /// contains AuthChallengeResponse. /// [JsonInclude] [JsonPropertyName("authChallenge")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Fetch.AuthChallenge AuthChallenge { get; private set; } } } namespace CefSharp.DevTools.FileSystem { /// /// File /// public partial class File : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Timestamp /// [JsonPropertyName("lastModified")] public double LastModified { get; set; } /// /// Size in bytes /// [JsonPropertyName("size")] public double Size { get; set; } /// /// Type /// [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { get; set; } } /// /// Directory /// public partial class Directory : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// NestedDirectories /// [JsonPropertyName("nestedDirectories")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] NestedDirectories { get; set; } /// /// Files that are directly nested under this directory. /// [JsonPropertyName("nestedFiles")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList NestedFiles { get; set; } } /// /// BucketFileSystemLocator /// public partial class BucketFileSystemLocator : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Storage key /// [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { get; set; } /// /// Bucket name. Not passing a `bucketName` will retrieve the default Bucket. (https://developer.mozilla.org/en-US/docs/Web/API/Storage_API#storage_buckets) /// [JsonPropertyName("bucketName")] public string BucketName { get; set; } /// /// Path to the directory using each path component as an array item. /// [JsonPropertyName("pathComponents")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] PathComponents { get; set; } } } namespace CefSharp.DevTools.HeadlessExperimental { /// /// Image compression format (defaults to png). /// public enum ScreenshotParamsFormat { /// /// jpeg /// [JsonPropertyName("jpeg")] Jpeg, /// /// png /// [JsonPropertyName("png")] Png, /// /// webp /// [JsonPropertyName("webp")] Webp } /// /// Encoding options for a screenshot. /// public partial class ScreenshotParams : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Image compression format (defaults to png). /// [JsonPropertyName("format")] public CefSharp.DevTools.HeadlessExperimental.ScreenshotParamsFormat? Format { get; set; } /// /// Compression quality from range [0..100] (jpeg and webp only). /// [JsonPropertyName("quality")] public int? Quality { get; set; } /// /// Optimize image encoding for speed, not for resulting size (defaults to false) /// [JsonPropertyName("optimizeForSpeed")] public bool? OptimizeForSpeed { get; set; } } } namespace CefSharp.DevTools.IndexedDB { /// /// Database with an array of object stores. /// public partial class DatabaseWithObjectStores : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Database name. /// [JsonPropertyName("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') /// [JsonPropertyName("version")] public double Version { get; set; } /// /// Object stores in this database. /// [JsonPropertyName("objectStores")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ObjectStores { get; set; } } /// /// Object store. /// public partial class ObjectStore : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Object store name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Object store key path. /// [JsonPropertyName("keyPath")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.IndexedDB.KeyPath KeyPath { get; set; } /// /// If true, object store has auto increment flag set. /// [JsonPropertyName("autoIncrement")] public bool AutoIncrement { get; set; } /// /// Indexes in this object store. /// [JsonPropertyName("indexes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Indexes { get; set; } } /// /// Object store index. /// public partial class ObjectStoreIndex : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Index key path. /// [JsonPropertyName("keyPath")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.IndexedDB.KeyPath KeyPath { get; set; } /// /// If true, index is unique. /// [JsonPropertyName("unique")] public bool Unique { get; set; } /// /// If true, index allows multiple entries for a key. /// [JsonPropertyName("multiEntry")] public bool MultiEntry { get; set; } } /// /// Key type. /// public enum KeyType { /// /// number /// [JsonPropertyName("number")] Number, /// /// string /// [JsonPropertyName("string")] String, /// /// date /// [JsonPropertyName("date")] Date, /// /// array /// [JsonPropertyName("array")] Array } /// /// Key. /// public partial class Key : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key type. /// [JsonPropertyName("type")] public CefSharp.DevTools.IndexedDB.KeyType Type { get; set; } /// /// Number value. /// [JsonPropertyName("number")] public double? Number { get; set; } /// /// String value. /// [JsonPropertyName("string")] public string String { get; set; } /// /// Date value. /// [JsonPropertyName("date")] public double? Date { get; set; } /// /// Array value. /// [JsonPropertyName("array")] public System.Collections.Generic.IList Array { get; set; } } /// /// Key range. /// public partial class KeyRange : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Lower bound. /// [JsonPropertyName("lower")] public CefSharp.DevTools.IndexedDB.Key Lower { get; set; } /// /// Upper bound. /// [JsonPropertyName("upper")] public CefSharp.DevTools.IndexedDB.Key Upper { get; set; } /// /// If true lower bound is open. /// [JsonPropertyName("lowerOpen")] public bool LowerOpen { get; set; } /// /// If true upper bound is open. /// [JsonPropertyName("upperOpen")] public bool UpperOpen { get; set; } } /// /// Data entry. /// public partial class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key object. /// [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.RemoteObject Key { get; set; } /// /// Primary key object. /// [JsonPropertyName("primaryKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.RemoteObject PrimaryKey { get; set; } /// /// Value object. /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.RemoteObject Value { get; set; } } /// /// Key path type. /// public enum KeyPathType { /// /// null /// [JsonPropertyName("null")] Null, /// /// string /// [JsonPropertyName("string")] String, /// /// array /// [JsonPropertyName("array")] Array } /// /// Key path. /// public partial class KeyPath : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key path type. /// [JsonPropertyName("type")] public CefSharp.DevTools.IndexedDB.KeyPathType Type { get; set; } /// /// String value. /// [JsonPropertyName("string")] public string String { get; set; } /// /// Array value. /// [JsonPropertyName("array")] public string[] Array { get; set; } } } namespace CefSharp.DevTools.Input { /// /// TouchPoint /// public partial class TouchPoint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// X coordinate of the event relative to the main frame's viewport in CSS pixels. /// [JsonPropertyName("x")] public double 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. /// [JsonPropertyName("y")] public double Y { get; set; } /// /// X radius of the touch area (default: 1.0). /// [JsonPropertyName("radiusX")] public double? RadiusX { get; set; } /// /// Y radius of the touch area (default: 1.0). /// [JsonPropertyName("radiusY")] public double? RadiusY { get; set; } /// /// Rotation angle (default: 0.0). /// [JsonPropertyName("rotationAngle")] public double? RotationAngle { get; set; } /// /// Force (default: 1.0). /// [JsonPropertyName("force")] public double? Force { get; set; } /// /// The normalized tangential pressure, which has a range of [-1,1] (default: 0). /// [JsonPropertyName("tangentialPressure")] public double? TangentialPressure { get; set; } /// /// The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0) /// [JsonPropertyName("tiltX")] public double? TiltX { get; set; } /// /// The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). /// [JsonPropertyName("tiltY")] public double? TiltY { get; set; } /// /// The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). /// [JsonPropertyName("twist")] public int? Twist { get; set; } /// /// Identifier used to track touch sources between events, must be unique within an event. /// [JsonPropertyName("id")] public double? Id { get; set; } } /// /// GestureSourceType /// public enum GestureSourceType { /// /// default /// [JsonPropertyName("default")] Default, /// /// touch /// [JsonPropertyName("touch")] Touch, /// /// mouse /// [JsonPropertyName("mouse")] Mouse } /// /// MouseButton /// public enum MouseButton { /// /// none /// [JsonPropertyName("none")] None, /// /// left /// [JsonPropertyName("left")] Left, /// /// middle /// [JsonPropertyName("middle")] Middle, /// /// right /// [JsonPropertyName("right")] Right, /// /// back /// [JsonPropertyName("back")] Back, /// /// forward /// [JsonPropertyName("forward")] Forward } /// /// DragDataItem /// public partial class DragDataItem : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Mime type of the dragged data. /// [JsonPropertyName("mimeType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string MimeType { get; set; } /// /// Depending of the value of `mimeType`, it contains the dragged link, /// text, HTML markup or any other data. /// [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Data { get; set; } /// /// Title associated with a link. Only valid when `mimeType` == "text/uri-list". /// [JsonPropertyName("title")] public string Title { get; set; } /// /// Stores the base URL for the contained markup. Only valid when `mimeType` /// == "text/html". /// [JsonPropertyName("baseURL")] public string BaseURL { get; set; } } /// /// DragData /// public partial class DragData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Items /// [JsonPropertyName("items")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Items { get; set; } /// /// List of filenames that should be included when dropping /// [JsonPropertyName("files")] public string[] Files { get; set; } /// /// Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16 /// [JsonPropertyName("dragOperationsMask")] public int DragOperationsMask { get; set; } } /// /// Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to /// restore normal drag and drop behavior. /// public class DragInterceptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Data /// [JsonInclude] [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Input.DragData Data { get; private set; } } } namespace CefSharp.DevTools.Inspector { /// /// Fired when remote debugging connection is about to be terminated. Contains detach reason. /// public class DetachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// The reason why connection has been terminated. /// [JsonInclude] [JsonPropertyName("reason")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Reason { get; private set; } } } namespace CefSharp.DevTools.LayerTree { /// /// Reason for rectangle to force scrolling on the main thread /// public enum ScrollRectType { /// /// RepaintsOnScroll /// [JsonPropertyName("RepaintsOnScroll")] RepaintsOnScroll, /// /// TouchEventHandler /// [JsonPropertyName("TouchEventHandler")] TouchEventHandler, /// /// WheelEventHandler /// [JsonPropertyName("WheelEventHandler")] WheelEventHandler } /// /// Rectangle where scrolling happens on the main thread. /// public partial class ScrollRect : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Rectangle itself. /// [JsonPropertyName("rect")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect Rect { get; set; } /// /// Reason for rectangle to force scrolling on the main thread /// [JsonPropertyName("type")] public CefSharp.DevTools.LayerTree.ScrollRectType Type { get; set; } } /// /// Sticky position constraints. /// public partial class StickyPositionConstraint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Layout rectangle of the sticky element before being shifted /// [JsonPropertyName("stickyBoxRect")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect StickyBoxRect { get; set; } /// /// Layout rectangle of the containing block of the sticky element /// [JsonPropertyName("containingBlockRect")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect ContainingBlockRect { get; set; } /// /// The nearest sticky layer that shifts the sticky box /// [JsonPropertyName("nearestLayerShiftingStickyBox")] public string NearestLayerShiftingStickyBox { get; set; } /// /// The nearest sticky layer that shifts the containing block /// [JsonPropertyName("nearestLayerShiftingContainingBlock")] public string NearestLayerShiftingContainingBlock { get; set; } } /// /// Serialized fragment of layer picture along with its offset within the layer. /// public partial class PictureTile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Offset from owning layer left boundary /// [JsonPropertyName("x")] public double X { get; set; } /// /// Offset from owning layer top boundary /// [JsonPropertyName("y")] public double Y { get; set; } /// /// Base64-encoded snapshot data. /// [JsonPropertyName("picture")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] Picture { get; set; } } /// /// Information about a compositing layer. /// public partial class Layer : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The unique id for this layer. /// [JsonPropertyName("layerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LayerId { get; set; } /// /// The id of parent (not present for root). /// [JsonPropertyName("parentLayerId")] public string ParentLayerId { get; set; } /// /// The backend id for the node associated with this layer. /// [JsonPropertyName("backendNodeId")] public int? BackendNodeId { get; set; } /// /// Offset from parent layer, X coordinate. /// [JsonPropertyName("offsetX")] public double OffsetX { get; set; } /// /// Offset from parent layer, Y coordinate. /// [JsonPropertyName("offsetY")] public double OffsetY { get; set; } /// /// Layer width. /// [JsonPropertyName("width")] public double Width { get; set; } /// /// Layer height. /// [JsonPropertyName("height")] public double Height { get; set; } /// /// Transformation matrix for layer, default is identity matrix /// [JsonPropertyName("transform")] public double[] Transform { get; set; } /// /// Transform anchor point X, absent if no transform specified /// [JsonPropertyName("anchorX")] public double? AnchorX { get; set; } /// /// Transform anchor point Y, absent if no transform specified /// [JsonPropertyName("anchorY")] public double? AnchorY { get; set; } /// /// Transform anchor point Z, absent if no transform specified /// [JsonPropertyName("anchorZ")] public double? AnchorZ { get; set; } /// /// Indicates how many time this layer has painted. /// [JsonPropertyName("paintCount")] public int PaintCount { get; set; } /// /// Indicates whether this layer hosts any content, rather than being used for /// transform/scrolling purposes only. /// [JsonPropertyName("drawsContent")] public bool DrawsContent { get; set; } /// /// Set if layer is not visible. /// [JsonPropertyName("invisible")] public bool? Invisible { get; set; } /// /// Rectangles scrolling on main thread only. /// [JsonPropertyName("scrollRects")] public System.Collections.Generic.IList ScrollRects { get; set; } /// /// Sticky position constraint information /// [JsonPropertyName("stickyPositionConstraint")] public CefSharp.DevTools.LayerTree.StickyPositionConstraint StickyPositionConstraint { get; set; } } /// /// layerPainted /// public class LayerPaintedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// The id of the painted layer. /// [JsonInclude] [JsonPropertyName("layerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LayerId { get; private set; } /// /// Clip rectangle. /// [JsonInclude] [JsonPropertyName("clip")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect Clip { get; private set; } } /// /// layerTreeDidChange /// public class LayerTreeDidChangeEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Layer tree, absent if not in the compositing mode. /// [JsonInclude] [JsonPropertyName("layers")] public System.Collections.Generic.IList Layers { get; private set; } } } namespace CefSharp.DevTools.Log { /// /// Log entry source. /// public enum LogEntrySource { /// /// xml /// [JsonPropertyName("xml")] Xml, /// /// javascript /// [JsonPropertyName("javascript")] Javascript, /// /// network /// [JsonPropertyName("network")] Network, /// /// storage /// [JsonPropertyName("storage")] Storage, /// /// appcache /// [JsonPropertyName("appcache")] Appcache, /// /// rendering /// [JsonPropertyName("rendering")] Rendering, /// /// security /// [JsonPropertyName("security")] Security, /// /// deprecation /// [JsonPropertyName("deprecation")] Deprecation, /// /// worker /// [JsonPropertyName("worker")] Worker, /// /// violation /// [JsonPropertyName("violation")] Violation, /// /// intervention /// [JsonPropertyName("intervention")] Intervention, /// /// recommendation /// [JsonPropertyName("recommendation")] Recommendation, /// /// other /// [JsonPropertyName("other")] Other } /// /// Log entry severity. /// public enum LogEntryLevel { /// /// verbose /// [JsonPropertyName("verbose")] Verbose, /// /// info /// [JsonPropertyName("info")] Info, /// /// warning /// [JsonPropertyName("warning")] Warning, /// /// error /// [JsonPropertyName("error")] Error } /// /// LogEntryCategory /// public enum LogEntryCategory { /// /// cors /// [JsonPropertyName("cors")] Cors } /// /// Log entry. /// public partial class LogEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Log entry source. /// [JsonPropertyName("source")] public CefSharp.DevTools.Log.LogEntrySource Source { get; set; } /// /// Log entry severity. /// [JsonPropertyName("level")] public CefSharp.DevTools.Log.LogEntryLevel Level { get; set; } /// /// Logged text. /// [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { get; set; } /// /// Category /// [JsonPropertyName("category")] public CefSharp.DevTools.Log.LogEntryCategory? Category { get; set; } /// /// Timestamp when this entry was added. /// [JsonPropertyName("timestamp")] public double Timestamp { get; set; } /// /// URL of the resource if known. /// [JsonPropertyName("url")] public string Url { get; set; } /// /// Line number in the resource. /// [JsonPropertyName("lineNumber")] public int? LineNumber { get; set; } /// /// JavaScript stack trace. /// [JsonPropertyName("stackTrace")] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; set; } /// /// Identifier of the network request associated with this entry. /// [JsonPropertyName("networkRequestId")] public string NetworkRequestId { get; set; } /// /// Identifier of the worker associated with this entry. /// [JsonPropertyName("workerId")] public string WorkerId { get; set; } /// /// Call arguments. /// [JsonPropertyName("args")] public System.Collections.Generic.IList Args { get; set; } } /// /// Violation type. /// public enum ViolationSettingName { /// /// longTask /// [JsonPropertyName("longTask")] LongTask, /// /// longLayout /// [JsonPropertyName("longLayout")] LongLayout, /// /// blockedEvent /// [JsonPropertyName("blockedEvent")] BlockedEvent, /// /// blockedParser /// [JsonPropertyName("blockedParser")] BlockedParser, /// /// discouragedAPIUse /// [JsonPropertyName("discouragedAPIUse")] DiscouragedAPIUse, /// /// handler /// [JsonPropertyName("handler")] Handler, /// /// recurringHandler /// [JsonPropertyName("recurringHandler")] RecurringHandler } /// /// Violation configuration setting. /// public partial class ViolationSetting : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Violation type. /// [JsonPropertyName("name")] public CefSharp.DevTools.Log.ViolationSettingName Name { get; set; } /// /// Time threshold to trigger upon. /// [JsonPropertyName("threshold")] public double Threshold { get; set; } } /// /// Issued when new message was logged. /// public class EntryAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// The entry. /// [JsonInclude] [JsonPropertyName("entry")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Log.LogEntry Entry { get; private set; } } } namespace CefSharp.DevTools.Media { /// /// 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. /// public enum PlayerMessageLevel { /// /// error /// [JsonPropertyName("error")] Error, /// /// warning /// [JsonPropertyName("warning")] Warning, /// /// info /// [JsonPropertyName("info")] Info, /// /// debug /// [JsonPropertyName("debug")] Debug } /// /// Have one type per entry in MediaLogRecord::Type /// Corresponds to kMessage /// public partial 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. /// [JsonPropertyName("level")] public CefSharp.DevTools.Media.PlayerMessageLevel Level { get; set; } /// /// Message /// [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Message { get; set; } } /// /// Corresponds to kMediaPropertyChange /// public partial class PlayerProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Value /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// Corresponds to kMediaEventTriggered /// public partial class PlayerEvent : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Timestamp /// [JsonPropertyName("timestamp")] public double Timestamp { get; set; } /// /// Value /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// Represents logged source line numbers reported in an error. /// NOTE: file and line are from chromium c++ implementation code, not js. /// public partial class PlayerErrorSourceLocation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// File /// [JsonPropertyName("file")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string File { get; set; } /// /// Line /// [JsonPropertyName("line")] public int Line { get; set; } } /// /// Corresponds to kMediaError /// public partial class PlayerError : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ErrorType /// [JsonPropertyName("errorType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorType { get; set; } /// /// Code is the numeric enum entry for a specific set of error codes, such /// as PipelineStatusCodes in media/base/pipeline_status.h /// [JsonPropertyName("code")] public int Code { get; set; } /// /// A trace of where this error was caused / where it passed through. /// [JsonPropertyName("stack")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Stack { get; set; } /// /// Errors potentially have a root cause error, ie, a DecoderError might be /// caused by an WindowsError /// [JsonPropertyName("cause")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Cause { get; set; } /// /// Extra data attached to an error, such as an HRESULT, Video Codec, etc. /// [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public object Data { get; set; } } /// /// Player /// public partial class Player : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// PlayerId /// [JsonPropertyName("playerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlayerId { get; set; } /// /// DomNodeId /// [JsonPropertyName("domNodeId")] public int? DomNodeId { get; set; } } /// /// This can be called multiple times, and can be used to set / override / /// remove player properties. A null propValue indicates removal. /// public class PlayerPropertiesChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// PlayerId /// [JsonInclude] [JsonPropertyName("playerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlayerId { get; private set; } /// /// Properties /// [JsonInclude] [JsonPropertyName("properties")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Properties { get; private set; } } /// /// Send events as a list, allowing them to be batched on the browser for less /// congestion. If batched, events must ALWAYS be in chronological order. /// public class PlayerEventsAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// PlayerId /// [JsonInclude] [JsonPropertyName("playerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlayerId { get; private set; } /// /// Events /// [JsonInclude] [JsonPropertyName("events")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Events { get; private set; } } /// /// Send a list of any messages that need to be delivered. /// public class PlayerMessagesLoggedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// PlayerId /// [JsonInclude] [JsonPropertyName("playerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlayerId { get; private set; } /// /// Messages /// [JsonInclude] [JsonPropertyName("messages")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Messages { get; private set; } } /// /// Send a list of any errors that need to be delivered. /// public class PlayerErrorsRaisedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// PlayerId /// [JsonInclude] [JsonPropertyName("playerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlayerId { get; private set; } /// /// Errors /// [JsonInclude] [JsonPropertyName("errors")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Errors { get; private set; } } /// /// Called whenever a player is created, or when a new agent joins and receives /// a list of active players. If an agent is restored, it will receive one /// event for each active player. /// public class PlayerCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Player /// [JsonInclude] [JsonPropertyName("player")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Media.Player Player { get; private set; } } } namespace CefSharp.DevTools.Memory { /// /// Memory pressure level. /// public enum PressureLevel { /// /// moderate /// [JsonPropertyName("moderate")] Moderate, /// /// critical /// [JsonPropertyName("critical")] Critical } /// /// Heap profile sample. /// public partial class SamplingProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Size of the sampled allocation. /// [JsonPropertyName("size")] public double Size { get; set; } /// /// Total bytes attributed to this sample. /// [JsonPropertyName("total")] public double Total { get; set; } /// /// Execution stack at the point of allocation. /// [JsonPropertyName("stack")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Stack { get; set; } } /// /// Array of heap profile samples. /// public partial class SamplingProfile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Samples /// [JsonPropertyName("samples")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Samples { get; set; } /// /// Modules /// [JsonPropertyName("modules")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Modules { get; set; } } /// /// Executable module information /// public partial class Module : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of the module. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// UUID of the module. /// [JsonPropertyName("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. /// [JsonPropertyName("baseAddress")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string BaseAddress { get; set; } /// /// Size of the module in bytes. /// [JsonPropertyName("size")] public double Size { get; set; } } /// /// DOM object counter data. /// public partial class DOMCounter : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Object name. Note: object names should be presumed volatile and clients should not expect /// the returned names to be consistent across runs. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Object count. /// [JsonPropertyName("count")] public int Count { get; set; } } } namespace CefSharp.DevTools.Network { /// /// Resource type as it was perceived by the rendering engine. /// public enum ResourceType { /// /// Document /// [JsonPropertyName("Document")] Document, /// /// Stylesheet /// [JsonPropertyName("Stylesheet")] Stylesheet, /// /// Image /// [JsonPropertyName("Image")] Image, /// /// Media /// [JsonPropertyName("Media")] Media, /// /// Font /// [JsonPropertyName("Font")] Font, /// /// Script /// [JsonPropertyName("Script")] Script, /// /// TextTrack /// [JsonPropertyName("TextTrack")] TextTrack, /// /// XHR /// [JsonPropertyName("XHR")] XHR, /// /// Fetch /// [JsonPropertyName("Fetch")] Fetch, /// /// Prefetch /// [JsonPropertyName("Prefetch")] Prefetch, /// /// EventSource /// [JsonPropertyName("EventSource")] EventSource, /// /// WebSocket /// [JsonPropertyName("WebSocket")] WebSocket, /// /// Manifest /// [JsonPropertyName("Manifest")] Manifest, /// /// SignedExchange /// [JsonPropertyName("SignedExchange")] SignedExchange, /// /// Ping /// [JsonPropertyName("Ping")] Ping, /// /// CSPViolationReport /// [JsonPropertyName("CSPViolationReport")] CSPViolationReport, /// /// Preflight /// [JsonPropertyName("Preflight")] Preflight, /// /// FedCM /// [JsonPropertyName("FedCM")] FedCM, /// /// Other /// [JsonPropertyName("Other")] Other } /// /// Network level fetch failure reason. /// public enum ErrorReason { /// /// Failed /// [JsonPropertyName("Failed")] Failed, /// /// Aborted /// [JsonPropertyName("Aborted")] Aborted, /// /// TimedOut /// [JsonPropertyName("TimedOut")] TimedOut, /// /// AccessDenied /// [JsonPropertyName("AccessDenied")] AccessDenied, /// /// ConnectionClosed /// [JsonPropertyName("ConnectionClosed")] ConnectionClosed, /// /// ConnectionReset /// [JsonPropertyName("ConnectionReset")] ConnectionReset, /// /// ConnectionRefused /// [JsonPropertyName("ConnectionRefused")] ConnectionRefused, /// /// ConnectionAborted /// [JsonPropertyName("ConnectionAborted")] ConnectionAborted, /// /// ConnectionFailed /// [JsonPropertyName("ConnectionFailed")] ConnectionFailed, /// /// NameNotResolved /// [JsonPropertyName("NameNotResolved")] NameNotResolved, /// /// InternetDisconnected /// [JsonPropertyName("InternetDisconnected")] InternetDisconnected, /// /// AddressUnreachable /// [JsonPropertyName("AddressUnreachable")] AddressUnreachable, /// /// BlockedByClient /// [JsonPropertyName("BlockedByClient")] BlockedByClient, /// /// BlockedByResponse /// [JsonPropertyName("BlockedByResponse")] BlockedByResponse } /// /// The underlying connection technology that the browser is supposedly using. /// public enum ConnectionType { /// /// none /// [JsonPropertyName("none")] None, /// /// cellular2g /// [JsonPropertyName("cellular2g")] Cellular2g, /// /// cellular3g /// [JsonPropertyName("cellular3g")] Cellular3g, /// /// cellular4g /// [JsonPropertyName("cellular4g")] Cellular4g, /// /// bluetooth /// [JsonPropertyName("bluetooth")] Bluetooth, /// /// ethernet /// [JsonPropertyName("ethernet")] Ethernet, /// /// wifi /// [JsonPropertyName("wifi")] Wifi, /// /// wimax /// [JsonPropertyName("wimax")] Wimax, /// /// other /// [JsonPropertyName("other")] Other } /// /// Represents the cookie's 'SameSite' status: /// https://tools.ietf.org/html/draft-west-first-party-cookies /// public enum CookieSameSite { /// /// Strict /// [JsonPropertyName("Strict")] Strict, /// /// Lax /// [JsonPropertyName("Lax")] Lax, /// /// None /// [JsonPropertyName("None")] None } /// /// Represents the cookie's 'Priority' status: /// https://tools.ietf.org/html/draft-west-cookie-priority-00 /// public enum CookiePriority { /// /// Low /// [JsonPropertyName("Low")] Low, /// /// Medium /// [JsonPropertyName("Medium")] Medium, /// /// High /// [JsonPropertyName("High")] High } /// /// Represents the source scheme of the origin that originally set the cookie. /// A value of "Unset" allows protocol clients to emulate legacy cookie scope for the scheme. /// This is a temporary ability and it will be removed in the future. /// public enum CookieSourceScheme { /// /// Unset /// [JsonPropertyName("Unset")] Unset, /// /// NonSecure /// [JsonPropertyName("NonSecure")] NonSecure, /// /// Secure /// [JsonPropertyName("Secure")] Secure } /// /// Timing information for the request. /// public partial 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. /// [JsonPropertyName("requestTime")] public double RequestTime { get; set; } /// /// Started resolving proxy. /// [JsonPropertyName("proxyStart")] public double ProxyStart { get; set; } /// /// Finished resolving proxy. /// [JsonPropertyName("proxyEnd")] public double ProxyEnd { get; set; } /// /// Started DNS address resolve. /// [JsonPropertyName("dnsStart")] public double DnsStart { get; set; } /// /// Finished DNS address resolve. /// [JsonPropertyName("dnsEnd")] public double DnsEnd { get; set; } /// /// Started connecting to the remote host. /// [JsonPropertyName("connectStart")] public double ConnectStart { get; set; } /// /// Connected to the remote host. /// [JsonPropertyName("connectEnd")] public double ConnectEnd { get; set; } /// /// Started SSL handshake. /// [JsonPropertyName("sslStart")] public double SslStart { get; set; } /// /// Finished SSL handshake. /// [JsonPropertyName("sslEnd")] public double SslEnd { get; set; } /// /// Started running ServiceWorker. /// [JsonPropertyName("workerStart")] public double WorkerStart { get; set; } /// /// Finished Starting ServiceWorker. /// [JsonPropertyName("workerReady")] public double WorkerReady { get; set; } /// /// Started fetch event. /// [JsonPropertyName("workerFetchStart")] public double WorkerFetchStart { get; set; } /// /// Settled fetch event respondWith promise. /// [JsonPropertyName("workerRespondWithSettled")] public double WorkerRespondWithSettled { get; set; } /// /// Started ServiceWorker static routing source evaluation. /// [JsonPropertyName("workerRouterEvaluationStart")] public double? WorkerRouterEvaluationStart { get; set; } /// /// Started cache lookup when the source was evaluated to `cache`. /// [JsonPropertyName("workerCacheLookupStart")] public double? WorkerCacheLookupStart { get; set; } /// /// Started sending request. /// [JsonPropertyName("sendStart")] public double SendStart { get; set; } /// /// Finished sending request. /// [JsonPropertyName("sendEnd")] public double SendEnd { get; set; } /// /// Time the server started pushing request. /// [JsonPropertyName("pushStart")] public double PushStart { get; set; } /// /// Time the server finished pushing request. /// [JsonPropertyName("pushEnd")] public double PushEnd { get; set; } /// /// Started receiving response headers. /// [JsonPropertyName("receiveHeadersStart")] public double ReceiveHeadersStart { get; set; } /// /// Finished receiving response headers. /// [JsonPropertyName("receiveHeadersEnd")] public double ReceiveHeadersEnd { get; set; } } /// /// Loading priority of a resource request. /// public enum ResourcePriority { /// /// VeryLow /// [JsonPropertyName("VeryLow")] VeryLow, /// /// Low /// [JsonPropertyName("Low")] Low, /// /// Medium /// [JsonPropertyName("Medium")] Medium, /// /// High /// [JsonPropertyName("High")] High, /// /// VeryHigh /// [JsonPropertyName("VeryHigh")] VeryHigh } /// /// The render blocking behavior of a resource request. /// public enum RenderBlockingBehavior { /// /// Blocking /// [JsonPropertyName("Blocking")] Blocking, /// /// InBodyParserBlocking /// [JsonPropertyName("InBodyParserBlocking")] InBodyParserBlocking, /// /// NonBlocking /// [JsonPropertyName("NonBlocking")] NonBlocking, /// /// NonBlockingDynamic /// [JsonPropertyName("NonBlockingDynamic")] NonBlockingDynamic, /// /// PotentiallyBlocking /// [JsonPropertyName("PotentiallyBlocking")] PotentiallyBlocking } /// /// Post data entry for HTTP request /// public partial class PostDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Bytes /// [JsonPropertyName("bytes")] public byte[] Bytes { get; set; } } /// /// The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ /// public enum RequestReferrerPolicy { /// /// unsafe-url /// [JsonPropertyName("unsafe-url")] UnsafeUrl, /// /// no-referrer-when-downgrade /// [JsonPropertyName("no-referrer-when-downgrade")] NoReferrerWhenDowngrade, /// /// no-referrer /// [JsonPropertyName("no-referrer")] NoReferrer, /// /// origin /// [JsonPropertyName("origin")] Origin, /// /// origin-when-cross-origin /// [JsonPropertyName("origin-when-cross-origin")] OriginWhenCrossOrigin, /// /// same-origin /// [JsonPropertyName("same-origin")] SameOrigin, /// /// strict-origin /// [JsonPropertyName("strict-origin")] StrictOrigin, /// /// strict-origin-when-cross-origin /// [JsonPropertyName("strict-origin-when-cross-origin")] StrictOriginWhenCrossOrigin } /// /// HTTP request data. /// public partial class Request : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Request URL (without fragment). /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Fragment of the requested URL starting with hash, if present. /// [JsonPropertyName("urlFragment")] public string UrlFragment { get; set; } /// /// HTTP request method. /// [JsonPropertyName("method")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Method { get; set; } /// /// HTTP request headers. /// [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { get; set; } /// /// HTTP POST request data. /// Use postDataEntries instead. /// [JsonPropertyName("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. /// [JsonPropertyName("hasPostData")] public bool? HasPostData { get; set; } /// /// Request body elements (post data broken into individual entries). /// [JsonPropertyName("postDataEntries")] public System.Collections.Generic.IList PostDataEntries { get; set; } /// /// The mixed content type of the request. /// [JsonPropertyName("mixedContentType")] public CefSharp.DevTools.Security.MixedContentType? MixedContentType { get; set; } /// /// Priority of the resource request at the time request is sent. /// [JsonPropertyName("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/ /// [JsonPropertyName("referrerPolicy")] public CefSharp.DevTools.Network.RequestReferrerPolicy ReferrerPolicy { get; set; } /// /// Whether is loaded via link preload. /// [JsonPropertyName("isLinkPreload")] public bool? IsLinkPreload { get; set; } /// /// Set for requests when the TrustToken API is used. Contains the parameters /// passed by the developer (e.g. via "fetch") as understood by the backend. /// [JsonPropertyName("trustTokenParams")] public CefSharp.DevTools.Network.TrustTokenParams TrustTokenParams { get; set; } /// /// True if this resource request is considered to be the 'same site' as the /// request corresponding to the main frame. /// [JsonPropertyName("isSameSite")] public bool? IsSameSite { get; set; } /// /// True when the resource request is ad-related. /// [JsonPropertyName("isAdRelated")] public bool? IsAdRelated { get; set; } } /// /// Details of a signed certificate timestamp (SCT). /// public partial class SignedCertificateTimestamp : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Validation status. /// [JsonPropertyName("status")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Status { get; set; } /// /// Origin. /// [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; set; } /// /// Log name / description. /// [JsonPropertyName("logDescription")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LogDescription { get; set; } /// /// Log ID. /// [JsonPropertyName("logId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LogId { get; set; } /// /// Issuance date. Unlike TimeSinceEpoch, this contains the number of /// milliseconds since January 1, 1970, UTC, not the number of seconds. /// [JsonPropertyName("timestamp")] public double Timestamp { get; set; } /// /// Hash algorithm. /// [JsonPropertyName("hashAlgorithm")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string HashAlgorithm { get; set; } /// /// Signature algorithm. /// [JsonPropertyName("signatureAlgorithm")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SignatureAlgorithm { get; set; } /// /// Signature data. /// [JsonPropertyName("signatureData")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SignatureData { get; set; } } /// /// Security details about a request. /// public partial class SecurityDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Protocol name (e.g. "TLS 1.2" or "QUIC"). /// [JsonPropertyName("protocol")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Protocol { get; set; } /// /// Key Exchange used by the connection, or the empty string if not applicable. /// [JsonPropertyName("keyExchange")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string KeyExchange { get; set; } /// /// (EC)DH group used by the connection, if applicable. /// [JsonPropertyName("keyExchangeGroup")] public string KeyExchangeGroup { get; set; } /// /// Cipher name. /// [JsonPropertyName("cipher")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Cipher { get; set; } /// /// TLS MAC. Note that AEAD ciphers do not have separate MACs. /// [JsonPropertyName("mac")] public string Mac { get; set; } /// /// Certificate ID value. /// [JsonPropertyName("certificateId")] public int CertificateId { get; set; } /// /// Certificate subject name. /// [JsonPropertyName("subjectName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SubjectName { get; set; } /// /// Subject Alternative Name (SAN) DNS names and IP addresses. /// [JsonPropertyName("sanList")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] SanList { get; set; } /// /// Name of the issuing CA. /// [JsonPropertyName("issuer")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Issuer { get; set; } /// /// Certificate valid from date. /// [JsonPropertyName("validFrom")] public double ValidFrom { get; set; } /// /// Certificate valid to (expiration) date /// [JsonPropertyName("validTo")] public double ValidTo { get; set; } /// /// List of signed certificate timestamps (SCTs). /// [JsonPropertyName("signedCertificateTimestampList")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList SignedCertificateTimestampList { get; set; } /// /// Whether the request complied with Certificate Transparency policy /// [JsonPropertyName("certificateTransparencyCompliance")] public CefSharp.DevTools.Network.CertificateTransparencyCompliance CertificateTransparencyCompliance { get; set; } /// /// The signature algorithm used by the server in the TLS server signature, /// represented as a TLS SignatureScheme code point. Omitted if not /// applicable or not known. /// [JsonPropertyName("serverSignatureAlgorithm")] public int? ServerSignatureAlgorithm { get; set; } /// /// Whether the connection used Encrypted ClientHello /// [JsonPropertyName("encryptedClientHello")] public bool EncryptedClientHello { get; set; } } /// /// Whether the request complied with Certificate Transparency policy. /// public enum CertificateTransparencyCompliance { /// /// unknown /// [JsonPropertyName("unknown")] Unknown, /// /// not-compliant /// [JsonPropertyName("not-compliant")] NotCompliant, /// /// compliant /// [JsonPropertyName("compliant")] Compliant } /// /// The reason why request was blocked. /// public enum BlockedReason { /// /// other /// [JsonPropertyName("other")] Other, /// /// csp /// [JsonPropertyName("csp")] Csp, /// /// mixed-content /// [JsonPropertyName("mixed-content")] MixedContent, /// /// origin /// [JsonPropertyName("origin")] Origin, /// /// inspector /// [JsonPropertyName("inspector")] Inspector, /// /// integrity /// [JsonPropertyName("integrity")] Integrity, /// /// subresource-filter /// [JsonPropertyName("subresource-filter")] SubresourceFilter, /// /// content-type /// [JsonPropertyName("content-type")] ContentType, /// /// coep-frame-resource-needs-coep-header /// [JsonPropertyName("coep-frame-resource-needs-coep-header")] CoepFrameResourceNeedsCoepHeader, /// /// coop-sandboxed-iframe-cannot-navigate-to-coop-page /// [JsonPropertyName("coop-sandboxed-iframe-cannot-navigate-to-coop-page")] CoopSandboxedIframeCannotNavigateToCoopPage, /// /// corp-not-same-origin /// [JsonPropertyName("corp-not-same-origin")] CorpNotSameOrigin, /// /// corp-not-same-origin-after-defaulted-to-same-origin-by-coep /// [JsonPropertyName("corp-not-same-origin-after-defaulted-to-same-origin-by-coep")] CorpNotSameOriginAfterDefaultedToSameOriginByCoep, /// /// corp-not-same-origin-after-defaulted-to-same-origin-by-dip /// [JsonPropertyName("corp-not-same-origin-after-defaulted-to-same-origin-by-dip")] CorpNotSameOriginAfterDefaultedToSameOriginByDip, /// /// corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip /// [JsonPropertyName("corp-not-same-origin-after-defaulted-to-same-origin-by-coep-and-dip")] CorpNotSameOriginAfterDefaultedToSameOriginByCoepAndDip, /// /// corp-not-same-site /// [JsonPropertyName("corp-not-same-site")] CorpNotSameSite, /// /// sri-message-signature-mismatch /// [JsonPropertyName("sri-message-signature-mismatch")] SriMessageSignatureMismatch } /// /// The reason why request was blocked. /// public enum CorsError { /// /// DisallowedByMode /// [JsonPropertyName("DisallowedByMode")] DisallowedByMode, /// /// InvalidResponse /// [JsonPropertyName("InvalidResponse")] InvalidResponse, /// /// WildcardOriginNotAllowed /// [JsonPropertyName("WildcardOriginNotAllowed")] WildcardOriginNotAllowed, /// /// MissingAllowOriginHeader /// [JsonPropertyName("MissingAllowOriginHeader")] MissingAllowOriginHeader, /// /// MultipleAllowOriginValues /// [JsonPropertyName("MultipleAllowOriginValues")] MultipleAllowOriginValues, /// /// InvalidAllowOriginValue /// [JsonPropertyName("InvalidAllowOriginValue")] InvalidAllowOriginValue, /// /// AllowOriginMismatch /// [JsonPropertyName("AllowOriginMismatch")] AllowOriginMismatch, /// /// InvalidAllowCredentials /// [JsonPropertyName("InvalidAllowCredentials")] InvalidAllowCredentials, /// /// CorsDisabledScheme /// [JsonPropertyName("CorsDisabledScheme")] CorsDisabledScheme, /// /// PreflightInvalidStatus /// [JsonPropertyName("PreflightInvalidStatus")] PreflightInvalidStatus, /// /// PreflightDisallowedRedirect /// [JsonPropertyName("PreflightDisallowedRedirect")] PreflightDisallowedRedirect, /// /// PreflightWildcardOriginNotAllowed /// [JsonPropertyName("PreflightWildcardOriginNotAllowed")] PreflightWildcardOriginNotAllowed, /// /// PreflightMissingAllowOriginHeader /// [JsonPropertyName("PreflightMissingAllowOriginHeader")] PreflightMissingAllowOriginHeader, /// /// PreflightMultipleAllowOriginValues /// [JsonPropertyName("PreflightMultipleAllowOriginValues")] PreflightMultipleAllowOriginValues, /// /// PreflightInvalidAllowOriginValue /// [JsonPropertyName("PreflightInvalidAllowOriginValue")] PreflightInvalidAllowOriginValue, /// /// PreflightAllowOriginMismatch /// [JsonPropertyName("PreflightAllowOriginMismatch")] PreflightAllowOriginMismatch, /// /// PreflightInvalidAllowCredentials /// [JsonPropertyName("PreflightInvalidAllowCredentials")] PreflightInvalidAllowCredentials, /// /// PreflightMissingAllowExternal /// [JsonPropertyName("PreflightMissingAllowExternal")] PreflightMissingAllowExternal, /// /// PreflightInvalidAllowExternal /// [JsonPropertyName("PreflightInvalidAllowExternal")] PreflightInvalidAllowExternal, /// /// PreflightMissingAllowPrivateNetwork /// [JsonPropertyName("PreflightMissingAllowPrivateNetwork")] PreflightMissingAllowPrivateNetwork, /// /// PreflightInvalidAllowPrivateNetwork /// [JsonPropertyName("PreflightInvalidAllowPrivateNetwork")] PreflightInvalidAllowPrivateNetwork, /// /// InvalidAllowMethodsPreflightResponse /// [JsonPropertyName("InvalidAllowMethodsPreflightResponse")] InvalidAllowMethodsPreflightResponse, /// /// InvalidAllowHeadersPreflightResponse /// [JsonPropertyName("InvalidAllowHeadersPreflightResponse")] InvalidAllowHeadersPreflightResponse, /// /// MethodDisallowedByPreflightResponse /// [JsonPropertyName("MethodDisallowedByPreflightResponse")] MethodDisallowedByPreflightResponse, /// /// HeaderDisallowedByPreflightResponse /// [JsonPropertyName("HeaderDisallowedByPreflightResponse")] HeaderDisallowedByPreflightResponse, /// /// RedirectContainsCredentials /// [JsonPropertyName("RedirectContainsCredentials")] RedirectContainsCredentials, /// /// InsecurePrivateNetwork /// [JsonPropertyName("InsecurePrivateNetwork")] InsecurePrivateNetwork, /// /// InvalidPrivateNetworkAccess /// [JsonPropertyName("InvalidPrivateNetworkAccess")] InvalidPrivateNetworkAccess, /// /// UnexpectedPrivateNetworkAccess /// [JsonPropertyName("UnexpectedPrivateNetworkAccess")] UnexpectedPrivateNetworkAccess, /// /// NoCorsRedirectModeNotFollow /// [JsonPropertyName("NoCorsRedirectModeNotFollow")] NoCorsRedirectModeNotFollow, /// /// PreflightMissingPrivateNetworkAccessId /// [JsonPropertyName("PreflightMissingPrivateNetworkAccessId")] PreflightMissingPrivateNetworkAccessId, /// /// PreflightMissingPrivateNetworkAccessName /// [JsonPropertyName("PreflightMissingPrivateNetworkAccessName")] PreflightMissingPrivateNetworkAccessName, /// /// PrivateNetworkAccessPermissionUnavailable /// [JsonPropertyName("PrivateNetworkAccessPermissionUnavailable")] PrivateNetworkAccessPermissionUnavailable, /// /// PrivateNetworkAccessPermissionDenied /// [JsonPropertyName("PrivateNetworkAccessPermissionDenied")] PrivateNetworkAccessPermissionDenied, /// /// LocalNetworkAccessPermissionDenied /// [JsonPropertyName("LocalNetworkAccessPermissionDenied")] LocalNetworkAccessPermissionDenied } /// /// CorsErrorStatus /// public partial class CorsErrorStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CorsError /// [JsonPropertyName("corsError")] public CefSharp.DevTools.Network.CorsError CorsError { get; set; } /// /// FailedParameter /// [JsonPropertyName("failedParameter")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FailedParameter { get; set; } } /// /// Source of serviceworker response. /// public enum ServiceWorkerResponseSource { /// /// cache-storage /// [JsonPropertyName("cache-storage")] CacheStorage, /// /// http-cache /// [JsonPropertyName("http-cache")] HttpCache, /// /// fallback-code /// [JsonPropertyName("fallback-code")] FallbackCode, /// /// network /// [JsonPropertyName("network")] Network } /// /// Only set for "token-redemption" operation and determine whether /// to request a fresh SRR or use a still valid cached SRR. /// public enum TrustTokenParamsRefreshPolicy { /// /// UseCached /// [JsonPropertyName("UseCached")] UseCached, /// /// Refresh /// [JsonPropertyName("Refresh")] Refresh } /// /// Determines what type of Trust Token operation is executed and /// depending on the type, some additional parameters. The values /// are specified in third_party/blink/renderer/core/fetch/trust_token.idl. /// public partial class TrustTokenParams : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Operation /// [JsonPropertyName("operation")] public CefSharp.DevTools.Network.TrustTokenOperationType Operation { get; set; } /// /// Only set for "token-redemption" operation and determine whether /// to request a fresh SRR or use a still valid cached SRR. /// [JsonPropertyName("refreshPolicy")] public CefSharp.DevTools.Network.TrustTokenParamsRefreshPolicy RefreshPolicy { get; set; } /// /// Origins of issuers from whom to request tokens or redemption /// records. /// [JsonPropertyName("issuers")] public string[] Issuers { get; set; } } /// /// TrustTokenOperationType /// public enum TrustTokenOperationType { /// /// Issuance /// [JsonPropertyName("Issuance")] Issuance, /// /// Redemption /// [JsonPropertyName("Redemption")] Redemption, /// /// Signing /// [JsonPropertyName("Signing")] Signing } /// /// The reason why Chrome uses a specific transport protocol for HTTP semantics. /// public enum AlternateProtocolUsage { /// /// alternativeJobWonWithoutRace /// [JsonPropertyName("alternativeJobWonWithoutRace")] AlternativeJobWonWithoutRace, /// /// alternativeJobWonRace /// [JsonPropertyName("alternativeJobWonRace")] AlternativeJobWonRace, /// /// mainJobWonRace /// [JsonPropertyName("mainJobWonRace")] MainJobWonRace, /// /// mappingMissing /// [JsonPropertyName("mappingMissing")] MappingMissing, /// /// broken /// [JsonPropertyName("broken")] Broken, /// /// dnsAlpnH3JobWonWithoutRace /// [JsonPropertyName("dnsAlpnH3JobWonWithoutRace")] DnsAlpnH3JobWonWithoutRace, /// /// dnsAlpnH3JobWonRace /// [JsonPropertyName("dnsAlpnH3JobWonRace")] DnsAlpnH3JobWonRace, /// /// unspecifiedReason /// [JsonPropertyName("unspecifiedReason")] UnspecifiedReason } /// /// Source of service worker router. /// public enum ServiceWorkerRouterSource { /// /// network /// [JsonPropertyName("network")] Network, /// /// cache /// [JsonPropertyName("cache")] Cache, /// /// fetch-event /// [JsonPropertyName("fetch-event")] FetchEvent, /// /// race-network-and-fetch-handler /// [JsonPropertyName("race-network-and-fetch-handler")] RaceNetworkAndFetchHandler, /// /// race-network-and-cache /// [JsonPropertyName("race-network-and-cache")] RaceNetworkAndCache } /// /// ServiceWorkerRouterInfo /// public partial class ServiceWorkerRouterInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ID of the rule matched. If there is a matched rule, this field will /// be set, otherwiser no value will be set. /// [JsonPropertyName("ruleIdMatched")] public int? RuleIdMatched { get; set; } /// /// The router source of the matched rule. If there is a matched rule, this /// field will be set, otherwise no value will be set. /// [JsonPropertyName("matchedSourceType")] public CefSharp.DevTools.Network.ServiceWorkerRouterSource? MatchedSourceType { get; set; } /// /// The actual router source used. /// [JsonPropertyName("actualSourceType")] public CefSharp.DevTools.Network.ServiceWorkerRouterSource? ActualSourceType { get; set; } } /// /// HTTP response data. /// public partial class Response : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Response URL. This URL can be different from CachedResource.url in case of redirect. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// HTTP response status code. /// [JsonPropertyName("status")] public int Status { get; set; } /// /// HTTP response status text. /// [JsonPropertyName("statusText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StatusText { get; set; } /// /// HTTP response headers. /// [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { get; set; } /// /// HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo. /// [JsonPropertyName("headersText")] public string HeadersText { get; set; } /// /// Resource mimeType as determined by the browser. /// [JsonPropertyName("mimeType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string MimeType { get; set; } /// /// Resource charset as determined by the browser (if applicable). /// [JsonPropertyName("charset")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Charset { get; set; } /// /// Refined HTTP request headers that were actually transmitted over the network. /// [JsonPropertyName("requestHeaders")] public CefSharp.DevTools.Network.Headers RequestHeaders { get; set; } /// /// HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo. /// [JsonPropertyName("requestHeadersText")] public string RequestHeadersText { get; set; } /// /// Specifies whether physical connection was actually reused for this request. /// [JsonPropertyName("connectionReused")] public bool ConnectionReused { get; set; } /// /// Physical connection id that was actually used for this request. /// [JsonPropertyName("connectionId")] public double ConnectionId { get; set; } /// /// Remote IP address. /// [JsonPropertyName("remoteIPAddress")] public string RemoteIPAddress { get; set; } /// /// Remote port. /// [JsonPropertyName("remotePort")] public int? RemotePort { get; set; } /// /// Specifies that the request was served from the disk cache. /// [JsonPropertyName("fromDiskCache")] public bool? FromDiskCache { get; set; } /// /// Specifies that the request was served from the ServiceWorker. /// [JsonPropertyName("fromServiceWorker")] public bool? FromServiceWorker { get; set; } /// /// Specifies that the request was served from the prefetch cache. /// [JsonPropertyName("fromPrefetchCache")] public bool? FromPrefetchCache { get; set; } /// /// Specifies that the request was served from the prefetch cache. /// [JsonPropertyName("fromEarlyHints")] public bool? FromEarlyHints { get; set; } /// /// Information about how ServiceWorker Static Router API was used. If this /// field is set with `matchedSourceType` field, a matching rule is found. /// If this field is set without `matchedSource`, no matching rule is found. /// Otherwise, the API is not used. /// [JsonPropertyName("serviceWorkerRouterInfo")] public CefSharp.DevTools.Network.ServiceWorkerRouterInfo ServiceWorkerRouterInfo { get; set; } /// /// Total number of bytes received for this request so far. /// [JsonPropertyName("encodedDataLength")] public double EncodedDataLength { get; set; } /// /// Timing information for the given request. /// [JsonPropertyName("timing")] public CefSharp.DevTools.Network.ResourceTiming Timing { get; set; } /// /// Response source of response from ServiceWorker. /// [JsonPropertyName("serviceWorkerResponseSource")] public CefSharp.DevTools.Network.ServiceWorkerResponseSource? ServiceWorkerResponseSource { get; set; } /// /// The time at which the returned response was generated. /// [JsonPropertyName("responseTime")] public double? ResponseTime { get; set; } /// /// Cache Storage Cache Name. /// [JsonPropertyName("cacheStorageCacheName")] public string CacheStorageCacheName { get; set; } /// /// Protocol used to fetch this request. /// [JsonPropertyName("protocol")] public string Protocol { get; set; } /// /// The reason why Chrome uses a specific transport protocol for HTTP semantics. /// [JsonPropertyName("alternateProtocolUsage")] public CefSharp.DevTools.Network.AlternateProtocolUsage? AlternateProtocolUsage { get; set; } /// /// Security state of the request resource. /// [JsonPropertyName("securityState")] public CefSharp.DevTools.Security.SecurityState SecurityState { get; set; } /// /// Security details for the request. /// [JsonPropertyName("securityDetails")] public CefSharp.DevTools.Network.SecurityDetails SecurityDetails { get; set; } } /// /// WebSocket request data. /// public partial class WebSocketRequest : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// HTTP request headers. /// [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { get; set; } } /// /// WebSocket response data. /// public partial class WebSocketResponse : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// HTTP response status code. /// [JsonPropertyName("status")] public int Status { get; set; } /// /// HTTP response status text. /// [JsonPropertyName("statusText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StatusText { get; set; } /// /// HTTP response headers. /// [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { get; set; } /// /// HTTP response headers text. /// [JsonPropertyName("headersText")] public string HeadersText { get; set; } /// /// HTTP request headers. /// [JsonPropertyName("requestHeaders")] public CefSharp.DevTools.Network.Headers RequestHeaders { get; set; } /// /// HTTP request headers text. /// [JsonPropertyName("requestHeadersText")] public string RequestHeadersText { get; set; } } /// /// WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests. /// public partial class WebSocketFrame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// WebSocket message opcode. /// [JsonPropertyName("opcode")] public double Opcode { get; set; } /// /// WebSocket message mask. /// [JsonPropertyName("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. /// [JsonPropertyName("payloadData")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PayloadData { get; set; } } /// /// Information about the cached resource. /// public partial class CachedResource : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Resource URL. This is the url of the original network request. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Type of this resource. /// [JsonPropertyName("type")] public CefSharp.DevTools.Network.ResourceType Type { get; set; } /// /// Cached response data. /// [JsonPropertyName("response")] public CefSharp.DevTools.Network.Response Response { get; set; } /// /// Cached response body size. /// [JsonPropertyName("bodySize")] public double BodySize { get; set; } } /// /// Type of this initiator. /// public enum InitiatorType { /// /// parser /// [JsonPropertyName("parser")] Parser, /// /// script /// [JsonPropertyName("script")] Script, /// /// preload /// [JsonPropertyName("preload")] Preload, /// /// SignedExchange /// [JsonPropertyName("SignedExchange")] SignedExchange, /// /// preflight /// [JsonPropertyName("preflight")] Preflight, /// /// FedCM /// [JsonPropertyName("FedCM")] FedCM, /// /// other /// [JsonPropertyName("other")] Other } /// /// Information about the request initiator. /// public partial class Initiator : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type of this initiator. /// [JsonPropertyName("type")] public CefSharp.DevTools.Network.InitiatorType Type { get; set; } /// /// Initiator JavaScript stack trace, set for Script only. /// Requires the Debugger domain to be enabled. /// [JsonPropertyName("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. /// [JsonPropertyName("url")] public string Url { get; set; } /// /// Initiator line number, set for Parser type or for Script type (when script is importing /// module) (0-based). /// [JsonPropertyName("lineNumber")] public double? LineNumber { get; set; } /// /// Initiator column number, set for Parser type or for Script type (when script is importing /// module) (0-based). /// [JsonPropertyName("columnNumber")] public double? ColumnNumber { get; set; } /// /// Set if another request triggered this request (e.g. preflight). /// [JsonPropertyName("requestId")] public string RequestId { get; set; } } /// /// cookiePartitionKey object /// The representation of the components of the key that are created by the cookiePartitionKey class contained in net/cookies/cookie_partition_key.h. /// public partial class CookiePartitionKey : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The site of the top-level URL the browser was visiting at the start /// of the request to the endpoint that set the cookie. /// [JsonPropertyName("topLevelSite")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TopLevelSite { get; set; } /// /// Indicates if the cookie has any ancestors that are cross-site to the topLevelSite. /// [JsonPropertyName("hasCrossSiteAncestor")] public bool HasCrossSiteAncestor { get; set; } } /// /// Cookie object /// public partial class Cookie : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Cookie name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Cookie value. /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } /// /// Cookie domain. /// [JsonPropertyName("domain")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Domain { get; set; } /// /// Cookie path. /// [JsonPropertyName("path")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Path { get; set; } /// /// Cookie expiration date as the number of seconds since the UNIX epoch. /// The value is set to -1 if the expiry date is not set. /// The value can be null for values that cannot be represented in /// JSON (±Inf). /// [JsonPropertyName("expires")] public double Expires { get; set; } /// /// Cookie size. /// [JsonPropertyName("size")] public int Size { get; set; } /// /// True if cookie is http-only. /// [JsonPropertyName("httpOnly")] public bool HttpOnly { get; set; } /// /// True if cookie is secure. /// [JsonPropertyName("secure")] public bool Secure { get; set; } /// /// True in case of session cookie. /// [JsonPropertyName("session")] public bool Session { get; set; } /// /// Cookie SameSite type. /// [JsonPropertyName("sameSite")] public CefSharp.DevTools.Network.CookieSameSite? SameSite { get; set; } /// /// Cookie Priority /// [JsonPropertyName("priority")] public CefSharp.DevTools.Network.CookiePriority Priority { get; set; } /// /// True if cookie is SameParty. /// [JsonPropertyName("sameParty")] public bool SameParty { get; set; } /// /// Cookie source scheme type. /// [JsonPropertyName("sourceScheme")] public CefSharp.DevTools.Network.CookieSourceScheme SourceScheme { get; set; } /// /// Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. /// An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. /// This is a temporary ability and it will be removed in the future. /// [JsonPropertyName("sourcePort")] public int SourcePort { get; set; } /// /// Cookie partition key. /// [JsonPropertyName("partitionKey")] public CefSharp.DevTools.Network.CookiePartitionKey PartitionKey { get; set; } /// /// True if cookie partition key is opaque. /// [JsonPropertyName("partitionKeyOpaque")] public bool? PartitionKeyOpaque { get; set; } } /// /// Types of reasons why a cookie may not be stored from a response. /// public enum SetCookieBlockedReason { /// /// SecureOnly /// [JsonPropertyName("SecureOnly")] SecureOnly, /// /// SameSiteStrict /// [JsonPropertyName("SameSiteStrict")] SameSiteStrict, /// /// SameSiteLax /// [JsonPropertyName("SameSiteLax")] SameSiteLax, /// /// SameSiteUnspecifiedTreatedAsLax /// [JsonPropertyName("SameSiteUnspecifiedTreatedAsLax")] SameSiteUnspecifiedTreatedAsLax, /// /// SameSiteNoneInsecure /// [JsonPropertyName("SameSiteNoneInsecure")] SameSiteNoneInsecure, /// /// UserPreferences /// [JsonPropertyName("UserPreferences")] UserPreferences, /// /// ThirdPartyPhaseout /// [JsonPropertyName("ThirdPartyPhaseout")] ThirdPartyPhaseout, /// /// ThirdPartyBlockedInFirstPartySet /// [JsonPropertyName("ThirdPartyBlockedInFirstPartySet")] ThirdPartyBlockedInFirstPartySet, /// /// SyntaxError /// [JsonPropertyName("SyntaxError")] SyntaxError, /// /// SchemeNotSupported /// [JsonPropertyName("SchemeNotSupported")] SchemeNotSupported, /// /// OverwriteSecure /// [JsonPropertyName("OverwriteSecure")] OverwriteSecure, /// /// InvalidDomain /// [JsonPropertyName("InvalidDomain")] InvalidDomain, /// /// InvalidPrefix /// [JsonPropertyName("InvalidPrefix")] InvalidPrefix, /// /// UnknownError /// [JsonPropertyName("UnknownError")] UnknownError, /// /// SchemefulSameSiteStrict /// [JsonPropertyName("SchemefulSameSiteStrict")] SchemefulSameSiteStrict, /// /// SchemefulSameSiteLax /// [JsonPropertyName("SchemefulSameSiteLax")] SchemefulSameSiteLax, /// /// SchemefulSameSiteUnspecifiedTreatedAsLax /// [JsonPropertyName("SchemefulSameSiteUnspecifiedTreatedAsLax")] SchemefulSameSiteUnspecifiedTreatedAsLax, /// /// SamePartyFromCrossPartyContext /// [JsonPropertyName("SamePartyFromCrossPartyContext")] SamePartyFromCrossPartyContext, /// /// SamePartyConflictsWithOtherAttributes /// [JsonPropertyName("SamePartyConflictsWithOtherAttributes")] SamePartyConflictsWithOtherAttributes, /// /// NameValuePairExceedsMaxSize /// [JsonPropertyName("NameValuePairExceedsMaxSize")] NameValuePairExceedsMaxSize, /// /// DisallowedCharacter /// [JsonPropertyName("DisallowedCharacter")] DisallowedCharacter, /// /// NoCookieContent /// [JsonPropertyName("NoCookieContent")] NoCookieContent } /// /// Types of reasons why a cookie may not be sent with a request. /// public enum CookieBlockedReason { /// /// SecureOnly /// [JsonPropertyName("SecureOnly")] SecureOnly, /// /// NotOnPath /// [JsonPropertyName("NotOnPath")] NotOnPath, /// /// DomainMismatch /// [JsonPropertyName("DomainMismatch")] DomainMismatch, /// /// SameSiteStrict /// [JsonPropertyName("SameSiteStrict")] SameSiteStrict, /// /// SameSiteLax /// [JsonPropertyName("SameSiteLax")] SameSiteLax, /// /// SameSiteUnspecifiedTreatedAsLax /// [JsonPropertyName("SameSiteUnspecifiedTreatedAsLax")] SameSiteUnspecifiedTreatedAsLax, /// /// SameSiteNoneInsecure /// [JsonPropertyName("SameSiteNoneInsecure")] SameSiteNoneInsecure, /// /// UserPreferences /// [JsonPropertyName("UserPreferences")] UserPreferences, /// /// ThirdPartyPhaseout /// [JsonPropertyName("ThirdPartyPhaseout")] ThirdPartyPhaseout, /// /// ThirdPartyBlockedInFirstPartySet /// [JsonPropertyName("ThirdPartyBlockedInFirstPartySet")] ThirdPartyBlockedInFirstPartySet, /// /// UnknownError /// [JsonPropertyName("UnknownError")] UnknownError, /// /// SchemefulSameSiteStrict /// [JsonPropertyName("SchemefulSameSiteStrict")] SchemefulSameSiteStrict, /// /// SchemefulSameSiteLax /// [JsonPropertyName("SchemefulSameSiteLax")] SchemefulSameSiteLax, /// /// SchemefulSameSiteUnspecifiedTreatedAsLax /// [JsonPropertyName("SchemefulSameSiteUnspecifiedTreatedAsLax")] SchemefulSameSiteUnspecifiedTreatedAsLax, /// /// SamePartyFromCrossPartyContext /// [JsonPropertyName("SamePartyFromCrossPartyContext")] SamePartyFromCrossPartyContext, /// /// NameValuePairExceedsMaxSize /// [JsonPropertyName("NameValuePairExceedsMaxSize")] NameValuePairExceedsMaxSize, /// /// PortMismatch /// [JsonPropertyName("PortMismatch")] PortMismatch, /// /// SchemeMismatch /// [JsonPropertyName("SchemeMismatch")] SchemeMismatch, /// /// AnonymousContext /// [JsonPropertyName("AnonymousContext")] AnonymousContext } /// /// Types of reasons why a cookie should have been blocked by 3PCD but is exempted for the request. /// public enum CookieExemptionReason { /// /// None /// [JsonPropertyName("None")] None, /// /// UserSetting /// [JsonPropertyName("UserSetting")] UserSetting, /// /// TPCDMetadata /// [JsonPropertyName("TPCDMetadata")] TPCDMetadata, /// /// TPCDDeprecationTrial /// [JsonPropertyName("TPCDDeprecationTrial")] TPCDDeprecationTrial, /// /// TopLevelTPCDDeprecationTrial /// [JsonPropertyName("TopLevelTPCDDeprecationTrial")] TopLevelTPCDDeprecationTrial, /// /// TPCDHeuristics /// [JsonPropertyName("TPCDHeuristics")] TPCDHeuristics, /// /// EnterprisePolicy /// [JsonPropertyName("EnterprisePolicy")] EnterprisePolicy, /// /// StorageAccess /// [JsonPropertyName("StorageAccess")] StorageAccess, /// /// TopLevelStorageAccess /// [JsonPropertyName("TopLevelStorageAccess")] TopLevelStorageAccess, /// /// Scheme /// [JsonPropertyName("Scheme")] Scheme, /// /// SameSiteNoneCookiesInSandbox /// [JsonPropertyName("SameSiteNoneCookiesInSandbox")] SameSiteNoneCookiesInSandbox } /// /// A cookie which was not stored from a response with the corresponding reason. /// public partial class BlockedSetCookieWithReason : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The reason(s) this cookie was blocked. /// [JsonPropertyName("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. /// [JsonPropertyName("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. /// [JsonPropertyName("cookie")] public CefSharp.DevTools.Network.Cookie Cookie { get; set; } } /// /// A cookie should have been blocked by 3PCD but is exempted and stored from a response with the /// corresponding reason. A cookie could only have at most one exemption reason. /// public partial class ExemptedSetCookieWithReason : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The reason the cookie was exempted. /// [JsonPropertyName("exemptionReason")] public CefSharp.DevTools.Network.CookieExemptionReason ExemptionReason { get; set; } /// /// The string representing this individual cookie as it would appear in the header. /// [JsonPropertyName("cookieLine")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CookieLine { get; set; } /// /// The cookie object representing the cookie. /// [JsonPropertyName("cookie")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Cookie Cookie { get; set; } } /// /// A cookie associated with the request which may or may not be sent with it. /// Includes the cookies itself and reasons for blocking or exemption. /// public partial class AssociatedCookie : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The cookie object representing the cookie which was not sent. /// [JsonPropertyName("cookie")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Cookie Cookie { get; set; } /// /// The reason(s) the cookie was blocked. If empty means the cookie is included. /// [JsonPropertyName("blockedReasons")] public CefSharp.DevTools.Network.CookieBlockedReason[] BlockedReasons { get; set; } /// /// The reason the cookie should have been blocked by 3PCD but is exempted. A cookie could /// only have at most one exemption reason. /// [JsonPropertyName("exemptionReason")] public CefSharp.DevTools.Network.CookieExemptionReason? ExemptionReason { get; set; } } /// /// Cookie parameter object /// public partial class CookieParam : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Cookie name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Cookie value. /// [JsonPropertyName("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, path, source port, and source scheme values of the created cookie. /// [JsonPropertyName("url")] public string Url { get; set; } /// /// Cookie domain. /// [JsonPropertyName("domain")] public string Domain { get; set; } /// /// Cookie path. /// [JsonPropertyName("path")] public string Path { get; set; } /// /// True if cookie is secure. /// [JsonPropertyName("secure")] public bool? Secure { get; set; } /// /// True if cookie is http-only. /// [JsonPropertyName("httpOnly")] public bool? HttpOnly { get; set; } /// /// Cookie SameSite type. /// [JsonPropertyName("sameSite")] public CefSharp.DevTools.Network.CookieSameSite? SameSite { get; set; } /// /// Cookie expiration date, session cookie if not set /// [JsonPropertyName("expires")] public double? Expires { get; set; } /// /// Cookie Priority. /// [JsonPropertyName("priority")] public CefSharp.DevTools.Network.CookiePriority? Priority { get; set; } /// /// True if cookie is SameParty. /// [JsonPropertyName("sameParty")] public bool? SameParty { get; set; } /// /// Cookie source scheme type. /// [JsonPropertyName("sourceScheme")] public CefSharp.DevTools.Network.CookieSourceScheme? SourceScheme { get; set; } /// /// Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port. /// An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. /// This is a temporary ability and it will be removed in the future. /// [JsonPropertyName("sourcePort")] public int? SourcePort { get; set; } /// /// Cookie partition key. If not set, the cookie will be set as not partitioned. /// [JsonPropertyName("partitionKey")] public CefSharp.DevTools.Network.CookiePartitionKey PartitionKey { get; set; } } /// /// Source of the authentication challenge. /// public enum AuthChallengeSource { /// /// Server /// [JsonPropertyName("Server")] Server, /// /// Proxy /// [JsonPropertyName("Proxy")] Proxy } /// /// Authorization challenge for HTTP status code 401 or 407. /// public partial class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source of the authentication challenge. /// [JsonPropertyName("source")] public CefSharp.DevTools.Network.AuthChallengeSource? Source { get; set; } /// /// Origin of the challenger. /// [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; set; } /// /// The authentication scheme used, such as basic or digest /// [JsonPropertyName("scheme")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Scheme { get; set; } /// /// The realm of the challenge. May be empty. /// [JsonPropertyName("realm")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Realm { get; set; } } /// /// 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. /// public enum AuthChallengeResponseResponse { /// /// Default /// [JsonPropertyName("Default")] Default, /// /// CancelAuth /// [JsonPropertyName("CancelAuth")] CancelAuth, /// /// ProvideCredentials /// [JsonPropertyName("ProvideCredentials")] ProvideCredentials } /// /// Response to an AuthChallenge. /// public partial 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. /// [JsonPropertyName("response")] public CefSharp.DevTools.Network.AuthChallengeResponseResponse Response { get; set; } /// /// The username to provide, possibly empty. Should only be set if response is /// ProvideCredentials. /// [JsonPropertyName("username")] public string Username { get; set; } /// /// The password to provide, possibly empty. Should only be set if response is /// ProvideCredentials. /// [JsonPropertyName("password")] public string Password { get; set; } } /// /// 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 /// [JsonPropertyName("Request")] Request, /// /// HeadersReceived /// [JsonPropertyName("HeadersReceived")] HeadersReceived } /// /// Request pattern for interception. /// public partial class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is /// backslash. Omitting is equivalent to `"*"`. /// [JsonPropertyName("urlPattern")] public string UrlPattern { get; set; } /// /// If set, only requests for matching resource types will be intercepted. /// [JsonPropertyName("resourceType")] public CefSharp.DevTools.Network.ResourceType? ResourceType { get; set; } /// /// Stage at which to begin intercepting requests. Default is Request. /// [JsonPropertyName("interceptionStage")] public CefSharp.DevTools.Network.InterceptionStage? InterceptionStage { get; set; } } /// /// Information about a signed exchange signature. /// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1 /// public partial class SignedExchangeSignature : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Signed exchange signature label. /// [JsonPropertyName("label")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Label { get; set; } /// /// The hex string of signed exchange signature. /// [JsonPropertyName("signature")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Signature { get; set; } /// /// Signed exchange signature integrity. /// [JsonPropertyName("integrity")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Integrity { get; set; } /// /// Signed exchange signature cert Url. /// [JsonPropertyName("certUrl")] public string CertUrl { get; set; } /// /// The hex string of signed exchange signature cert sha256. /// [JsonPropertyName("certSha256")] public string CertSha256 { get; set; } /// /// Signed exchange signature validity Url. /// [JsonPropertyName("validityUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ValidityUrl { get; set; } /// /// Signed exchange signature date. /// [JsonPropertyName("date")] public int Date { get; set; } /// /// Signed exchange signature expires. /// [JsonPropertyName("expires")] public int Expires { get; set; } /// /// The encoded certificates. /// [JsonPropertyName("certificates")] public string[] Certificates { get; set; } } /// /// Information about a signed exchange header. /// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation /// public partial class SignedExchangeHeader : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Signed exchange request URL. /// [JsonPropertyName("requestUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestUrl { get; set; } /// /// Signed exchange response code. /// [JsonPropertyName("responseCode")] public int ResponseCode { get; set; } /// /// Signed exchange response headers. /// [JsonPropertyName("responseHeaders")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers ResponseHeaders { get; set; } /// /// Signed exchange response signature. /// [JsonPropertyName("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>`. /// [JsonPropertyName("headerIntegrity")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string HeaderIntegrity { get; set; } } /// /// Field type for a signed exchange related error. /// public enum SignedExchangeErrorField { /// /// signatureSig /// [JsonPropertyName("signatureSig")] SignatureSig, /// /// signatureIntegrity /// [JsonPropertyName("signatureIntegrity")] SignatureIntegrity, /// /// signatureCertUrl /// [JsonPropertyName("signatureCertUrl")] SignatureCertUrl, /// /// signatureCertSha256 /// [JsonPropertyName("signatureCertSha256")] SignatureCertSha256, /// /// signatureValidityUrl /// [JsonPropertyName("signatureValidityUrl")] SignatureValidityUrl, /// /// signatureTimestamps /// [JsonPropertyName("signatureTimestamps")] SignatureTimestamps } /// /// Information about a signed exchange response. /// public partial class SignedExchangeError : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Error message. /// [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Message { get; set; } /// /// The index of the signature which caused the error. /// [JsonPropertyName("signatureIndex")] public int? SignatureIndex { get; set; } /// /// The field which caused the error. /// [JsonPropertyName("errorField")] public CefSharp.DevTools.Network.SignedExchangeErrorField? ErrorField { get; set; } } /// /// Information about a signed exchange response. /// public partial class SignedExchangeInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The outer response of signed HTTP exchange which was received from network. /// [JsonPropertyName("outerResponse")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Response OuterResponse { get; set; } /// /// Whether network response for the signed exchange was accompanied by /// extra headers. /// [JsonPropertyName("hasExtraInfo")] public bool HasExtraInfo { get; set; } /// /// Information about the signed exchange header. /// [JsonPropertyName("header")] public CefSharp.DevTools.Network.SignedExchangeHeader Header { get; set; } /// /// Security details for the signed exchange header. /// [JsonPropertyName("securityDetails")] public CefSharp.DevTools.Network.SecurityDetails SecurityDetails { get; set; } /// /// Errors occurred while handling the signed exchange. /// [JsonPropertyName("errors")] public System.Collections.Generic.IList Errors { get; set; } } /// /// List of content encodings supported by the backend. /// public enum ContentEncoding { /// /// deflate /// [JsonPropertyName("deflate")] Deflate, /// /// gzip /// [JsonPropertyName("gzip")] Gzip, /// /// br /// [JsonPropertyName("br")] Br, /// /// zstd /// [JsonPropertyName("zstd")] Zstd } /// /// NetworkConditions /// public partial class NetworkConditions : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Only matching requests will be affected by these conditions. Patterns use the URLPattern constructor string /// syntax (https://urlpattern.spec.whatwg.org/) and must be absolute. If the pattern is empty, all requests are /// matched (including p2p connections). /// [JsonPropertyName("urlPattern")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string UrlPattern { get; set; } /// /// Minimum latency from request sent to response headers received (ms). /// [JsonPropertyName("latency")] public double Latency { get; set; } /// /// Maximal aggregated download throughput (bytes/sec). -1 disables download throttling. /// [JsonPropertyName("downloadThroughput")] public double DownloadThroughput { get; set; } /// /// Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling. /// [JsonPropertyName("uploadThroughput")] public double UploadThroughput { get; set; } /// /// Connection type if known. /// [JsonPropertyName("connectionType")] public CefSharp.DevTools.Network.ConnectionType? ConnectionType { get; set; } /// /// WebRTC packet loss (percent, 0-100). 0 disables packet loss emulation, 100 drops all the packets. /// [JsonPropertyName("packetLoss")] public double? PacketLoss { get; set; } /// /// WebRTC packet queue length (packet). 0 removes any queue length limitations. /// [JsonPropertyName("packetQueueLength")] public int? PacketQueueLength { get; set; } /// /// WebRTC packetReordering feature. /// [JsonPropertyName("packetReordering")] public bool? PacketReordering { get; set; } } /// /// BlockPattern /// public partial class BlockPattern : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// URL pattern to match. Patterns use the URLPattern constructor string syntax /// (https://urlpattern.spec.whatwg.org/) and must be absolute. Example: `*://*:*/*.css`. /// [JsonPropertyName("urlPattern")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string UrlPattern { get; set; } /// /// Whether or not to block the pattern. If false, a matching request will not be blocked even if it matches a later /// `BlockPattern`. /// [JsonPropertyName("block")] public bool Block { get; set; } } /// /// DirectSocketDnsQueryType /// public enum DirectSocketDnsQueryType { /// /// ipv4 /// [JsonPropertyName("ipv4")] Ipv4, /// /// ipv6 /// [JsonPropertyName("ipv6")] Ipv6 } /// /// DirectTCPSocketOptions /// public partial class DirectTCPSocketOptions : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// TCP_NODELAY option /// [JsonPropertyName("noDelay")] public bool NoDelay { get; set; } /// /// Expected to be unsigned integer. /// [JsonPropertyName("keepAliveDelay")] public double? KeepAliveDelay { get; set; } /// /// Expected to be unsigned integer. /// [JsonPropertyName("sendBufferSize")] public double? SendBufferSize { get; set; } /// /// Expected to be unsigned integer. /// [JsonPropertyName("receiveBufferSize")] public double? ReceiveBufferSize { get; set; } /// /// DnsQueryType /// [JsonPropertyName("dnsQueryType")] public CefSharp.DevTools.Network.DirectSocketDnsQueryType? DnsQueryType { get; set; } } /// /// DirectUDPSocketOptions /// public partial class DirectUDPSocketOptions : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// RemoteAddr /// [JsonPropertyName("remoteAddr")] public string RemoteAddr { get; set; } /// /// Unsigned int 16. /// [JsonPropertyName("remotePort")] public int? RemotePort { get; set; } /// /// LocalAddr /// [JsonPropertyName("localAddr")] public string LocalAddr { get; set; } /// /// Unsigned int 16. /// [JsonPropertyName("localPort")] public int? LocalPort { get; set; } /// /// DnsQueryType /// [JsonPropertyName("dnsQueryType")] public CefSharp.DevTools.Network.DirectSocketDnsQueryType? DnsQueryType { get; set; } /// /// Expected to be unsigned integer. /// [JsonPropertyName("sendBufferSize")] public double? SendBufferSize { get; set; } /// /// Expected to be unsigned integer. /// [JsonPropertyName("receiveBufferSize")] public double? ReceiveBufferSize { get; set; } /// /// MulticastLoopback /// [JsonPropertyName("multicastLoopback")] public bool? MulticastLoopback { get; set; } /// /// Unsigned int 8. /// [JsonPropertyName("multicastTimeToLive")] public int? MulticastTimeToLive { get; set; } /// /// MulticastAllowAddressSharing /// [JsonPropertyName("multicastAllowAddressSharing")] public bool? MulticastAllowAddressSharing { get; set; } } /// /// DirectUDPMessage /// public partial class DirectUDPMessage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Data /// [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] Data { get; set; } /// /// Null for connected mode. /// [JsonPropertyName("remoteAddr")] public string RemoteAddr { get; set; } /// /// Null for connected mode. /// Expected to be unsigned integer. /// [JsonPropertyName("remotePort")] public int? RemotePort { get; set; } } /// /// PrivateNetworkRequestPolicy /// public enum PrivateNetworkRequestPolicy { /// /// Allow /// [JsonPropertyName("Allow")] Allow, /// /// BlockFromInsecureToMorePrivate /// [JsonPropertyName("BlockFromInsecureToMorePrivate")] BlockFromInsecureToMorePrivate, /// /// WarnFromInsecureToMorePrivate /// [JsonPropertyName("WarnFromInsecureToMorePrivate")] WarnFromInsecureToMorePrivate, /// /// PermissionBlock /// [JsonPropertyName("PermissionBlock")] PermissionBlock, /// /// PermissionWarn /// [JsonPropertyName("PermissionWarn")] PermissionWarn } /// /// IPAddressSpace /// public enum IPAddressSpace { /// /// Loopback /// [JsonPropertyName("Loopback")] Loopback, /// /// Local /// [JsonPropertyName("Local")] Local, /// /// Public /// [JsonPropertyName("Public")] Public, /// /// Unknown /// [JsonPropertyName("Unknown")] Unknown } /// /// ConnectTiming /// public partial class ConnectTiming : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Timing's requestTime is a baseline in seconds, while the other numbers are ticks in /// milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for /// the same request (but not for redirected requests). /// [JsonPropertyName("requestTime")] public double RequestTime { get; set; } } /// /// ClientSecurityState /// public partial class ClientSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// InitiatorIsSecureContext /// [JsonPropertyName("initiatorIsSecureContext")] public bool InitiatorIsSecureContext { get; set; } /// /// InitiatorIPAddressSpace /// [JsonPropertyName("initiatorIPAddressSpace")] public CefSharp.DevTools.Network.IPAddressSpace InitiatorIPAddressSpace { get; set; } /// /// PrivateNetworkRequestPolicy /// [JsonPropertyName("privateNetworkRequestPolicy")] public CefSharp.DevTools.Network.PrivateNetworkRequestPolicy PrivateNetworkRequestPolicy { get; set; } } /// /// CrossOriginOpenerPolicyValue /// public enum CrossOriginOpenerPolicyValue { /// /// SameOrigin /// [JsonPropertyName("SameOrigin")] SameOrigin, /// /// SameOriginAllowPopups /// [JsonPropertyName("SameOriginAllowPopups")] SameOriginAllowPopups, /// /// RestrictProperties /// [JsonPropertyName("RestrictProperties")] RestrictProperties, /// /// UnsafeNone /// [JsonPropertyName("UnsafeNone")] UnsafeNone, /// /// SameOriginPlusCoep /// [JsonPropertyName("SameOriginPlusCoep")] SameOriginPlusCoep, /// /// RestrictPropertiesPlusCoep /// [JsonPropertyName("RestrictPropertiesPlusCoep")] RestrictPropertiesPlusCoep, /// /// NoopenerAllowPopups /// [JsonPropertyName("NoopenerAllowPopups")] NoopenerAllowPopups } /// /// CrossOriginOpenerPolicyStatus /// public partial class CrossOriginOpenerPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Value /// [JsonPropertyName("value")] public CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue Value { get; set; } /// /// ReportOnlyValue /// [JsonPropertyName("reportOnlyValue")] public CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue ReportOnlyValue { get; set; } /// /// ReportingEndpoint /// [JsonPropertyName("reportingEndpoint")] public string ReportingEndpoint { get; set; } /// /// ReportOnlyReportingEndpoint /// [JsonPropertyName("reportOnlyReportingEndpoint")] public string ReportOnlyReportingEndpoint { get; set; } } /// /// CrossOriginEmbedderPolicyValue /// public enum CrossOriginEmbedderPolicyValue { /// /// None /// [JsonPropertyName("None")] None, /// /// Credentialless /// [JsonPropertyName("Credentialless")] Credentialless, /// /// RequireCorp /// [JsonPropertyName("RequireCorp")] RequireCorp } /// /// CrossOriginEmbedderPolicyStatus /// public partial class CrossOriginEmbedderPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Value /// [JsonPropertyName("value")] public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue Value { get; set; } /// /// ReportOnlyValue /// [JsonPropertyName("reportOnlyValue")] public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue ReportOnlyValue { get; set; } /// /// ReportingEndpoint /// [JsonPropertyName("reportingEndpoint")] public string ReportingEndpoint { get; set; } /// /// ReportOnlyReportingEndpoint /// [JsonPropertyName("reportOnlyReportingEndpoint")] public string ReportOnlyReportingEndpoint { get; set; } } /// /// ContentSecurityPolicySource /// public enum ContentSecurityPolicySource { /// /// HTTP /// [JsonPropertyName("HTTP")] HTTP, /// /// Meta /// [JsonPropertyName("Meta")] Meta } /// /// ContentSecurityPolicyStatus /// public partial class ContentSecurityPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// EffectiveDirectives /// [JsonPropertyName("effectiveDirectives")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string EffectiveDirectives { get; set; } /// /// IsEnforced /// [JsonPropertyName("isEnforced")] public bool IsEnforced { get; set; } /// /// Source /// [JsonPropertyName("source")] public CefSharp.DevTools.Network.ContentSecurityPolicySource Source { get; set; } } /// /// SecurityIsolationStatus /// public partial class SecurityIsolationStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Coop /// [JsonPropertyName("coop")] public CefSharp.DevTools.Network.CrossOriginOpenerPolicyStatus Coop { get; set; } /// /// Coep /// [JsonPropertyName("coep")] public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyStatus Coep { get; set; } /// /// Csp /// [JsonPropertyName("csp")] public System.Collections.Generic.IList Csp { get; set; } } /// /// The status of a Reporting API report. /// public enum ReportStatus { /// /// Queued /// [JsonPropertyName("Queued")] Queued, /// /// Pending /// [JsonPropertyName("Pending")] Pending, /// /// MarkedForRemoval /// [JsonPropertyName("MarkedForRemoval")] MarkedForRemoval, /// /// Success /// [JsonPropertyName("Success")] Success } /// /// An object representing a report generated by the Reporting API. /// public partial class ReportingApiReport : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Id /// [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; set; } /// /// The URL of the document that triggered the report. /// [JsonPropertyName("initiatorUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InitiatorUrl { get; set; } /// /// The name of the endpoint group that should be used to deliver the report. /// [JsonPropertyName("destination")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Destination { get; set; } /// /// The type of the report (specifies the set of data that is contained in the report body). /// [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { get; set; } /// /// When the report was generated. /// [JsonPropertyName("timestamp")] public double Timestamp { get; set; } /// /// How many uploads deep the related request was. /// [JsonPropertyName("depth")] public int Depth { get; set; } /// /// The number of delivery attempts made so far, not including an active attempt. /// [JsonPropertyName("completedAttempts")] public int CompletedAttempts { get; set; } /// /// Body /// [JsonPropertyName("body")] [System.Diagnostics.CodeAnalysis.DisallowNull] public object Body { get; set; } /// /// Status /// [JsonPropertyName("status")] public CefSharp.DevTools.Network.ReportStatus Status { get; set; } } /// /// ReportingApiEndpoint /// public partial class ReportingApiEndpoint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The URL of the endpoint to which reports may be delivered. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Name of the endpoint group. /// [JsonPropertyName("groupName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string GroupName { get; set; } } /// /// Unique identifier for a device bound session. /// public partial class DeviceBoundSessionKey : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The site the session is set up for. /// [JsonPropertyName("site")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Site { get; set; } /// /// The id of the session. /// [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; set; } } /// /// A device bound session's cookie craving. /// public partial class DeviceBoundSessionCookieCraving : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The name of the craving. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// The domain of the craving. /// [JsonPropertyName("domain")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Domain { get; set; } /// /// The path of the craving. /// [JsonPropertyName("path")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Path { get; set; } /// /// The `Secure` attribute of the craving attributes. /// [JsonPropertyName("secure")] public bool Secure { get; set; } /// /// The `HttpOnly` attribute of the craving attributes. /// [JsonPropertyName("httpOnly")] public bool HttpOnly { get; set; } /// /// The `SameSite` attribute of the craving attributes. /// [JsonPropertyName("sameSite")] public CefSharp.DevTools.Network.CookieSameSite? SameSite { get; set; } } /// /// See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::rule_type`. /// public enum DeviceBoundSessionUrlRuleRuleType { /// /// Exclude /// [JsonPropertyName("Exclude")] Exclude, /// /// Include /// [JsonPropertyName("Include")] Include } /// /// A device bound session's inclusion URL rule. /// public partial class DeviceBoundSessionUrlRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::rule_type`. /// [JsonPropertyName("ruleType")] public CefSharp.DevTools.Network.DeviceBoundSessionUrlRuleRuleType RuleType { get; set; } /// /// See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::host_pattern`. /// [JsonPropertyName("hostPattern")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string HostPattern { get; set; } /// /// See comments on `net::device_bound_sessions::SessionInclusionRules::UrlRule::path_prefix`. /// [JsonPropertyName("pathPrefix")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PathPrefix { get; set; } } /// /// A device bound session's inclusion rules. /// public partial class DeviceBoundSessionInclusionRules : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// See comments on `net::device_bound_sessions::SessionInclusionRules::origin_`. /// [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; set; } /// /// Whether the whole site is included. See comments on /// `net::device_bound_sessions::SessionInclusionRules::include_site_` for more /// details; this boolean is true if that value is populated. /// [JsonPropertyName("includeSite")] public bool IncludeSite { get; set; } /// /// See comments on `net::device_bound_sessions::SessionInclusionRules::url_rules_`. /// [JsonPropertyName("urlRules")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList UrlRules { get; set; } } /// /// A device bound session. /// public partial class DeviceBoundSession : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The site and session ID of the session. /// [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.DeviceBoundSessionKey Key { get; set; } /// /// See comments on `net::device_bound_sessions::Session::refresh_url_`. /// [JsonPropertyName("refreshUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RefreshUrl { get; set; } /// /// See comments on `net::device_bound_sessions::Session::inclusion_rules_`. /// [JsonPropertyName("inclusionRules")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.DeviceBoundSessionInclusionRules InclusionRules { get; set; } /// /// See comments on `net::device_bound_sessions::Session::cookie_cravings_`. /// [JsonPropertyName("cookieCravings")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList CookieCravings { get; set; } /// /// See comments on `net::device_bound_sessions::Session::expiry_date_`. /// [JsonPropertyName("expiryDate")] public double ExpiryDate { get; set; } /// /// See comments on `net::device_bound_sessions::Session::cached_challenge__`. /// [JsonPropertyName("cachedChallenge")] public string CachedChallenge { get; set; } /// /// See comments on `net::device_bound_sessions::Session::allowed_refresh_initiators_`. /// [JsonPropertyName("allowedRefreshInitiators")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] AllowedRefreshInitiators { get; set; } } /// /// A fetch result for a device bound session creation or refresh. /// public enum DeviceBoundSessionFetchResult { /// /// Success /// [JsonPropertyName("Success")] Success, /// /// KeyError /// [JsonPropertyName("KeyError")] KeyError, /// /// SigningError /// [JsonPropertyName("SigningError")] SigningError, /// /// ServerRequestedTermination /// [JsonPropertyName("ServerRequestedTermination")] ServerRequestedTermination, /// /// InvalidSessionId /// [JsonPropertyName("InvalidSessionId")] InvalidSessionId, /// /// InvalidChallenge /// [JsonPropertyName("InvalidChallenge")] InvalidChallenge, /// /// TooManyChallenges /// [JsonPropertyName("TooManyChallenges")] TooManyChallenges, /// /// InvalidFetcherUrl /// [JsonPropertyName("InvalidFetcherUrl")] InvalidFetcherUrl, /// /// InvalidRefreshUrl /// [JsonPropertyName("InvalidRefreshUrl")] InvalidRefreshUrl, /// /// TransientHttpError /// [JsonPropertyName("TransientHttpError")] TransientHttpError, /// /// ScopeOriginSameSiteMismatch /// [JsonPropertyName("ScopeOriginSameSiteMismatch")] ScopeOriginSameSiteMismatch, /// /// RefreshUrlSameSiteMismatch /// [JsonPropertyName("RefreshUrlSameSiteMismatch")] RefreshUrlSameSiteMismatch, /// /// MismatchedSessionId /// [JsonPropertyName("MismatchedSessionId")] MismatchedSessionId, /// /// MissingScope /// [JsonPropertyName("MissingScope")] MissingScope, /// /// NoCredentials /// [JsonPropertyName("NoCredentials")] NoCredentials, /// /// SubdomainRegistrationWellKnownUnavailable /// [JsonPropertyName("SubdomainRegistrationWellKnownUnavailable")] SubdomainRegistrationWellKnownUnavailable, /// /// SubdomainRegistrationUnauthorized /// [JsonPropertyName("SubdomainRegistrationUnauthorized")] SubdomainRegistrationUnauthorized, /// /// SubdomainRegistrationWellKnownMalformed /// [JsonPropertyName("SubdomainRegistrationWellKnownMalformed")] SubdomainRegistrationWellKnownMalformed, /// /// SessionProviderWellKnownUnavailable /// [JsonPropertyName("SessionProviderWellKnownUnavailable")] SessionProviderWellKnownUnavailable, /// /// RelyingPartyWellKnownUnavailable /// [JsonPropertyName("RelyingPartyWellKnownUnavailable")] RelyingPartyWellKnownUnavailable, /// /// FederatedKeyThumbprintMismatch /// [JsonPropertyName("FederatedKeyThumbprintMismatch")] FederatedKeyThumbprintMismatch, /// /// InvalidFederatedSessionUrl /// [JsonPropertyName("InvalidFederatedSessionUrl")] InvalidFederatedSessionUrl, /// /// InvalidFederatedKey /// [JsonPropertyName("InvalidFederatedKey")] InvalidFederatedKey, /// /// TooManyRelyingOriginLabels /// [JsonPropertyName("TooManyRelyingOriginLabels")] TooManyRelyingOriginLabels, /// /// BoundCookieSetForbidden /// [JsonPropertyName("BoundCookieSetForbidden")] BoundCookieSetForbidden, /// /// NetError /// [JsonPropertyName("NetError")] NetError, /// /// ProxyError /// [JsonPropertyName("ProxyError")] ProxyError, /// /// EmptySessionConfig /// [JsonPropertyName("EmptySessionConfig")] EmptySessionConfig, /// /// InvalidCredentialsConfig /// [JsonPropertyName("InvalidCredentialsConfig")] InvalidCredentialsConfig, /// /// InvalidCredentialsType /// [JsonPropertyName("InvalidCredentialsType")] InvalidCredentialsType, /// /// InvalidCredentialsEmptyName /// [JsonPropertyName("InvalidCredentialsEmptyName")] InvalidCredentialsEmptyName, /// /// InvalidCredentialsCookie /// [JsonPropertyName("InvalidCredentialsCookie")] InvalidCredentialsCookie, /// /// PersistentHttpError /// [JsonPropertyName("PersistentHttpError")] PersistentHttpError, /// /// RegistrationAttemptedChallenge /// [JsonPropertyName("RegistrationAttemptedChallenge")] RegistrationAttemptedChallenge, /// /// InvalidScopeOrigin /// [JsonPropertyName("InvalidScopeOrigin")] InvalidScopeOrigin, /// /// ScopeOriginContainsPath /// [JsonPropertyName("ScopeOriginContainsPath")] ScopeOriginContainsPath, /// /// RefreshInitiatorNotString /// [JsonPropertyName("RefreshInitiatorNotString")] RefreshInitiatorNotString, /// /// RefreshInitiatorInvalidHostPattern /// [JsonPropertyName("RefreshInitiatorInvalidHostPattern")] RefreshInitiatorInvalidHostPattern, /// /// InvalidScopeSpecification /// [JsonPropertyName("InvalidScopeSpecification")] InvalidScopeSpecification, /// /// MissingScopeSpecificationType /// [JsonPropertyName("MissingScopeSpecificationType")] MissingScopeSpecificationType, /// /// EmptyScopeSpecificationDomain /// [JsonPropertyName("EmptyScopeSpecificationDomain")] EmptyScopeSpecificationDomain, /// /// EmptyScopeSpecificationPath /// [JsonPropertyName("EmptyScopeSpecificationPath")] EmptyScopeSpecificationPath, /// /// InvalidScopeSpecificationType /// [JsonPropertyName("InvalidScopeSpecificationType")] InvalidScopeSpecificationType, /// /// InvalidScopeIncludeSite /// [JsonPropertyName("InvalidScopeIncludeSite")] InvalidScopeIncludeSite, /// /// MissingScopeIncludeSite /// [JsonPropertyName("MissingScopeIncludeSite")] MissingScopeIncludeSite, /// /// FederatedNotAuthorizedByProvider /// [JsonPropertyName("FederatedNotAuthorizedByProvider")] FederatedNotAuthorizedByProvider, /// /// FederatedNotAuthorizedByRelyingParty /// [JsonPropertyName("FederatedNotAuthorizedByRelyingParty")] FederatedNotAuthorizedByRelyingParty, /// /// SessionProviderWellKnownMalformed /// [JsonPropertyName("SessionProviderWellKnownMalformed")] SessionProviderWellKnownMalformed, /// /// SessionProviderWellKnownHasProviderOrigin /// [JsonPropertyName("SessionProviderWellKnownHasProviderOrigin")] SessionProviderWellKnownHasProviderOrigin, /// /// RelyingPartyWellKnownMalformed /// [JsonPropertyName("RelyingPartyWellKnownMalformed")] RelyingPartyWellKnownMalformed, /// /// RelyingPartyWellKnownHasRelyingOrigins /// [JsonPropertyName("RelyingPartyWellKnownHasRelyingOrigins")] RelyingPartyWellKnownHasRelyingOrigins, /// /// InvalidFederatedSessionProviderSessionMissing /// [JsonPropertyName("InvalidFederatedSessionProviderSessionMissing")] InvalidFederatedSessionProviderSessionMissing, /// /// InvalidFederatedSessionWrongProviderOrigin /// [JsonPropertyName("InvalidFederatedSessionWrongProviderOrigin")] InvalidFederatedSessionWrongProviderOrigin, /// /// InvalidCredentialsCookieCreationTime /// [JsonPropertyName("InvalidCredentialsCookieCreationTime")] InvalidCredentialsCookieCreationTime, /// /// InvalidCredentialsCookieName /// [JsonPropertyName("InvalidCredentialsCookieName")] InvalidCredentialsCookieName, /// /// InvalidCredentialsCookieParsing /// [JsonPropertyName("InvalidCredentialsCookieParsing")] InvalidCredentialsCookieParsing, /// /// InvalidCredentialsCookieUnpermittedAttribute /// [JsonPropertyName("InvalidCredentialsCookieUnpermittedAttribute")] InvalidCredentialsCookieUnpermittedAttribute, /// /// InvalidCredentialsCookieInvalidDomain /// [JsonPropertyName("InvalidCredentialsCookieInvalidDomain")] InvalidCredentialsCookieInvalidDomain, /// /// InvalidCredentialsCookiePrefix /// [JsonPropertyName("InvalidCredentialsCookiePrefix")] InvalidCredentialsCookiePrefix, /// /// InvalidScopeRulePath /// [JsonPropertyName("InvalidScopeRulePath")] InvalidScopeRulePath, /// /// InvalidScopeRuleHostPattern /// [JsonPropertyName("InvalidScopeRuleHostPattern")] InvalidScopeRuleHostPattern, /// /// ScopeRuleOriginScopedHostPatternMismatch /// [JsonPropertyName("ScopeRuleOriginScopedHostPatternMismatch")] ScopeRuleOriginScopedHostPatternMismatch, /// /// ScopeRuleSiteScopedHostPatternMismatch /// [JsonPropertyName("ScopeRuleSiteScopedHostPatternMismatch")] ScopeRuleSiteScopedHostPatternMismatch, /// /// SigningQuotaExceeded /// [JsonPropertyName("SigningQuotaExceeded")] SigningQuotaExceeded, /// /// InvalidConfigJson /// [JsonPropertyName("InvalidConfigJson")] InvalidConfigJson, /// /// InvalidFederatedSessionProviderFailedToRestoreKey /// [JsonPropertyName("InvalidFederatedSessionProviderFailedToRestoreKey")] InvalidFederatedSessionProviderFailedToRestoreKey, /// /// FailedToUnwrapKey /// [JsonPropertyName("FailedToUnwrapKey")] FailedToUnwrapKey, /// /// SessionDeletedDuringRefresh /// [JsonPropertyName("SessionDeletedDuringRefresh")] SessionDeletedDuringRefresh } /// /// Session event details specific to creation. /// public partial class CreationEventDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The result of the fetch attempt. /// [JsonPropertyName("fetchResult")] public CefSharp.DevTools.Network.DeviceBoundSessionFetchResult FetchResult { get; set; } /// /// The session if there was a newly created session. This is populated for /// all successful creation events. /// [JsonPropertyName("newSession")] public CefSharp.DevTools.Network.DeviceBoundSession NewSession { get; set; } } /// /// The result of a refresh. /// public enum RefreshEventDetailsRefreshResult { /// /// Refreshed /// [JsonPropertyName("Refreshed")] Refreshed, /// /// InitializedService /// [JsonPropertyName("InitializedService")] InitializedService, /// /// Unreachable /// [JsonPropertyName("Unreachable")] Unreachable, /// /// ServerError /// [JsonPropertyName("ServerError")] ServerError, /// /// RefreshQuotaExceeded /// [JsonPropertyName("RefreshQuotaExceeded")] RefreshQuotaExceeded, /// /// FatalError /// [JsonPropertyName("FatalError")] FatalError, /// /// SigningQuotaExceeded /// [JsonPropertyName("SigningQuotaExceeded")] SigningQuotaExceeded } /// /// Session event details specific to refresh. /// public partial class RefreshEventDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The result of a refresh. /// [JsonPropertyName("refreshResult")] public CefSharp.DevTools.Network.RefreshEventDetailsRefreshResult RefreshResult { get; set; } /// /// If there was a fetch attempt, the result of that. /// [JsonPropertyName("fetchResult")] public CefSharp.DevTools.Network.DeviceBoundSessionFetchResult? FetchResult { get; set; } /// /// The session display if there was a newly created session. This is populated /// for any refresh event that modifies the session config. /// [JsonPropertyName("newSession")] public CefSharp.DevTools.Network.DeviceBoundSession NewSession { get; set; } /// /// See comments on `net::device_bound_sessions::RefreshEventResult::was_fully_proactive_refresh`. /// [JsonPropertyName("wasFullyProactiveRefresh")] public bool WasFullyProactiveRefresh { get; set; } } /// /// The reason for a session being deleted. /// public enum TerminationEventDetailsDeletionReason { /// /// Expired /// [JsonPropertyName("Expired")] Expired, /// /// FailedToRestoreKey /// [JsonPropertyName("FailedToRestoreKey")] FailedToRestoreKey, /// /// FailedToUnwrapKey /// [JsonPropertyName("FailedToUnwrapKey")] FailedToUnwrapKey, /// /// StoragePartitionCleared /// [JsonPropertyName("StoragePartitionCleared")] StoragePartitionCleared, /// /// ClearBrowsingData /// [JsonPropertyName("ClearBrowsingData")] ClearBrowsingData, /// /// ServerRequested /// [JsonPropertyName("ServerRequested")] ServerRequested, /// /// InvalidSessionParams /// [JsonPropertyName("InvalidSessionParams")] InvalidSessionParams, /// /// RefreshFatalError /// [JsonPropertyName("RefreshFatalError")] RefreshFatalError } /// /// Session event details specific to termination. /// public partial class TerminationEventDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The reason for a session being deleted. /// [JsonPropertyName("deletionReason")] public CefSharp.DevTools.Network.TerminationEventDetailsDeletionReason DeletionReason { get; set; } } /// /// The result of a challenge. /// public enum ChallengeEventDetailsChallengeResult { /// /// Success /// [JsonPropertyName("Success")] Success, /// /// NoSessionId /// [JsonPropertyName("NoSessionId")] NoSessionId, /// /// NoSessionMatch /// [JsonPropertyName("NoSessionMatch")] NoSessionMatch, /// /// CantSetBoundCookie /// [JsonPropertyName("CantSetBoundCookie")] CantSetBoundCookie } /// /// Session event details specific to challenges. /// public partial class ChallengeEventDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The result of a challenge. /// [JsonPropertyName("challengeResult")] public CefSharp.DevTools.Network.ChallengeEventDetailsChallengeResult ChallengeResult { get; set; } /// /// The challenge set. /// [JsonPropertyName("challenge")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Challenge { get; set; } } /// /// An object providing the result of a network resource load. /// public partial class LoadNetworkResourcePageResult : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Success /// [JsonPropertyName("success")] public bool Success { get; set; } /// /// Optional values used for error reporting. /// [JsonPropertyName("netError")] public double? NetError { get; set; } /// /// NetErrorName /// [JsonPropertyName("netErrorName")] public string NetErrorName { get; set; } /// /// HttpStatusCode /// [JsonPropertyName("httpStatusCode")] public double? HttpStatusCode { get; set; } /// /// If successful, one of the following two fields holds the result. /// [JsonPropertyName("stream")] public string Stream { get; set; } /// /// Response headers. /// [JsonPropertyName("headers")] public CefSharp.DevTools.Network.Headers Headers { get; set; } } /// /// An options object that may be extended later to better support CORS, /// CORB and streaming. /// public partial class LoadNetworkResourceOptions : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// DisableCache /// [JsonPropertyName("disableCache")] public bool DisableCache { get; set; } /// /// IncludeCredentials /// [JsonPropertyName("includeCredentials")] public bool IncludeCredentials { get; set; } } /// /// Fired when data chunk was received over the network. /// public class DataReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// Data chunk length. /// [JsonInclude] [JsonPropertyName("dataLength")] public int DataLength { get; private set; } /// /// Actual bytes received (might be less than dataLength for compressed encodings). /// [JsonInclude] [JsonPropertyName("encodedDataLength")] public int EncodedDataLength { get; private set; } /// /// Data that was received. /// [JsonInclude] [JsonPropertyName("data")] public byte[] Data { get; private set; } } /// /// Fired when EventSource message is received. /// public class EventSourceMessageReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// Message type. /// [JsonInclude] [JsonPropertyName("eventName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string EventName { get; private set; } /// /// Message identifier. /// [JsonInclude] [JsonPropertyName("eventId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string EventId { get; private set; } /// /// Message content. /// [JsonInclude] [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Data { get; private set; } } /// /// Fired when HTTP request has failed to load. /// public class LoadingFailedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// Resource type. /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.Network.ResourceType Type { get; private set; } /// /// Error message. List of network errors: https://cs.chromium.org/chromium/src/net/base/net_error_list.h /// [JsonInclude] [JsonPropertyName("errorText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorText { get; private set; } /// /// True if loading was canceled. /// [JsonInclude] [JsonPropertyName("canceled")] public bool? Canceled { get; private set; } /// /// The reason why loading was blocked, if any. /// [JsonInclude] [JsonPropertyName("blockedReason")] public CefSharp.DevTools.Network.BlockedReason? BlockedReason { get; private set; } /// /// The reason why loading was blocked by CORS, if any. /// [JsonInclude] [JsonPropertyName("corsErrorStatus")] public CefSharp.DevTools.Network.CorsErrorStatus CorsErrorStatus { get; private set; } } /// /// Fired when HTTP request has finished loading. /// public class LoadingFinishedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// Total number of bytes received for this request. /// [JsonInclude] [JsonPropertyName("encodedDataLength")] public double EncodedDataLength { get; private set; } } /// /// Details of an intercepted HTTP request, which must be either allowed, blocked, modified or /// mocked. /// Deprecated, use Fetch.requestPaused instead. /// public class RequestInterceptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Each request the page makes will have a unique id, however if any redirects are encountered /// while processing that fetch, they will be reported with the same id as the original fetch. /// Likewise if HTTP authentication is needed then the same fetch id will be used. /// [JsonInclude] [JsonPropertyName("interceptionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InterceptionId { get; private set; } /// /// Request /// [JsonInclude] [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Request Request { get; private set; } /// /// The id of the frame that initiated the request. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// How the requested resource will be used. /// [JsonInclude] [JsonPropertyName("resourceType")] public CefSharp.DevTools.Network.ResourceType ResourceType { get; private set; } /// /// Whether this is a navigation request, which can abort the navigation completely. /// [JsonInclude] [JsonPropertyName("isNavigationRequest")] public bool IsNavigationRequest { get; private set; } /// /// Set if the request is a navigation that will result in a download. /// Only present after response is received from the server (i.e. HeadersReceived stage). /// [JsonInclude] [JsonPropertyName("isDownload")] public bool? IsDownload { get; private set; } /// /// Redirect location, only sent if a redirect was intercepted. /// [JsonInclude] [JsonPropertyName("redirectUrl")] public string RedirectUrl { get; private set; } /// /// Details of the Authorization Challenge encountered. If this is set then /// continueInterceptedRequest must contain an authChallengeResponse. /// [JsonInclude] [JsonPropertyName("authChallenge")] public CefSharp.DevTools.Network.AuthChallenge AuthChallenge { get; private set; } /// /// Response error if intercepted at response stage or if redirect occurred while intercepting /// request. /// [JsonInclude] [JsonPropertyName("responseErrorReason")] public CefSharp.DevTools.Network.ErrorReason? ResponseErrorReason { get; private set; } /// /// Response code if intercepted at response stage or if redirect occurred while intercepting /// request or auth retry occurred. /// [JsonInclude] [JsonPropertyName("responseStatusCode")] public int? ResponseStatusCode { get; private set; } /// /// Response headers if intercepted at the response stage or if redirect occurred while /// intercepting request or auth retry occurred. /// [JsonInclude] [JsonPropertyName("responseHeaders")] public CefSharp.DevTools.Network.Headers ResponseHeaders { get; private set; } /// /// If the intercepted request had a corresponding requestWillBeSent event fired for it, then /// this requestId will be the same as the requestId present in the requestWillBeSent event. /// [JsonInclude] [JsonPropertyName("requestId")] public string RequestId { get; private set; } } /// /// Fired if request ended up loading from cache. /// public class RequestServedFromCacheEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } } /// /// Fired when page is about to send HTTP request. /// public class RequestWillBeSentEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Loader identifier. Empty string if the request is fetched from worker. /// [JsonInclude] [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { get; private set; } /// /// URL of the document this request is loaded for. /// [JsonInclude] [JsonPropertyName("documentURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DocumentURL { get; private set; } /// /// Request data. /// [JsonInclude] [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Request Request { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("wallTime")] public double WallTime { get; private set; } /// /// Request initiator. /// [JsonInclude] [JsonPropertyName("initiator")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Initiator Initiator { get; private set; } /// /// In the case that redirectResponse is populated, this flag indicates whether /// requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted /// for the request which was just redirected. /// [JsonInclude] [JsonPropertyName("redirectHasExtraInfo")] public bool RedirectHasExtraInfo { get; private set; } /// /// Redirect response data. /// [JsonInclude] [JsonPropertyName("redirectResponse")] public CefSharp.DevTools.Network.Response RedirectResponse { get; private set; } /// /// Type of this resource. /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.Network.ResourceType? Type { get; private set; } /// /// Frame identifier. /// [JsonInclude] [JsonPropertyName("frameId")] public string FrameId { get; private set; } /// /// Whether the request is initiated by a user gesture. Defaults to false. /// [JsonInclude] [JsonPropertyName("hasUserGesture")] public bool? HasUserGesture { get; private set; } /// /// The render blocking behavior of the request. /// [JsonInclude] [JsonPropertyName("renderBlockingBehavior")] public CefSharp.DevTools.Network.RenderBlockingBehavior? RenderBlockingBehavior { get; private set; } } /// /// Fired when resource loading priority is changed /// public class ResourceChangedPriorityEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// New priority /// [JsonInclude] [JsonPropertyName("newPriority")] public CefSharp.DevTools.Network.ResourcePriority NewPriority { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Fired when a signed exchange was received over the network /// public class SignedExchangeReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Information about the signed exchange response. /// [JsonInclude] [JsonPropertyName("info")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.SignedExchangeInfo Info { get; private set; } } /// /// Fired when HTTP response is available. /// public class ResponseReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Loader identifier. Empty string if the request is fetched from worker. /// [JsonInclude] [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// Resource type. /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.Network.ResourceType Type { get; private set; } /// /// Response data. /// [JsonInclude] [JsonPropertyName("response")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Response Response { get; private set; } /// /// Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be /// or were emitted for this request. /// [JsonInclude] [JsonPropertyName("hasExtraInfo")] public bool HasExtraInfo { get; private set; } /// /// Frame identifier. /// [JsonInclude] [JsonPropertyName("frameId")] public string FrameId { get; private set; } } /// /// Fired when WebSocket is closed. /// public class WebSocketClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Fired upon WebSocket creation. /// public class WebSocketCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// WebSocket request URL. /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Request initiator. /// [JsonInclude] [JsonPropertyName("initiator")] public CefSharp.DevTools.Network.Initiator Initiator { get; private set; } } /// /// Fired when WebSocket message error occurs. /// public class WebSocketFrameErrorEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// WebSocket error message. /// [JsonInclude] [JsonPropertyName("errorMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorMessage { get; private set; } } /// /// Fired when WebSocket message is received. /// public class WebSocketFrameReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// WebSocket response data. /// [JsonInclude] [JsonPropertyName("response")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.WebSocketFrame Response { get; private set; } } /// /// Fired when WebSocket message is sent. /// public class WebSocketFrameSentEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// WebSocket response data. /// [JsonInclude] [JsonPropertyName("response")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.WebSocketFrame Response { get; private set; } } /// /// Fired when WebSocket handshake response becomes available. /// public class WebSocketHandshakeResponseReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// WebSocket response data. /// [JsonInclude] [JsonPropertyName("response")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.WebSocketResponse Response { get; private set; } } /// /// Fired when WebSocket is about to initiate handshake. /// public class WebSocketWillSendHandshakeRequestEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// UTC Timestamp. /// [JsonInclude] [JsonPropertyName("wallTime")] public double WallTime { get; private set; } /// /// WebSocket request data. /// [JsonInclude] [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.WebSocketRequest Request { get; private set; } } /// /// Fired upon WebTransport creation. /// public class WebTransportCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// WebTransport identifier. /// [JsonInclude] [JsonPropertyName("transportId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TransportId { get; private set; } /// /// WebTransport request URL. /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// Request initiator. /// [JsonInclude] [JsonPropertyName("initiator")] public CefSharp.DevTools.Network.Initiator Initiator { get; private set; } } /// /// Fired when WebTransport handshake is finished. /// public class WebTransportConnectionEstablishedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// WebTransport identifier. /// [JsonInclude] [JsonPropertyName("transportId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TransportId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Fired when WebTransport is disposed. /// public class WebTransportClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// WebTransport identifier. /// [JsonInclude] [JsonPropertyName("transportId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TransportId { get; private set; } /// /// Timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Fired upon direct_socket.TCPSocket creation. /// public class DirectTCPSocketCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// RemoteAddr /// [JsonInclude] [JsonPropertyName("remoteAddr")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RemoteAddr { get; private set; } /// /// Unsigned int 16. /// [JsonInclude] [JsonPropertyName("remotePort")] public int RemotePort { get; private set; } /// /// Options /// [JsonInclude] [JsonPropertyName("options")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.DirectTCPSocketOptions Options { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// Initiator /// [JsonInclude] [JsonPropertyName("initiator")] public CefSharp.DevTools.Network.Initiator Initiator { get; private set; } } /// /// Fired when direct_socket.TCPSocket connection is opened. /// public class DirectTCPSocketOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// RemoteAddr /// [JsonInclude] [JsonPropertyName("remoteAddr")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RemoteAddr { get; private set; } /// /// Expected to be unsigned integer. /// [JsonInclude] [JsonPropertyName("remotePort")] public int RemotePort { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// LocalAddr /// [JsonInclude] [JsonPropertyName("localAddr")] public string LocalAddr { get; private set; } /// /// Expected to be unsigned integer. /// [JsonInclude] [JsonPropertyName("localPort")] public int? LocalPort { get; private set; } } /// /// Fired when direct_socket.TCPSocket is aborted. /// public class DirectTCPSocketAbortedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// ErrorMessage /// [JsonInclude] [JsonPropertyName("errorMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorMessage { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Fired when direct_socket.TCPSocket is closed. /// public class DirectTCPSocketClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Fired when data is sent to tcp direct socket stream. /// public class DirectTCPSocketChunkSentEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// Data /// [JsonInclude] [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] Data { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Fired when data is received from tcp direct socket stream. /// public class DirectTCPSocketChunkReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// Data /// [JsonInclude] [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] Data { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// directUDPSocketJoinedMulticastGroup /// public class DirectUDPSocketJoinedMulticastGroupEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// IPAddress /// [JsonInclude] [JsonPropertyName("IPAddress")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string IPAddress { get; private set; } } /// /// directUDPSocketLeftMulticastGroup /// public class DirectUDPSocketLeftMulticastGroupEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// IPAddress /// [JsonInclude] [JsonPropertyName("IPAddress")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string IPAddress { get; private set; } } /// /// Fired upon direct_socket.UDPSocket creation. /// public class DirectUDPSocketCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// Options /// [JsonInclude] [JsonPropertyName("options")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.DirectUDPSocketOptions Options { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// Initiator /// [JsonInclude] [JsonPropertyName("initiator")] public CefSharp.DevTools.Network.Initiator Initiator { get; private set; } } /// /// Fired when direct_socket.UDPSocket connection is opened. /// public class DirectUDPSocketOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// LocalAddr /// [JsonInclude] [JsonPropertyName("localAddr")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LocalAddr { get; private set; } /// /// Expected to be unsigned integer. /// [JsonInclude] [JsonPropertyName("localPort")] public int LocalPort { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// RemoteAddr /// [JsonInclude] [JsonPropertyName("remoteAddr")] public string RemoteAddr { get; private set; } /// /// Expected to be unsigned integer. /// [JsonInclude] [JsonPropertyName("remotePort")] public int? RemotePort { get; private set; } } /// /// Fired when direct_socket.UDPSocket is aborted. /// public class DirectUDPSocketAbortedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// ErrorMessage /// [JsonInclude] [JsonPropertyName("errorMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorMessage { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Fired when direct_socket.UDPSocket is closed. /// public class DirectUDPSocketClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Fired when message is sent to udp direct socket stream. /// public class DirectUDPSocketChunkSentEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// Message /// [JsonInclude] [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.DirectUDPMessage Message { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Fired when message is received from udp direct socket stream. /// public class DirectUDPSocketChunkReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier /// [JsonInclude] [JsonPropertyName("identifier")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Identifier { get; private set; } /// /// Message /// [JsonInclude] [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.DirectUDPMessage Message { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Fired when additional information about a requestWillBeSent event is available from the /// network stack. Not every requestWillBeSent event will have an additional /// requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent /// or requestWillBeSentExtraInfo will be fired first for the same request. /// public class RequestWillBeSentExtraInfoEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. Used to match this information to an existing requestWillBeSent event. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// A list of cookies potentially associated to the requested URL. This includes both cookies sent with /// the request and the ones not sent; the latter are distinguished by having blockedReasons field set. /// [JsonInclude] [JsonPropertyName("associatedCookies")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList AssociatedCookies { get; private set; } /// /// Raw request headers as they will be sent over the wire. /// [JsonInclude] [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { get; private set; } /// /// Connection timing information for the request. /// [JsonInclude] [JsonPropertyName("connectTiming")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.ConnectTiming ConnectTiming { get; private set; } /// /// The client security state set for the request. /// [JsonInclude] [JsonPropertyName("clientSecurityState")] public CefSharp.DevTools.Network.ClientSecurityState ClientSecurityState { get; private set; } /// /// Whether the site has partitioned cookies stored in a partition different than the current one. /// [JsonInclude] [JsonPropertyName("siteHasCookieInOtherPartition")] public bool? SiteHasCookieInOtherPartition { get; private set; } /// /// The network conditions id if this request was affected by network conditions configured via /// emulateNetworkConditionsByRule. /// [JsonInclude] [JsonPropertyName("appliedNetworkConditionsId")] public string AppliedNetworkConditionsId { get; private set; } } /// /// Fired when additional information about a responseReceived event is available from the network /// stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for /// it, and responseReceivedExtraInfo may be fired before or after responseReceived. /// public class ResponseReceivedExtraInfoEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. Used to match this information to another responseReceived event. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// A list of cookies which were not stored from the response along with the corresponding /// reasons for blocking. The cookies here may not be valid due to syntax errors, which /// are represented by the invalid cookie line string instead of a proper cookie. /// [JsonInclude] [JsonPropertyName("blockedCookies")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList BlockedCookies { get; private set; } /// /// Raw response headers as they were received over the wire. /// Duplicate headers in the response are represented as a single key with their values /// concatentated using `\n` as the separator. /// See also `headersText` that contains verbatim text for HTTP/1.*. /// [JsonInclude] [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { get; private set; } /// /// The IP address space of the resource. The address space can only be determined once the transport /// established the connection, so we can't send it in `requestWillBeSentExtraInfo`. /// [JsonInclude] [JsonPropertyName("resourceIPAddressSpace")] public CefSharp.DevTools.Network.IPAddressSpace ResourceIPAddressSpace { get; private set; } /// /// The status code of the response. This is useful in cases the request failed and no responseReceived /// event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code /// for cached requests, where the status in responseReceived is a 200 and this will be 304. /// [JsonInclude] [JsonPropertyName("statusCode")] public int StatusCode { get; private set; } /// /// Raw response header text as it was received over the wire. The raw text may not always be /// available, such as in the case of HTTP/2 or QUIC. /// [JsonInclude] [JsonPropertyName("headersText")] public string HeadersText { get; private set; } /// /// The cookie partition key that will be used to store partitioned cookies set in this response. /// Only sent when partitioned cookies are enabled. /// [JsonInclude] [JsonPropertyName("cookiePartitionKey")] public CefSharp.DevTools.Network.CookiePartitionKey CookiePartitionKey { get; private set; } /// /// True if partitioned cookies are enabled, but the partition key is not serializable to string. /// [JsonInclude] [JsonPropertyName("cookiePartitionKeyOpaque")] public bool? CookiePartitionKeyOpaque { get; private set; } /// /// A list of cookies which should have been blocked by 3PCD but are exempted and stored from /// the response with the corresponding reason. /// [JsonInclude] [JsonPropertyName("exemptedCookies")] public System.Collections.Generic.IList ExemptedCookies { get; private set; } } /// /// Fired when 103 Early Hints headers is received in addition to the common response. /// Not every responseReceived event will have an responseReceivedEarlyHints fired. /// Only one responseReceivedEarlyHints may be fired for eached responseReceived event. /// public class ResponseReceivedEarlyHintsEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Request identifier. Used to match this information to another responseReceived event. /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Raw response headers as they were received over the wire. /// Duplicate headers in the response are represented as a single key with their values /// concatentated using `\n` as the separator. /// See also `headersText` that contains verbatim text for HTTP/1.*. /// [JsonInclude] [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { get; private set; } } /// /// Detailed success or error status of the operation. /// 'AlreadyExists' also signifies a successful operation, as the result /// of the operation already exists und thus, the operation was abort /// preemptively (e.g. a cache hit). /// public enum TrustTokenOperationDoneStatus { /// /// Ok /// [JsonPropertyName("Ok")] Ok, /// /// InvalidArgument /// [JsonPropertyName("InvalidArgument")] InvalidArgument, /// /// MissingIssuerKeys /// [JsonPropertyName("MissingIssuerKeys")] MissingIssuerKeys, /// /// FailedPrecondition /// [JsonPropertyName("FailedPrecondition")] FailedPrecondition, /// /// ResourceExhausted /// [JsonPropertyName("ResourceExhausted")] ResourceExhausted, /// /// AlreadyExists /// [JsonPropertyName("AlreadyExists")] AlreadyExists, /// /// ResourceLimited /// [JsonPropertyName("ResourceLimited")] ResourceLimited, /// /// Unauthorized /// [JsonPropertyName("Unauthorized")] Unauthorized, /// /// BadResponse /// [JsonPropertyName("BadResponse")] BadResponse, /// /// InternalError /// [JsonPropertyName("InternalError")] InternalError, /// /// UnknownError /// [JsonPropertyName("UnknownError")] UnknownError, /// /// FulfilledLocally /// [JsonPropertyName("FulfilledLocally")] FulfilledLocally, /// /// SiteIssuerLimit /// [JsonPropertyName("SiteIssuerLimit")] SiteIssuerLimit } /// /// Fired exactly once for each Trust Token operation. Depending on /// the type of the operation and whether the operation succeeded or /// failed, the event is fired before the corresponding request was sent /// or after the response was received. /// public class TrustTokenOperationDoneEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Detailed success or error status of the operation. /// 'AlreadyExists' also signifies a successful operation, as the result /// of the operation already exists und thus, the operation was abort /// preemptively (e.g. a cache hit). /// [JsonInclude] [JsonPropertyName("status")] public CefSharp.DevTools.Network.TrustTokenOperationDoneStatus Status { get; private set; } /// /// Type /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.Network.TrustTokenOperationType Type { get; private set; } /// /// RequestId /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// Top level origin. The context in which the operation was attempted. /// [JsonInclude] [JsonPropertyName("topLevelOrigin")] public string TopLevelOrigin { get; private set; } /// /// Origin of the issuer in case of a "Issuance" or "Redemption" operation. /// [JsonInclude] [JsonPropertyName("issuerOrigin")] public string IssuerOrigin { get; private set; } /// /// The number of obtained Trust Tokens on a successful "Issuance" operation. /// [JsonInclude] [JsonPropertyName("issuedTokenCount")] public int? IssuedTokenCount { get; private set; } } /// /// Is sent whenever a new report is added. /// And after 'enableReportingApi' for all existing reports. /// public class ReportingApiReportAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Report /// [JsonInclude] [JsonPropertyName("report")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.ReportingApiReport Report { get; private set; } } /// /// reportingApiReportUpdated /// public class ReportingApiReportUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Report /// [JsonInclude] [JsonPropertyName("report")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.ReportingApiReport Report { get; private set; } } /// /// reportingApiEndpointsChangedForOrigin /// public class ReportingApiEndpointsChangedForOriginEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Origin of the document(s) which configured the endpoints. /// [JsonInclude] [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; private set; } /// /// Endpoints /// [JsonInclude] [JsonPropertyName("endpoints")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Endpoints { get; private set; } } /// /// Triggered when the initial set of device bound sessions is added. /// public class DeviceBoundSessionsAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// The device bound sessions. /// [JsonInclude] [JsonPropertyName("sessions")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Sessions { get; private set; } } /// /// Triggered when a device bound session event occurs. /// public class DeviceBoundSessionEventOccurredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// A unique identifier for this session event. /// [JsonInclude] [JsonPropertyName("eventId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string EventId { get; private set; } /// /// The site this session event is associated with. /// [JsonInclude] [JsonPropertyName("site")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Site { get; private set; } /// /// Whether this event was considered successful. /// [JsonInclude] [JsonPropertyName("succeeded")] public bool Succeeded { get; private set; } /// /// The session ID this event is associated with. May not be populated for /// failed events. /// [JsonInclude] [JsonPropertyName("sessionId")] public string SessionId { get; private set; } /// /// The below are the different session event type details. Exactly one is populated. /// [JsonInclude] [JsonPropertyName("creationEventDetails")] public CefSharp.DevTools.Network.CreationEventDetails CreationEventDetails { get; private set; } /// /// RefreshEventDetails /// [JsonInclude] [JsonPropertyName("refreshEventDetails")] public CefSharp.DevTools.Network.RefreshEventDetails RefreshEventDetails { get; private set; } /// /// TerminationEventDetails /// [JsonInclude] [JsonPropertyName("terminationEventDetails")] public CefSharp.DevTools.Network.TerminationEventDetails TerminationEventDetails { get; private set; } /// /// ChallengeEventDetails /// [JsonInclude] [JsonPropertyName("challengeEventDetails")] public CefSharp.DevTools.Network.ChallengeEventDetails ChallengeEventDetails { get; private set; } } } namespace CefSharp.DevTools.Overlay { /// /// Configuration data for drawing the source order of an elements children. /// public partial class SourceOrderConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// the color to outline the given element in. /// [JsonPropertyName("parentOutlineColor")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.RGBA ParentOutlineColor { get; set; } /// /// the color to outline the child elements in. /// [JsonPropertyName("childOutlineColor")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.RGBA ChildOutlineColor { get; set; } } /// /// Configuration data for the highlighting of Grid elements. /// public partial class GridHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Whether the extension lines from grid cells to the rulers should be shown (default: false). /// [JsonPropertyName("showGridExtensionLines")] public bool? ShowGridExtensionLines { get; set; } /// /// Show Positive line number labels (default: false). /// [JsonPropertyName("showPositiveLineNumbers")] public bool? ShowPositiveLineNumbers { get; set; } /// /// Show Negative line number labels (default: false). /// [JsonPropertyName("showNegativeLineNumbers")] public bool? ShowNegativeLineNumbers { get; set; } /// /// Show area name labels (default: false). /// [JsonPropertyName("showAreaNames")] public bool? ShowAreaNames { get; set; } /// /// Show line name labels (default: false). /// [JsonPropertyName("showLineNames")] public bool? ShowLineNames { get; set; } /// /// Show track size labels (default: false). /// [JsonPropertyName("showTrackSizes")] public bool? ShowTrackSizes { get; set; } /// /// The grid container border highlight color (default: transparent). /// [JsonPropertyName("gridBorderColor")] public CefSharp.DevTools.DOM.RGBA GridBorderColor { get; set; } /// /// The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead. /// [JsonPropertyName("cellBorderColor")] public CefSharp.DevTools.DOM.RGBA CellBorderColor { get; set; } /// /// The row line color (default: transparent). /// [JsonPropertyName("rowLineColor")] public CefSharp.DevTools.DOM.RGBA RowLineColor { get; set; } /// /// The column line color (default: transparent). /// [JsonPropertyName("columnLineColor")] public CefSharp.DevTools.DOM.RGBA ColumnLineColor { get; set; } /// /// Whether the grid border is dashed (default: false). /// [JsonPropertyName("gridBorderDash")] public bool? GridBorderDash { get; set; } /// /// Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead. /// [JsonPropertyName("cellBorderDash")] public bool? CellBorderDash { get; set; } /// /// Whether row lines are dashed (default: false). /// [JsonPropertyName("rowLineDash")] public bool? RowLineDash { get; set; } /// /// Whether column lines are dashed (default: false). /// [JsonPropertyName("columnLineDash")] public bool? ColumnLineDash { get; set; } /// /// The row gap highlight fill color (default: transparent). /// [JsonPropertyName("rowGapColor")] public CefSharp.DevTools.DOM.RGBA RowGapColor { get; set; } /// /// The row gap hatching fill color (default: transparent). /// [JsonPropertyName("rowHatchColor")] public CefSharp.DevTools.DOM.RGBA RowHatchColor { get; set; } /// /// The column gap highlight fill color (default: transparent). /// [JsonPropertyName("columnGapColor")] public CefSharp.DevTools.DOM.RGBA ColumnGapColor { get; set; } /// /// The column gap hatching fill color (default: transparent). /// [JsonPropertyName("columnHatchColor")] public CefSharp.DevTools.DOM.RGBA ColumnHatchColor { get; set; } /// /// The named grid areas border color (Default: transparent). /// [JsonPropertyName("areaBorderColor")] public CefSharp.DevTools.DOM.RGBA AreaBorderColor { get; set; } /// /// The grid container background color (Default: transparent). /// [JsonPropertyName("gridBackgroundColor")] public CefSharp.DevTools.DOM.RGBA GridBackgroundColor { get; set; } } /// /// Configuration data for the highlighting of Flex container elements. /// public partial class FlexContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The style of the container border /// [JsonPropertyName("containerBorder")] public CefSharp.DevTools.Overlay.LineStyle ContainerBorder { get; set; } /// /// The style of the separator between lines /// [JsonPropertyName("lineSeparator")] public CefSharp.DevTools.Overlay.LineStyle LineSeparator { get; set; } /// /// The style of the separator between items /// [JsonPropertyName("itemSeparator")] public CefSharp.DevTools.Overlay.LineStyle ItemSeparator { get; set; } /// /// Style of content-distribution space on the main axis (justify-content). /// [JsonPropertyName("mainDistributedSpace")] public CefSharp.DevTools.Overlay.BoxStyle MainDistributedSpace { get; set; } /// /// Style of content-distribution space on the cross axis (align-content). /// [JsonPropertyName("crossDistributedSpace")] public CefSharp.DevTools.Overlay.BoxStyle CrossDistributedSpace { get; set; } /// /// Style of empty space caused by row gaps (gap/row-gap). /// [JsonPropertyName("rowGapSpace")] public CefSharp.DevTools.Overlay.BoxStyle RowGapSpace { get; set; } /// /// Style of empty space caused by columns gaps (gap/column-gap). /// [JsonPropertyName("columnGapSpace")] public CefSharp.DevTools.Overlay.BoxStyle ColumnGapSpace { get; set; } /// /// Style of the self-alignment line (align-items). /// [JsonPropertyName("crossAlignment")] public CefSharp.DevTools.Overlay.LineStyle CrossAlignment { get; set; } } /// /// Configuration data for the highlighting of Flex item elements. /// public partial class FlexItemHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Style of the box representing the item's base size /// [JsonPropertyName("baseSizeBox")] public CefSharp.DevTools.Overlay.BoxStyle BaseSizeBox { get; set; } /// /// Style of the border around the box representing the item's base size /// [JsonPropertyName("baseSizeBorder")] public CefSharp.DevTools.Overlay.LineStyle BaseSizeBorder { get; set; } /// /// Style of the arrow representing if the item grew or shrank /// [JsonPropertyName("flexibilityArrow")] public CefSharp.DevTools.Overlay.LineStyle FlexibilityArrow { get; set; } } /// /// The line pattern (default: solid) /// public enum LineStylePattern { /// /// dashed /// [JsonPropertyName("dashed")] Dashed, /// /// dotted /// [JsonPropertyName("dotted")] Dotted } /// /// Style information for drawing a line. /// public partial class LineStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The color of the line (default: transparent) /// [JsonPropertyName("color")] public CefSharp.DevTools.DOM.RGBA Color { get; set; } /// /// The line pattern (default: solid) /// [JsonPropertyName("pattern")] public CefSharp.DevTools.Overlay.LineStylePattern? Pattern { get; set; } } /// /// Style information for drawing a box. /// public partial class BoxStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The background color for the box (default: transparent) /// [JsonPropertyName("fillColor")] public CefSharp.DevTools.DOM.RGBA FillColor { get; set; } /// /// The hatching color for the box (default: transparent) /// [JsonPropertyName("hatchColor")] public CefSharp.DevTools.DOM.RGBA HatchColor { get; set; } } /// /// ContrastAlgorithm /// public enum ContrastAlgorithm { /// /// aa /// [JsonPropertyName("aa")] Aa, /// /// aaa /// [JsonPropertyName("aaa")] Aaa, /// /// apca /// [JsonPropertyName("apca")] Apca } /// /// Configuration data for the highlighting of page elements. /// public partial class HighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Whether the node info tooltip should be shown (default: false). /// [JsonPropertyName("showInfo")] public bool? ShowInfo { get; set; } /// /// Whether the node styles in the tooltip (default: false). /// [JsonPropertyName("showStyles")] public bool? ShowStyles { get; set; } /// /// Whether the rulers should be shown (default: false). /// [JsonPropertyName("showRulers")] public bool? ShowRulers { get; set; } /// /// Whether the a11y info should be shown (default: true). /// [JsonPropertyName("showAccessibilityInfo")] public bool? ShowAccessibilityInfo { get; set; } /// /// Whether the extension lines from node to the rulers should be shown (default: false). /// [JsonPropertyName("showExtensionLines")] public bool? ShowExtensionLines { get; set; } /// /// The content box highlight fill color (default: transparent). /// [JsonPropertyName("contentColor")] public CefSharp.DevTools.DOM.RGBA ContentColor { get; set; } /// /// The padding highlight fill color (default: transparent). /// [JsonPropertyName("paddingColor")] public CefSharp.DevTools.DOM.RGBA PaddingColor { get; set; } /// /// The border highlight fill color (default: transparent). /// [JsonPropertyName("borderColor")] public CefSharp.DevTools.DOM.RGBA BorderColor { get; set; } /// /// The margin highlight fill color (default: transparent). /// [JsonPropertyName("marginColor")] public CefSharp.DevTools.DOM.RGBA MarginColor { get; set; } /// /// The event target element highlight fill color (default: transparent). /// [JsonPropertyName("eventTargetColor")] public CefSharp.DevTools.DOM.RGBA EventTargetColor { get; set; } /// /// The shape outside fill color (default: transparent). /// [JsonPropertyName("shapeColor")] public CefSharp.DevTools.DOM.RGBA ShapeColor { get; set; } /// /// The shape margin fill color (default: transparent). /// [JsonPropertyName("shapeMarginColor")] public CefSharp.DevTools.DOM.RGBA ShapeMarginColor { get; set; } /// /// The grid layout color (default: transparent). /// [JsonPropertyName("cssGridColor")] public CefSharp.DevTools.DOM.RGBA CssGridColor { get; set; } /// /// The color format used to format color styles (default: hex). /// [JsonPropertyName("colorFormat")] public CefSharp.DevTools.Overlay.ColorFormat? ColorFormat { get; set; } /// /// The grid layout highlight configuration (default: all transparent). /// [JsonPropertyName("gridHighlightConfig")] public CefSharp.DevTools.Overlay.GridHighlightConfig GridHighlightConfig { get; set; } /// /// The flex container highlight configuration (default: all transparent). /// [JsonPropertyName("flexContainerHighlightConfig")] public CefSharp.DevTools.Overlay.FlexContainerHighlightConfig FlexContainerHighlightConfig { get; set; } /// /// The flex item highlight configuration (default: all transparent). /// [JsonPropertyName("flexItemHighlightConfig")] public CefSharp.DevTools.Overlay.FlexItemHighlightConfig FlexItemHighlightConfig { get; set; } /// /// The contrast algorithm to use for the contrast ratio (default: aa). /// [JsonPropertyName("contrastAlgorithm")] public CefSharp.DevTools.Overlay.ContrastAlgorithm? ContrastAlgorithm { get; set; } /// /// The container query container highlight configuration (default: all transparent). /// [JsonPropertyName("containerQueryContainerHighlightConfig")] public CefSharp.DevTools.Overlay.ContainerQueryContainerHighlightConfig ContainerQueryContainerHighlightConfig { get; set; } } /// /// ColorFormat /// public enum ColorFormat { /// /// rgb /// [JsonPropertyName("rgb")] Rgb, /// /// hsl /// [JsonPropertyName("hsl")] Hsl, /// /// hwb /// [JsonPropertyName("hwb")] Hwb, /// /// hex /// [JsonPropertyName("hex")] Hex } /// /// Configurations for Persistent Grid Highlight /// public partial class GridNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance. /// [JsonPropertyName("gridHighlightConfig")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Overlay.GridHighlightConfig GridHighlightConfig { get; set; } /// /// Identifier of the node to highlight. /// [JsonPropertyName("nodeId")] public int NodeId { get; set; } } /// /// FlexNodeHighlightConfig /// public partial class FlexNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance of flex containers. /// [JsonPropertyName("flexContainerHighlightConfig")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Overlay.FlexContainerHighlightConfig FlexContainerHighlightConfig { get; set; } /// /// Identifier of the node to highlight. /// [JsonPropertyName("nodeId")] public int NodeId { get; set; } } /// /// ScrollSnapContainerHighlightConfig /// public partial class ScrollSnapContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The style of the snapport border (default: transparent) /// [JsonPropertyName("snapportBorder")] public CefSharp.DevTools.Overlay.LineStyle SnapportBorder { get; set; } /// /// The style of the snap area border (default: transparent) /// [JsonPropertyName("snapAreaBorder")] public CefSharp.DevTools.Overlay.LineStyle SnapAreaBorder { get; set; } /// /// The margin highlight fill color (default: transparent). /// [JsonPropertyName("scrollMarginColor")] public CefSharp.DevTools.DOM.RGBA ScrollMarginColor { get; set; } /// /// The padding highlight fill color (default: transparent). /// [JsonPropertyName("scrollPaddingColor")] public CefSharp.DevTools.DOM.RGBA ScrollPaddingColor { get; set; } } /// /// ScrollSnapHighlightConfig /// public partial class ScrollSnapHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance of scroll snap containers. /// [JsonPropertyName("scrollSnapContainerHighlightConfig")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Overlay.ScrollSnapContainerHighlightConfig ScrollSnapContainerHighlightConfig { get; set; } /// /// Identifier of the node to highlight. /// [JsonPropertyName("nodeId")] public int NodeId { get; set; } } /// /// Configuration for dual screen hinge /// public partial class HingeConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A rectangle represent hinge /// [JsonPropertyName("rect")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect Rect { get; set; } /// /// The content box highlight fill color (default: a dark color). /// [JsonPropertyName("contentColor")] public CefSharp.DevTools.DOM.RGBA ContentColor { get; set; } /// /// The content box highlight outline color (default: transparent). /// [JsonPropertyName("outlineColor")] public CefSharp.DevTools.DOM.RGBA OutlineColor { get; set; } } /// /// Configuration for Window Controls Overlay /// public partial class WindowControlsOverlayConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Whether the title bar CSS should be shown when emulating the Window Controls Overlay. /// [JsonPropertyName("showCSS")] public bool ShowCSS { get; set; } /// /// Selected platforms to show the overlay. /// [JsonPropertyName("selectedPlatform")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SelectedPlatform { get; set; } /// /// The theme color defined in app manifest. /// [JsonPropertyName("themeColor")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ThemeColor { get; set; } } /// /// ContainerQueryHighlightConfig /// public partial class ContainerQueryHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance of container query containers. /// [JsonPropertyName("containerQueryContainerHighlightConfig")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Overlay.ContainerQueryContainerHighlightConfig ContainerQueryContainerHighlightConfig { get; set; } /// /// Identifier of the container node to highlight. /// [JsonPropertyName("nodeId")] public int NodeId { get; set; } } /// /// ContainerQueryContainerHighlightConfig /// public partial class ContainerQueryContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The style of the container border. /// [JsonPropertyName("containerBorder")] public CefSharp.DevTools.Overlay.LineStyle ContainerBorder { get; set; } /// /// The style of the descendants' borders. /// [JsonPropertyName("descendantBorder")] public CefSharp.DevTools.Overlay.LineStyle DescendantBorder { get; set; } } /// /// IsolatedElementHighlightConfig /// public partial class IsolatedElementHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance of an element in isolation mode. /// [JsonPropertyName("isolationModeHighlightConfig")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Overlay.IsolationModeHighlightConfig IsolationModeHighlightConfig { get; set; } /// /// Identifier of the isolated element to highlight. /// [JsonPropertyName("nodeId")] public int NodeId { get; set; } } /// /// IsolationModeHighlightConfig /// public partial class IsolationModeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The fill color of the resizers (default: transparent). /// [JsonPropertyName("resizerColor")] public CefSharp.DevTools.DOM.RGBA ResizerColor { get; set; } /// /// The fill color for resizer handles (default: transparent). /// [JsonPropertyName("resizerHandleColor")] public CefSharp.DevTools.DOM.RGBA ResizerHandleColor { get; set; } /// /// The fill color for the mask covering non-isolated elements (default: transparent). /// [JsonPropertyName("maskColor")] public CefSharp.DevTools.DOM.RGBA MaskColor { get; set; } } /// /// InspectMode /// public enum InspectMode { /// /// searchForNode /// [JsonPropertyName("searchForNode")] SearchForNode, /// /// searchForUAShadowDOM /// [JsonPropertyName("searchForUAShadowDOM")] SearchForUAShadowDOM, /// /// captureAreaScreenshot /// [JsonPropertyName("captureAreaScreenshot")] CaptureAreaScreenshot, /// /// none /// [JsonPropertyName("none")] None } /// /// Fired when the node should be inspected. This happens after call to `setInspectMode` or when /// user manually inspects an element. /// public class InspectNodeRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the node to inspect. /// [JsonInclude] [JsonPropertyName("backendNodeId")] public int BackendNodeId { get; private set; } } /// /// Fired when the node should be highlighted. This happens after call to `setInspectMode`. /// public class NodeHighlightRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// NodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } } /// /// Fired when user asks to capture screenshot of some area on the page. /// public class ScreenshotRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Viewport to capture, in device independent pixels (dip). /// [JsonInclude] [JsonPropertyName("viewport")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.Viewport Viewport { get; private set; } } } namespace CefSharp.DevTools.PWA { /// /// The following types are the replica of /// https://crsrc.org/c/chrome/browser/web_applications/proto/web_app_os_integration_state.proto;drc=9910d3be894c8f142c977ba1023f30a656bc13fc;l=67 /// public partial class FileHandlerAccept : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// New name of the mimetype according to /// https://www.iana.org/assignments/media-types/media-types.xhtml /// [JsonPropertyName("mediaType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string MediaType { get; set; } /// /// FileExtensions /// [JsonPropertyName("fileExtensions")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] FileExtensions { get; set; } } /// /// FileHandler /// public partial class FileHandler : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Action /// [JsonPropertyName("action")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Action { get; set; } /// /// Accepts /// [JsonPropertyName("accepts")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Accepts { get; set; } /// /// DisplayName /// [JsonPropertyName("displayName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DisplayName { get; set; } } /// /// If user prefers opening the app in browser or an app window. /// public enum DisplayMode { /// /// standalone /// [JsonPropertyName("standalone")] Standalone, /// /// browser /// [JsonPropertyName("browser")] Browser } } namespace CefSharp.DevTools.Page { /// /// Indicates whether a frame has been identified as an ad. /// public enum AdFrameType { /// /// none /// [JsonPropertyName("none")] None, /// /// child /// [JsonPropertyName("child")] Child, /// /// root /// [JsonPropertyName("root")] Root } /// /// AdFrameExplanation /// public enum AdFrameExplanation { /// /// ParentIsAd /// [JsonPropertyName("ParentIsAd")] ParentIsAd, /// /// CreatedByAdScript /// [JsonPropertyName("CreatedByAdScript")] CreatedByAdScript, /// /// MatchedBlockingRule /// [JsonPropertyName("MatchedBlockingRule")] MatchedBlockingRule } /// /// Indicates whether a frame has been identified as an ad and why. /// public partial class AdFrameStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// AdFrameType /// [JsonPropertyName("adFrameType")] public CefSharp.DevTools.Page.AdFrameType AdFrameType { get; set; } /// /// Explanations /// [JsonPropertyName("explanations")] public CefSharp.DevTools.Page.AdFrameExplanation[] Explanations { get; set; } } /// /// Identifies the script which caused a script or frame to be labelled as an /// ad. /// public partial class AdScriptId : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Script Id of the script which caused a script or frame to be labelled as /// an ad. /// [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { get; set; } /// /// Id of scriptId's debugger. /// [JsonPropertyName("debuggerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DebuggerId { get; set; } } /// /// Encapsulates the script ancestry and the root script filterlist rule that /// caused the frame to be labelled as an ad. Only created when `ancestryChain` /// is not empty. /// public partial class AdScriptAncestry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A chain of `AdScriptId`s representing the ancestry of an ad script that /// led to the creation of a frame. The chain is ordered from the script /// itself (lower level) up to its root ancestor that was flagged by /// filterlist. /// [JsonPropertyName("ancestryChain")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList AncestryChain { get; set; } /// /// The filterlist rule that caused the root (last) script in /// `ancestryChain` to be ad-tagged. Only populated if the rule is /// available. /// [JsonPropertyName("rootScriptFilterlistRule")] public string RootScriptFilterlistRule { get; set; } } /// /// Indicates whether the frame is a secure context and why it is the case. /// public enum SecureContextType { /// /// Secure /// [JsonPropertyName("Secure")] Secure, /// /// SecureLocalhost /// [JsonPropertyName("SecureLocalhost")] SecureLocalhost, /// /// InsecureScheme /// [JsonPropertyName("InsecureScheme")] InsecureScheme, /// /// InsecureAncestor /// [JsonPropertyName("InsecureAncestor")] InsecureAncestor } /// /// Indicates whether the frame is cross-origin isolated and why it is the case. /// public enum CrossOriginIsolatedContextType { /// /// Isolated /// [JsonPropertyName("Isolated")] Isolated, /// /// NotIsolated /// [JsonPropertyName("NotIsolated")] NotIsolated, /// /// NotIsolatedFeatureDisabled /// [JsonPropertyName("NotIsolatedFeatureDisabled")] NotIsolatedFeatureDisabled } /// /// GatedAPIFeatures /// public enum GatedAPIFeatures { /// /// SharedArrayBuffers /// [JsonPropertyName("SharedArrayBuffers")] SharedArrayBuffers, /// /// SharedArrayBuffersTransferAllowed /// [JsonPropertyName("SharedArrayBuffersTransferAllowed")] SharedArrayBuffersTransferAllowed, /// /// PerformanceMeasureMemory /// [JsonPropertyName("PerformanceMeasureMemory")] PerformanceMeasureMemory, /// /// PerformanceProfile /// [JsonPropertyName("PerformanceProfile")] PerformanceProfile } /// /// All Permissions Policy features. This enum should match the one defined /// in services/network/public/cpp/permissions_policy/permissions_policy_features.json5. /// LINT.IfChange(PermissionsPolicyFeature) /// public enum PermissionsPolicyFeature { /// /// accelerometer /// [JsonPropertyName("accelerometer")] Accelerometer, /// /// all-screens-capture /// [JsonPropertyName("all-screens-capture")] AllScreensCapture, /// /// ambient-light-sensor /// [JsonPropertyName("ambient-light-sensor")] AmbientLightSensor, /// /// aria-notify /// [JsonPropertyName("aria-notify")] AriaNotify, /// /// attribution-reporting /// [JsonPropertyName("attribution-reporting")] AttributionReporting, /// /// autofill /// [JsonPropertyName("autofill")] Autofill, /// /// autoplay /// [JsonPropertyName("autoplay")] Autoplay, /// /// bluetooth /// [JsonPropertyName("bluetooth")] Bluetooth, /// /// browsing-topics /// [JsonPropertyName("browsing-topics")] BrowsingTopics, /// /// camera /// [JsonPropertyName("camera")] Camera, /// /// captured-surface-control /// [JsonPropertyName("captured-surface-control")] CapturedSurfaceControl, /// /// ch-dpr /// [JsonPropertyName("ch-dpr")] ChDpr, /// /// ch-device-memory /// [JsonPropertyName("ch-device-memory")] ChDeviceMemory, /// /// ch-downlink /// [JsonPropertyName("ch-downlink")] ChDownlink, /// /// ch-ect /// [JsonPropertyName("ch-ect")] ChEct, /// /// ch-prefers-color-scheme /// [JsonPropertyName("ch-prefers-color-scheme")] ChPrefersColorScheme, /// /// ch-prefers-reduced-motion /// [JsonPropertyName("ch-prefers-reduced-motion")] ChPrefersReducedMotion, /// /// ch-prefers-reduced-transparency /// [JsonPropertyName("ch-prefers-reduced-transparency")] ChPrefersReducedTransparency, /// /// ch-rtt /// [JsonPropertyName("ch-rtt")] ChRtt, /// /// ch-save-data /// [JsonPropertyName("ch-save-data")] ChSaveData, /// /// ch-ua /// [JsonPropertyName("ch-ua")] ChUa, /// /// ch-ua-arch /// [JsonPropertyName("ch-ua-arch")] ChUaArch, /// /// ch-ua-bitness /// [JsonPropertyName("ch-ua-bitness")] ChUaBitness, /// /// ch-ua-high-entropy-values /// [JsonPropertyName("ch-ua-high-entropy-values")] ChUaHighEntropyValues, /// /// ch-ua-platform /// [JsonPropertyName("ch-ua-platform")] ChUaPlatform, /// /// ch-ua-model /// [JsonPropertyName("ch-ua-model")] ChUaModel, /// /// ch-ua-mobile /// [JsonPropertyName("ch-ua-mobile")] ChUaMobile, /// /// ch-ua-form-factors /// [JsonPropertyName("ch-ua-form-factors")] ChUaFormFactors, /// /// ch-ua-full-version /// [JsonPropertyName("ch-ua-full-version")] ChUaFullVersion, /// /// ch-ua-full-version-list /// [JsonPropertyName("ch-ua-full-version-list")] ChUaFullVersionList, /// /// ch-ua-platform-version /// [JsonPropertyName("ch-ua-platform-version")] ChUaPlatformVersion, /// /// ch-ua-wow64 /// [JsonPropertyName("ch-ua-wow64")] ChUaWow64, /// /// ch-viewport-height /// [JsonPropertyName("ch-viewport-height")] ChViewportHeight, /// /// ch-viewport-width /// [JsonPropertyName("ch-viewport-width")] ChViewportWidth, /// /// ch-width /// [JsonPropertyName("ch-width")] ChWidth, /// /// clipboard-read /// [JsonPropertyName("clipboard-read")] ClipboardRead, /// /// clipboard-write /// [JsonPropertyName("clipboard-write")] ClipboardWrite, /// /// compute-pressure /// [JsonPropertyName("compute-pressure")] ComputePressure, /// /// controlled-frame /// [JsonPropertyName("controlled-frame")] ControlledFrame, /// /// cross-origin-isolated /// [JsonPropertyName("cross-origin-isolated")] CrossOriginIsolated, /// /// deferred-fetch /// [JsonPropertyName("deferred-fetch")] DeferredFetch, /// /// deferred-fetch-minimal /// [JsonPropertyName("deferred-fetch-minimal")] DeferredFetchMinimal, /// /// device-attributes /// [JsonPropertyName("device-attributes")] DeviceAttributes, /// /// digital-credentials-create /// [JsonPropertyName("digital-credentials-create")] DigitalCredentialsCreate, /// /// digital-credentials-get /// [JsonPropertyName("digital-credentials-get")] DigitalCredentialsGet, /// /// direct-sockets /// [JsonPropertyName("direct-sockets")] DirectSockets, /// /// direct-sockets-multicast /// [JsonPropertyName("direct-sockets-multicast")] DirectSocketsMulticast, /// /// direct-sockets-private /// [JsonPropertyName("direct-sockets-private")] DirectSocketsPrivate, /// /// display-capture /// [JsonPropertyName("display-capture")] DisplayCapture, /// /// document-domain /// [JsonPropertyName("document-domain")] DocumentDomain, /// /// encrypted-media /// [JsonPropertyName("encrypted-media")] EncryptedMedia, /// /// execution-while-out-of-viewport /// [JsonPropertyName("execution-while-out-of-viewport")] ExecutionWhileOutOfViewport, /// /// execution-while-not-rendered /// [JsonPropertyName("execution-while-not-rendered")] ExecutionWhileNotRendered, /// /// fenced-unpartitioned-storage-read /// [JsonPropertyName("fenced-unpartitioned-storage-read")] FencedUnpartitionedStorageRead, /// /// focus-without-user-activation /// [JsonPropertyName("focus-without-user-activation")] FocusWithoutUserActivation, /// /// fullscreen /// [JsonPropertyName("fullscreen")] Fullscreen, /// /// frobulate /// [JsonPropertyName("frobulate")] Frobulate, /// /// gamepad /// [JsonPropertyName("gamepad")] Gamepad, /// /// geolocation /// [JsonPropertyName("geolocation")] Geolocation, /// /// gyroscope /// [JsonPropertyName("gyroscope")] Gyroscope, /// /// hid /// [JsonPropertyName("hid")] Hid, /// /// identity-credentials-get /// [JsonPropertyName("identity-credentials-get")] IdentityCredentialsGet, /// /// idle-detection /// [JsonPropertyName("idle-detection")] IdleDetection, /// /// interest-cohort /// [JsonPropertyName("interest-cohort")] InterestCohort, /// /// join-ad-interest-group /// [JsonPropertyName("join-ad-interest-group")] JoinAdInterestGroup, /// /// keyboard-map /// [JsonPropertyName("keyboard-map")] KeyboardMap, /// /// language-detector /// [JsonPropertyName("language-detector")] LanguageDetector, /// /// language-model /// [JsonPropertyName("language-model")] LanguageModel, /// /// local-fonts /// [JsonPropertyName("local-fonts")] LocalFonts, /// /// local-network /// [JsonPropertyName("local-network")] LocalNetwork, /// /// local-network-access /// [JsonPropertyName("local-network-access")] LocalNetworkAccess, /// /// loopback-network /// [JsonPropertyName("loopback-network")] LoopbackNetwork, /// /// magnetometer /// [JsonPropertyName("magnetometer")] Magnetometer, /// /// manual-text /// [JsonPropertyName("manual-text")] ManualText, /// /// media-playback-while-not-visible /// [JsonPropertyName("media-playback-while-not-visible")] MediaPlaybackWhileNotVisible, /// /// microphone /// [JsonPropertyName("microphone")] Microphone, /// /// midi /// [JsonPropertyName("midi")] Midi, /// /// on-device-speech-recognition /// [JsonPropertyName("on-device-speech-recognition")] OnDeviceSpeechRecognition, /// /// otp-credentials /// [JsonPropertyName("otp-credentials")] OtpCredentials, /// /// payment /// [JsonPropertyName("payment")] Payment, /// /// picture-in-picture /// [JsonPropertyName("picture-in-picture")] PictureInPicture, /// /// private-aggregation /// [JsonPropertyName("private-aggregation")] PrivateAggregation, /// /// private-state-token-issuance /// [JsonPropertyName("private-state-token-issuance")] PrivateStateTokenIssuance, /// /// private-state-token-redemption /// [JsonPropertyName("private-state-token-redemption")] PrivateStateTokenRedemption, /// /// publickey-credentials-create /// [JsonPropertyName("publickey-credentials-create")] PublickeyCredentialsCreate, /// /// publickey-credentials-get /// [JsonPropertyName("publickey-credentials-get")] PublickeyCredentialsGet, /// /// record-ad-auction-events /// [JsonPropertyName("record-ad-auction-events")] RecordAdAuctionEvents, /// /// rewriter /// [JsonPropertyName("rewriter")] Rewriter, /// /// run-ad-auction /// [JsonPropertyName("run-ad-auction")] RunAdAuction, /// /// screen-wake-lock /// [JsonPropertyName("screen-wake-lock")] ScreenWakeLock, /// /// serial /// [JsonPropertyName("serial")] Serial, /// /// shared-storage /// [JsonPropertyName("shared-storage")] SharedStorage, /// /// shared-storage-select-url /// [JsonPropertyName("shared-storage-select-url")] SharedStorageSelectUrl, /// /// smart-card /// [JsonPropertyName("smart-card")] SmartCard, /// /// speaker-selection /// [JsonPropertyName("speaker-selection")] SpeakerSelection, /// /// storage-access /// [JsonPropertyName("storage-access")] StorageAccess, /// /// sub-apps /// [JsonPropertyName("sub-apps")] SubApps, /// /// summarizer /// [JsonPropertyName("summarizer")] Summarizer, /// /// sync-xhr /// [JsonPropertyName("sync-xhr")] SyncXhr, /// /// translator /// [JsonPropertyName("translator")] Translator, /// /// unload /// [JsonPropertyName("unload")] Unload, /// /// usb /// [JsonPropertyName("usb")] Usb, /// /// usb-unrestricted /// [JsonPropertyName("usb-unrestricted")] UsbUnrestricted, /// /// vertical-scroll /// [JsonPropertyName("vertical-scroll")] VerticalScroll, /// /// web-app-installation /// [JsonPropertyName("web-app-installation")] WebAppInstallation, /// /// web-printing /// [JsonPropertyName("web-printing")] WebPrinting, /// /// web-share /// [JsonPropertyName("web-share")] WebShare, /// /// window-management /// [JsonPropertyName("window-management")] WindowManagement, /// /// writer /// [JsonPropertyName("writer")] Writer, /// /// xr-spatial-tracking /// [JsonPropertyName("xr-spatial-tracking")] XrSpatialTracking } /// /// Reason for a permissions policy feature to be disabled. /// public enum PermissionsPolicyBlockReason { /// /// Header /// [JsonPropertyName("Header")] Header, /// /// IframeAttribute /// [JsonPropertyName("IframeAttribute")] IframeAttribute, /// /// InFencedFrameTree /// [JsonPropertyName("InFencedFrameTree")] InFencedFrameTree, /// /// InIsolatedApp /// [JsonPropertyName("InIsolatedApp")] InIsolatedApp } /// /// PermissionsPolicyBlockLocator /// public partial class PermissionsPolicyBlockLocator : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// FrameId /// [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; set; } /// /// BlockReason /// [JsonPropertyName("blockReason")] public CefSharp.DevTools.Page.PermissionsPolicyBlockReason BlockReason { get; set; } } /// /// PermissionsPolicyFeatureState /// public partial class PermissionsPolicyFeatureState : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Feature /// [JsonPropertyName("feature")] public CefSharp.DevTools.Page.PermissionsPolicyFeature Feature { get; set; } /// /// Allowed /// [JsonPropertyName("allowed")] public bool Allowed { get; set; } /// /// Locator /// [JsonPropertyName("locator")] public CefSharp.DevTools.Page.PermissionsPolicyBlockLocator Locator { get; set; } } /// /// Origin Trial(https://www.chromium.org/blink/origin-trials) support. /// Status for an Origin Trial token. /// public enum OriginTrialTokenStatus { /// /// Success /// [JsonPropertyName("Success")] Success, /// /// NotSupported /// [JsonPropertyName("NotSupported")] NotSupported, /// /// Insecure /// [JsonPropertyName("Insecure")] Insecure, /// /// Expired /// [JsonPropertyName("Expired")] Expired, /// /// WrongOrigin /// [JsonPropertyName("WrongOrigin")] WrongOrigin, /// /// InvalidSignature /// [JsonPropertyName("InvalidSignature")] InvalidSignature, /// /// Malformed /// [JsonPropertyName("Malformed")] Malformed, /// /// WrongVersion /// [JsonPropertyName("WrongVersion")] WrongVersion, /// /// FeatureDisabled /// [JsonPropertyName("FeatureDisabled")] FeatureDisabled, /// /// TokenDisabled /// [JsonPropertyName("TokenDisabled")] TokenDisabled, /// /// FeatureDisabledForUser /// [JsonPropertyName("FeatureDisabledForUser")] FeatureDisabledForUser, /// /// UnknownTrial /// [JsonPropertyName("UnknownTrial")] UnknownTrial } /// /// Status for an Origin Trial. /// public enum OriginTrialStatus { /// /// Enabled /// [JsonPropertyName("Enabled")] Enabled, /// /// ValidTokenNotProvided /// [JsonPropertyName("ValidTokenNotProvided")] ValidTokenNotProvided, /// /// OSNotSupported /// [JsonPropertyName("OSNotSupported")] OSNotSupported, /// /// TrialNotAllowed /// [JsonPropertyName("TrialNotAllowed")] TrialNotAllowed } /// /// OriginTrialUsageRestriction /// public enum OriginTrialUsageRestriction { /// /// None /// [JsonPropertyName("None")] None, /// /// Subset /// [JsonPropertyName("Subset")] Subset } /// /// OriginTrialToken /// public partial class OriginTrialToken : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Origin /// [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; set; } /// /// MatchSubDomains /// [JsonPropertyName("matchSubDomains")] public bool MatchSubDomains { get; set; } /// /// TrialName /// [JsonPropertyName("trialName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TrialName { get; set; } /// /// ExpiryTime /// [JsonPropertyName("expiryTime")] public double ExpiryTime { get; set; } /// /// IsThirdParty /// [JsonPropertyName("isThirdParty")] public bool IsThirdParty { get; set; } /// /// UsageRestriction /// [JsonPropertyName("usageRestriction")] public CefSharp.DevTools.Page.OriginTrialUsageRestriction UsageRestriction { get; set; } } /// /// OriginTrialTokenWithStatus /// public partial class OriginTrialTokenWithStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// RawTokenText /// [JsonPropertyName("rawTokenText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RawTokenText { get; set; } /// /// `parsedToken` is present only when the token is extractable and /// parsable. /// [JsonPropertyName("parsedToken")] public CefSharp.DevTools.Page.OriginTrialToken ParsedToken { get; set; } /// /// Status /// [JsonPropertyName("status")] public CefSharp.DevTools.Page.OriginTrialTokenStatus Status { get; set; } } /// /// OriginTrial /// public partial class OriginTrial : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// TrialName /// [JsonPropertyName("trialName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TrialName { get; set; } /// /// Status /// [JsonPropertyName("status")] public CefSharp.DevTools.Page.OriginTrialStatus Status { get; set; } /// /// TokensWithStatus /// [JsonPropertyName("tokensWithStatus")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList TokensWithStatus { get; set; } } /// /// Additional information about the frame document's security origin. /// public partial class SecurityOriginDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Indicates whether the frame document's security origin is one /// of the local hostnames (e.g. "localhost") or IP addresses (IPv4 /// 127.0.0.0/8 or IPv6 ::1). /// [JsonPropertyName("isLocalhost")] public bool IsLocalhost { get; set; } } /// /// Information about the Frame on the page. /// public partial class Frame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Frame unique identifier. /// [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; set; } /// /// Parent frame identifier. /// [JsonPropertyName("parentId")] public string ParentId { get; set; } /// /// Identifier of the loader associated with this frame. /// [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { get; set; } /// /// Frame's name as specified in the tag. /// [JsonPropertyName("name")] public string Name { get; set; } /// /// Frame document's URL without fragment. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Frame document's URL fragment including the '#'. /// [JsonPropertyName("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" /// [JsonPropertyName("domainAndRegistry")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DomainAndRegistry { get; set; } /// /// Frame document's security origin. /// [JsonPropertyName("securityOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SecurityOrigin { get; set; } /// /// Additional details about the frame document's security origin. /// [JsonPropertyName("securityOriginDetails")] public CefSharp.DevTools.Page.SecurityOriginDetails SecurityOriginDetails { get; set; } /// /// Frame document's mimeType as determined by the browser. /// [JsonPropertyName("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. /// [JsonPropertyName("unreachableUrl")] public string UnreachableUrl { get; set; } /// /// Indicates whether this frame was tagged as an ad and why. /// [JsonPropertyName("adFrameStatus")] public CefSharp.DevTools.Page.AdFrameStatus AdFrameStatus { get; set; } /// /// Indicates whether the main document is a secure context and explains why that is the case. /// [JsonPropertyName("secureContextType")] public CefSharp.DevTools.Page.SecureContextType SecureContextType { get; set; } /// /// Indicates whether this is a cross origin isolated context. /// [JsonPropertyName("crossOriginIsolatedContextType")] public CefSharp.DevTools.Page.CrossOriginIsolatedContextType CrossOriginIsolatedContextType { get; set; } /// /// Indicated which gated APIs / features are available. /// [JsonPropertyName("gatedAPIFeatures")] public CefSharp.DevTools.Page.GatedAPIFeatures[] GatedAPIFeatures { get; set; } } /// /// Information about the Resource on the page. /// public partial class FrameResource : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Resource URL. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Type of this resource. /// [JsonPropertyName("type")] public CefSharp.DevTools.Network.ResourceType Type { get; set; } /// /// Resource mimeType as determined by the browser. /// [JsonPropertyName("mimeType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string MimeType { get; set; } /// /// last-modified timestamp as reported by server. /// [JsonPropertyName("lastModified")] public double? LastModified { get; set; } /// /// Resource content size. /// [JsonPropertyName("contentSize")] public double? ContentSize { get; set; } /// /// True if the resource failed to load. /// [JsonPropertyName("failed")] public bool? Failed { get; set; } /// /// True if the resource was canceled during loading. /// [JsonPropertyName("canceled")] public bool? Canceled { get; set; } } /// /// Information about the Frame hierarchy along with their cached resources. /// public partial class FrameResourceTree : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Frame information for this tree item. /// [JsonPropertyName("frame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.Frame Frame { get; set; } /// /// Child frames. /// [JsonPropertyName("childFrames")] public System.Collections.Generic.IList ChildFrames { get; set; } /// /// Information about frame resources. /// [JsonPropertyName("resources")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Resources { get; set; } } /// /// Information about the Frame hierarchy. /// public partial class FrameTree : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Frame information for this tree item. /// [JsonPropertyName("frame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.Frame Frame { get; set; } /// /// Child frames. /// [JsonPropertyName("childFrames")] public System.Collections.Generic.IList ChildFrames { get; set; } } /// /// Transition type. /// public enum TransitionType { /// /// link /// [JsonPropertyName("link")] Link, /// /// typed /// [JsonPropertyName("typed")] Typed, /// /// address_bar /// [JsonPropertyName("address_bar")] AddressBar, /// /// auto_bookmark /// [JsonPropertyName("auto_bookmark")] AutoBookmark, /// /// auto_subframe /// [JsonPropertyName("auto_subframe")] AutoSubframe, /// /// manual_subframe /// [JsonPropertyName("manual_subframe")] ManualSubframe, /// /// generated /// [JsonPropertyName("generated")] Generated, /// /// auto_toplevel /// [JsonPropertyName("auto_toplevel")] AutoToplevel, /// /// form_submit /// [JsonPropertyName("form_submit")] FormSubmit, /// /// reload /// [JsonPropertyName("reload")] Reload, /// /// keyword /// [JsonPropertyName("keyword")] Keyword, /// /// keyword_generated /// [JsonPropertyName("keyword_generated")] KeywordGenerated, /// /// other /// [JsonPropertyName("other")] Other } /// /// Navigation history entry. /// public partial class NavigationEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Unique id of the navigation history entry. /// [JsonPropertyName("id")] public int Id { get; set; } /// /// URL of the navigation history entry. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// URL that the user typed in the url bar. /// [JsonPropertyName("userTypedURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string UserTypedURL { get; set; } /// /// Title of the navigation history entry. /// [JsonPropertyName("title")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Title { get; set; } /// /// Transition type. /// [JsonPropertyName("transitionType")] public CefSharp.DevTools.Page.TransitionType TransitionType { get; set; } } /// /// Screencast frame metadata. /// public partial class ScreencastFrameMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Top offset in DIP. /// [JsonPropertyName("offsetTop")] public double OffsetTop { get; set; } /// /// Page scale factor. /// [JsonPropertyName("pageScaleFactor")] public double PageScaleFactor { get; set; } /// /// Device screen width in DIP. /// [JsonPropertyName("deviceWidth")] public double DeviceWidth { get; set; } /// /// Device screen height in DIP. /// [JsonPropertyName("deviceHeight")] public double DeviceHeight { get; set; } /// /// Position of horizontal scroll in CSS pixels. /// [JsonPropertyName("scrollOffsetX")] public double ScrollOffsetX { get; set; } /// /// Position of vertical scroll in CSS pixels. /// [JsonPropertyName("scrollOffsetY")] public double ScrollOffsetY { get; set; } /// /// Frame swap timestamp. /// [JsonPropertyName("timestamp")] public double? Timestamp { get; set; } } /// /// Javascript dialog type. /// public enum DialogType { /// /// alert /// [JsonPropertyName("alert")] Alert, /// /// confirm /// [JsonPropertyName("confirm")] Confirm, /// /// prompt /// [JsonPropertyName("prompt")] Prompt, /// /// beforeunload /// [JsonPropertyName("beforeunload")] Beforeunload } /// /// Error while paring app manifest. /// public partial class AppManifestError : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Error message. /// [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Message { get; set; } /// /// If critical, this is a non-recoverable parse error. /// [JsonPropertyName("critical")] public int Critical { get; set; } /// /// Error line. /// [JsonPropertyName("line")] public int Line { get; set; } /// /// Error column. /// [JsonPropertyName("column")] public int Column { get; set; } } /// /// Parsed app manifest properties. /// public partial class AppManifestParsedProperties : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Computed scope value /// [JsonPropertyName("scope")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Scope { get; set; } } /// /// Layout viewport position and dimensions. /// public partial class LayoutViewport : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Horizontal offset relative to the document (CSS pixels). /// [JsonPropertyName("pageX")] public int PageX { get; set; } /// /// Vertical offset relative to the document (CSS pixels). /// [JsonPropertyName("pageY")] public int PageY { get; set; } /// /// Width (CSS pixels), excludes scrollbar if present. /// [JsonPropertyName("clientWidth")] public int ClientWidth { get; set; } /// /// Height (CSS pixels), excludes scrollbar if present. /// [JsonPropertyName("clientHeight")] public int ClientHeight { get; set; } } /// /// Visual viewport position, dimensions, and scale. /// public partial class VisualViewport : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Horizontal offset relative to the layout viewport (CSS pixels). /// [JsonPropertyName("offsetX")] public double OffsetX { get; set; } /// /// Vertical offset relative to the layout viewport (CSS pixels). /// [JsonPropertyName("offsetY")] public double OffsetY { get; set; } /// /// Horizontal offset relative to the document (CSS pixels). /// [JsonPropertyName("pageX")] public double PageX { get; set; } /// /// Vertical offset relative to the document (CSS pixels). /// [JsonPropertyName("pageY")] public double PageY { get; set; } /// /// Width (CSS pixels), excludes scrollbar if present. /// [JsonPropertyName("clientWidth")] public double ClientWidth { get; set; } /// /// Height (CSS pixels), excludes scrollbar if present. /// [JsonPropertyName("clientHeight")] public double ClientHeight { get; set; } /// /// Scale relative to the ideal viewport (size at width=device-width). /// [JsonPropertyName("scale")] public double Scale { get; set; } /// /// Page zoom factor (CSS to device independent pixels ratio). /// [JsonPropertyName("zoom")] public double? Zoom { get; set; } } /// /// Viewport for capturing screenshot. /// public partial class Viewport : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// X offset in device independent pixels (dip). /// [JsonPropertyName("x")] public double X { get; set; } /// /// Y offset in device independent pixels (dip). /// [JsonPropertyName("y")] public double Y { get; set; } /// /// Rectangle width in device independent pixels (dip). /// [JsonPropertyName("width")] public double Width { get; set; } /// /// Rectangle height in device independent pixels (dip). /// [JsonPropertyName("height")] public double Height { get; set; } /// /// Page scale factor. /// [JsonPropertyName("scale")] public double Scale { get; set; } } /// /// Generic font families collection. /// public partial class FontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The standard font-family. /// [JsonPropertyName("standard")] public string Standard { get; set; } /// /// The fixed font-family. /// [JsonPropertyName("fixed")] public string Fixed { get; set; } /// /// The serif font-family. /// [JsonPropertyName("serif")] public string Serif { get; set; } /// /// The sansSerif font-family. /// [JsonPropertyName("sansSerif")] public string SansSerif { get; set; } /// /// The cursive font-family. /// [JsonPropertyName("cursive")] public string Cursive { get; set; } /// /// The fantasy font-family. /// [JsonPropertyName("fantasy")] public string Fantasy { get; set; } /// /// The math font-family. /// [JsonPropertyName("math")] public string Math { get; set; } } /// /// Font families collection for a script. /// public partial class ScriptFontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of the script which these font families are defined for. /// [JsonPropertyName("script")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Script { get; set; } /// /// Generic font families collection for the script. /// [JsonPropertyName("fontFamilies")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.FontFamilies FontFamilies { get; set; } } /// /// Default font sizes. /// public partial class FontSizes : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Default standard font size. /// [JsonPropertyName("standard")] public int? Standard { get; set; } /// /// Default fixed font size. /// [JsonPropertyName("fixed")] public int? Fixed { get; set; } } /// /// ClientNavigationReason /// public enum ClientNavigationReason { /// /// anchorClick /// [JsonPropertyName("anchorClick")] AnchorClick, /// /// formSubmissionGet /// [JsonPropertyName("formSubmissionGet")] FormSubmissionGet, /// /// formSubmissionPost /// [JsonPropertyName("formSubmissionPost")] FormSubmissionPost, /// /// httpHeaderRefresh /// [JsonPropertyName("httpHeaderRefresh")] HttpHeaderRefresh, /// /// initialFrameNavigation /// [JsonPropertyName("initialFrameNavigation")] InitialFrameNavigation, /// /// metaTagRefresh /// [JsonPropertyName("metaTagRefresh")] MetaTagRefresh, /// /// other /// [JsonPropertyName("other")] Other, /// /// pageBlockInterstitial /// [JsonPropertyName("pageBlockInterstitial")] PageBlockInterstitial, /// /// reload /// [JsonPropertyName("reload")] Reload, /// /// scriptInitiated /// [JsonPropertyName("scriptInitiated")] ScriptInitiated } /// /// ClientNavigationDisposition /// public enum ClientNavigationDisposition { /// /// currentTab /// [JsonPropertyName("currentTab")] CurrentTab, /// /// newTab /// [JsonPropertyName("newTab")] NewTab, /// /// newWindow /// [JsonPropertyName("newWindow")] NewWindow, /// /// download /// [JsonPropertyName("download")] Download } /// /// InstallabilityErrorArgument /// public partial class InstallabilityErrorArgument : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Argument name (e.g. name:'minimum-icon-size-in-pixels'). /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Argument value (e.g. value:'64'). /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// The installability error /// public partial class InstallabilityError : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The error id (e.g. 'manifest-missing-suitable-icon'). /// [JsonPropertyName("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'}). /// [JsonPropertyName("errorArguments")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ErrorArguments { get; set; } } /// /// The referring-policy used for the navigation. /// public enum ReferrerPolicy { /// /// noReferrer /// [JsonPropertyName("noReferrer")] NoReferrer, /// /// noReferrerWhenDowngrade /// [JsonPropertyName("noReferrerWhenDowngrade")] NoReferrerWhenDowngrade, /// /// origin /// [JsonPropertyName("origin")] Origin, /// /// originWhenCrossOrigin /// [JsonPropertyName("originWhenCrossOrigin")] OriginWhenCrossOrigin, /// /// sameOrigin /// [JsonPropertyName("sameOrigin")] SameOrigin, /// /// strictOrigin /// [JsonPropertyName("strictOrigin")] StrictOrigin, /// /// strictOriginWhenCrossOrigin /// [JsonPropertyName("strictOriginWhenCrossOrigin")] StrictOriginWhenCrossOrigin, /// /// unsafeUrl /// [JsonPropertyName("unsafeUrl")] UnsafeUrl } /// /// Per-script compilation cache parameters for `Page.produceCompilationCache` /// public partial class CompilationCacheParams : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The URL of the script to produce a compilation cache entry for. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// A hint to the backend whether eager compilation is recommended. /// (the actual compilation mode used is upon backend discretion). /// [JsonPropertyName("eager")] public bool? Eager { get; set; } } /// /// FileFilter /// public partial class FileFilter : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name /// [JsonPropertyName("name")] public string Name { get; set; } /// /// Accepts /// [JsonPropertyName("accepts")] public string[] Accepts { get; set; } } /// /// FileHandler /// public partial class FileHandler : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Action /// [JsonPropertyName("action")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Action { get; set; } /// /// Name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Icons /// [JsonPropertyName("icons")] public System.Collections.Generic.IList Icons { get; set; } /// /// Mimic a map, name is the key, accepts is the value. /// [JsonPropertyName("accepts")] public System.Collections.Generic.IList Accepts { get; set; } /// /// Won't repeat the enums, using string for easy comparison. Same as the /// other enums below. /// [JsonPropertyName("launchType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LaunchType { get; set; } } /// /// The image definition used in both icon and screenshot. /// public partial class ImageResource : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The src field in the definition, but changing to url in favor of /// consistency. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Sizes /// [JsonPropertyName("sizes")] public string Sizes { get; set; } /// /// Type /// [JsonPropertyName("type")] public string Type { get; set; } } /// /// LaunchHandler /// public partial class LaunchHandler : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ClientMode /// [JsonPropertyName("clientMode")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ClientMode { get; set; } } /// /// ProtocolHandler /// public partial class ProtocolHandler : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Protocol /// [JsonPropertyName("protocol")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Protocol { get; set; } /// /// Url /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } } /// /// RelatedApplication /// public partial class RelatedApplication : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Id /// [JsonPropertyName("id")] public string Id { get; set; } /// /// Url /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } } /// /// ScopeExtension /// public partial class ScopeExtension : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Instead of using tuple, this field always returns the serialized string /// for easy understanding and comparison. /// [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; set; } /// /// HasOriginWildcard /// [JsonPropertyName("hasOriginWildcard")] public bool HasOriginWildcard { get; set; } } /// /// Screenshot /// public partial class Screenshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Image /// [JsonPropertyName("image")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.ImageResource Image { get; set; } /// /// FormFactor /// [JsonPropertyName("formFactor")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FormFactor { get; set; } /// /// Label /// [JsonPropertyName("label")] public string Label { get; set; } } /// /// ShareTarget /// public partial class ShareTarget : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Action /// [JsonPropertyName("action")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Action { get; set; } /// /// Method /// [JsonPropertyName("method")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Method { get; set; } /// /// Enctype /// [JsonPropertyName("enctype")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Enctype { get; set; } /// /// Embed the ShareTargetParams /// [JsonPropertyName("title")] public string Title { get; set; } /// /// Text /// [JsonPropertyName("text")] public string Text { get; set; } /// /// Url /// [JsonPropertyName("url")] public string Url { get; set; } /// /// Files /// [JsonPropertyName("files")] public System.Collections.Generic.IList Files { get; set; } } /// /// Shortcut /// public partial class Shortcut : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Url /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } } /// /// WebAppManifest /// public partial class WebAppManifest : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// BackgroundColor /// [JsonPropertyName("backgroundColor")] public string BackgroundColor { get; set; } /// /// The extra description provided by the manifest. /// [JsonPropertyName("description")] public string Description { get; set; } /// /// Dir /// [JsonPropertyName("dir")] public string Dir { get; set; } /// /// Display /// [JsonPropertyName("display")] public string Display { get; set; } /// /// The overrided display mode controlled by the user. /// [JsonPropertyName("displayOverrides")] public string[] DisplayOverrides { get; set; } /// /// The handlers to open files. /// [JsonPropertyName("fileHandlers")] public System.Collections.Generic.IList FileHandlers { get; set; } /// /// Icons /// [JsonPropertyName("icons")] public System.Collections.Generic.IList Icons { get; set; } /// /// Id /// [JsonPropertyName("id")] public string Id { get; set; } /// /// Lang /// [JsonPropertyName("lang")] public string Lang { get; set; } /// /// TODO(crbug.com/1231886): This field is non-standard and part of a Chrome /// experiment. See: /// https://github.com/WICG/web-app-launch/blob/main/launch_handler.md /// [JsonPropertyName("launchHandler")] public CefSharp.DevTools.Page.LaunchHandler LaunchHandler { get; set; } /// /// Name /// [JsonPropertyName("name")] public string Name { get; set; } /// /// Orientation /// [JsonPropertyName("orientation")] public string Orientation { get; set; } /// /// PreferRelatedApplications /// [JsonPropertyName("preferRelatedApplications")] public bool? PreferRelatedApplications { get; set; } /// /// The handlers to open protocols. /// [JsonPropertyName("protocolHandlers")] public System.Collections.Generic.IList ProtocolHandlers { get; set; } /// /// RelatedApplications /// [JsonPropertyName("relatedApplications")] public System.Collections.Generic.IList RelatedApplications { get; set; } /// /// Scope /// [JsonPropertyName("scope")] public string Scope { get; set; } /// /// Non-standard, see /// https://github.com/WICG/manifest-incubations/blob/gh-pages/scope_extensions-explainer.md /// [JsonPropertyName("scopeExtensions")] public System.Collections.Generic.IList ScopeExtensions { get; set; } /// /// The screenshots used by chromium. /// [JsonPropertyName("screenshots")] public System.Collections.Generic.IList Screenshots { get; set; } /// /// ShareTarget /// [JsonPropertyName("shareTarget")] public CefSharp.DevTools.Page.ShareTarget ShareTarget { get; set; } /// /// ShortName /// [JsonPropertyName("shortName")] public string ShortName { get; set; } /// /// Shortcuts /// [JsonPropertyName("shortcuts")] public System.Collections.Generic.IList Shortcuts { get; set; } /// /// StartUrl /// [JsonPropertyName("startUrl")] public string StartUrl { get; set; } /// /// ThemeColor /// [JsonPropertyName("themeColor")] public string ThemeColor { get; set; } } /// /// The type of a frameNavigated event. /// public enum NavigationType { /// /// Navigation /// [JsonPropertyName("Navigation")] Navigation, /// /// BackForwardCacheRestore /// [JsonPropertyName("BackForwardCacheRestore")] BackForwardCacheRestore } /// /// List of not restored reasons for back-forward cache. /// public enum BackForwardCacheNotRestoredReason { /// /// NotPrimaryMainFrame /// [JsonPropertyName("NotPrimaryMainFrame")] NotPrimaryMainFrame, /// /// BackForwardCacheDisabled /// [JsonPropertyName("BackForwardCacheDisabled")] BackForwardCacheDisabled, /// /// RelatedActiveContentsExist /// [JsonPropertyName("RelatedActiveContentsExist")] RelatedActiveContentsExist, /// /// HTTPStatusNotOK /// [JsonPropertyName("HTTPStatusNotOK")] HTTPStatusNotOK, /// /// SchemeNotHTTPOrHTTPS /// [JsonPropertyName("SchemeNotHTTPOrHTTPS")] SchemeNotHTTPOrHTTPS, /// /// Loading /// [JsonPropertyName("Loading")] Loading, /// /// WasGrantedMediaAccess /// [JsonPropertyName("WasGrantedMediaAccess")] WasGrantedMediaAccess, /// /// DisableForRenderFrameHostCalled /// [JsonPropertyName("DisableForRenderFrameHostCalled")] DisableForRenderFrameHostCalled, /// /// DomainNotAllowed /// [JsonPropertyName("DomainNotAllowed")] DomainNotAllowed, /// /// HTTPMethodNotGET /// [JsonPropertyName("HTTPMethodNotGET")] HTTPMethodNotGET, /// /// SubframeIsNavigating /// [JsonPropertyName("SubframeIsNavigating")] SubframeIsNavigating, /// /// Timeout /// [JsonPropertyName("Timeout")] Timeout, /// /// CacheLimit /// [JsonPropertyName("CacheLimit")] CacheLimit, /// /// JavaScriptExecution /// [JsonPropertyName("JavaScriptExecution")] JavaScriptExecution, /// /// RendererProcessKilled /// [JsonPropertyName("RendererProcessKilled")] RendererProcessKilled, /// /// RendererProcessCrashed /// [JsonPropertyName("RendererProcessCrashed")] RendererProcessCrashed, /// /// SchedulerTrackedFeatureUsed /// [JsonPropertyName("SchedulerTrackedFeatureUsed")] SchedulerTrackedFeatureUsed, /// /// ConflictingBrowsingInstance /// [JsonPropertyName("ConflictingBrowsingInstance")] ConflictingBrowsingInstance, /// /// CacheFlushed /// [JsonPropertyName("CacheFlushed")] CacheFlushed, /// /// ServiceWorkerVersionActivation /// [JsonPropertyName("ServiceWorkerVersionActivation")] ServiceWorkerVersionActivation, /// /// SessionRestored /// [JsonPropertyName("SessionRestored")] SessionRestored, /// /// ServiceWorkerPostMessage /// [JsonPropertyName("ServiceWorkerPostMessage")] ServiceWorkerPostMessage, /// /// EnteredBackForwardCacheBeforeServiceWorkerHostAdded /// [JsonPropertyName("EnteredBackForwardCacheBeforeServiceWorkerHostAdded")] EnteredBackForwardCacheBeforeServiceWorkerHostAdded, /// /// RenderFrameHostReused_SameSite /// [JsonPropertyName("RenderFrameHostReused_SameSite")] RenderFrameHostReusedSameSite, /// /// RenderFrameHostReused_CrossSite /// [JsonPropertyName("RenderFrameHostReused_CrossSite")] RenderFrameHostReusedCrossSite, /// /// ServiceWorkerClaim /// [JsonPropertyName("ServiceWorkerClaim")] ServiceWorkerClaim, /// /// IgnoreEventAndEvict /// [JsonPropertyName("IgnoreEventAndEvict")] IgnoreEventAndEvict, /// /// HaveInnerContents /// [JsonPropertyName("HaveInnerContents")] HaveInnerContents, /// /// TimeoutPuttingInCache /// [JsonPropertyName("TimeoutPuttingInCache")] TimeoutPuttingInCache, /// /// BackForwardCacheDisabledByLowMemory /// [JsonPropertyName("BackForwardCacheDisabledByLowMemory")] BackForwardCacheDisabledByLowMemory, /// /// BackForwardCacheDisabledByCommandLine /// [JsonPropertyName("BackForwardCacheDisabledByCommandLine")] BackForwardCacheDisabledByCommandLine, /// /// NetworkRequestDatapipeDrainedAsBytesConsumer /// [JsonPropertyName("NetworkRequestDatapipeDrainedAsBytesConsumer")] NetworkRequestDatapipeDrainedAsBytesConsumer, /// /// NetworkRequestRedirected /// [JsonPropertyName("NetworkRequestRedirected")] NetworkRequestRedirected, /// /// NetworkRequestTimeout /// [JsonPropertyName("NetworkRequestTimeout")] NetworkRequestTimeout, /// /// NetworkExceedsBufferLimit /// [JsonPropertyName("NetworkExceedsBufferLimit")] NetworkExceedsBufferLimit, /// /// NavigationCancelledWhileRestoring /// [JsonPropertyName("NavigationCancelledWhileRestoring")] NavigationCancelledWhileRestoring, /// /// NotMostRecentNavigationEntry /// [JsonPropertyName("NotMostRecentNavigationEntry")] NotMostRecentNavigationEntry, /// /// BackForwardCacheDisabledForPrerender /// [JsonPropertyName("BackForwardCacheDisabledForPrerender")] BackForwardCacheDisabledForPrerender, /// /// UserAgentOverrideDiffers /// [JsonPropertyName("UserAgentOverrideDiffers")] UserAgentOverrideDiffers, /// /// ForegroundCacheLimit /// [JsonPropertyName("ForegroundCacheLimit")] ForegroundCacheLimit, /// /// BrowsingInstanceNotSwapped /// [JsonPropertyName("BrowsingInstanceNotSwapped")] BrowsingInstanceNotSwapped, /// /// BackForwardCacheDisabledForDelegate /// [JsonPropertyName("BackForwardCacheDisabledForDelegate")] BackForwardCacheDisabledForDelegate, /// /// UnloadHandlerExistsInMainFrame /// [JsonPropertyName("UnloadHandlerExistsInMainFrame")] UnloadHandlerExistsInMainFrame, /// /// UnloadHandlerExistsInSubFrame /// [JsonPropertyName("UnloadHandlerExistsInSubFrame")] UnloadHandlerExistsInSubFrame, /// /// ServiceWorkerUnregistration /// [JsonPropertyName("ServiceWorkerUnregistration")] ServiceWorkerUnregistration, /// /// CacheControlNoStore /// [JsonPropertyName("CacheControlNoStore")] CacheControlNoStore, /// /// CacheControlNoStoreCookieModified /// [JsonPropertyName("CacheControlNoStoreCookieModified")] CacheControlNoStoreCookieModified, /// /// CacheControlNoStoreHTTPOnlyCookieModified /// [JsonPropertyName("CacheControlNoStoreHTTPOnlyCookieModified")] CacheControlNoStoreHTTPOnlyCookieModified, /// /// NoResponseHead /// [JsonPropertyName("NoResponseHead")] NoResponseHead, /// /// Unknown /// [JsonPropertyName("Unknown")] Unknown, /// /// ActivationNavigationsDisallowedForBug1234857 /// [JsonPropertyName("ActivationNavigationsDisallowedForBug1234857")] ActivationNavigationsDisallowedForBug1234857, /// /// ErrorDocument /// [JsonPropertyName("ErrorDocument")] ErrorDocument, /// /// FencedFramesEmbedder /// [JsonPropertyName("FencedFramesEmbedder")] FencedFramesEmbedder, /// /// CookieDisabled /// [JsonPropertyName("CookieDisabled")] CookieDisabled, /// /// HTTPAuthRequired /// [JsonPropertyName("HTTPAuthRequired")] HTTPAuthRequired, /// /// CookieFlushed /// [JsonPropertyName("CookieFlushed")] CookieFlushed, /// /// BroadcastChannelOnMessage /// [JsonPropertyName("BroadcastChannelOnMessage")] BroadcastChannelOnMessage, /// /// WebViewSettingsChanged /// [JsonPropertyName("WebViewSettingsChanged")] WebViewSettingsChanged, /// /// WebViewJavaScriptObjectChanged /// [JsonPropertyName("WebViewJavaScriptObjectChanged")] WebViewJavaScriptObjectChanged, /// /// WebViewMessageListenerInjected /// [JsonPropertyName("WebViewMessageListenerInjected")] WebViewMessageListenerInjected, /// /// WebViewSafeBrowsingAllowlistChanged /// [JsonPropertyName("WebViewSafeBrowsingAllowlistChanged")] WebViewSafeBrowsingAllowlistChanged, /// /// WebViewDocumentStartJavascriptChanged /// [JsonPropertyName("WebViewDocumentStartJavascriptChanged")] WebViewDocumentStartJavascriptChanged, /// /// WebSocket /// [JsonPropertyName("WebSocket")] WebSocket, /// /// WebTransport /// [JsonPropertyName("WebTransport")] WebTransport, /// /// WebRTC /// [JsonPropertyName("WebRTC")] WebRTC, /// /// MainResourceHasCacheControlNoStore /// [JsonPropertyName("MainResourceHasCacheControlNoStore")] MainResourceHasCacheControlNoStore, /// /// MainResourceHasCacheControlNoCache /// [JsonPropertyName("MainResourceHasCacheControlNoCache")] MainResourceHasCacheControlNoCache, /// /// SubresourceHasCacheControlNoStore /// [JsonPropertyName("SubresourceHasCacheControlNoStore")] SubresourceHasCacheControlNoStore, /// /// SubresourceHasCacheControlNoCache /// [JsonPropertyName("SubresourceHasCacheControlNoCache")] SubresourceHasCacheControlNoCache, /// /// ContainsPlugins /// [JsonPropertyName("ContainsPlugins")] ContainsPlugins, /// /// DocumentLoaded /// [JsonPropertyName("DocumentLoaded")] DocumentLoaded, /// /// OutstandingNetworkRequestOthers /// [JsonPropertyName("OutstandingNetworkRequestOthers")] OutstandingNetworkRequestOthers, /// /// RequestedMIDIPermission /// [JsonPropertyName("RequestedMIDIPermission")] RequestedMIDIPermission, /// /// RequestedAudioCapturePermission /// [JsonPropertyName("RequestedAudioCapturePermission")] RequestedAudioCapturePermission, /// /// RequestedVideoCapturePermission /// [JsonPropertyName("RequestedVideoCapturePermission")] RequestedVideoCapturePermission, /// /// RequestedBackForwardCacheBlockedSensors /// [JsonPropertyName("RequestedBackForwardCacheBlockedSensors")] RequestedBackForwardCacheBlockedSensors, /// /// RequestedBackgroundWorkPermission /// [JsonPropertyName("RequestedBackgroundWorkPermission")] RequestedBackgroundWorkPermission, /// /// BroadcastChannel /// [JsonPropertyName("BroadcastChannel")] BroadcastChannel, /// /// WebXR /// [JsonPropertyName("WebXR")] WebXR, /// /// SharedWorker /// [JsonPropertyName("SharedWorker")] SharedWorker, /// /// SharedWorkerMessage /// [JsonPropertyName("SharedWorkerMessage")] SharedWorkerMessage, /// /// SharedWorkerWithNoActiveClient /// [JsonPropertyName("SharedWorkerWithNoActiveClient")] SharedWorkerWithNoActiveClient, /// /// WebLocks /// [JsonPropertyName("WebLocks")] WebLocks, /// /// WebHID /// [JsonPropertyName("WebHID")] WebHID, /// /// WebBluetooth /// [JsonPropertyName("WebBluetooth")] WebBluetooth, /// /// WebShare /// [JsonPropertyName("WebShare")] WebShare, /// /// RequestedStorageAccessGrant /// [JsonPropertyName("RequestedStorageAccessGrant")] RequestedStorageAccessGrant, /// /// WebNfc /// [JsonPropertyName("WebNfc")] WebNfc, /// /// OutstandingNetworkRequestFetch /// [JsonPropertyName("OutstandingNetworkRequestFetch")] OutstandingNetworkRequestFetch, /// /// OutstandingNetworkRequestXHR /// [JsonPropertyName("OutstandingNetworkRequestXHR")] OutstandingNetworkRequestXHR, /// /// AppBanner /// [JsonPropertyName("AppBanner")] AppBanner, /// /// Printing /// [JsonPropertyName("Printing")] Printing, /// /// WebDatabase /// [JsonPropertyName("WebDatabase")] WebDatabase, /// /// PictureInPicture /// [JsonPropertyName("PictureInPicture")] PictureInPicture, /// /// SpeechRecognizer /// [JsonPropertyName("SpeechRecognizer")] SpeechRecognizer, /// /// IdleManager /// [JsonPropertyName("IdleManager")] IdleManager, /// /// PaymentManager /// [JsonPropertyName("PaymentManager")] PaymentManager, /// /// SpeechSynthesis /// [JsonPropertyName("SpeechSynthesis")] SpeechSynthesis, /// /// KeyboardLock /// [JsonPropertyName("KeyboardLock")] KeyboardLock, /// /// WebOTPService /// [JsonPropertyName("WebOTPService")] WebOTPService, /// /// OutstandingNetworkRequestDirectSocket /// [JsonPropertyName("OutstandingNetworkRequestDirectSocket")] OutstandingNetworkRequestDirectSocket, /// /// InjectedJavascript /// [JsonPropertyName("InjectedJavascript")] InjectedJavascript, /// /// InjectedStyleSheet /// [JsonPropertyName("InjectedStyleSheet")] InjectedStyleSheet, /// /// KeepaliveRequest /// [JsonPropertyName("KeepaliveRequest")] KeepaliveRequest, /// /// IndexedDBEvent /// [JsonPropertyName("IndexedDBEvent")] IndexedDBEvent, /// /// Dummy /// [JsonPropertyName("Dummy")] Dummy, /// /// JsNetworkRequestReceivedCacheControlNoStoreResource /// [JsonPropertyName("JsNetworkRequestReceivedCacheControlNoStoreResource")] JsNetworkRequestReceivedCacheControlNoStoreResource, /// /// WebRTCUsedWithCCNS /// [JsonPropertyName("WebRTCUsedWithCCNS")] WebRTCUsedWithCCNS, /// /// WebTransportUsedWithCCNS /// [JsonPropertyName("WebTransportUsedWithCCNS")] WebTransportUsedWithCCNS, /// /// WebSocketUsedWithCCNS /// [JsonPropertyName("WebSocketUsedWithCCNS")] WebSocketUsedWithCCNS, /// /// SmartCard /// [JsonPropertyName("SmartCard")] SmartCard, /// /// LiveMediaStreamTrack /// [JsonPropertyName("LiveMediaStreamTrack")] LiveMediaStreamTrack, /// /// UnloadHandler /// [JsonPropertyName("UnloadHandler")] UnloadHandler, /// /// ParserAborted /// [JsonPropertyName("ParserAborted")] ParserAborted, /// /// ContentSecurityHandler /// [JsonPropertyName("ContentSecurityHandler")] ContentSecurityHandler, /// /// ContentWebAuthenticationAPI /// [JsonPropertyName("ContentWebAuthenticationAPI")] ContentWebAuthenticationAPI, /// /// ContentFileChooser /// [JsonPropertyName("ContentFileChooser")] ContentFileChooser, /// /// ContentSerial /// [JsonPropertyName("ContentSerial")] ContentSerial, /// /// ContentFileSystemAccess /// [JsonPropertyName("ContentFileSystemAccess")] ContentFileSystemAccess, /// /// ContentMediaDevicesDispatcherHost /// [JsonPropertyName("ContentMediaDevicesDispatcherHost")] ContentMediaDevicesDispatcherHost, /// /// ContentWebBluetooth /// [JsonPropertyName("ContentWebBluetooth")] ContentWebBluetooth, /// /// ContentWebUSB /// [JsonPropertyName("ContentWebUSB")] ContentWebUSB, /// /// ContentMediaSessionService /// [JsonPropertyName("ContentMediaSessionService")] ContentMediaSessionService, /// /// ContentScreenReader /// [JsonPropertyName("ContentScreenReader")] ContentScreenReader, /// /// ContentDiscarded /// [JsonPropertyName("ContentDiscarded")] ContentDiscarded, /// /// EmbedderPopupBlockerTabHelper /// [JsonPropertyName("EmbedderPopupBlockerTabHelper")] EmbedderPopupBlockerTabHelper, /// /// EmbedderSafeBrowsingTriggeredPopupBlocker /// [JsonPropertyName("EmbedderSafeBrowsingTriggeredPopupBlocker")] EmbedderSafeBrowsingTriggeredPopupBlocker, /// /// EmbedderSafeBrowsingThreatDetails /// [JsonPropertyName("EmbedderSafeBrowsingThreatDetails")] EmbedderSafeBrowsingThreatDetails, /// /// EmbedderAppBannerManager /// [JsonPropertyName("EmbedderAppBannerManager")] EmbedderAppBannerManager, /// /// EmbedderDomDistillerViewerSource /// [JsonPropertyName("EmbedderDomDistillerViewerSource")] EmbedderDomDistillerViewerSource, /// /// EmbedderDomDistillerSelfDeletingRequestDelegate /// [JsonPropertyName("EmbedderDomDistillerSelfDeletingRequestDelegate")] EmbedderDomDistillerSelfDeletingRequestDelegate, /// /// EmbedderOomInterventionTabHelper /// [JsonPropertyName("EmbedderOomInterventionTabHelper")] EmbedderOomInterventionTabHelper, /// /// EmbedderOfflinePage /// [JsonPropertyName("EmbedderOfflinePage")] EmbedderOfflinePage, /// /// EmbedderChromePasswordManagerClientBindCredentialManager /// [JsonPropertyName("EmbedderChromePasswordManagerClientBindCredentialManager")] EmbedderChromePasswordManagerClientBindCredentialManager, /// /// EmbedderPermissionRequestManager /// [JsonPropertyName("EmbedderPermissionRequestManager")] EmbedderPermissionRequestManager, /// /// EmbedderModalDialog /// [JsonPropertyName("EmbedderModalDialog")] EmbedderModalDialog, /// /// EmbedderExtensions /// [JsonPropertyName("EmbedderExtensions")] EmbedderExtensions, /// /// EmbedderExtensionMessaging /// [JsonPropertyName("EmbedderExtensionMessaging")] EmbedderExtensionMessaging, /// /// EmbedderExtensionMessagingForOpenPort /// [JsonPropertyName("EmbedderExtensionMessagingForOpenPort")] EmbedderExtensionMessagingForOpenPort, /// /// EmbedderExtensionSentMessageToCachedFrame /// [JsonPropertyName("EmbedderExtensionSentMessageToCachedFrame")] EmbedderExtensionSentMessageToCachedFrame, /// /// RequestedByWebViewClient /// [JsonPropertyName("RequestedByWebViewClient")] RequestedByWebViewClient, /// /// PostMessageByWebViewClient /// [JsonPropertyName("PostMessageByWebViewClient")] PostMessageByWebViewClient, /// /// CacheControlNoStoreDeviceBoundSessionTerminated /// [JsonPropertyName("CacheControlNoStoreDeviceBoundSessionTerminated")] CacheControlNoStoreDeviceBoundSessionTerminated, /// /// CacheLimitPrunedOnModerateMemoryPressure /// [JsonPropertyName("CacheLimitPrunedOnModerateMemoryPressure")] CacheLimitPrunedOnModerateMemoryPressure, /// /// CacheLimitPrunedOnCriticalMemoryPressure /// [JsonPropertyName("CacheLimitPrunedOnCriticalMemoryPressure")] CacheLimitPrunedOnCriticalMemoryPressure } /// /// Types of not restored reasons for back-forward cache. /// public enum BackForwardCacheNotRestoredReasonType { /// /// SupportPending /// [JsonPropertyName("SupportPending")] SupportPending, /// /// PageSupportNeeded /// [JsonPropertyName("PageSupportNeeded")] PageSupportNeeded, /// /// Circumstantial /// [JsonPropertyName("Circumstantial")] Circumstantial } /// /// BackForwardCacheBlockingDetails /// public partial class BackForwardCacheBlockingDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Url of the file where blockage happened. Optional because of tests. /// [JsonPropertyName("url")] public string Url { get; set; } /// /// Function name where blockage happened. Optional because of anonymous functions and tests. /// [JsonPropertyName("function")] public string Function { get; set; } /// /// Line number in the script (0-based). /// [JsonPropertyName("lineNumber")] public int LineNumber { get; set; } /// /// Column number in the script (0-based). /// [JsonPropertyName("columnNumber")] public int ColumnNumber { get; set; } } /// /// BackForwardCacheNotRestoredExplanation /// public partial class BackForwardCacheNotRestoredExplanation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type of the reason /// [JsonPropertyName("type")] public CefSharp.DevTools.Page.BackForwardCacheNotRestoredReasonType Type { get; set; } /// /// Not restored reason /// [JsonPropertyName("reason")] public CefSharp.DevTools.Page.BackForwardCacheNotRestoredReason Reason { get; set; } /// /// Context associated with the reason. The meaning of this context is /// dependent on the reason: /// - EmbedderExtensionSentMessageToCachedFrame: the extension ID. /// [JsonPropertyName("context")] public string Context { get; set; } /// /// Details /// [JsonPropertyName("details")] public System.Collections.Generic.IList Details { get; set; } } /// /// BackForwardCacheNotRestoredExplanationTree /// public partial class BackForwardCacheNotRestoredExplanationTree : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// URL of each frame /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Not restored reasons of each frame /// [JsonPropertyName("explanations")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Explanations { get; set; } /// /// Array of children frame /// [JsonPropertyName("children")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Children { get; set; } } /// /// domContentEventFired /// public class DomContentEventFiredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Input mode. /// public enum FileChooserOpenedMode { /// /// selectSingle /// [JsonPropertyName("selectSingle")] SelectSingle, /// /// selectMultiple /// [JsonPropertyName("selectMultiple")] SelectMultiple } /// /// Emitted only when `page.interceptFileChooser` is enabled. /// public class FileChooserOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame containing input node. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// Input mode. /// [JsonInclude] [JsonPropertyName("mode")] public CefSharp.DevTools.Page.FileChooserOpenedMode Mode { get; private set; } /// /// Input node id. Only present for file choosers opened via an `<input type="file" >` element. /// [JsonInclude] [JsonPropertyName("backendNodeId")] public int? BackendNodeId { get; private set; } } /// /// Fired when frame has been attached to its parent. /// public class FrameAttachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame that has been attached. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// Parent frame identifier. /// [JsonInclude] [JsonPropertyName("parentFrameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ParentFrameId { get; private set; } /// /// JavaScript stack trace of when frame was attached, only set if frame initiated from script. /// [JsonInclude] [JsonPropertyName("stack")] public CefSharp.DevTools.Runtime.StackTrace Stack { get; private set; } } /// /// Fired when frame no longer has a scheduled navigation. /// public class FrameClearedScheduledNavigationEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame that has cleared its scheduled navigation. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } } /// /// FrameDetachedReason /// public enum FrameDetachedReason { /// /// remove /// [JsonPropertyName("remove")] Remove, /// /// swap /// [JsonPropertyName("swap")] Swap } /// /// Fired when frame has been detached from its parent. /// public class FrameDetachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame that has been detached. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// Reason /// [JsonInclude] [JsonPropertyName("reason")] public CefSharp.DevTools.Page.FrameDetachedReason Reason { get; private set; } } /// /// Fired before frame subtree is detached. Emitted before any frame of the /// subtree is actually detached. /// public class FrameSubtreeWillBeDetachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame that is the root of the subtree that will be detached. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } } /// /// Fired once navigation of the frame has completed. Frame is now associated with the new loader. /// public class FrameNavigatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Frame object. /// [JsonInclude] [JsonPropertyName("frame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.Frame Frame { get; private set; } /// /// Type /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.Page.NavigationType Type { get; private set; } } /// /// Fired when opening document to write to. /// public class DocumentOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Frame object. /// [JsonInclude] [JsonPropertyName("frame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.Frame Frame { get; private set; } } /// /// FrameStartedNavigatingNavigationType /// public enum FrameStartedNavigatingNavigationType { /// /// reload /// [JsonPropertyName("reload")] Reload, /// /// reloadBypassingCache /// [JsonPropertyName("reloadBypassingCache")] ReloadBypassingCache, /// /// restore /// [JsonPropertyName("restore")] Restore, /// /// restoreWithPost /// [JsonPropertyName("restoreWithPost")] RestoreWithPost, /// /// historySameDocument /// [JsonPropertyName("historySameDocument")] HistorySameDocument, /// /// historyDifferentDocument /// [JsonPropertyName("historyDifferentDocument")] HistoryDifferentDocument, /// /// sameDocument /// [JsonPropertyName("sameDocument")] SameDocument, /// /// differentDocument /// [JsonPropertyName("differentDocument")] DifferentDocument } /// /// Fired when a navigation starts. This event is fired for both /// renderer-initiated and browser-initiated navigations. For renderer-initiated /// navigations, the event is fired after `frameRequestedNavigation`. /// Navigation may still be cancelled after the event is issued. Multiple events /// can be fired for a single navigation, for example, when a same-document /// navigation becomes a cross-document navigation (such as in the case of a /// frameset). /// public class FrameStartedNavigatingEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// ID of the frame that is being navigated. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// The URL the navigation started with. The final URL can be different. /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Loader identifier. Even though it is present in case of same-document /// navigation, the previously committed loaderId would not change unless /// the navigation changes from a same-document to a cross-document /// navigation. /// [JsonInclude] [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { get; private set; } /// /// NavigationType /// [JsonInclude] [JsonPropertyName("navigationType")] public CefSharp.DevTools.Page.FrameStartedNavigatingNavigationType NavigationType { get; private set; } } /// /// Fired when a renderer-initiated navigation is requested. /// Navigation may still be cancelled after the event is issued. /// public class FrameRequestedNavigationEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame that is being navigated. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// The reason for the navigation. /// [JsonInclude] [JsonPropertyName("reason")] public CefSharp.DevTools.Page.ClientNavigationReason Reason { get; private set; } /// /// The destination URL for the requested navigation. /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// The disposition for the navigation. /// [JsonInclude] [JsonPropertyName("disposition")] public CefSharp.DevTools.Page.ClientNavigationDisposition Disposition { get; private set; } } /// /// Fired when frame schedules a potential navigation. /// public class FrameScheduledNavigationEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame that has scheduled a navigation. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// Delay (in seconds) until the navigation is scheduled to begin. The navigation is not /// guaranteed to start. /// [JsonInclude] [JsonPropertyName("delay")] public double Delay { get; private set; } /// /// The reason for the navigation. /// [JsonInclude] [JsonPropertyName("reason")] public CefSharp.DevTools.Page.ClientNavigationReason Reason { get; private set; } /// /// The destination URL for the scheduled navigation. /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } } /// /// Fired when frame has started loading. /// public class FrameStartedLoadingEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame that has started loading. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } } /// /// Fired when frame has stopped loading. /// public class FrameStoppedLoadingEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame that has stopped loading. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } } /// /// Fired when page is about to start a download. /// Deprecated. Use Browser.downloadWillBegin instead. /// public class DownloadWillBeginEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame that caused download to begin. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// Global unique identifier of the download. /// [JsonInclude] [JsonPropertyName("guid")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Guid { get; private set; } /// /// URL of the resource being downloaded. /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Suggested file name of the resource (the actual name of the file saved on disk may differ). /// [JsonInclude] [JsonPropertyName("suggestedFilename")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SuggestedFilename { get; private set; } } /// /// Download status. /// public enum DownloadProgressState { /// /// inProgress /// [JsonPropertyName("inProgress")] InProgress, /// /// completed /// [JsonPropertyName("completed")] Completed, /// /// canceled /// [JsonPropertyName("canceled")] Canceled } /// /// Fired when download makes progress. Last call has |done| == true. /// Deprecated. Use Browser.downloadProgress instead. /// public class DownloadProgressEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Global unique identifier of the download. /// [JsonInclude] [JsonPropertyName("guid")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Guid { get; private set; } /// /// Total expected bytes to download. /// [JsonInclude] [JsonPropertyName("totalBytes")] public double TotalBytes { get; private set; } /// /// Total bytes received. /// [JsonInclude] [JsonPropertyName("receivedBytes")] public double ReceivedBytes { get; private set; } /// /// Download status. /// [JsonInclude] [JsonPropertyName("state")] public CefSharp.DevTools.Page.DownloadProgressState State { get; private set; } } /// /// Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been /// closed. /// public class JavascriptDialogClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Frame id. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// Whether dialog was confirmed. /// [JsonInclude] [JsonPropertyName("result")] public bool Result { get; private set; } /// /// User input in case of prompt. /// [JsonInclude] [JsonPropertyName("userInput")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string UserInput { get; private set; } } /// /// Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to /// open. /// public class JavascriptDialogOpeningEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Frame url. /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Frame id. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// Message that will be displayed by the dialog. /// [JsonInclude] [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Message { get; private set; } /// /// Dialog type. /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.Page.DialogType Type { get; private set; } /// /// True iff browser is capable showing or acting on the given dialog. When browser has no /// dialog handler for given target, calling alert while Page domain is engaged will stall /// the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog. /// [JsonInclude] [JsonPropertyName("hasBrowserHandler")] public bool HasBrowserHandler { get; private set; } /// /// Default dialog prompt. /// [JsonInclude] [JsonPropertyName("defaultPrompt")] public string DefaultPrompt { get; private set; } } /// /// Fired for lifecycle events (navigation, load, paint, etc) in the current /// target (including local frames). /// public class LifecycleEventEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// Loader identifier. Empty string if the request is fetched from worker. /// [JsonInclude] [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { get; private set; } /// /// Name /// [JsonInclude] [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do /// not assume any ordering with the Page.frameNavigated event. This event is fired only for /// main-frame history navigation where the document changes (non-same-document navigations), /// when bfcache navigation fails. /// public class BackForwardCacheNotUsedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// The loader id for the associated navigation. /// [JsonInclude] [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { get; private set; } /// /// The frame id of the associated frame. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// Array of reasons why the page could not be cached. This must not be empty. /// [JsonInclude] [JsonPropertyName("notRestoredExplanations")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList NotRestoredExplanations { get; private set; } /// /// Tree structure of reasons why the page could not be cached for each frame. /// [JsonInclude] [JsonPropertyName("notRestoredExplanationsTree")] public CefSharp.DevTools.Page.BackForwardCacheNotRestoredExplanationTree NotRestoredExplanationsTree { get; private set; } } /// /// loadEventFired /// public class LoadEventFiredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// Navigation type /// public enum NavigatedWithinDocumentNavigationType { /// /// fragment /// [JsonPropertyName("fragment")] Fragment, /// /// historyApi /// [JsonPropertyName("historyApi")] HistoryApi, /// /// other /// [JsonPropertyName("other")] Other } /// /// Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation. /// public class NavigatedWithinDocumentEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the frame. /// [JsonInclude] [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; private set; } /// /// Frame's new url. /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Navigation type /// [JsonInclude] [JsonPropertyName("navigationType")] public CefSharp.DevTools.Page.NavigatedWithinDocumentNavigationType NavigationType { get; private set; } } /// /// Compressed image data requested by the `startScreencast`. /// public class ScreencastFrameEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Base64-encoded compressed image. /// [JsonInclude] [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] Data { get; private set; } /// /// Screencast frame metadata. /// [JsonInclude] [JsonPropertyName("metadata")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.ScreencastFrameMetadata Metadata { get; private set; } /// /// Frame number. /// [JsonInclude] [JsonPropertyName("sessionId")] public int SessionId { get; private set; } } /// /// Fired when the page with currently enabled screencast was shown or hidden `. /// public class ScreencastVisibilityChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// True if the page is visible. /// [JsonInclude] [JsonPropertyName("visible")] public bool Visible { get; private set; } } /// /// Fired when a new window is going to be opened, via window.open(), link click, form submission, /// etc. /// public class WindowOpenEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// The URL for the new window. /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Window name. /// [JsonInclude] [JsonPropertyName("windowName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string WindowName { get; private set; } /// /// An array of enabled window features. /// [JsonInclude] [JsonPropertyName("windowFeatures")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] WindowFeatures { get; private set; } /// /// Whether or not it was triggered by user gesture. /// [JsonInclude] [JsonPropertyName("userGesture")] public bool UserGesture { get; private set; } } /// /// Issued for every compilation cache generated. /// public class CompilationCacheProducedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Url /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Base64-encoded data /// [JsonInclude] [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] Data { get; private set; } } } namespace CefSharp.DevTools.Performance { /// /// Run-time execution metric. /// public partial class Metric : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Metric name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Metric value. /// [JsonPropertyName("value")] public double Value { get; set; } } /// /// Current values of the metrics. /// public class MetricsEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Current values of the metrics. /// [JsonInclude] [JsonPropertyName("metrics")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Metrics { get; private set; } /// /// Timestamp title. /// [JsonInclude] [JsonPropertyName("title")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Title { get; private set; } } } namespace CefSharp.DevTools.PerformanceTimeline { /// /// See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl /// public partial class LargestContentfulPaint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// RenderTime /// [JsonPropertyName("renderTime")] public double RenderTime { get; set; } /// /// LoadTime /// [JsonPropertyName("loadTime")] public double LoadTime { get; set; } /// /// The number of pixels being painted. /// [JsonPropertyName("size")] public double Size { get; set; } /// /// The id attribute of the element, if available. /// [JsonPropertyName("elementId")] public string ElementId { get; set; } /// /// The URL of the image (may be trimmed). /// [JsonPropertyName("url")] public string Url { get; set; } /// /// NodeId /// [JsonPropertyName("nodeId")] public int? NodeId { get; set; } } /// /// LayoutShiftAttribution /// public partial class LayoutShiftAttribution : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// PreviousRect /// [JsonPropertyName("previousRect")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect PreviousRect { get; set; } /// /// CurrentRect /// [JsonPropertyName("currentRect")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect CurrentRect { get; set; } /// /// NodeId /// [JsonPropertyName("nodeId")] public int? NodeId { get; set; } } /// /// See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl /// public partial class LayoutShift : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Score increment produced by this event. /// [JsonPropertyName("value")] public double Value { get; set; } /// /// HadRecentInput /// [JsonPropertyName("hadRecentInput")] public bool HadRecentInput { get; set; } /// /// LastInputTime /// [JsonPropertyName("lastInputTime")] public double LastInputTime { get; set; } /// /// Sources /// [JsonPropertyName("sources")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Sources { get; set; } } /// /// TimelineEvent /// public partial class TimelineEvent : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Identifies the frame that this event is related to. Empty for non-frame targets. /// [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { get; set; } /// /// The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype /// This determines which of the optional "details" fields is present. /// [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { get; set; } /// /// Name may be empty depending on the type. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Time in seconds since Epoch, monotonically increasing within document lifetime. /// [JsonPropertyName("time")] public double Time { get; set; } /// /// Event duration, if applicable. /// [JsonPropertyName("duration")] public double? Duration { get; set; } /// /// LcpDetails /// [JsonPropertyName("lcpDetails")] public CefSharp.DevTools.PerformanceTimeline.LargestContentfulPaint LcpDetails { get; set; } /// /// LayoutShiftDetails /// [JsonPropertyName("layoutShiftDetails")] public CefSharp.DevTools.PerformanceTimeline.LayoutShift LayoutShiftDetails { get; set; } } /// /// Sent when a performance timeline event is added. See reportPerformanceTimeline method. /// public class TimelineEventAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Event /// [JsonInclude] [JsonPropertyName("event")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.PerformanceTimeline.TimelineEvent Event { get; private set; } } } namespace CefSharp.DevTools.Preload { /// /// Corresponds to SpeculationRuleSet /// public partial class RuleSet : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Id /// [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; set; } /// /// Identifies a document which the rule set is associated with. /// [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { get; set; } /// /// Source text of JSON representing the rule set. If it comes from /// `<script>` tag, it is the textContent of the node. Note that it is /// a JSON for valid case. /// /// See also: /// - https://wicg.github.io/nav-speculation/speculation-rules.html /// - https://github.com/WICG/nav-speculation/blob/main/triggers.md /// [JsonPropertyName("sourceText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceText { get; set; } /// /// A speculation rule set is either added through an inline /// `<script>` tag or through an external resource via the /// 'Speculation-Rules' HTTP header. For the first case, we include /// the BackendNodeId of the relevant `<script>` tag. For the second /// case, we include the external URL where the rule set was loaded /// from, and also RequestId if Network domain is enabled. /// /// See also: /// - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-script /// - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-header /// [JsonPropertyName("backendNodeId")] public int? BackendNodeId { get; set; } /// /// Url /// [JsonPropertyName("url")] public string Url { get; set; } /// /// RequestId /// [JsonPropertyName("requestId")] public string RequestId { get; set; } /// /// Error information /// `errorMessage` is null iff `errorType` is null. /// [JsonPropertyName("errorType")] public CefSharp.DevTools.Preload.RuleSetErrorType? ErrorType { get; set; } /// /// TODO(https://crbug.com/1425354): Replace this property with structured error. /// [JsonPropertyName("errorMessage")] public string ErrorMessage { get; set; } /// /// For more details, see: /// https://github.com/WICG/nav-speculation/blob/main/speculation-rules-tags.md /// [JsonPropertyName("tag")] public string Tag { get; set; } } /// /// RuleSetErrorType /// public enum RuleSetErrorType { /// /// SourceIsNotJsonObject /// [JsonPropertyName("SourceIsNotJsonObject")] SourceIsNotJsonObject, /// /// InvalidRulesSkipped /// [JsonPropertyName("InvalidRulesSkipped")] InvalidRulesSkipped, /// /// InvalidRulesetLevelTag /// [JsonPropertyName("InvalidRulesetLevelTag")] InvalidRulesetLevelTag } /// /// The type of preloading attempted. It corresponds to /// mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it /// isn't being used by clients). /// public enum SpeculationAction { /// /// Prefetch /// [JsonPropertyName("Prefetch")] Prefetch, /// /// Prerender /// [JsonPropertyName("Prerender")] Prerender, /// /// PrerenderUntilScript /// [JsonPropertyName("PrerenderUntilScript")] PrerenderUntilScript } /// /// Corresponds to mojom::SpeculationTargetHint. /// See https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints /// public enum SpeculationTargetHint { /// /// Blank /// [JsonPropertyName("Blank")] Blank, /// /// Self /// [JsonPropertyName("Self")] Self } /// /// A key that identifies a preloading attempt. /// /// The url used is the url specified by the trigger (i.e. the initial URL), and /// not the final url that is navigated to. For example, prerendering allows /// same-origin main frame navigations during the attempt, but the attempt is /// still keyed with the initial URL. /// public partial class PreloadingAttemptKey : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// LoaderId /// [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { get; set; } /// /// Action /// [JsonPropertyName("action")] public CefSharp.DevTools.Preload.SpeculationAction Action { get; set; } /// /// Url /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// TargetHint /// [JsonPropertyName("targetHint")] public CefSharp.DevTools.Preload.SpeculationTargetHint? TargetHint { get; set; } } /// /// Lists sources for a preloading attempt, specifically the ids of rule sets /// that had a speculation rule that triggered the attempt, and the /// BackendNodeIds of <a href> or <area href> elements that triggered the /// attempt (in the case of attempts triggered by a document rule). It is /// possible for multiple rule sets and links to trigger a single attempt. /// public partial class PreloadingAttemptSource : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key /// [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Preload.PreloadingAttemptKey Key { get; set; } /// /// RuleSetIds /// [JsonPropertyName("ruleSetIds")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] RuleSetIds { get; set; } /// /// NodeIds /// [JsonPropertyName("nodeIds")] public int[] NodeIds { get; set; } } /// /// List of FinalStatus reasons for Prerender2. /// public enum PrerenderFinalStatus { /// /// Activated /// [JsonPropertyName("Activated")] Activated, /// /// Destroyed /// [JsonPropertyName("Destroyed")] Destroyed, /// /// LowEndDevice /// [JsonPropertyName("LowEndDevice")] LowEndDevice, /// /// InvalidSchemeRedirect /// [JsonPropertyName("InvalidSchemeRedirect")] InvalidSchemeRedirect, /// /// InvalidSchemeNavigation /// [JsonPropertyName("InvalidSchemeNavigation")] InvalidSchemeNavigation, /// /// NavigationRequestBlockedByCsp /// [JsonPropertyName("NavigationRequestBlockedByCsp")] NavigationRequestBlockedByCsp, /// /// MojoBinderPolicy /// [JsonPropertyName("MojoBinderPolicy")] MojoBinderPolicy, /// /// RendererProcessCrashed /// [JsonPropertyName("RendererProcessCrashed")] RendererProcessCrashed, /// /// RendererProcessKilled /// [JsonPropertyName("RendererProcessKilled")] RendererProcessKilled, /// /// Download /// [JsonPropertyName("Download")] Download, /// /// TriggerDestroyed /// [JsonPropertyName("TriggerDestroyed")] TriggerDestroyed, /// /// NavigationNotCommitted /// [JsonPropertyName("NavigationNotCommitted")] NavigationNotCommitted, /// /// NavigationBadHttpStatus /// [JsonPropertyName("NavigationBadHttpStatus")] NavigationBadHttpStatus, /// /// ClientCertRequested /// [JsonPropertyName("ClientCertRequested")] ClientCertRequested, /// /// NavigationRequestNetworkError /// [JsonPropertyName("NavigationRequestNetworkError")] NavigationRequestNetworkError, /// /// CancelAllHostsForTesting /// [JsonPropertyName("CancelAllHostsForTesting")] CancelAllHostsForTesting, /// /// DidFailLoad /// [JsonPropertyName("DidFailLoad")] DidFailLoad, /// /// Stop /// [JsonPropertyName("Stop")] Stop, /// /// SslCertificateError /// [JsonPropertyName("SslCertificateError")] SslCertificateError, /// /// LoginAuthRequested /// [JsonPropertyName("LoginAuthRequested")] LoginAuthRequested, /// /// UaChangeRequiresReload /// [JsonPropertyName("UaChangeRequiresReload")] UaChangeRequiresReload, /// /// BlockedByClient /// [JsonPropertyName("BlockedByClient")] BlockedByClient, /// /// AudioOutputDeviceRequested /// [JsonPropertyName("AudioOutputDeviceRequested")] AudioOutputDeviceRequested, /// /// MixedContent /// [JsonPropertyName("MixedContent")] MixedContent, /// /// TriggerBackgrounded /// [JsonPropertyName("TriggerBackgrounded")] TriggerBackgrounded, /// /// MemoryLimitExceeded /// [JsonPropertyName("MemoryLimitExceeded")] MemoryLimitExceeded, /// /// DataSaverEnabled /// [JsonPropertyName("DataSaverEnabled")] DataSaverEnabled, /// /// TriggerUrlHasEffectiveUrl /// [JsonPropertyName("TriggerUrlHasEffectiveUrl")] TriggerUrlHasEffectiveUrl, /// /// ActivatedBeforeStarted /// [JsonPropertyName("ActivatedBeforeStarted")] ActivatedBeforeStarted, /// /// InactivePageRestriction /// [JsonPropertyName("InactivePageRestriction")] InactivePageRestriction, /// /// StartFailed /// [JsonPropertyName("StartFailed")] StartFailed, /// /// TimeoutBackgrounded /// [JsonPropertyName("TimeoutBackgrounded")] TimeoutBackgrounded, /// /// CrossSiteRedirectInInitialNavigation /// [JsonPropertyName("CrossSiteRedirectInInitialNavigation")] CrossSiteRedirectInInitialNavigation, /// /// CrossSiteNavigationInInitialNavigation /// [JsonPropertyName("CrossSiteNavigationInInitialNavigation")] CrossSiteNavigationInInitialNavigation, /// /// SameSiteCrossOriginRedirectNotOptInInInitialNavigation /// [JsonPropertyName("SameSiteCrossOriginRedirectNotOptInInInitialNavigation")] SameSiteCrossOriginRedirectNotOptInInInitialNavigation, /// /// SameSiteCrossOriginNavigationNotOptInInInitialNavigation /// [JsonPropertyName("SameSiteCrossOriginNavigationNotOptInInInitialNavigation")] SameSiteCrossOriginNavigationNotOptInInInitialNavigation, /// /// ActivationNavigationParameterMismatch /// [JsonPropertyName("ActivationNavigationParameterMismatch")] ActivationNavigationParameterMismatch, /// /// ActivatedInBackground /// [JsonPropertyName("ActivatedInBackground")] ActivatedInBackground, /// /// EmbedderHostDisallowed /// [JsonPropertyName("EmbedderHostDisallowed")] EmbedderHostDisallowed, /// /// ActivationNavigationDestroyedBeforeSuccess /// [JsonPropertyName("ActivationNavigationDestroyedBeforeSuccess")] ActivationNavigationDestroyedBeforeSuccess, /// /// TabClosedByUserGesture /// [JsonPropertyName("TabClosedByUserGesture")] TabClosedByUserGesture, /// /// TabClosedWithoutUserGesture /// [JsonPropertyName("TabClosedWithoutUserGesture")] TabClosedWithoutUserGesture, /// /// PrimaryMainFrameRendererProcessCrashed /// [JsonPropertyName("PrimaryMainFrameRendererProcessCrashed")] PrimaryMainFrameRendererProcessCrashed, /// /// PrimaryMainFrameRendererProcessKilled /// [JsonPropertyName("PrimaryMainFrameRendererProcessKilled")] PrimaryMainFrameRendererProcessKilled, /// /// ActivationFramePolicyNotCompatible /// [JsonPropertyName("ActivationFramePolicyNotCompatible")] ActivationFramePolicyNotCompatible, /// /// PreloadingDisabled /// [JsonPropertyName("PreloadingDisabled")] PreloadingDisabled, /// /// BatterySaverEnabled /// [JsonPropertyName("BatterySaverEnabled")] BatterySaverEnabled, /// /// ActivatedDuringMainFrameNavigation /// [JsonPropertyName("ActivatedDuringMainFrameNavigation")] ActivatedDuringMainFrameNavigation, /// /// PreloadingUnsupportedByWebContents /// [JsonPropertyName("PreloadingUnsupportedByWebContents")] PreloadingUnsupportedByWebContents, /// /// CrossSiteRedirectInMainFrameNavigation /// [JsonPropertyName("CrossSiteRedirectInMainFrameNavigation")] CrossSiteRedirectInMainFrameNavigation, /// /// CrossSiteNavigationInMainFrameNavigation /// [JsonPropertyName("CrossSiteNavigationInMainFrameNavigation")] CrossSiteNavigationInMainFrameNavigation, /// /// SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation /// [JsonPropertyName("SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation")] SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation, /// /// SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation /// [JsonPropertyName("SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation")] SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation, /// /// MemoryPressureOnTrigger /// [JsonPropertyName("MemoryPressureOnTrigger")] MemoryPressureOnTrigger, /// /// MemoryPressureAfterTriggered /// [JsonPropertyName("MemoryPressureAfterTriggered")] MemoryPressureAfterTriggered, /// /// PrerenderingDisabledByDevTools /// [JsonPropertyName("PrerenderingDisabledByDevTools")] PrerenderingDisabledByDevTools, /// /// SpeculationRuleRemoved /// [JsonPropertyName("SpeculationRuleRemoved")] SpeculationRuleRemoved, /// /// ActivatedWithAuxiliaryBrowsingContexts /// [JsonPropertyName("ActivatedWithAuxiliaryBrowsingContexts")] ActivatedWithAuxiliaryBrowsingContexts, /// /// MaxNumOfRunningEagerPrerendersExceeded /// [JsonPropertyName("MaxNumOfRunningEagerPrerendersExceeded")] MaxNumOfRunningEagerPrerendersExceeded, /// /// MaxNumOfRunningNonEagerPrerendersExceeded /// [JsonPropertyName("MaxNumOfRunningNonEagerPrerendersExceeded")] MaxNumOfRunningNonEagerPrerendersExceeded, /// /// MaxNumOfRunningEmbedderPrerendersExceeded /// [JsonPropertyName("MaxNumOfRunningEmbedderPrerendersExceeded")] MaxNumOfRunningEmbedderPrerendersExceeded, /// /// PrerenderingUrlHasEffectiveUrl /// [JsonPropertyName("PrerenderingUrlHasEffectiveUrl")] PrerenderingUrlHasEffectiveUrl, /// /// RedirectedPrerenderingUrlHasEffectiveUrl /// [JsonPropertyName("RedirectedPrerenderingUrlHasEffectiveUrl")] RedirectedPrerenderingUrlHasEffectiveUrl, /// /// ActivationUrlHasEffectiveUrl /// [JsonPropertyName("ActivationUrlHasEffectiveUrl")] ActivationUrlHasEffectiveUrl, /// /// JavaScriptInterfaceAdded /// [JsonPropertyName("JavaScriptInterfaceAdded")] JavaScriptInterfaceAdded, /// /// JavaScriptInterfaceRemoved /// [JsonPropertyName("JavaScriptInterfaceRemoved")] JavaScriptInterfaceRemoved, /// /// AllPrerenderingCanceled /// [JsonPropertyName("AllPrerenderingCanceled")] AllPrerenderingCanceled, /// /// WindowClosed /// [JsonPropertyName("WindowClosed")] WindowClosed, /// /// SlowNetwork /// [JsonPropertyName("SlowNetwork")] SlowNetwork, /// /// OtherPrerenderedPageActivated /// [JsonPropertyName("OtherPrerenderedPageActivated")] OtherPrerenderedPageActivated, /// /// V8OptimizerDisabled /// [JsonPropertyName("V8OptimizerDisabled")] V8OptimizerDisabled, /// /// PrerenderFailedDuringPrefetch /// [JsonPropertyName("PrerenderFailedDuringPrefetch")] PrerenderFailedDuringPrefetch, /// /// BrowsingDataRemoved /// [JsonPropertyName("BrowsingDataRemoved")] BrowsingDataRemoved, /// /// PrerenderHostReused /// [JsonPropertyName("PrerenderHostReused")] PrerenderHostReused } /// /// Preloading status values, see also PreloadingTriggeringOutcome. This /// status is shared by prefetchStatusUpdated and prerenderStatusUpdated. /// public enum PreloadingStatus { /// /// Pending /// [JsonPropertyName("Pending")] Pending, /// /// Running /// [JsonPropertyName("Running")] Running, /// /// Ready /// [JsonPropertyName("Ready")] Ready, /// /// Success /// [JsonPropertyName("Success")] Success, /// /// Failure /// [JsonPropertyName("Failure")] Failure, /// /// NotSupported /// [JsonPropertyName("NotSupported")] NotSupported } /// /// TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and /// filter out the ones that aren't necessary to the developers. /// public enum PrefetchStatus { /// /// PrefetchAllowed /// [JsonPropertyName("PrefetchAllowed")] PrefetchAllowed, /// /// PrefetchFailedIneligibleRedirect /// [JsonPropertyName("PrefetchFailedIneligibleRedirect")] PrefetchFailedIneligibleRedirect, /// /// PrefetchFailedInvalidRedirect /// [JsonPropertyName("PrefetchFailedInvalidRedirect")] PrefetchFailedInvalidRedirect, /// /// PrefetchFailedMIMENotSupported /// [JsonPropertyName("PrefetchFailedMIMENotSupported")] PrefetchFailedMIMENotSupported, /// /// PrefetchFailedNetError /// [JsonPropertyName("PrefetchFailedNetError")] PrefetchFailedNetError, /// /// PrefetchFailedNon2XX /// [JsonPropertyName("PrefetchFailedNon2XX")] PrefetchFailedNon2XX, /// /// PrefetchEvictedAfterBrowsingDataRemoved /// [JsonPropertyName("PrefetchEvictedAfterBrowsingDataRemoved")] PrefetchEvictedAfterBrowsingDataRemoved, /// /// PrefetchEvictedAfterCandidateRemoved /// [JsonPropertyName("PrefetchEvictedAfterCandidateRemoved")] PrefetchEvictedAfterCandidateRemoved, /// /// PrefetchEvictedForNewerPrefetch /// [JsonPropertyName("PrefetchEvictedForNewerPrefetch")] PrefetchEvictedForNewerPrefetch, /// /// PrefetchHeldback /// [JsonPropertyName("PrefetchHeldback")] PrefetchHeldback, /// /// PrefetchIneligibleRetryAfter /// [JsonPropertyName("PrefetchIneligibleRetryAfter")] PrefetchIneligibleRetryAfter, /// /// PrefetchIsPrivacyDecoy /// [JsonPropertyName("PrefetchIsPrivacyDecoy")] PrefetchIsPrivacyDecoy, /// /// PrefetchIsStale /// [JsonPropertyName("PrefetchIsStale")] PrefetchIsStale, /// /// PrefetchNotEligibleBrowserContextOffTheRecord /// [JsonPropertyName("PrefetchNotEligibleBrowserContextOffTheRecord")] PrefetchNotEligibleBrowserContextOffTheRecord, /// /// PrefetchNotEligibleDataSaverEnabled /// [JsonPropertyName("PrefetchNotEligibleDataSaverEnabled")] PrefetchNotEligibleDataSaverEnabled, /// /// PrefetchNotEligibleExistingProxy /// [JsonPropertyName("PrefetchNotEligibleExistingProxy")] PrefetchNotEligibleExistingProxy, /// /// PrefetchNotEligibleHostIsNonUnique /// [JsonPropertyName("PrefetchNotEligibleHostIsNonUnique")] PrefetchNotEligibleHostIsNonUnique, /// /// PrefetchNotEligibleNonDefaultStoragePartition /// [JsonPropertyName("PrefetchNotEligibleNonDefaultStoragePartition")] PrefetchNotEligibleNonDefaultStoragePartition, /// /// PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy /// [JsonPropertyName("PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy")] PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy, /// /// PrefetchNotEligibleSchemeIsNotHttps /// [JsonPropertyName("PrefetchNotEligibleSchemeIsNotHttps")] PrefetchNotEligibleSchemeIsNotHttps, /// /// PrefetchNotEligibleUserHasCookies /// [JsonPropertyName("PrefetchNotEligibleUserHasCookies")] PrefetchNotEligibleUserHasCookies, /// /// PrefetchNotEligibleUserHasServiceWorker /// [JsonPropertyName("PrefetchNotEligibleUserHasServiceWorker")] PrefetchNotEligibleUserHasServiceWorker, /// /// PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler /// [JsonPropertyName("PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler")] PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler, /// /// PrefetchNotEligibleRedirectFromServiceWorker /// [JsonPropertyName("PrefetchNotEligibleRedirectFromServiceWorker")] PrefetchNotEligibleRedirectFromServiceWorker, /// /// PrefetchNotEligibleRedirectToServiceWorker /// [JsonPropertyName("PrefetchNotEligibleRedirectToServiceWorker")] PrefetchNotEligibleRedirectToServiceWorker, /// /// PrefetchNotEligibleBatterySaverEnabled /// [JsonPropertyName("PrefetchNotEligibleBatterySaverEnabled")] PrefetchNotEligibleBatterySaverEnabled, /// /// PrefetchNotEligiblePreloadingDisabled /// [JsonPropertyName("PrefetchNotEligiblePreloadingDisabled")] PrefetchNotEligiblePreloadingDisabled, /// /// PrefetchNotFinishedInTime /// [JsonPropertyName("PrefetchNotFinishedInTime")] PrefetchNotFinishedInTime, /// /// PrefetchNotStarted /// [JsonPropertyName("PrefetchNotStarted")] PrefetchNotStarted, /// /// PrefetchNotUsedCookiesChanged /// [JsonPropertyName("PrefetchNotUsedCookiesChanged")] PrefetchNotUsedCookiesChanged, /// /// PrefetchProxyNotAvailable /// [JsonPropertyName("PrefetchProxyNotAvailable")] PrefetchProxyNotAvailable, /// /// PrefetchResponseUsed /// [JsonPropertyName("PrefetchResponseUsed")] PrefetchResponseUsed, /// /// PrefetchSuccessfulButNotUsed /// [JsonPropertyName("PrefetchSuccessfulButNotUsed")] PrefetchSuccessfulButNotUsed, /// /// PrefetchNotUsedProbeFailed /// [JsonPropertyName("PrefetchNotUsedProbeFailed")] PrefetchNotUsedProbeFailed } /// /// Information of headers to be displayed when the header mismatch occurred. /// public partial class PrerenderMismatchedHeaders : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// HeaderName /// [JsonPropertyName("headerName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string HeaderName { get; set; } /// /// InitialValue /// [JsonPropertyName("initialValue")] public string InitialValue { get; set; } /// /// ActivationValue /// [JsonPropertyName("activationValue")] public string ActivationValue { get; set; } } /// /// Upsert. Currently, it is only emitted when a rule set added. /// public class RuleSetUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// RuleSet /// [JsonInclude] [JsonPropertyName("ruleSet")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Preload.RuleSet RuleSet { get; private set; } } /// /// ruleSetRemoved /// public class RuleSetRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id /// [JsonInclude] [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; private set; } } /// /// Fired when a preload enabled state is updated. /// public class PreloadEnabledStateUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// DisabledByPreference /// [JsonInclude] [JsonPropertyName("disabledByPreference")] public bool DisabledByPreference { get; private set; } /// /// DisabledByDataSaver /// [JsonInclude] [JsonPropertyName("disabledByDataSaver")] public bool DisabledByDataSaver { get; private set; } /// /// DisabledByBatterySaver /// [JsonInclude] [JsonPropertyName("disabledByBatterySaver")] public bool DisabledByBatterySaver { get; private set; } /// /// DisabledByHoldbackPrefetchSpeculationRules /// [JsonInclude] [JsonPropertyName("disabledByHoldbackPrefetchSpeculationRules")] public bool DisabledByHoldbackPrefetchSpeculationRules { get; private set; } /// /// DisabledByHoldbackPrerenderSpeculationRules /// [JsonInclude] [JsonPropertyName("disabledByHoldbackPrerenderSpeculationRules")] public bool DisabledByHoldbackPrerenderSpeculationRules { get; private set; } } /// /// Fired when a prefetch attempt is updated. /// public class PrefetchStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Key /// [JsonInclude] [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Preload.PreloadingAttemptKey Key { get; private set; } /// /// PipelineId /// [JsonInclude] [JsonPropertyName("pipelineId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PipelineId { get; private set; } /// /// The frame id of the frame initiating prefetch. /// [JsonInclude] [JsonPropertyName("initiatingFrameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InitiatingFrameId { get; private set; } /// /// PrefetchUrl /// [JsonInclude] [JsonPropertyName("prefetchUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PrefetchUrl { get; private set; } /// /// Status /// [JsonInclude] [JsonPropertyName("status")] public CefSharp.DevTools.Preload.PreloadingStatus Status { get; private set; } /// /// PrefetchStatus /// [JsonInclude] [JsonPropertyName("prefetchStatus")] public CefSharp.DevTools.Preload.PrefetchStatus PrefetchStatus { get; private set; } /// /// RequestId /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } } /// /// Fired when a prerender attempt is updated. /// public class PrerenderStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Key /// [JsonInclude] [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Preload.PreloadingAttemptKey Key { get; private set; } /// /// PipelineId /// [JsonInclude] [JsonPropertyName("pipelineId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PipelineId { get; private set; } /// /// Status /// [JsonInclude] [JsonPropertyName("status")] public CefSharp.DevTools.Preload.PreloadingStatus Status { get; private set; } /// /// PrerenderStatus /// [JsonInclude] [JsonPropertyName("prerenderStatus")] public CefSharp.DevTools.Preload.PrerenderFinalStatus? PrerenderStatus { get; private set; } /// /// This is used to give users more information about the name of Mojo interface /// that is incompatible with prerender and has caused the cancellation of the attempt. /// [JsonInclude] [JsonPropertyName("disallowedMojoInterface")] public string DisallowedMojoInterface { get; private set; } /// /// MismatchedHeaders /// [JsonInclude] [JsonPropertyName("mismatchedHeaders")] public System.Collections.Generic.IList MismatchedHeaders { get; private set; } } /// /// Send a list of sources for all preloading attempts in a document. /// public class PreloadingAttemptSourcesUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// LoaderId /// [JsonInclude] [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { get; private set; } /// /// PreloadingAttemptSources /// [JsonInclude] [JsonPropertyName("preloadingAttemptSources")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList PreloadingAttemptSources { get; private 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 /// [JsonPropertyName("blockable")] Blockable, /// /// optionally-blockable /// [JsonPropertyName("optionally-blockable")] OptionallyBlockable, /// /// none /// [JsonPropertyName("none")] None } /// /// The security level of a page or resource. /// public enum SecurityState { /// /// unknown /// [JsonPropertyName("unknown")] Unknown, /// /// neutral /// [JsonPropertyName("neutral")] Neutral, /// /// insecure /// [JsonPropertyName("insecure")] Insecure, /// /// secure /// [JsonPropertyName("secure")] Secure, /// /// info /// [JsonPropertyName("info")] Info, /// /// insecure-broken /// [JsonPropertyName("insecure-broken")] InsecureBroken } /// /// Details about the security state of the page certificate. /// public partial class CertificateSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Protocol name (e.g. "TLS 1.2" or "QUIC"). /// [JsonPropertyName("protocol")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Protocol { get; set; } /// /// Key Exchange used by the connection, or the empty string if not applicable. /// [JsonPropertyName("keyExchange")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string KeyExchange { get; set; } /// /// (EC)DH group used by the connection, if applicable. /// [JsonPropertyName("keyExchangeGroup")] public string KeyExchangeGroup { get; set; } /// /// Cipher name. /// [JsonPropertyName("cipher")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Cipher { get; set; } /// /// TLS MAC. Note that AEAD ciphers do not have separate MACs. /// [JsonPropertyName("mac")] public string Mac { get; set; } /// /// Page certificate. /// [JsonPropertyName("certificate")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Certificate { get; set; } /// /// Certificate subject name. /// [JsonPropertyName("subjectName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SubjectName { get; set; } /// /// Name of the issuing CA. /// [JsonPropertyName("issuer")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Issuer { get; set; } /// /// Certificate valid from date. /// [JsonPropertyName("validFrom")] public double ValidFrom { get; set; } /// /// Certificate valid to (expiration) date /// [JsonPropertyName("validTo")] public double ValidTo { get; set; } /// /// The highest priority network error code, if the certificate has an error. /// [JsonPropertyName("certificateNetworkError")] public string CertificateNetworkError { get; set; } /// /// True if the certificate uses a weak signature algorithm. /// [JsonPropertyName("certificateHasWeakSignature")] public bool CertificateHasWeakSignature { get; set; } /// /// True if the certificate has a SHA1 signature in the chain. /// [JsonPropertyName("certificateHasSha1Signature")] public bool CertificateHasSha1Signature { get; set; } /// /// True if modern SSL /// [JsonPropertyName("modernSSL")] public bool ModernSSL { get; set; } /// /// True if the connection is using an obsolete SSL protocol. /// [JsonPropertyName("obsoleteSslProtocol")] public bool ObsoleteSslProtocol { get; set; } /// /// True if the connection is using an obsolete SSL key exchange. /// [JsonPropertyName("obsoleteSslKeyExchange")] public bool ObsoleteSslKeyExchange { get; set; } /// /// True if the connection is using an obsolete SSL cipher. /// [JsonPropertyName("obsoleteSslCipher")] public bool ObsoleteSslCipher { get; set; } /// /// True if the connection is using an obsolete SSL signature. /// [JsonPropertyName("obsoleteSslSignature")] public bool ObsoleteSslSignature { get; set; } } /// /// SafetyTipStatus /// public enum SafetyTipStatus { /// /// badReputation /// [JsonPropertyName("badReputation")] BadReputation, /// /// lookalike /// [JsonPropertyName("lookalike")] Lookalike } /// /// SafetyTipInfo /// public partial class SafetyTipInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Describes whether the page triggers any safety tips or reputation warnings. Default is unknown. /// [JsonPropertyName("safetyTipStatus")] public CefSharp.DevTools.Security.SafetyTipStatus SafetyTipStatus { get; set; } /// /// The URL the safety tip suggested ("Did you mean?"). Only filled in for lookalike matches. /// [JsonPropertyName("safeUrl")] public string SafeUrl { get; set; } } /// /// Security state information about the page. /// public partial class VisibleSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The security level of the page. /// [JsonPropertyName("securityState")] public CefSharp.DevTools.Security.SecurityState SecurityState { get; set; } /// /// Security state details about the page certificate. /// [JsonPropertyName("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. /// [JsonPropertyName("safetyTipInfo")] public CefSharp.DevTools.Security.SafetyTipInfo SafetyTipInfo { get; set; } /// /// Array of security state issues ids. /// [JsonPropertyName("securityStateIssueIds")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] SecurityStateIssueIds { get; set; } } /// /// An explanation of an factor contributing to the security state. /// public partial class SecurityStateExplanation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Security state representing the severity of the factor being explained. /// [JsonPropertyName("securityState")] public CefSharp.DevTools.Security.SecurityState SecurityState { get; set; } /// /// Title describing the type of factor. /// [JsonPropertyName("title")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Title { get; set; } /// /// Short phrase describing the type of factor. /// [JsonPropertyName("summary")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Summary { get; set; } /// /// Full text explanation of the factor. /// [JsonPropertyName("description")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Description { get; set; } /// /// The type of mixed content described by the explanation. /// [JsonPropertyName("mixedContentType")] public CefSharp.DevTools.Security.MixedContentType MixedContentType { get; set; } /// /// Page certificate. /// [JsonPropertyName("certificate")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Certificate { get; set; } /// /// Recommendations to fix any issues. /// [JsonPropertyName("recommendations")] public string[] Recommendations { get; set; } } /// /// Information about insecure content on the page. /// public partial class InsecureContentStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Always false. /// [JsonPropertyName("ranMixedContent")] public bool RanMixedContent { get; set; } /// /// Always false. /// [JsonPropertyName("displayedMixedContent")] public bool DisplayedMixedContent { get; set; } /// /// Always false. /// [JsonPropertyName("containedMixedForm")] public bool ContainedMixedForm { get; set; } /// /// Always false. /// [JsonPropertyName("ranContentWithCertErrors")] public bool RanContentWithCertErrors { get; set; } /// /// Always false. /// [JsonPropertyName("displayedContentWithCertErrors")] public bool DisplayedContentWithCertErrors { get; set; } /// /// Always set to unknown. /// [JsonPropertyName("ranInsecureContentStyle")] public CefSharp.DevTools.Security.SecurityState RanInsecureContentStyle { get; set; } /// /// Always set to unknown. /// [JsonPropertyName("displayedInsecureContentStyle")] public CefSharp.DevTools.Security.SecurityState DisplayedInsecureContentStyle { get; set; } } /// /// 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 /// [JsonPropertyName("continue")] Continue, /// /// cancel /// [JsonPropertyName("cancel")] Cancel } /// /// There is a certificate error. If overriding certificate errors is enabled, then it should be /// handled with the `handleCertificateError` command. Note: this event does not fire if the /// certificate error has been allowed internally. Only one client per target should override /// certificate errors at the same time. /// public class CertificateErrorEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// The ID of the event. /// [JsonInclude] [JsonPropertyName("eventId")] public int EventId { get; private set; } /// /// The type of the error. /// [JsonInclude] [JsonPropertyName("errorType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorType { get; private set; } /// /// The url that was requested. /// [JsonInclude] [JsonPropertyName("requestURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestURL { get; private set; } } /// /// The security state of the page changed. /// public class VisibleSecurityStateChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Security state information about the page. /// [JsonInclude] [JsonPropertyName("visibleSecurityState")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Security.VisibleSecurityState VisibleSecurityState { get; private set; } } /// /// The security state of the page changed. No longer being sent. /// public class SecurityStateChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Security state. /// [JsonInclude] [JsonPropertyName("securityState")] public CefSharp.DevTools.Security.SecurityState SecurityState { get; private set; } /// /// True if the page was loaded over cryptographic transport such as HTTPS. /// [JsonInclude] [JsonPropertyName("schemeIsCryptographic")] public bool SchemeIsCryptographic { get; private set; } /// /// Previously a list of explanations for the security state. Now always /// empty. /// [JsonInclude] [JsonPropertyName("explanations")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Explanations { get; private set; } /// /// Information about insecure content on the page. /// [JsonInclude] [JsonPropertyName("insecureContentStatus")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Security.InsecureContentStatus InsecureContentStatus { get; private set; } /// /// Overrides user-visible description of the state. Always omitted. /// [JsonInclude] [JsonPropertyName("summary")] public string Summary { get; private set; } } } namespace CefSharp.DevTools.ServiceWorker { /// /// ServiceWorker registration. /// public partial class ServiceWorkerRegistration : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// RegistrationId /// [JsonPropertyName("registrationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RegistrationId { get; set; } /// /// ScopeURL /// [JsonPropertyName("scopeURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScopeURL { get; set; } /// /// IsDeleted /// [JsonPropertyName("isDeleted")] public bool IsDeleted { get; set; } } /// /// ServiceWorkerVersionRunningStatus /// public enum ServiceWorkerVersionRunningStatus { /// /// stopped /// [JsonPropertyName("stopped")] Stopped, /// /// starting /// [JsonPropertyName("starting")] Starting, /// /// running /// [JsonPropertyName("running")] Running, /// /// stopping /// [JsonPropertyName("stopping")] Stopping } /// /// ServiceWorkerVersionStatus /// public enum ServiceWorkerVersionStatus { /// /// new /// [JsonPropertyName("new")] New, /// /// installing /// [JsonPropertyName("installing")] Installing, /// /// installed /// [JsonPropertyName("installed")] Installed, /// /// activating /// [JsonPropertyName("activating")] Activating, /// /// activated /// [JsonPropertyName("activated")] Activated, /// /// redundant /// [JsonPropertyName("redundant")] Redundant } /// /// ServiceWorker version. /// public partial class ServiceWorkerVersion : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// VersionId /// [JsonPropertyName("versionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string VersionId { get; set; } /// /// RegistrationId /// [JsonPropertyName("registrationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RegistrationId { get; set; } /// /// ScriptURL /// [JsonPropertyName("scriptURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptURL { get; set; } /// /// RunningStatus /// [JsonPropertyName("runningStatus")] public CefSharp.DevTools.ServiceWorker.ServiceWorkerVersionRunningStatus RunningStatus { get; set; } /// /// Status /// [JsonPropertyName("status")] public CefSharp.DevTools.ServiceWorker.ServiceWorkerVersionStatus Status { get; set; } /// /// The Last-Modified header value of the main script. /// [JsonPropertyName("scriptLastModified")] public double? 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. /// [JsonPropertyName("scriptResponseTime")] public double? ScriptResponseTime { get; set; } /// /// ControlledClients /// [JsonPropertyName("controlledClients")] public string[] ControlledClients { get; set; } /// /// TargetId /// [JsonPropertyName("targetId")] public string TargetId { get; set; } /// /// RouterRules /// [JsonPropertyName("routerRules")] public string RouterRules { get; set; } } /// /// ServiceWorker error message. /// public partial class ServiceWorkerErrorMessage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ErrorMessage /// [JsonPropertyName("errorMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorMessage { get; set; } /// /// RegistrationId /// [JsonPropertyName("registrationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RegistrationId { get; set; } /// /// VersionId /// [JsonPropertyName("versionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string VersionId { get; set; } /// /// SourceURL /// [JsonPropertyName("sourceURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceURL { get; set; } /// /// LineNumber /// [JsonPropertyName("lineNumber")] public int LineNumber { get; set; } /// /// ColumnNumber /// [JsonPropertyName("columnNumber")] public int ColumnNumber { get; set; } } /// /// workerErrorReported /// public class WorkerErrorReportedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// ErrorMessage /// [JsonInclude] [JsonPropertyName("errorMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.ServiceWorker.ServiceWorkerErrorMessage ErrorMessage { get; private set; } } /// /// workerRegistrationUpdated /// public class WorkerRegistrationUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Registrations /// [JsonInclude] [JsonPropertyName("registrations")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Registrations { get; private set; } } /// /// workerVersionUpdated /// public class WorkerVersionUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Versions /// [JsonInclude] [JsonPropertyName("versions")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Versions { get; private set; } } } namespace CefSharp.DevTools.Storage { /// /// Enum of possible storage types. /// public enum StorageType { /// /// cookies /// [JsonPropertyName("cookies")] Cookies, /// /// file_systems /// [JsonPropertyName("file_systems")] FileSystems, /// /// indexeddb /// [JsonPropertyName("indexeddb")] Indexeddb, /// /// local_storage /// [JsonPropertyName("local_storage")] LocalStorage, /// /// shader_cache /// [JsonPropertyName("shader_cache")] ShaderCache, /// /// websql /// [JsonPropertyName("websql")] Websql, /// /// service_workers /// [JsonPropertyName("service_workers")] ServiceWorkers, /// /// cache_storage /// [JsonPropertyName("cache_storage")] CacheStorage, /// /// interest_groups /// [JsonPropertyName("interest_groups")] InterestGroups, /// /// shared_storage /// [JsonPropertyName("shared_storage")] SharedStorage, /// /// storage_buckets /// [JsonPropertyName("storage_buckets")] StorageBuckets, /// /// all /// [JsonPropertyName("all")] All, /// /// other /// [JsonPropertyName("other")] Other } /// /// Usage for a storage type. /// public partial class UsageForType : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of storage type. /// [JsonPropertyName("storageType")] public CefSharp.DevTools.Storage.StorageType StorageType { get; set; } /// /// Storage usage (bytes). /// [JsonPropertyName("usage")] public double Usage { get; set; } } /// /// Pair of issuer origin and number of available (signed, but not used) Trust /// Tokens from that issuer. /// public partial class TrustTokens : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// IssuerOrigin /// [JsonPropertyName("issuerOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string IssuerOrigin { get; set; } /// /// Count /// [JsonPropertyName("count")] public double Count { get; set; } } /// /// Enum of interest group access types. /// public enum InterestGroupAccessType { /// /// join /// [JsonPropertyName("join")] Join, /// /// leave /// [JsonPropertyName("leave")] Leave, /// /// update /// [JsonPropertyName("update")] Update, /// /// loaded /// [JsonPropertyName("loaded")] Loaded, /// /// bid /// [JsonPropertyName("bid")] Bid, /// /// win /// [JsonPropertyName("win")] Win, /// /// additionalBid /// [JsonPropertyName("additionalBid")] AdditionalBid, /// /// additionalBidWin /// [JsonPropertyName("additionalBidWin")] AdditionalBidWin, /// /// topLevelBid /// [JsonPropertyName("topLevelBid")] TopLevelBid, /// /// topLevelAdditionalBid /// [JsonPropertyName("topLevelAdditionalBid")] TopLevelAdditionalBid, /// /// clear /// [JsonPropertyName("clear")] Clear } /// /// Enum of auction events. /// public enum InterestGroupAuctionEventType { /// /// started /// [JsonPropertyName("started")] Started, /// /// configResolved /// [JsonPropertyName("configResolved")] ConfigResolved } /// /// Enum of network fetches auctions can do. /// public enum InterestGroupAuctionFetchType { /// /// bidderJs /// [JsonPropertyName("bidderJs")] BidderJs, /// /// bidderWasm /// [JsonPropertyName("bidderWasm")] BidderWasm, /// /// sellerJs /// [JsonPropertyName("sellerJs")] SellerJs, /// /// bidderTrustedSignals /// [JsonPropertyName("bidderTrustedSignals")] BidderTrustedSignals, /// /// sellerTrustedSignals /// [JsonPropertyName("sellerTrustedSignals")] SellerTrustedSignals } /// /// Enum of shared storage access scopes. /// public enum SharedStorageAccessScope { /// /// window /// [JsonPropertyName("window")] Window, /// /// sharedStorageWorklet /// [JsonPropertyName("sharedStorageWorklet")] SharedStorageWorklet, /// /// protectedAudienceWorklet /// [JsonPropertyName("protectedAudienceWorklet")] ProtectedAudienceWorklet, /// /// header /// [JsonPropertyName("header")] Header } /// /// Enum of shared storage access methods. /// public enum SharedStorageAccessMethod { /// /// addModule /// [JsonPropertyName("addModule")] AddModule, /// /// createWorklet /// [JsonPropertyName("createWorklet")] CreateWorklet, /// /// selectURL /// [JsonPropertyName("selectURL")] SelectURL, /// /// run /// [JsonPropertyName("run")] Run, /// /// batchUpdate /// [JsonPropertyName("batchUpdate")] BatchUpdate, /// /// set /// [JsonPropertyName("set")] Set, /// /// append /// [JsonPropertyName("append")] Append, /// /// delete /// [JsonPropertyName("delete")] Delete, /// /// clear /// [JsonPropertyName("clear")] Clear, /// /// get /// [JsonPropertyName("get")] Get, /// /// keys /// [JsonPropertyName("keys")] Keys, /// /// values /// [JsonPropertyName("values")] Values, /// /// entries /// [JsonPropertyName("entries")] Entries, /// /// length /// [JsonPropertyName("length")] Length, /// /// remainingBudget /// [JsonPropertyName("remainingBudget")] RemainingBudget } /// /// Struct for a single key-value pair in an origin's shared storage. /// public partial class SharedStorageEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key /// [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { get; set; } /// /// Value /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// Details for an origin's shared storage. /// public partial class SharedStorageMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Time when the origin's shared storage was last created. /// [JsonPropertyName("creationTime")] public double CreationTime { get; set; } /// /// Number of key-value pairs stored in origin's shared storage. /// [JsonPropertyName("length")] public int Length { get; set; } /// /// Current amount of bits of entropy remaining in the navigation budget. /// [JsonPropertyName("remainingBudget")] public double RemainingBudget { get; set; } /// /// Total number of bytes stored as key-value pairs in origin's shared /// storage. /// [JsonPropertyName("bytesUsed")] public int BytesUsed { get; set; } } /// /// Represents a dictionary object passed in as privateAggregationConfig to /// run or selectURL. /// public partial class SharedStoragePrivateAggregationConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The chosen aggregation service deployment. /// [JsonPropertyName("aggregationCoordinatorOrigin")] public string AggregationCoordinatorOrigin { get; set; } /// /// The context ID provided. /// [JsonPropertyName("contextId")] public string ContextId { get; set; } /// /// Configures the maximum size allowed for filtering IDs. /// [JsonPropertyName("filteringIdMaxBytes")] public int FilteringIdMaxBytes { get; set; } /// /// The limit on the number of contributions in the final report. /// [JsonPropertyName("maxContributions")] public int? MaxContributions { get; set; } } /// /// Pair of reporting metadata details for a candidate URL for `selectURL()`. /// public partial class SharedStorageReportingMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// EventType /// [JsonPropertyName("eventType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string EventType { get; set; } /// /// ReportingUrl /// [JsonPropertyName("reportingUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ReportingUrl { get; set; } } /// /// Bundles a candidate URL with its reporting metadata. /// public partial class SharedStorageUrlWithMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Spec of candidate URL. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Any associated reporting metadata. /// [JsonPropertyName("reportingMetadata")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ReportingMetadata { get; set; } } /// /// Bundles the parameters for shared storage access events whose /// presence/absence can vary according to SharedStorageAccessType. /// public partial class SharedStorageAccessParams : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Spec of the module script URL. /// Present only for SharedStorageAccessMethods: addModule and /// createWorklet. /// [JsonPropertyName("scriptSourceUrl")] public string ScriptSourceUrl { get; set; } /// /// String denoting "context-origin", "script-origin", or a custom /// origin to be used as the worklet's data origin. /// Present only for SharedStorageAccessMethod: createWorklet. /// [JsonPropertyName("dataOrigin")] public string DataOrigin { get; set; } /// /// Name of the registered operation to be run. /// Present only for SharedStorageAccessMethods: run and selectURL. /// [JsonPropertyName("operationName")] public string OperationName { get; set; } /// /// ID of the operation call. /// Present only for SharedStorageAccessMethods: run and selectURL. /// [JsonPropertyName("operationId")] public string OperationId { get; set; } /// /// Whether or not to keep the worket alive for future run or selectURL /// calls. /// Present only for SharedStorageAccessMethods: run and selectURL. /// [JsonPropertyName("keepAlive")] public bool? KeepAlive { get; set; } /// /// Configures the private aggregation options. /// Present only for SharedStorageAccessMethods: run and selectURL. /// [JsonPropertyName("privateAggregationConfig")] public CefSharp.DevTools.Storage.SharedStoragePrivateAggregationConfig PrivateAggregationConfig { get; set; } /// /// The operation's serialized data in bytes (converted to a string). /// Present only for SharedStorageAccessMethods: run and selectURL. /// TODO(crbug.com/401011862): Consider updating this parameter to binary. /// [JsonPropertyName("serializedData")] public string SerializedData { get; set; } /// /// Array of candidate URLs' specs, along with any associated metadata. /// Present only for SharedStorageAccessMethod: selectURL. /// [JsonPropertyName("urlsWithMetadata")] public System.Collections.Generic.IList UrlsWithMetadata { get; set; } /// /// Spec of the URN:UUID generated for a selectURL call. /// Present only for SharedStorageAccessMethod: selectURL. /// [JsonPropertyName("urnUuid")] public string UrnUuid { get; set; } /// /// Key for a specific entry in an origin's shared storage. /// Present only for SharedStorageAccessMethods: set, append, delete, and /// get. /// [JsonPropertyName("key")] public string Key { get; set; } /// /// Value for a specific entry in an origin's shared storage. /// Present only for SharedStorageAccessMethods: set and append. /// [JsonPropertyName("value")] public string Value { get; set; } /// /// Whether or not to set an entry for a key if that key is already present. /// Present only for SharedStorageAccessMethod: set. /// [JsonPropertyName("ignoreIfPresent")] public bool? IgnoreIfPresent { get; set; } /// /// A number denoting the (0-based) order of the worklet's /// creation relative to all other shared storage worklets created by /// documents using the current storage partition. /// Present only for SharedStorageAccessMethods: addModule, createWorklet. /// [JsonPropertyName("workletOrdinal")] public int? WorkletOrdinal { get; set; } /// /// Hex representation of the DevTools token used as the TargetID for the /// associated shared storage worklet. /// Present only for SharedStorageAccessMethods: addModule, createWorklet, /// run, selectURL, and any other SharedStorageAccessMethod when the /// SharedStorageAccessScope is sharedStorageWorklet. /// [JsonPropertyName("workletTargetId")] public string WorkletTargetId { get; set; } /// /// Name of the lock to be acquired, if present. /// Optionally present only for SharedStorageAccessMethods: batchUpdate, /// set, append, delete, and clear. /// [JsonPropertyName("withLock")] public string WithLock { get; set; } /// /// If the method has been called as part of a batchUpdate, then this /// number identifies the batch to which it belongs. /// Optionally present only for SharedStorageAccessMethods: /// batchUpdate (required), set, append, delete, and clear. /// [JsonPropertyName("batchUpdateId")] public string BatchUpdateId { get; set; } /// /// Number of modifier methods sent in batch. /// Present only for SharedStorageAccessMethod: batchUpdate. /// [JsonPropertyName("batchSize")] public int? BatchSize { get; set; } } /// /// StorageBucketsDurability /// public enum StorageBucketsDurability { /// /// relaxed /// [JsonPropertyName("relaxed")] Relaxed, /// /// strict /// [JsonPropertyName("strict")] Strict } /// /// StorageBucket /// public partial class StorageBucket : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// StorageKey /// [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { get; set; } /// /// If not specified, it is the default bucket of the storageKey. /// [JsonPropertyName("name")] public string Name { get; set; } } /// /// StorageBucketInfo /// public partial class StorageBucketInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Bucket /// [JsonPropertyName("bucket")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.StorageBucket Bucket { get; set; } /// /// Id /// [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; set; } /// /// Expiration /// [JsonPropertyName("expiration")] public double Expiration { get; set; } /// /// Storage quota (bytes). /// [JsonPropertyName("quota")] public double Quota { get; set; } /// /// Persistent /// [JsonPropertyName("persistent")] public bool Persistent { get; set; } /// /// Durability /// [JsonPropertyName("durability")] public CefSharp.DevTools.Storage.StorageBucketsDurability Durability { get; set; } } /// /// AttributionReportingSourceType /// public enum AttributionReportingSourceType { /// /// navigation /// [JsonPropertyName("navigation")] Navigation, /// /// event /// [JsonPropertyName("event")] Event } /// /// AttributionReportingFilterDataEntry /// public partial class AttributionReportingFilterDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key /// [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { get; set; } /// /// Values /// [JsonPropertyName("values")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Values { get; set; } } /// /// AttributionReportingFilterConfig /// public partial class AttributionReportingFilterConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// FilterValues /// [JsonPropertyName("filterValues")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList FilterValues { get; set; } /// /// duration in seconds /// [JsonPropertyName("lookbackWindow")] public int? LookbackWindow { get; set; } } /// /// AttributionReportingFilterPair /// public partial class AttributionReportingFilterPair : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Filters /// [JsonPropertyName("filters")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Filters { get; set; } /// /// NotFilters /// [JsonPropertyName("notFilters")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList NotFilters { get; set; } } /// /// AttributionReportingAggregationKeysEntry /// public partial class AttributionReportingAggregationKeysEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key /// [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { get; set; } /// /// Value /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { get; set; } } /// /// AttributionReportingEventReportWindows /// public partial class AttributionReportingEventReportWindows : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// duration in seconds /// [JsonPropertyName("start")] public int Start { get; set; } /// /// duration in seconds /// [JsonPropertyName("ends")] public int[] Ends { get; set; } } /// /// AttributionReportingTriggerDataMatching /// public enum AttributionReportingTriggerDataMatching { /// /// exact /// [JsonPropertyName("exact")] Exact, /// /// modulus /// [JsonPropertyName("modulus")] Modulus } /// /// AttributionReportingAggregatableDebugReportingData /// public partial class AttributionReportingAggregatableDebugReportingData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// KeyPiece /// [JsonPropertyName("keyPiece")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string KeyPiece { get; set; } /// /// number instead of integer because not all uint32 can be represented by /// int /// [JsonPropertyName("value")] public double Value { get; set; } /// /// Types /// [JsonPropertyName("types")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Types { get; set; } } /// /// AttributionReportingAggregatableDebugReportingConfig /// public partial class AttributionReportingAggregatableDebugReportingConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// number instead of integer because not all uint32 can be represented by /// int, only present for source registrations /// [JsonPropertyName("budget")] public double? Budget { get; set; } /// /// KeyPiece /// [JsonPropertyName("keyPiece")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string KeyPiece { get; set; } /// /// DebugData /// [JsonPropertyName("debugData")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList DebugData { get; set; } /// /// AggregationCoordinatorOrigin /// [JsonPropertyName("aggregationCoordinatorOrigin")] public string AggregationCoordinatorOrigin { get; set; } } /// /// AttributionScopesData /// public partial class AttributionScopesData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Values /// [JsonPropertyName("values")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Values { get; set; } /// /// number instead of integer because not all uint32 can be represented by /// int /// [JsonPropertyName("limit")] public double Limit { get; set; } /// /// MaxEventStates /// [JsonPropertyName("maxEventStates")] public double MaxEventStates { get; set; } } /// /// AttributionReportingNamedBudgetDef /// public partial class AttributionReportingNamedBudgetDef : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Budget /// [JsonPropertyName("budget")] public int Budget { get; set; } } /// /// AttributionReportingSourceRegistration /// public partial class AttributionReportingSourceRegistration : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Time /// [JsonPropertyName("time")] public double Time { get; set; } /// /// duration in seconds /// [JsonPropertyName("expiry")] public int Expiry { get; set; } /// /// number instead of integer because not all uint32 can be represented by /// int /// [JsonPropertyName("triggerData")] public double[] TriggerData { get; set; } /// /// EventReportWindows /// [JsonPropertyName("eventReportWindows")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows { get; set; } /// /// duration in seconds /// [JsonPropertyName("aggregatableReportWindow")] public int AggregatableReportWindow { get; set; } /// /// Type /// [JsonPropertyName("type")] public CefSharp.DevTools.Storage.AttributionReportingSourceType Type { get; set; } /// /// SourceOrigin /// [JsonPropertyName("sourceOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceOrigin { get; set; } /// /// ReportingOrigin /// [JsonPropertyName("reportingOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ReportingOrigin { get; set; } /// /// DestinationSites /// [JsonPropertyName("destinationSites")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] DestinationSites { get; set; } /// /// EventId /// [JsonPropertyName("eventId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string EventId { get; set; } /// /// Priority /// [JsonPropertyName("priority")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Priority { get; set; } /// /// FilterData /// [JsonPropertyName("filterData")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList FilterData { get; set; } /// /// AggregationKeys /// [JsonPropertyName("aggregationKeys")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList AggregationKeys { get; set; } /// /// DebugKey /// [JsonPropertyName("debugKey")] public string DebugKey { get; set; } /// /// TriggerDataMatching /// [JsonPropertyName("triggerDataMatching")] public CefSharp.DevTools.Storage.AttributionReportingTriggerDataMatching TriggerDataMatching { get; set; } /// /// DestinationLimitPriority /// [JsonPropertyName("destinationLimitPriority")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DestinationLimitPriority { get; set; } /// /// AggregatableDebugReportingConfig /// [JsonPropertyName("aggregatableDebugReportingConfig")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.AttributionReportingAggregatableDebugReportingConfig AggregatableDebugReportingConfig { get; set; } /// /// ScopesData /// [JsonPropertyName("scopesData")] public CefSharp.DevTools.Storage.AttributionScopesData ScopesData { get; set; } /// /// MaxEventLevelReports /// [JsonPropertyName("maxEventLevelReports")] public int MaxEventLevelReports { get; set; } /// /// NamedBudgets /// [JsonPropertyName("namedBudgets")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList NamedBudgets { get; set; } /// /// DebugReporting /// [JsonPropertyName("debugReporting")] public bool DebugReporting { get; set; } /// /// EventLevelEpsilon /// [JsonPropertyName("eventLevelEpsilon")] public double EventLevelEpsilon { get; set; } } /// /// AttributionReportingSourceRegistrationResult /// public enum AttributionReportingSourceRegistrationResult { /// /// success /// [JsonPropertyName("success")] Success, /// /// internalError /// [JsonPropertyName("internalError")] InternalError, /// /// insufficientSourceCapacity /// [JsonPropertyName("insufficientSourceCapacity")] InsufficientSourceCapacity, /// /// insufficientUniqueDestinationCapacity /// [JsonPropertyName("insufficientUniqueDestinationCapacity")] InsufficientUniqueDestinationCapacity, /// /// excessiveReportingOrigins /// [JsonPropertyName("excessiveReportingOrigins")] ExcessiveReportingOrigins, /// /// prohibitedByBrowserPolicy /// [JsonPropertyName("prohibitedByBrowserPolicy")] ProhibitedByBrowserPolicy, /// /// successNoised /// [JsonPropertyName("successNoised")] SuccessNoised, /// /// destinationReportingLimitReached /// [JsonPropertyName("destinationReportingLimitReached")] DestinationReportingLimitReached, /// /// destinationGlobalLimitReached /// [JsonPropertyName("destinationGlobalLimitReached")] DestinationGlobalLimitReached, /// /// destinationBothLimitsReached /// [JsonPropertyName("destinationBothLimitsReached")] DestinationBothLimitsReached, /// /// reportingOriginsPerSiteLimitReached /// [JsonPropertyName("reportingOriginsPerSiteLimitReached")] ReportingOriginsPerSiteLimitReached, /// /// exceedsMaxChannelCapacity /// [JsonPropertyName("exceedsMaxChannelCapacity")] ExceedsMaxChannelCapacity, /// /// exceedsMaxScopesChannelCapacity /// [JsonPropertyName("exceedsMaxScopesChannelCapacity")] ExceedsMaxScopesChannelCapacity, /// /// exceedsMaxTriggerStateCardinality /// [JsonPropertyName("exceedsMaxTriggerStateCardinality")] ExceedsMaxTriggerStateCardinality, /// /// exceedsMaxEventStatesLimit /// [JsonPropertyName("exceedsMaxEventStatesLimit")] ExceedsMaxEventStatesLimit, /// /// destinationPerDayReportingLimitReached /// [JsonPropertyName("destinationPerDayReportingLimitReached")] DestinationPerDayReportingLimitReached } /// /// AttributionReportingSourceRegistrationTimeConfig /// public enum AttributionReportingSourceRegistrationTimeConfig { /// /// include /// [JsonPropertyName("include")] Include, /// /// exclude /// [JsonPropertyName("exclude")] Exclude } /// /// AttributionReportingAggregatableValueDictEntry /// public partial class AttributionReportingAggregatableValueDictEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key /// [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { get; set; } /// /// number instead of integer because not all uint32 can be represented by /// int /// [JsonPropertyName("value")] public double Value { get; set; } /// /// FilteringId /// [JsonPropertyName("filteringId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FilteringId { get; set; } } /// /// AttributionReportingAggregatableValueEntry /// public partial class AttributionReportingAggregatableValueEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Values /// [JsonPropertyName("values")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Values { get; set; } /// /// Filters /// [JsonPropertyName("filters")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters { get; set; } } /// /// AttributionReportingEventTriggerData /// public partial class AttributionReportingEventTriggerData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Data /// [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Data { get; set; } /// /// Priority /// [JsonPropertyName("priority")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Priority { get; set; } /// /// DedupKey /// [JsonPropertyName("dedupKey")] public string DedupKey { get; set; } /// /// Filters /// [JsonPropertyName("filters")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters { get; set; } } /// /// AttributionReportingAggregatableTriggerData /// public partial class AttributionReportingAggregatableTriggerData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// KeyPiece /// [JsonPropertyName("keyPiece")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string KeyPiece { get; set; } /// /// SourceKeys /// [JsonPropertyName("sourceKeys")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] SourceKeys { get; set; } /// /// Filters /// [JsonPropertyName("filters")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters { get; set; } } /// /// AttributionReportingAggregatableDedupKey /// public partial class AttributionReportingAggregatableDedupKey : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// DedupKey /// [JsonPropertyName("dedupKey")] public string DedupKey { get; set; } /// /// Filters /// [JsonPropertyName("filters")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters { get; set; } } /// /// AttributionReportingNamedBudgetCandidate /// public partial class AttributionReportingNamedBudgetCandidate : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name /// [JsonPropertyName("name")] public string Name { get; set; } /// /// Filters /// [JsonPropertyName("filters")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters { get; set; } } /// /// AttributionReportingTriggerRegistration /// public partial class AttributionReportingTriggerRegistration : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Filters /// [JsonPropertyName("filters")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters { get; set; } /// /// DebugKey /// [JsonPropertyName("debugKey")] public string DebugKey { get; set; } /// /// AggregatableDedupKeys /// [JsonPropertyName("aggregatableDedupKeys")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList AggregatableDedupKeys { get; set; } /// /// EventTriggerData /// [JsonPropertyName("eventTriggerData")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList EventTriggerData { get; set; } /// /// AggregatableTriggerData /// [JsonPropertyName("aggregatableTriggerData")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList AggregatableTriggerData { get; set; } /// /// AggregatableValues /// [JsonPropertyName("aggregatableValues")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList AggregatableValues { get; set; } /// /// AggregatableFilteringIdMaxBytes /// [JsonPropertyName("aggregatableFilteringIdMaxBytes")] public int AggregatableFilteringIdMaxBytes { get; set; } /// /// DebugReporting /// [JsonPropertyName("debugReporting")] public bool DebugReporting { get; set; } /// /// AggregationCoordinatorOrigin /// [JsonPropertyName("aggregationCoordinatorOrigin")] public string AggregationCoordinatorOrigin { get; set; } /// /// SourceRegistrationTimeConfig /// [JsonPropertyName("sourceRegistrationTimeConfig")] public CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationTimeConfig SourceRegistrationTimeConfig { get; set; } /// /// TriggerContextId /// [JsonPropertyName("triggerContextId")] public string TriggerContextId { get; set; } /// /// AggregatableDebugReportingConfig /// [JsonPropertyName("aggregatableDebugReportingConfig")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.AttributionReportingAggregatableDebugReportingConfig AggregatableDebugReportingConfig { get; set; } /// /// Scopes /// [JsonPropertyName("scopes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Scopes { get; set; } /// /// NamedBudgets /// [JsonPropertyName("namedBudgets")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList NamedBudgets { get; set; } } /// /// AttributionReportingEventLevelResult /// public enum AttributionReportingEventLevelResult { /// /// success /// [JsonPropertyName("success")] Success, /// /// successDroppedLowerPriority /// [JsonPropertyName("successDroppedLowerPriority")] SuccessDroppedLowerPriority, /// /// internalError /// [JsonPropertyName("internalError")] InternalError, /// /// noCapacityForAttributionDestination /// [JsonPropertyName("noCapacityForAttributionDestination")] NoCapacityForAttributionDestination, /// /// noMatchingSources /// [JsonPropertyName("noMatchingSources")] NoMatchingSources, /// /// deduplicated /// [JsonPropertyName("deduplicated")] Deduplicated, /// /// excessiveAttributions /// [JsonPropertyName("excessiveAttributions")] ExcessiveAttributions, /// /// priorityTooLow /// [JsonPropertyName("priorityTooLow")] PriorityTooLow, /// /// neverAttributedSource /// [JsonPropertyName("neverAttributedSource")] NeverAttributedSource, /// /// excessiveReportingOrigins /// [JsonPropertyName("excessiveReportingOrigins")] ExcessiveReportingOrigins, /// /// noMatchingSourceFilterData /// [JsonPropertyName("noMatchingSourceFilterData")] NoMatchingSourceFilterData, /// /// prohibitedByBrowserPolicy /// [JsonPropertyName("prohibitedByBrowserPolicy")] ProhibitedByBrowserPolicy, /// /// noMatchingConfigurations /// [JsonPropertyName("noMatchingConfigurations")] NoMatchingConfigurations, /// /// excessiveReports /// [JsonPropertyName("excessiveReports")] ExcessiveReports, /// /// falselyAttributedSource /// [JsonPropertyName("falselyAttributedSource")] FalselyAttributedSource, /// /// reportWindowPassed /// [JsonPropertyName("reportWindowPassed")] ReportWindowPassed, /// /// notRegistered /// [JsonPropertyName("notRegistered")] NotRegistered, /// /// reportWindowNotStarted /// [JsonPropertyName("reportWindowNotStarted")] ReportWindowNotStarted, /// /// noMatchingTriggerData /// [JsonPropertyName("noMatchingTriggerData")] NoMatchingTriggerData } /// /// AttributionReportingAggregatableResult /// public enum AttributionReportingAggregatableResult { /// /// success /// [JsonPropertyName("success")] Success, /// /// internalError /// [JsonPropertyName("internalError")] InternalError, /// /// noCapacityForAttributionDestination /// [JsonPropertyName("noCapacityForAttributionDestination")] NoCapacityForAttributionDestination, /// /// noMatchingSources /// [JsonPropertyName("noMatchingSources")] NoMatchingSources, /// /// excessiveAttributions /// [JsonPropertyName("excessiveAttributions")] ExcessiveAttributions, /// /// excessiveReportingOrigins /// [JsonPropertyName("excessiveReportingOrigins")] ExcessiveReportingOrigins, /// /// noHistograms /// [JsonPropertyName("noHistograms")] NoHistograms, /// /// insufficientBudget /// [JsonPropertyName("insufficientBudget")] InsufficientBudget, /// /// insufficientNamedBudget /// [JsonPropertyName("insufficientNamedBudget")] InsufficientNamedBudget, /// /// noMatchingSourceFilterData /// [JsonPropertyName("noMatchingSourceFilterData")] NoMatchingSourceFilterData, /// /// notRegistered /// [JsonPropertyName("notRegistered")] NotRegistered, /// /// prohibitedByBrowserPolicy /// [JsonPropertyName("prohibitedByBrowserPolicy")] ProhibitedByBrowserPolicy, /// /// deduplicated /// [JsonPropertyName("deduplicated")] Deduplicated, /// /// reportWindowPassed /// [JsonPropertyName("reportWindowPassed")] ReportWindowPassed, /// /// excessiveReports /// [JsonPropertyName("excessiveReports")] ExcessiveReports } /// /// AttributionReportingReportResult /// public enum AttributionReportingReportResult { /// /// sent /// [JsonPropertyName("sent")] Sent, /// /// prohibited /// [JsonPropertyName("prohibited")] Prohibited, /// /// failedToAssemble /// [JsonPropertyName("failedToAssemble")] FailedToAssemble, /// /// expired /// [JsonPropertyName("expired")] Expired } /// /// A single Related Website Set object. /// public partial class RelatedWebsiteSet : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The primary site of this set, along with the ccTLDs if there is any. /// [JsonPropertyName("primarySites")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] PrimarySites { get; set; } /// /// The associated sites of this set, along with the ccTLDs if there is any. /// [JsonPropertyName("associatedSites")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] AssociatedSites { get; set; } /// /// The service sites of this set, along with the ccTLDs if there is any. /// [JsonPropertyName("serviceSites")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] ServiceSites { get; set; } } /// /// A cache's contents have been modified. /// public class CacheStorageContentUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Origin to update. /// [JsonInclude] [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; private set; } /// /// Storage key to update. /// [JsonInclude] [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { get; private set; } /// /// Storage bucket to update. /// [JsonInclude] [JsonPropertyName("bucketId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string BucketId { get; private set; } /// /// Name of cache in origin. /// [JsonInclude] [JsonPropertyName("cacheName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CacheName { get; private set; } } /// /// A cache has been added/deleted. /// public class CacheStorageListUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Origin to update. /// [JsonInclude] [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; private set; } /// /// Storage key to update. /// [JsonInclude] [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { get; private set; } /// /// Storage bucket to update. /// [JsonInclude] [JsonPropertyName("bucketId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string BucketId { get; private set; } } /// /// The origin's IndexedDB object store has been modified. /// public class IndexedDBContentUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Origin to update. /// [JsonInclude] [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; private set; } /// /// Storage key to update. /// [JsonInclude] [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { get; private set; } /// /// Storage bucket to update. /// [JsonInclude] [JsonPropertyName("bucketId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string BucketId { get; private set; } /// /// Database to update. /// [JsonInclude] [JsonPropertyName("databaseName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DatabaseName { get; private set; } /// /// ObjectStore to update. /// [JsonInclude] [JsonPropertyName("objectStoreName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ObjectStoreName { get; private set; } } /// /// The origin's IndexedDB database list has been modified. /// public class IndexedDBListUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Origin to update. /// [JsonInclude] [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; private set; } /// /// Storage key to update. /// [JsonInclude] [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { get; private set; } /// /// Storage bucket to update. /// [JsonInclude] [JsonPropertyName("bucketId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string BucketId { get; private set; } } /// /// One of the interest groups was accessed. Note that these events are global /// to all targets sharing an interest group store. /// public class InterestGroupAccessedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// AccessTime /// [JsonInclude] [JsonPropertyName("accessTime")] public double AccessTime { get; private set; } /// /// Type /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.Storage.InterestGroupAccessType Type { get; private set; } /// /// OwnerOrigin /// [JsonInclude] [JsonPropertyName("ownerOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string OwnerOrigin { get; private set; } /// /// Name /// [JsonInclude] [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; private set; } /// /// For topLevelBid/topLevelAdditionalBid, and when appropriate, /// win and additionalBidWin /// [JsonInclude] [JsonPropertyName("componentSellerOrigin")] public string ComponentSellerOrigin { get; private set; } /// /// For bid or somethingBid event, if done locally and not on a server. /// [JsonInclude] [JsonPropertyName("bid")] public double? Bid { get; private set; } /// /// BidCurrency /// [JsonInclude] [JsonPropertyName("bidCurrency")] public string BidCurrency { get; private set; } /// /// For non-global events --- links to interestGroupAuctionEvent /// [JsonInclude] [JsonPropertyName("uniqueAuctionId")] public string UniqueAuctionId { get; private set; } } /// /// An auction involving interest groups is taking place. These events are /// target-specific. /// public class InterestGroupAuctionEventOccurredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// EventTime /// [JsonInclude] [JsonPropertyName("eventTime")] public double EventTime { get; private set; } /// /// Type /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.Storage.InterestGroupAuctionEventType Type { get; private set; } /// /// UniqueAuctionId /// [JsonInclude] [JsonPropertyName("uniqueAuctionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string UniqueAuctionId { get; private set; } /// /// Set for child auctions. /// [JsonInclude] [JsonPropertyName("parentAuctionId")] public string ParentAuctionId { get; private set; } /// /// Set for started and configResolved /// [JsonInclude] [JsonPropertyName("auctionConfig")] public object AuctionConfig { get; private set; } } /// /// Specifies which auctions a particular network fetch may be related to, and /// in what role. Note that it is not ordered with respect to /// Network.requestWillBeSent (but will happen before loadingFinished /// loadingFailed). /// public class InterestGroupAuctionNetworkRequestCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Type /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.Storage.InterestGroupAuctionFetchType Type { get; private set; } /// /// RequestId /// [JsonInclude] [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { get; private set; } /// /// This is the set of the auctions using the worklet that issued this /// request. In the case of trusted signals, it's possible that only some of /// them actually care about the keys being queried. /// [JsonInclude] [JsonPropertyName("auctions")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Auctions { get; private set; } } /// /// Shared storage was accessed by the associated page. /// The following parameters are included in all events. /// public class SharedStorageAccessedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Time of the access. /// [JsonInclude] [JsonPropertyName("accessTime")] public double AccessTime { get; private set; } /// /// Enum value indicating the access scope. /// [JsonInclude] [JsonPropertyName("scope")] public CefSharp.DevTools.Storage.SharedStorageAccessScope Scope { get; private set; } /// /// Enum value indicating the Shared Storage API method invoked. /// [JsonInclude] [JsonPropertyName("method")] public CefSharp.DevTools.Storage.SharedStorageAccessMethod Method { get; private set; } /// /// DevTools Frame Token for the primary frame tree's root. /// [JsonInclude] [JsonPropertyName("mainFrameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string MainFrameId { get; private set; } /// /// Serialization of the origin owning the Shared Storage data. /// [JsonInclude] [JsonPropertyName("ownerOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string OwnerOrigin { get; private set; } /// /// Serialization of the site owning the Shared Storage data. /// [JsonInclude] [JsonPropertyName("ownerSite")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string OwnerSite { get; private set; } /// /// The sub-parameters wrapped by `params` are all optional and their /// presence/absence depends on `type`. /// [JsonInclude] [JsonPropertyName("params")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.SharedStorageAccessParams Params { get; private set; } } /// /// A shared storage run or selectURL operation finished its execution. /// The following parameters are included in all events. /// public class SharedStorageWorkletOperationExecutionFinishedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Time that the operation finished. /// [JsonInclude] [JsonPropertyName("finishedTime")] public double FinishedTime { get; private set; } /// /// Time, in microseconds, from start of shared storage JS API call until /// end of operation execution in the worklet. /// [JsonInclude] [JsonPropertyName("executionTime")] public int ExecutionTime { get; private set; } /// /// Enum value indicating the Shared Storage API method invoked. /// [JsonInclude] [JsonPropertyName("method")] public CefSharp.DevTools.Storage.SharedStorageAccessMethod Method { get; private set; } /// /// ID of the operation call. /// [JsonInclude] [JsonPropertyName("operationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string OperationId { get; private set; } /// /// Hex representation of the DevTools token used as the TargetID for the /// associated shared storage worklet. /// [JsonInclude] [JsonPropertyName("workletTargetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string WorkletTargetId { get; private set; } /// /// DevTools Frame Token for the primary frame tree's root. /// [JsonInclude] [JsonPropertyName("mainFrameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string MainFrameId { get; private set; } /// /// Serialization of the origin owning the Shared Storage data. /// [JsonInclude] [JsonPropertyName("ownerOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string OwnerOrigin { get; private set; } } /// /// storageBucketCreatedOrUpdated /// public class StorageBucketCreatedOrUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// BucketInfo /// [JsonInclude] [JsonPropertyName("bucketInfo")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.StorageBucketInfo BucketInfo { get; private set; } } /// /// storageBucketDeleted /// public class StorageBucketDeletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// BucketId /// [JsonInclude] [JsonPropertyName("bucketId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string BucketId { get; private set; } } /// /// attributionReportingSourceRegistered /// public class AttributionReportingSourceRegisteredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Registration /// [JsonInclude] [JsonPropertyName("registration")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.AttributionReportingSourceRegistration Registration { get; private set; } /// /// Result /// [JsonInclude] [JsonPropertyName("result")] public CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationResult Result { get; private set; } } /// /// attributionReportingTriggerRegistered /// public class AttributionReportingTriggerRegisteredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Registration /// [JsonInclude] [JsonPropertyName("registration")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.AttributionReportingTriggerRegistration Registration { get; private set; } /// /// EventLevel /// [JsonInclude] [JsonPropertyName("eventLevel")] public CefSharp.DevTools.Storage.AttributionReportingEventLevelResult EventLevel { get; private set; } /// /// Aggregatable /// [JsonInclude] [JsonPropertyName("aggregatable")] public CefSharp.DevTools.Storage.AttributionReportingAggregatableResult Aggregatable { get; private set; } } /// /// attributionReportingReportSent /// public class AttributionReportingReportSentEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Url /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Body /// [JsonInclude] [JsonPropertyName("body")] [System.Diagnostics.CodeAnalysis.DisallowNull] public object Body { get; private set; } /// /// Result /// [JsonInclude] [JsonPropertyName("result")] public CefSharp.DevTools.Storage.AttributionReportingReportResult Result { get; private set; } /// /// If result is `sent`, populated with net/HTTP status. /// [JsonInclude] [JsonPropertyName("netError")] public int? NetError { get; private set; } /// /// NetErrorName /// [JsonInclude] [JsonPropertyName("netErrorName")] public string NetErrorName { get; private set; } /// /// HttpStatusCode /// [JsonInclude] [JsonPropertyName("httpStatusCode")] public int? HttpStatusCode { get; private set; } } /// /// attributionReportingVerboseDebugReportSent /// public class AttributionReportingVerboseDebugReportSentEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Url /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Body /// [JsonInclude] [JsonPropertyName("body")] public System.Collections.Generic.IList Body { get; private set; } /// /// NetError /// [JsonInclude] [JsonPropertyName("netError")] public int? NetError { get; private set; } /// /// NetErrorName /// [JsonInclude] [JsonPropertyName("netErrorName")] public string NetErrorName { get; private set; } /// /// HttpStatusCode /// [JsonInclude] [JsonPropertyName("httpStatusCode")] public int? HttpStatusCode { get; private set; } } } namespace CefSharp.DevTools.SystemInfo { /// /// Describes a single graphics processor (GPU). /// public partial class GPUDevice : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// PCI ID of the GPU vendor, if available; 0 otherwise. /// [JsonPropertyName("vendorId")] public double VendorId { get; set; } /// /// PCI ID of the GPU device, if available; 0 otherwise. /// [JsonPropertyName("deviceId")] public double DeviceId { get; set; } /// /// Sub sys ID of the GPU, only available on Windows. /// [JsonPropertyName("subSysId")] public double? SubSysId { get; set; } /// /// Revision of the GPU, only available on Windows. /// [JsonPropertyName("revision")] public double? Revision { get; set; } /// /// String description of the GPU vendor, if the PCI ID is not available. /// [JsonPropertyName("vendorString")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string VendorString { get; set; } /// /// String description of the GPU device, if the PCI ID is not available. /// [JsonPropertyName("deviceString")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DeviceString { get; set; } /// /// String description of the GPU driver vendor. /// [JsonPropertyName("driverVendor")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DriverVendor { get; set; } /// /// String description of the GPU driver version. /// [JsonPropertyName("driverVersion")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DriverVersion { get; set; } } /// /// Describes the width and height dimensions of an entity. /// public partial class Size : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Width in pixels. /// [JsonPropertyName("width")] public int Width { get; set; } /// /// Height in pixels. /// [JsonPropertyName("height")] public int Height { get; set; } } /// /// Describes a supported video decoding profile with its associated minimum and /// maximum resolutions. /// public partial class VideoDecodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Video codec profile that is supported, e.g. VP9 Profile 2. /// [JsonPropertyName("profile")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Profile { get; set; } /// /// Maximum video dimensions in pixels supported for this |profile|. /// [JsonPropertyName("maxResolution")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.SystemInfo.Size MaxResolution { get; set; } /// /// Minimum video dimensions in pixels supported for this |profile|. /// [JsonPropertyName("minResolution")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.SystemInfo.Size MinResolution { get; set; } } /// /// Describes a supported video encoding profile with its associated maximum /// resolution and maximum framerate. /// public partial class VideoEncodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Video codec profile that is supported, e.g H264 Main. /// [JsonPropertyName("profile")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Profile { get; set; } /// /// Maximum video dimensions in pixels supported for this |profile|. /// [JsonPropertyName("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. /// [JsonPropertyName("maxFramerateNumerator")] public int MaxFramerateNumerator { get; set; } /// /// MaxFramerateDenominator /// [JsonPropertyName("maxFramerateDenominator")] public int MaxFramerateDenominator { get; set; } } /// /// YUV subsampling type of the pixels of a given image. /// public enum SubsamplingFormat { /// /// yuv420 /// [JsonPropertyName("yuv420")] Yuv420, /// /// yuv422 /// [JsonPropertyName("yuv422")] Yuv422, /// /// yuv444 /// [JsonPropertyName("yuv444")] Yuv444 } /// /// Image format of a given image. /// public enum ImageType { /// /// jpeg /// [JsonPropertyName("jpeg")] Jpeg, /// /// webp /// [JsonPropertyName("webp")] Webp, /// /// unknown /// [JsonPropertyName("unknown")] Unknown } /// /// Provides information about the GPU(s) on the system. /// public partial class GPUInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The graphics devices on the system. Element 0 is the primary GPU. /// [JsonPropertyName("devices")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Devices { get; set; } /// /// An optional dictionary of additional GPU related attributes. /// [JsonPropertyName("auxAttributes")] public object AuxAttributes { get; set; } /// /// An optional dictionary of graphics features and their status. /// [JsonPropertyName("featureStatus")] public object FeatureStatus { get; set; } /// /// An optional array of GPU driver bug workarounds. /// [JsonPropertyName("driverBugWorkarounds")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] DriverBugWorkarounds { get; set; } /// /// Supported accelerated video decoding capabilities. /// [JsonPropertyName("videoDecoding")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList VideoDecoding { get; set; } /// /// Supported accelerated video encoding capabilities. /// [JsonPropertyName("videoEncoding")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList VideoEncoding { get; set; } } /// /// Represents process info. /// public partial class ProcessInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Specifies process type. /// [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { get; set; } /// /// Specifies process id. /// [JsonPropertyName("id")] public int Id { get; set; } /// /// Specifies cumulative CPU usage in seconds across all threads of the /// process since the process start. /// [JsonPropertyName("cpuTime")] public double CpuTime { get; set; } } } namespace CefSharp.DevTools.Target { /// /// TargetInfo /// public partial class TargetInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// TargetId /// [JsonPropertyName("targetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TargetId { get; set; } /// /// List of types: https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/devtools_agent_host_impl.cc?ss=chromium&q=f:devtools%20-f:out%20%22::kTypeTab%5B%5D%22 /// [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { get; set; } /// /// Title /// [JsonPropertyName("title")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Title { get; set; } /// /// Url /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Whether the target has an attached client. /// [JsonPropertyName("attached")] public bool Attached { get; set; } /// /// Opener target Id /// [JsonPropertyName("openerId")] public string OpenerId { get; set; } /// /// Whether the target has access to the originating window. /// [JsonPropertyName("canAccessOpener")] public bool CanAccessOpener { get; set; } /// /// Frame id of originating window (is only set if target has an opener). /// [JsonPropertyName("openerFrameId")] public string OpenerFrameId { get; set; } /// /// Id of the parent frame, only present for the "iframe" targets. /// [JsonPropertyName("parentFrameId")] public string ParentFrameId { get; set; } /// /// BrowserContextId /// [JsonPropertyName("browserContextId")] public string BrowserContextId { get; set; } /// /// Provides additional details for specific target types. For example, for /// the type of "page", this may be set to "prerender". /// [JsonPropertyName("subtype")] public string Subtype { get; set; } } /// /// A filter used by target query/discovery/auto-attach operations. /// public partial class FilterEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// If set, causes exclusion of matching targets from the list. /// [JsonPropertyName("exclude")] public bool? Exclude { get; set; } /// /// If not present, matches any type. /// [JsonPropertyName("type")] public string Type { get; set; } } /// /// RemoteLocation /// public partial class RemoteLocation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Host /// [JsonPropertyName("host")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Host { get; set; } /// /// Port /// [JsonPropertyName("port")] public int Port { get; set; } } /// /// The state of the target window. /// public enum WindowState { /// /// normal /// [JsonPropertyName("normal")] Normal, /// /// minimized /// [JsonPropertyName("minimized")] Minimized, /// /// maximized /// [JsonPropertyName("maximized")] Maximized, /// /// fullscreen /// [JsonPropertyName("fullscreen")] Fullscreen } /// /// Issued when attached to target because of auto-attach or `attachToTarget` command. /// public class AttachedToTargetEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier assigned to the session used to send/receive messages. /// [JsonInclude] [JsonPropertyName("sessionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SessionId { get; private set; } /// /// TargetInfo /// [JsonInclude] [JsonPropertyName("targetInfo")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Target.TargetInfo TargetInfo { get; private set; } /// /// WaitingForDebugger /// [JsonInclude] [JsonPropertyName("waitingForDebugger")] public bool WaitingForDebugger { get; private set; } } /// /// Issued when detached from target for any reason (including `detachFromTarget` command). Can be /// issued multiple times per target if multiple sessions have been attached to it. /// public class DetachedFromTargetEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Detached session identifier. /// [JsonInclude] [JsonPropertyName("sessionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SessionId { get; private set; } /// /// Deprecated. /// [JsonInclude] [JsonPropertyName("targetId")] public string TargetId { get; private set; } } /// /// Notifies about a new protocol message received from the session (as reported in /// `attachedToTarget` event). /// public class ReceivedMessageFromTargetEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier of a session which sends a message. /// [JsonInclude] [JsonPropertyName("sessionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SessionId { get; private set; } /// /// Message /// [JsonInclude] [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Message { get; private set; } /// /// Deprecated. /// [JsonInclude] [JsonPropertyName("targetId")] public string TargetId { get; private set; } } /// /// Issued when a possible inspection target is created. /// public class TargetCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// TargetInfo /// [JsonInclude] [JsonPropertyName("targetInfo")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Target.TargetInfo TargetInfo { get; private set; } } /// /// Issued when a target is destroyed. /// public class TargetDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// TargetId /// [JsonInclude] [JsonPropertyName("targetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TargetId { get; private set; } } /// /// Issued when a target has crashed. /// public class TargetCrashedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// TargetId /// [JsonInclude] [JsonPropertyName("targetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TargetId { get; private set; } /// /// Termination status type. /// [JsonInclude] [JsonPropertyName("status")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Status { get; private set; } /// /// Termination error code. /// [JsonInclude] [JsonPropertyName("errorCode")] public int ErrorCode { get; private set; } } /// /// Issued when some information about a target has changed. This only happens between /// `targetCreated` and `targetDestroyed`. /// public class TargetInfoChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// TargetInfo /// [JsonInclude] [JsonPropertyName("targetInfo")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Target.TargetInfo TargetInfo { get; private set; } } } namespace CefSharp.DevTools.Tethering { /// /// Informs that port was successfully bound and got a specified connection id. /// public class AcceptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Port number that was successfully bound. /// [JsonInclude] [JsonPropertyName("port")] public int Port { get; private set; } /// /// Connection id to be used. /// [JsonInclude] [JsonPropertyName("connectionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ConnectionId { get; private set; } } } namespace CefSharp.DevTools.Tracing { /// /// Controls how the trace buffer stores data. The default is `recordUntilFull`. /// public enum TraceConfigRecordMode { /// /// recordUntilFull /// [JsonPropertyName("recordUntilFull")] RecordUntilFull, /// /// recordContinuously /// [JsonPropertyName("recordContinuously")] RecordContinuously, /// /// recordAsMuchAsPossible /// [JsonPropertyName("recordAsMuchAsPossible")] RecordAsMuchAsPossible, /// /// echoToConsole /// [JsonPropertyName("echoToConsole")] EchoToConsole } /// /// TraceConfig /// public partial class TraceConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Controls how the trace buffer stores data. The default is `recordUntilFull`. /// [JsonPropertyName("recordMode")] public CefSharp.DevTools.Tracing.TraceConfigRecordMode? RecordMode { get; set; } /// /// Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value /// of 200 MB would be used. /// [JsonPropertyName("traceBufferSizeInKb")] public double? TraceBufferSizeInKb { get; set; } /// /// Turns on JavaScript stack sampling. /// [JsonPropertyName("enableSampling")] public bool? EnableSampling { get; set; } /// /// Turns on system tracing. /// [JsonPropertyName("enableSystrace")] public bool? EnableSystrace { get; set; } /// /// Turns on argument filter. /// [JsonPropertyName("enableArgumentFilter")] public bool? EnableArgumentFilter { get; set; } /// /// Included category filters. /// [JsonPropertyName("includedCategories")] public string[] IncludedCategories { get; set; } /// /// Excluded category filters. /// [JsonPropertyName("excludedCategories")] public string[] ExcludedCategories { get; set; } /// /// Configuration to synthesize the delays in tracing. /// [JsonPropertyName("syntheticDelays")] public string[] SyntheticDelays { get; set; } /// /// Configuration for memory dump triggers. Used only when "memory-infra" category is enabled. /// [JsonPropertyName("memoryDumpConfig")] public CefSharp.DevTools.Tracing.MemoryDumpConfig MemoryDumpConfig { get; set; } } /// /// 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 /// [JsonPropertyName("json")] Json, /// /// proto /// [JsonPropertyName("proto")] Proto } /// /// Compression type to use for traces returned via streams. /// public enum StreamCompression { /// /// none /// [JsonPropertyName("none")] None, /// /// gzip /// [JsonPropertyName("gzip")] Gzip } /// /// Details exposed when memory request explicitly declared. /// Keep consistent with memory_dump_request_args.h and /// memory_instrumentation.mojom /// public enum MemoryDumpLevelOfDetail { /// /// background /// [JsonPropertyName("background")] Background, /// /// light /// [JsonPropertyName("light")] Light, /// /// detailed /// [JsonPropertyName("detailed")] Detailed } /// /// Backend type to use for tracing. `chrome` uses the Chrome-integrated /// tracing service and is supported on all platforms. `system` is only /// supported on Chrome OS and uses the Perfetto system tracing service. /// `auto` chooses `system` when the perfettoConfig provided to Tracing.start /// specifies at least one non-Chrome data source; otherwise uses `chrome`. /// public enum TracingBackend { /// /// auto /// [JsonPropertyName("auto")] Auto, /// /// chrome /// [JsonPropertyName("chrome")] Chrome, /// /// system /// [JsonPropertyName("system")] System } /// /// bufferUsage /// public class BufferUsageEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// A number in range [0..1] that indicates the used size of event buffer as a fraction of its /// total size. /// [JsonInclude] [JsonPropertyName("percentFull")] public double? PercentFull { get; private set; } /// /// An approximate number of events in the trace log. /// [JsonInclude] [JsonPropertyName("eventCount")] public double? EventCount { get; private set; } /// /// A number in range [0..1] that indicates the used size of event buffer as a fraction of its /// total size. /// [JsonInclude] [JsonPropertyName("value")] public double? Value { get; private set; } } /// /// Contains a bucket of collected trace events. When tracing is stopped collected events will be /// sent as a sequence of dataCollected events followed by tracingComplete event. /// public class DataCollectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Value /// [JsonInclude] [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Value { get; private set; } } /// /// Signals that tracing is stopped and there is no trace buffers pending flush, all data were /// delivered via dataCollected events. /// public class TracingCompleteEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Indicates whether some trace data is known to have been lost, e.g. because the trace ring /// buffer wrapped around. /// [JsonInclude] [JsonPropertyName("dataLossOccurred")] public bool DataLossOccurred { get; private set; } /// /// A handle of the stream that holds resulting trace data. /// [JsonInclude] [JsonPropertyName("stream")] public string Stream { get; private set; } /// /// Trace data format of returned stream. /// [JsonInclude] [JsonPropertyName("traceFormat")] public CefSharp.DevTools.Tracing.StreamFormat? TraceFormat { get; private set; } /// /// Compression format of returned stream. /// [JsonInclude] [JsonPropertyName("streamCompression")] public CefSharp.DevTools.Tracing.StreamCompression? StreamCompression { get; private set; } } } namespace CefSharp.DevTools.WebAudio { /// /// Enum of BaseAudioContext types /// public enum ContextType { /// /// realtime /// [JsonPropertyName("realtime")] Realtime, /// /// offline /// [JsonPropertyName("offline")] Offline } /// /// Enum of AudioContextState from the spec /// public enum ContextState { /// /// suspended /// [JsonPropertyName("suspended")] Suspended, /// /// running /// [JsonPropertyName("running")] Running, /// /// closed /// [JsonPropertyName("closed")] Closed, /// /// interrupted /// [JsonPropertyName("interrupted")] Interrupted } /// /// Enum of AudioNode::ChannelCountMode from the spec /// public enum ChannelCountMode { /// /// clamped-max /// [JsonPropertyName("clamped-max")] ClampedMax, /// /// explicit /// [JsonPropertyName("explicit")] Explicit, /// /// max /// [JsonPropertyName("max")] Max } /// /// Enum of AudioNode::ChannelInterpretation from the spec /// public enum ChannelInterpretation { /// /// discrete /// [JsonPropertyName("discrete")] Discrete, /// /// speakers /// [JsonPropertyName("speakers")] Speakers } /// /// Enum of AudioParam::AutomationRate from the spec /// public enum AutomationRate { /// /// a-rate /// [JsonPropertyName("a-rate")] ARate, /// /// k-rate /// [JsonPropertyName("k-rate")] KRate } /// /// Fields in AudioContext that change in real-time. /// public partial class ContextRealtimeData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The current context time in second in BaseAudioContext. /// [JsonPropertyName("currentTime")] public double CurrentTime { get; set; } /// /// The time spent on rendering graph divided by render quantum duration, /// and multiplied by 100. 100 means the audio renderer reached the full /// capacity and glitch may occur. /// [JsonPropertyName("renderCapacity")] public double RenderCapacity { get; set; } /// /// A running mean of callback interval. /// [JsonPropertyName("callbackIntervalMean")] public double CallbackIntervalMean { get; set; } /// /// A running variance of callback interval. /// [JsonPropertyName("callbackIntervalVariance")] public double CallbackIntervalVariance { get; set; } } /// /// Protocol object for BaseAudioContext /// public partial class BaseAudioContext : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ContextId /// [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { get; set; } /// /// ContextType /// [JsonPropertyName("contextType")] public CefSharp.DevTools.WebAudio.ContextType ContextType { get; set; } /// /// ContextState /// [JsonPropertyName("contextState")] public CefSharp.DevTools.WebAudio.ContextState ContextState { get; set; } /// /// RealtimeData /// [JsonPropertyName("realtimeData")] public CefSharp.DevTools.WebAudio.ContextRealtimeData RealtimeData { get; set; } /// /// Platform-dependent callback buffer size. /// [JsonPropertyName("callbackBufferSize")] public double CallbackBufferSize { get; set; } /// /// Number of output channels supported by audio hardware in use. /// [JsonPropertyName("maxOutputChannelCount")] public double MaxOutputChannelCount { get; set; } /// /// Context sample rate. /// [JsonPropertyName("sampleRate")] public double SampleRate { get; set; } } /// /// Protocol object for AudioListener /// public partial class AudioListener : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ListenerId /// [JsonPropertyName("listenerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ListenerId { get; set; } /// /// ContextId /// [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { get; set; } } /// /// Protocol object for AudioNode /// public partial class AudioNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// NodeId /// [JsonPropertyName("nodeId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeId { get; set; } /// /// ContextId /// [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { get; set; } /// /// NodeType /// [JsonPropertyName("nodeType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeType { get; set; } /// /// NumberOfInputs /// [JsonPropertyName("numberOfInputs")] public double NumberOfInputs { get; set; } /// /// NumberOfOutputs /// [JsonPropertyName("numberOfOutputs")] public double NumberOfOutputs { get; set; } /// /// ChannelCount /// [JsonPropertyName("channelCount")] public double ChannelCount { get; set; } /// /// ChannelCountMode /// [JsonPropertyName("channelCountMode")] public CefSharp.DevTools.WebAudio.ChannelCountMode ChannelCountMode { get; set; } /// /// ChannelInterpretation /// [JsonPropertyName("channelInterpretation")] public CefSharp.DevTools.WebAudio.ChannelInterpretation ChannelInterpretation { get; set; } } /// /// Protocol object for AudioParam /// public partial class AudioParam : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ParamId /// [JsonPropertyName("paramId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ParamId { get; set; } /// /// NodeId /// [JsonPropertyName("nodeId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeId { get; set; } /// /// ContextId /// [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { get; set; } /// /// ParamType /// [JsonPropertyName("paramType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ParamType { get; set; } /// /// Rate /// [JsonPropertyName("rate")] public CefSharp.DevTools.WebAudio.AutomationRate Rate { get; set; } /// /// DefaultValue /// [JsonPropertyName("defaultValue")] public double DefaultValue { get; set; } /// /// MinValue /// [JsonPropertyName("minValue")] public double MinValue { get; set; } /// /// MaxValue /// [JsonPropertyName("maxValue")] public double MaxValue { get; set; } } /// /// Notifies that a new BaseAudioContext has been created. /// public class ContextCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Context /// [JsonInclude] [JsonPropertyName("context")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAudio.BaseAudioContext Context { get; private set; } } /// /// Notifies that an existing BaseAudioContext will be destroyed. /// public class ContextWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// ContextId /// [JsonInclude] [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { get; private set; } } /// /// Notifies that existing BaseAudioContext has changed some properties (id stays the same).. /// public class ContextChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Context /// [JsonInclude] [JsonPropertyName("context")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAudio.BaseAudioContext Context { get; private set; } } /// /// Notifies that the construction of an AudioListener has finished. /// public class AudioListenerCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Listener /// [JsonInclude] [JsonPropertyName("listener")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAudio.AudioListener Listener { get; private set; } } /// /// Notifies that a new AudioListener has been created. /// public class AudioListenerWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// ContextId /// [JsonInclude] [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { get; private set; } /// /// ListenerId /// [JsonInclude] [JsonPropertyName("listenerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ListenerId { get; private set; } } /// /// Notifies that a new AudioNode has been created. /// public class AudioNodeCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Node /// [JsonInclude] [JsonPropertyName("node")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAudio.AudioNode Node { get; private set; } } /// /// Notifies that an existing AudioNode has been destroyed. /// public class AudioNodeWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// ContextId /// [JsonInclude] [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { get; private set; } /// /// NodeId /// [JsonInclude] [JsonPropertyName("nodeId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeId { get; private set; } } /// /// Notifies that a new AudioParam has been created. /// public class AudioParamCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Param /// [JsonInclude] [JsonPropertyName("param")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAudio.AudioParam Param { get; private set; } } /// /// Notifies that an existing AudioParam has been destroyed. /// public class AudioParamWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// ContextId /// [JsonInclude] [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { get; private set; } /// /// NodeId /// [JsonInclude] [JsonPropertyName("nodeId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeId { get; private set; } /// /// ParamId /// [JsonInclude] [JsonPropertyName("paramId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ParamId { get; private set; } } /// /// Notifies that two AudioNodes are connected. /// public class NodesConnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// ContextId /// [JsonInclude] [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { get; private set; } /// /// SourceId /// [JsonInclude] [JsonPropertyName("sourceId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceId { get; private set; } /// /// DestinationId /// [JsonInclude] [JsonPropertyName("destinationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DestinationId { get; private set; } /// /// SourceOutputIndex /// [JsonInclude] [JsonPropertyName("sourceOutputIndex")] public double? SourceOutputIndex { get; private set; } /// /// DestinationInputIndex /// [JsonInclude] [JsonPropertyName("destinationInputIndex")] public double? DestinationInputIndex { get; private set; } } /// /// Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected. /// public class NodesDisconnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// ContextId /// [JsonInclude] [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { get; private set; } /// /// SourceId /// [JsonInclude] [JsonPropertyName("sourceId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceId { get; private set; } /// /// DestinationId /// [JsonInclude] [JsonPropertyName("destinationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DestinationId { get; private set; } /// /// SourceOutputIndex /// [JsonInclude] [JsonPropertyName("sourceOutputIndex")] public double? SourceOutputIndex { get; private set; } /// /// DestinationInputIndex /// [JsonInclude] [JsonPropertyName("destinationInputIndex")] public double? DestinationInputIndex { get; private set; } } /// /// Notifies that an AudioNode is connected to an AudioParam. /// public class NodeParamConnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// ContextId /// [JsonInclude] [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { get; private set; } /// /// SourceId /// [JsonInclude] [JsonPropertyName("sourceId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceId { get; private set; } /// /// DestinationId /// [JsonInclude] [JsonPropertyName("destinationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DestinationId { get; private set; } /// /// SourceOutputIndex /// [JsonInclude] [JsonPropertyName("sourceOutputIndex")] public double? SourceOutputIndex { get; private set; } } /// /// Notifies that an AudioNode is disconnected to an AudioParam. /// public class NodeParamDisconnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// ContextId /// [JsonInclude] [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { get; private set; } /// /// SourceId /// [JsonInclude] [JsonPropertyName("sourceId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceId { get; private set; } /// /// DestinationId /// [JsonInclude] [JsonPropertyName("destinationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DestinationId { get; private set; } /// /// SourceOutputIndex /// [JsonInclude] [JsonPropertyName("sourceOutputIndex")] public double? SourceOutputIndex { get; private set; } } } namespace CefSharp.DevTools.WebAuthn { /// /// AuthenticatorProtocol /// public enum AuthenticatorProtocol { /// /// u2f /// [JsonPropertyName("u2f")] U2f, /// /// ctap2 /// [JsonPropertyName("ctap2")] Ctap2 } /// /// Ctap2Version /// public enum Ctap2Version { /// /// ctap2_0 /// [JsonPropertyName("ctap2_0")] Ctap20, /// /// ctap2_1 /// [JsonPropertyName("ctap2_1")] Ctap21 } /// /// AuthenticatorTransport /// public enum AuthenticatorTransport { /// /// usb /// [JsonPropertyName("usb")] Usb, /// /// nfc /// [JsonPropertyName("nfc")] Nfc, /// /// ble /// [JsonPropertyName("ble")] Ble, /// /// cable /// [JsonPropertyName("cable")] Cable, /// /// internal /// [JsonPropertyName("internal")] Internal } /// /// VirtualAuthenticatorOptions /// public partial class VirtualAuthenticatorOptions : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Protocol /// [JsonPropertyName("protocol")] public CefSharp.DevTools.WebAuthn.AuthenticatorProtocol Protocol { get; set; } /// /// Defaults to ctap2_0. Ignored if |protocol| == u2f. /// [JsonPropertyName("ctap2Version")] public CefSharp.DevTools.WebAuthn.Ctap2Version? Ctap2Version { get; set; } /// /// Transport /// [JsonPropertyName("transport")] public CefSharp.DevTools.WebAuthn.AuthenticatorTransport Transport { get; set; } /// /// Defaults to false. /// [JsonPropertyName("hasResidentKey")] public bool? HasResidentKey { get; set; } /// /// Defaults to false. /// [JsonPropertyName("hasUserVerification")] public bool? HasUserVerification { get; set; } /// /// If set to true, the authenticator will support the largeBlob extension. /// https://w3c.github.io/webauthn#largeBlob /// Defaults to false. /// [JsonPropertyName("hasLargeBlob")] public bool? HasLargeBlob { get; set; } /// /// If set to true, the authenticator will support the credBlob extension. /// https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html#sctn-credBlob-extension /// Defaults to false. /// [JsonPropertyName("hasCredBlob")] public bool? HasCredBlob { get; set; } /// /// If set to true, the authenticator will support the minPinLength extension. /// https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#sctn-minpinlength-extension /// Defaults to false. /// [JsonPropertyName("hasMinPinLength")] public bool? HasMinPinLength { get; set; } /// /// If set to true, the authenticator will support the prf extension. /// https://w3c.github.io/webauthn/#prf-extension /// Defaults to false. /// [JsonPropertyName("hasPrf")] public bool? HasPrf { get; set; } /// /// If set to true, tests of user presence will succeed immediately. /// Otherwise, they will not be resolved. Defaults to true. /// [JsonPropertyName("automaticPresenceSimulation")] public bool? AutomaticPresenceSimulation { get; set; } /// /// Sets whether User Verification succeeds or fails for an authenticator. /// Defaults to false. /// [JsonPropertyName("isUserVerified")] public bool? IsUserVerified { get; set; } /// /// Credentials created by this authenticator will have the backup /// eligibility (BE) flag set to this value. Defaults to false. /// https://w3c.github.io/webauthn/#sctn-credential-backup /// [JsonPropertyName("defaultBackupEligibility")] public bool? DefaultBackupEligibility { get; set; } /// /// Credentials created by this authenticator will have the backup state /// (BS) flag set to this value. Defaults to false. /// https://w3c.github.io/webauthn/#sctn-credential-backup /// [JsonPropertyName("defaultBackupState")] public bool? DefaultBackupState { get; set; } } /// /// Credential /// public partial class Credential : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CredentialId /// [JsonPropertyName("credentialId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] CredentialId { get; set; } /// /// IsResidentCredential /// [JsonPropertyName("isResidentCredential")] public bool IsResidentCredential { get; set; } /// /// Relying Party ID the credential is scoped to. Must be set when adding a /// credential. /// [JsonPropertyName("rpId")] public string RpId { get; set; } /// /// The ECDSA P-256 private key in PKCS#8 format. /// [JsonPropertyName("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. /// [JsonPropertyName("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 /// [JsonPropertyName("signCount")] public int SignCount { get; set; } /// /// The large blob associated with the credential. /// See https://w3c.github.io/webauthn/#sctn-large-blob-extension /// [JsonPropertyName("largeBlob")] public byte[] LargeBlob { get; set; } /// /// Assertions returned by this credential will have the backup eligibility /// (BE) flag set to this value. Defaults to the authenticator's /// defaultBackupEligibility value. /// [JsonPropertyName("backupEligibility")] public bool? BackupEligibility { get; set; } /// /// Assertions returned by this credential will have the backup state (BS) /// flag set to this value. Defaults to the authenticator's /// defaultBackupState value. /// [JsonPropertyName("backupState")] public bool? BackupState { get; set; } /// /// The credential's user.name property. Equivalent to empty if not set. /// https://w3c.github.io/webauthn/#dom-publickeycredentialentity-name /// [JsonPropertyName("userName")] public string UserName { get; set; } /// /// The credential's user.displayName property. Equivalent to empty if /// not set. /// https://w3c.github.io/webauthn/#dom-publickeycredentialuserentity-displayname /// [JsonPropertyName("userDisplayName")] public string UserDisplayName { get; set; } } /// /// Triggered when a credential is added to an authenticator. /// public class CredentialAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// AuthenticatorId /// [JsonInclude] [JsonPropertyName("authenticatorId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string AuthenticatorId { get; private set; } /// /// Credential /// [JsonInclude] [JsonPropertyName("credential")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAuthn.Credential Credential { get; private set; } } /// /// Triggered when a credential is deleted, e.g. through /// PublicKeyCredential.signalUnknownCredential(). /// public class CredentialDeletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// AuthenticatorId /// [JsonInclude] [JsonPropertyName("authenticatorId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string AuthenticatorId { get; private set; } /// /// CredentialId /// [JsonInclude] [JsonPropertyName("credentialId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] CredentialId { get; private set; } } /// /// Triggered when a credential is updated, e.g. through /// PublicKeyCredential.signalCurrentUserDetails(). /// public class CredentialUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// AuthenticatorId /// [JsonInclude] [JsonPropertyName("authenticatorId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string AuthenticatorId { get; private set; } /// /// Credential /// [JsonInclude] [JsonPropertyName("credential")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAuthn.Credential Credential { get; private set; } } /// /// Triggered when a credential is used in a webauthn assertion. /// public class CredentialAssertedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// AuthenticatorId /// [JsonInclude] [JsonPropertyName("authenticatorId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string AuthenticatorId { get; private set; } /// /// Credential /// [JsonInclude] [JsonPropertyName("credential")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAuthn.Credential Credential { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// Location in the source code. /// public partial class Location : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Script identifier as reported in the `Debugger.scriptParsed`. /// [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { get; set; } /// /// Line number in the script (0-based). /// [JsonPropertyName("lineNumber")] public int LineNumber { get; set; } /// /// Column number in the script (0-based). /// [JsonPropertyName("columnNumber")] public int? ColumnNumber { get; set; } } /// /// Location in the source code. /// public partial class ScriptPosition : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// LineNumber /// [JsonPropertyName("lineNumber")] public int LineNumber { get; set; } /// /// ColumnNumber /// [JsonPropertyName("columnNumber")] public int ColumnNumber { get; set; } } /// /// Location range within one script. /// public partial class LocationRange : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ScriptId /// [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { get; set; } /// /// Start /// [JsonPropertyName("start")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.ScriptPosition Start { get; set; } /// /// End /// [JsonPropertyName("end")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.ScriptPosition End { get; set; } } /// /// JavaScript call frame. Array of call frames form the call stack. /// public partial class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Call frame identifier. This identifier is only valid while the virtual machine is paused. /// [JsonPropertyName("callFrameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CallFrameId { get; set; } /// /// Name of the JavaScript function called on this call frame. /// [JsonPropertyName("functionName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FunctionName { get; set; } /// /// Location in the source code. /// [JsonPropertyName("functionLocation")] public CefSharp.DevTools.Debugger.Location FunctionLocation { get; set; } /// /// Location in the source code. /// [JsonPropertyName("location")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.Location Location { get; set; } /// /// JavaScript script name or url. /// Deprecated in favor of using the `location.scriptId` to resolve the URL via a previously /// sent `Debugger.scriptParsed` event. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Scope chain for this call frame. /// [JsonPropertyName("scopeChain")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ScopeChain { get; set; } /// /// `this` object for this call frame. /// [JsonPropertyName("this")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.RemoteObject This { get; set; } /// /// The value being returned, if the function is at return point. /// [JsonPropertyName("returnValue")] public CefSharp.DevTools.Runtime.RemoteObject ReturnValue { get; set; } /// /// Valid only while the VM is paused and indicates whether this frame /// can be restarted or not. Note that a `true` value here does not /// guarantee that Debugger#restartFrame with this CallFrameId will be /// successful, but it is very likely. /// [JsonPropertyName("canBeRestarted")] public bool? CanBeRestarted { get; set; } } /// /// Scope type. /// public enum ScopeType { /// /// global /// [JsonPropertyName("global")] Global, /// /// local /// [JsonPropertyName("local")] Local, /// /// with /// [JsonPropertyName("with")] With, /// /// closure /// [JsonPropertyName("closure")] Closure, /// /// catch /// [JsonPropertyName("catch")] Catch, /// /// block /// [JsonPropertyName("block")] Block, /// /// script /// [JsonPropertyName("script")] Script, /// /// eval /// [JsonPropertyName("eval")] Eval, /// /// module /// [JsonPropertyName("module")] Module, /// /// wasm-expression-stack /// [JsonPropertyName("wasm-expression-stack")] WasmExpressionStack } /// /// Scope description. /// public partial class Scope : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Scope type. /// [JsonPropertyName("type")] public CefSharp.DevTools.Debugger.ScopeType 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. /// [JsonPropertyName("object")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.RemoteObject Object { get; set; } /// /// Name /// [JsonPropertyName("name")] public string Name { get; set; } /// /// Location in the source code where scope starts /// [JsonPropertyName("startLocation")] public CefSharp.DevTools.Debugger.Location StartLocation { get; set; } /// /// Location in the source code where scope ends /// [JsonPropertyName("endLocation")] public CefSharp.DevTools.Debugger.Location EndLocation { get; set; } } /// /// Search match for resource. /// public partial class SearchMatch : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Line number in resource content. /// [JsonPropertyName("lineNumber")] public double LineNumber { get; set; } /// /// Line with match content. /// [JsonPropertyName("lineContent")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LineContent { get; set; } } /// /// BreakLocationType /// public enum BreakLocationType { /// /// debuggerStatement /// [JsonPropertyName("debuggerStatement")] DebuggerStatement, /// /// call /// [JsonPropertyName("call")] Call, /// /// return /// [JsonPropertyName("return")] Return } /// /// BreakLocation /// public partial class BreakLocation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Script identifier as reported in the `Debugger.scriptParsed`. /// [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { get; set; } /// /// Line number in the script (0-based). /// [JsonPropertyName("lineNumber")] public int LineNumber { get; set; } /// /// Column number in the script (0-based). /// [JsonPropertyName("columnNumber")] public int? ColumnNumber { get; set; } /// /// Type /// [JsonPropertyName("type")] public CefSharp.DevTools.Debugger.BreakLocationType? Type { get; set; } } /// /// WasmDisassemblyChunk /// public partial class WasmDisassemblyChunk : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The next chunk of disassembled lines. /// [JsonPropertyName("lines")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Lines { get; set; } /// /// The bytecode offsets describing the start of each line. /// [JsonPropertyName("bytecodeOffsets")] public int[] BytecodeOffsets { get; set; } } /// /// Enum of possible script languages. /// public enum ScriptLanguage { /// /// JavaScript /// [JsonPropertyName("JavaScript")] JavaScript, /// /// WebAssembly /// [JsonPropertyName("WebAssembly")] WebAssembly } /// /// Type of the debug symbols. /// public enum DebugSymbolsType { /// /// SourceMap /// [JsonPropertyName("SourceMap")] SourceMap, /// /// EmbeddedDWARF /// [JsonPropertyName("EmbeddedDWARF")] EmbeddedDWARF, /// /// ExternalDWARF /// [JsonPropertyName("ExternalDWARF")] ExternalDWARF } /// /// Debug symbols available for a wasm script. /// public partial class DebugSymbols : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type of the debug symbols. /// [JsonPropertyName("type")] public CefSharp.DevTools.Debugger.DebugSymbolsType Type { get; set; } /// /// URL of the external symbol source. /// [JsonPropertyName("externalURL")] public string ExternalURL { get; set; } } /// /// ResolvedBreakpoint /// public partial class ResolvedBreakpoint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Breakpoint unique identifier. /// [JsonPropertyName("breakpointId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string BreakpointId { get; set; } /// /// Actual breakpoint location. /// [JsonPropertyName("location")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.Location Location { get; set; } } /// /// Fired when breakpoint is resolved to an actual script and location. /// Deprecated in favor of `resolvedBreakpoints` in the `scriptParsed` event. /// public class BreakpointResolvedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Breakpoint unique identifier. /// [JsonInclude] [JsonPropertyName("breakpointId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string BreakpointId { get; private set; } /// /// Actual breakpoint location. /// [JsonInclude] [JsonPropertyName("location")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.Location Location { get; private set; } } /// /// Pause reason. /// public enum PausedReason { /// /// ambiguous /// [JsonPropertyName("ambiguous")] Ambiguous, /// /// assert /// [JsonPropertyName("assert")] Assert, /// /// CSPViolation /// [JsonPropertyName("CSPViolation")] CSPViolation, /// /// debugCommand /// [JsonPropertyName("debugCommand")] DebugCommand, /// /// DOM /// [JsonPropertyName("DOM")] DOM, /// /// EventListener /// [JsonPropertyName("EventListener")] EventListener, /// /// exception /// [JsonPropertyName("exception")] Exception, /// /// instrumentation /// [JsonPropertyName("instrumentation")] Instrumentation, /// /// OOM /// [JsonPropertyName("OOM")] OOM, /// /// other /// [JsonPropertyName("other")] Other, /// /// promiseRejection /// [JsonPropertyName("promiseRejection")] PromiseRejection, /// /// XHR /// [JsonPropertyName("XHR")] XHR, /// /// step /// [JsonPropertyName("step")] Step } /// /// Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. /// public class PausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Call stack the virtual machine stopped on. /// [JsonInclude] [JsonPropertyName("callFrames")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList CallFrames { get; private set; } /// /// Pause reason. /// [JsonInclude] [JsonPropertyName("reason")] public CefSharp.DevTools.Debugger.PausedReason Reason { get; private set; } /// /// Object containing break-specific auxiliary properties. /// [JsonInclude] [JsonPropertyName("data")] public object Data { get; private set; } /// /// Hit breakpoints IDs /// [JsonInclude] [JsonPropertyName("hitBreakpoints")] public string[] HitBreakpoints { get; private set; } /// /// Async stack trace, if any. /// [JsonInclude] [JsonPropertyName("asyncStackTrace")] public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace { get; private set; } /// /// Async stack trace, if any. /// [JsonInclude] [JsonPropertyName("asyncStackTraceId")] public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId { get; private set; } /// /// Never present, will be removed. /// [JsonInclude] [JsonPropertyName("asyncCallStackTraceId")] public CefSharp.DevTools.Runtime.StackTraceId AsyncCallStackTraceId { get; private set; } } /// /// Fired when virtual machine fails to parse the script. /// public class ScriptFailedToParseEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier of the script parsed. /// [JsonInclude] [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { get; private set; } /// /// URL or name of the script parsed (if any). /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Line offset of the script within the resource with given URL (for script tags). /// [JsonInclude] [JsonPropertyName("startLine")] public int StartLine { get; private set; } /// /// Column offset of the script within the resource with given URL. /// [JsonInclude] [JsonPropertyName("startColumn")] public int StartColumn { get; private set; } /// /// Last line of the script. /// [JsonInclude] [JsonPropertyName("endLine")] public int EndLine { get; private set; } /// /// Length of the last line of the script. /// [JsonInclude] [JsonPropertyName("endColumn")] public int EndColumn { get; private set; } /// /// Specifies script creation context. /// [JsonInclude] [JsonPropertyName("executionContextId")] public int ExecutionContextId { get; private set; } /// /// Content hash of the script, SHA-256. /// [JsonInclude] [JsonPropertyName("hash")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Hash { get; private set; } /// /// For Wasm modules, the content of the `build_id` custom section. For JavaScript the `debugId` magic comment. /// [JsonInclude] [JsonPropertyName("buildId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string BuildId { get; private set; } /// /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// [JsonInclude] [JsonPropertyName("executionContextAuxData")] public object ExecutionContextAuxData { get; private set; } /// /// URL of source map associated with script (if any). /// [JsonInclude] [JsonPropertyName("sourceMapURL")] public string SourceMapURL { get; private set; } /// /// True, if this script has sourceURL. /// [JsonInclude] [JsonPropertyName("hasSourceURL")] public bool? HasSourceURL { get; private set; } /// /// True, if this script is ES6 module. /// [JsonInclude] [JsonPropertyName("isModule")] public bool? IsModule { get; private set; } /// /// This script length. /// [JsonInclude] [JsonPropertyName("length")] public int? Length { get; private set; } /// /// JavaScript top stack frame of where the script parsed event was triggered if available. /// [JsonInclude] [JsonPropertyName("stackTrace")] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; private set; } /// /// If the scriptLanguage is WebAssembly, the code section offset in the module. /// [JsonInclude] [JsonPropertyName("codeOffset")] public int? CodeOffset { get; private set; } /// /// The language of the script. /// [JsonInclude] [JsonPropertyName("scriptLanguage")] public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage { get; private set; } /// /// The name the embedder supplied for this script. /// [JsonInclude] [JsonPropertyName("embedderName")] public string EmbedderName { get; private set; } } /// /// Fired when virtual machine parses script. This event is also fired for all known and uncollected /// scripts upon enabling debugger. /// public class ScriptParsedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Identifier of the script parsed. /// [JsonInclude] [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { get; private set; } /// /// URL or name of the script parsed (if any). /// [JsonInclude] [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; private set; } /// /// Line offset of the script within the resource with given URL (for script tags). /// [JsonInclude] [JsonPropertyName("startLine")] public int StartLine { get; private set; } /// /// Column offset of the script within the resource with given URL. /// [JsonInclude] [JsonPropertyName("startColumn")] public int StartColumn { get; private set; } /// /// Last line of the script. /// [JsonInclude] [JsonPropertyName("endLine")] public int EndLine { get; private set; } /// /// Length of the last line of the script. /// [JsonInclude] [JsonPropertyName("endColumn")] public int EndColumn { get; private set; } /// /// Specifies script creation context. /// [JsonInclude] [JsonPropertyName("executionContextId")] public int ExecutionContextId { get; private set; } /// /// Content hash of the script, SHA-256. /// [JsonInclude] [JsonPropertyName("hash")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Hash { get; private set; } /// /// For Wasm modules, the content of the `build_id` custom section. For JavaScript the `debugId` magic comment. /// [JsonInclude] [JsonPropertyName("buildId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string BuildId { get; private set; } /// /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// [JsonInclude] [JsonPropertyName("executionContextAuxData")] public object ExecutionContextAuxData { get; private set; } /// /// True, if this script is generated as a result of the live edit operation. /// [JsonInclude] [JsonPropertyName("isLiveEdit")] public bool? IsLiveEdit { get; private set; } /// /// URL of source map associated with script (if any). /// [JsonInclude] [JsonPropertyName("sourceMapURL")] public string SourceMapURL { get; private set; } /// /// True, if this script has sourceURL. /// [JsonInclude] [JsonPropertyName("hasSourceURL")] public bool? HasSourceURL { get; private set; } /// /// True, if this script is ES6 module. /// [JsonInclude] [JsonPropertyName("isModule")] public bool? IsModule { get; private set; } /// /// This script length. /// [JsonInclude] [JsonPropertyName("length")] public int? Length { get; private set; } /// /// JavaScript top stack frame of where the script parsed event was triggered if available. /// [JsonInclude] [JsonPropertyName("stackTrace")] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; private set; } /// /// If the scriptLanguage is WebAssembly, the code section offset in the module. /// [JsonInclude] [JsonPropertyName("codeOffset")] public int? CodeOffset { get; private set; } /// /// The language of the script. /// [JsonInclude] [JsonPropertyName("scriptLanguage")] public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage { get; private set; } /// /// If the scriptLanguage is WebAssembly, the source of debug symbols for the module. /// [JsonInclude] [JsonPropertyName("debugSymbols")] public System.Collections.Generic.IList DebugSymbols { get; private set; } /// /// The name the embedder supplied for this script. /// [JsonInclude] [JsonPropertyName("embedderName")] public string EmbedderName { get; private set; } /// /// The list of set breakpoints in this script if calls to `setBreakpointByUrl` /// matches this script's URL or hash. Clients that use this list can ignore the /// `breakpointResolved` event. They are equivalent. /// [JsonInclude] [JsonPropertyName("resolvedBreakpoints")] public System.Collections.Generic.IList ResolvedBreakpoints { get; private set; } } } namespace CefSharp.DevTools.HeapProfiler { /// /// Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes. /// public partial class SamplingHeapProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Function location. /// [JsonPropertyName("callFrame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.CallFrame CallFrame { get; set; } /// /// Allocations size in bytes for the node excluding children. /// [JsonPropertyName("selfSize")] public double SelfSize { get; set; } /// /// Node id. Ids are unique across all profiles collected between startSampling and stopSampling. /// [JsonPropertyName("id")] public int Id { get; set; } /// /// Child nodes. /// [JsonPropertyName("children")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Children { get; set; } } /// /// A single sample from a sampling profile. /// public partial class SamplingHeapProfileSample : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Allocation size in bytes attributed to the sample. /// [JsonPropertyName("size")] public double Size { get; set; } /// /// Id of the corresponding profile tree node. /// [JsonPropertyName("nodeId")] public int NodeId { get; set; } /// /// Time-ordered sample ordinal number. It is unique across all profiles retrieved /// between startSampling and stopSampling. /// [JsonPropertyName("ordinal")] public double Ordinal { get; set; } } /// /// Sampling profile. /// public partial class SamplingHeapProfile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Head /// [JsonPropertyName("head")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.HeapProfiler.SamplingHeapProfileNode Head { get; set; } /// /// Samples /// [JsonPropertyName("samples")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Samples { get; set; } } /// /// addHeapSnapshotChunk /// public class AddHeapSnapshotChunkEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Chunk /// [JsonInclude] [JsonPropertyName("chunk")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Chunk { get; private set; } } /// /// If heap objects tracking has been started then backend may send update for one or more fragments /// public class HeapStatsUpdateEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// An array of triplets. Each triplet describes a fragment. The first integer is the fragment /// index, the second integer is a total count of objects for the fragment, the third integer is /// a total size of the objects for the fragment. /// [JsonInclude] [JsonPropertyName("statsUpdate")] public int[] StatsUpdate { get; private set; } } /// /// If heap objects tracking has been started then backend regularly sends a current value for last /// seen object id and corresponding timestamp. If the were changes in the heap since last event /// then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. /// public class LastSeenObjectIdEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// LastSeenObjectId /// [JsonInclude] [JsonPropertyName("lastSeenObjectId")] public int LastSeenObjectId { get; private set; } /// /// Timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } /// /// reportHeapSnapshotProgress /// public class ReportHeapSnapshotProgressEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Done /// [JsonInclude] [JsonPropertyName("done")] public int Done { get; private set; } /// /// Total /// [JsonInclude] [JsonPropertyName("total")] public int Total { get; private set; } /// /// Finished /// [JsonInclude] [JsonPropertyName("finished")] public bool? Finished { get; private set; } } } namespace CefSharp.DevTools.Profiler { /// /// Profile node. Holds callsite information, execution statistics and child nodes. /// public partial class ProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Unique id of the node. /// [JsonPropertyName("id")] public int Id { get; set; } /// /// Function location. /// [JsonPropertyName("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. /// [JsonPropertyName("hitCount")] public int? HitCount { get; set; } /// /// Child node ids. /// [JsonPropertyName("children")] public int[] Children { get; set; } /// /// The reason of being not optimized. The function may be deoptimized or marked as don't /// optimize. /// [JsonPropertyName("deoptReason")] public string DeoptReason { get; set; } /// /// An array of source position ticks. /// [JsonPropertyName("positionTicks")] public System.Collections.Generic.IList PositionTicks { get; set; } } /// /// Profile. /// public partial class Profile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The list of profile nodes. First item is the root node. /// [JsonPropertyName("nodes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Nodes { get; set; } /// /// Profiling start timestamp in microseconds. /// [JsonPropertyName("startTime")] public double StartTime { get; set; } /// /// Profiling end timestamp in microseconds. /// [JsonPropertyName("endTime")] public double EndTime { get; set; } /// /// Ids of samples top nodes. /// [JsonPropertyName("samples")] public int[] Samples { get; set; } /// /// Time intervals between adjacent samples in microseconds. The first delta is relative to the /// profile startTime. /// [JsonPropertyName("timeDeltas")] public int[] TimeDeltas { get; set; } } /// /// Specifies a number of samples attributed to a certain source position. /// public partial class PositionTickInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source line number (1-based). /// [JsonPropertyName("line")] public int Line { get; set; } /// /// Number of samples attributed to the source line. /// [JsonPropertyName("ticks")] public int Ticks { get; set; } } /// /// Coverage data for a source range. /// public partial class CoverageRange : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript script source offset for the range start. /// [JsonPropertyName("startOffset")] public int StartOffset { get; set; } /// /// JavaScript script source offset for the range end. /// [JsonPropertyName("endOffset")] public int EndOffset { get; set; } /// /// Collected execution count of the source range. /// [JsonPropertyName("count")] public int Count { get; set; } } /// /// Coverage data for a JavaScript function. /// public partial class FunctionCoverage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript function name. /// [JsonPropertyName("functionName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FunctionName { get; set; } /// /// Source ranges inside the function with coverage data. /// [JsonPropertyName("ranges")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Ranges { get; set; } /// /// Whether coverage data for this function has block granularity. /// [JsonPropertyName("isBlockCoverage")] public bool IsBlockCoverage { get; set; } } /// /// Coverage data for a JavaScript script. /// public partial class ScriptCoverage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript script id. /// [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { get; set; } /// /// JavaScript script name or url. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// Functions contained in the script that has coverage data. /// [JsonPropertyName("functions")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Functions { get; set; } } /// /// consoleProfileFinished /// public class ConsoleProfileFinishedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id /// [JsonInclude] [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; private set; } /// /// Location of console.profileEnd(). /// [JsonInclude] [JsonPropertyName("location")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.Location Location { get; private set; } /// /// Profile /// [JsonInclude] [JsonPropertyName("profile")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Profiler.Profile Profile { get; private set; } /// /// Profile title passed as an argument to console.profile(). /// [JsonInclude] [JsonPropertyName("title")] public string Title { get; private set; } } /// /// Sent when new profile recording is started using console.profile() call. /// public class ConsoleProfileStartedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id /// [JsonInclude] [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; private set; } /// /// Location of console.profile(). /// [JsonInclude] [JsonPropertyName("location")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.Location Location { get; private set; } /// /// Profile title passed as an argument to console.profile(). /// [JsonInclude] [JsonPropertyName("title")] public string Title { get; private set; } } /// /// Reports coverage delta since the last poll (either from an event like this, or from /// `takePreciseCoverage` for the current isolate. May only be sent if precise code /// coverage has been started. This event can be trigged by the embedder to, for example, /// trigger collection of coverage data immediately at a certain point in time. /// public class PreciseCoverageDeltaUpdateEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Monotonically increasing time (in seconds) when the coverage update was taken in the backend. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// Identifier for distinguishing coverage events. /// [JsonInclude] [JsonPropertyName("occasion")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Occasion { get; private set; } /// /// Coverage data for the current isolate. /// [JsonInclude] [JsonPropertyName("result")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Result { get; private set; } } } namespace CefSharp.DevTools.Runtime { /// /// SerializationOptionsSerialization /// public enum SerializationOptionsSerialization { /// /// deep /// [JsonPropertyName("deep")] Deep, /// /// json /// [JsonPropertyName("json")] Json, /// /// idOnly /// [JsonPropertyName("idOnly")] IdOnly } /// /// Represents options for serialization. Overrides `generatePreview` and `returnByValue`. /// public partial class SerializationOptions : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Serialization /// [JsonPropertyName("serialization")] public CefSharp.DevTools.Runtime.SerializationOptionsSerialization Serialization { get; set; } /// /// Deep serialization depth. Default is full depth. Respected only in `deep` serialization mode. /// [JsonPropertyName("maxDepth")] public int? MaxDepth { get; set; } /// /// Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM /// serialization via `maxNodeDepth: integer` and `includeShadowTree: "none" | "open" | "all"`. /// Values can be only of type string or integer. /// [JsonPropertyName("additionalParameters")] public object AdditionalParameters { get; set; } } /// /// DeepSerializedValueType /// public enum DeepSerializedValueType { /// /// undefined /// [JsonPropertyName("undefined")] Undefined, /// /// null /// [JsonPropertyName("null")] Null, /// /// string /// [JsonPropertyName("string")] String, /// /// number /// [JsonPropertyName("number")] Number, /// /// boolean /// [JsonPropertyName("boolean")] Boolean, /// /// bigint /// [JsonPropertyName("bigint")] Bigint, /// /// regexp /// [JsonPropertyName("regexp")] Regexp, /// /// date /// [JsonPropertyName("date")] Date, /// /// symbol /// [JsonPropertyName("symbol")] Symbol, /// /// array /// [JsonPropertyName("array")] Array, /// /// object /// [JsonPropertyName("object")] Object, /// /// function /// [JsonPropertyName("function")] Function, /// /// map /// [JsonPropertyName("map")] Map, /// /// set /// [JsonPropertyName("set")] Set, /// /// weakmap /// [JsonPropertyName("weakmap")] Weakmap, /// /// weakset /// [JsonPropertyName("weakset")] Weakset, /// /// error /// [JsonPropertyName("error")] Error, /// /// proxy /// [JsonPropertyName("proxy")] Proxy, /// /// promise /// [JsonPropertyName("promise")] Promise, /// /// typedarray /// [JsonPropertyName("typedarray")] Typedarray, /// /// arraybuffer /// [JsonPropertyName("arraybuffer")] Arraybuffer, /// /// node /// [JsonPropertyName("node")] Node, /// /// window /// [JsonPropertyName("window")] Window, /// /// generator /// [JsonPropertyName("generator")] Generator } /// /// Represents deep serialized value. /// public partial class DeepSerializedValue : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type /// [JsonPropertyName("type")] public CefSharp.DevTools.Runtime.DeepSerializedValueType Type { get; set; } /// /// Value /// [JsonPropertyName("value")] public object Value { get; set; } /// /// ObjectId /// [JsonPropertyName("objectId")] public string ObjectId { get; set; } /// /// Set if value reference met more then once during serialization. In such /// case, value is provided only to one of the serialized values. Unique /// per value in the scope of one CDP call. /// [JsonPropertyName("weakLocalObjectReference")] public int? WeakLocalObjectReference { get; set; } } /// /// Object type. /// public enum RemoteObjectType { /// /// object /// [JsonPropertyName("object")] Object, /// /// function /// [JsonPropertyName("function")] Function, /// /// undefined /// [JsonPropertyName("undefined")] Undefined, /// /// string /// [JsonPropertyName("string")] String, /// /// number /// [JsonPropertyName("number")] Number, /// /// boolean /// [JsonPropertyName("boolean")] Boolean, /// /// symbol /// [JsonPropertyName("symbol")] Symbol, /// /// bigint /// [JsonPropertyName("bigint")] Bigint } /// /// Object subtype hint. Specified for `object` type values only. /// NOTE: If you change anything here, make sure to also update /// `subtype` in `ObjectPreview` and `PropertyPreview` below. /// public enum RemoteObjectSubtype { /// /// array /// [JsonPropertyName("array")] Array, /// /// null /// [JsonPropertyName("null")] Null, /// /// node /// [JsonPropertyName("node")] Node, /// /// regexp /// [JsonPropertyName("regexp")] Regexp, /// /// date /// [JsonPropertyName("date")] Date, /// /// map /// [JsonPropertyName("map")] Map, /// /// set /// [JsonPropertyName("set")] Set, /// /// weakmap /// [JsonPropertyName("weakmap")] Weakmap, /// /// weakset /// [JsonPropertyName("weakset")] Weakset, /// /// iterator /// [JsonPropertyName("iterator")] Iterator, /// /// generator /// [JsonPropertyName("generator")] Generator, /// /// error /// [JsonPropertyName("error")] Error, /// /// proxy /// [JsonPropertyName("proxy")] Proxy, /// /// promise /// [JsonPropertyName("promise")] Promise, /// /// typedarray /// [JsonPropertyName("typedarray")] Typedarray, /// /// arraybuffer /// [JsonPropertyName("arraybuffer")] Arraybuffer, /// /// dataview /// [JsonPropertyName("dataview")] Dataview, /// /// webassemblymemory /// [JsonPropertyName("webassemblymemory")] Webassemblymemory, /// /// wasmvalue /// [JsonPropertyName("wasmvalue")] Wasmvalue, /// /// trustedtype /// [JsonPropertyName("trustedtype")] Trustedtype } /// /// Mirror object referencing original JavaScript object. /// public partial class RemoteObject : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Object type. /// [JsonPropertyName("type")] public CefSharp.DevTools.Runtime.RemoteObjectType Type { get; set; } /// /// Object subtype hint. Specified for `object` type values only. /// NOTE: If you change anything here, make sure to also update /// `subtype` in `ObjectPreview` and `PropertyPreview` below. /// [JsonPropertyName("subtype")] public CefSharp.DevTools.Runtime.RemoteObjectSubtype? Subtype { get; set; } /// /// Object class (constructor) name. Specified for `object` type values only. /// [JsonPropertyName("className")] public string ClassName { get; set; } /// /// Remote object value in case of primitive values or JSON values (if it was requested). /// [JsonPropertyName("value")] public object Value { get; set; } /// /// Primitive value which can not be JSON-stringified does not have `value`, but gets this /// property. /// [JsonPropertyName("unserializableValue")] public string UnserializableValue { get; set; } /// /// String representation of the object. /// [JsonPropertyName("description")] public string Description { get; set; } /// /// Deep serialized value. /// [JsonPropertyName("deepSerializedValue")] public CefSharp.DevTools.Runtime.DeepSerializedValue DeepSerializedValue { get; set; } /// /// Unique object identifier (for non-primitive values). /// [JsonPropertyName("objectId")] public string ObjectId { get; set; } /// /// Preview containing abbreviated property values. Specified for `object` type values only. /// [JsonPropertyName("preview")] public CefSharp.DevTools.Runtime.ObjectPreview Preview { get; set; } /// /// CustomPreview /// [JsonPropertyName("customPreview")] public CefSharp.DevTools.Runtime.CustomPreview CustomPreview { get; set; } } /// /// CustomPreview /// public partial class CustomPreview : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The JSON-stringified result of formatter.header(object, config) call. /// It contains json ML array that represents RemoteObject. /// [JsonPropertyName("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. /// [JsonPropertyName("bodyGetterId")] public string BodyGetterId { get; set; } } /// /// Object type. /// public enum ObjectPreviewType { /// /// object /// [JsonPropertyName("object")] Object, /// /// function /// [JsonPropertyName("function")] Function, /// /// undefined /// [JsonPropertyName("undefined")] Undefined, /// /// string /// [JsonPropertyName("string")] String, /// /// number /// [JsonPropertyName("number")] Number, /// /// boolean /// [JsonPropertyName("boolean")] Boolean, /// /// symbol /// [JsonPropertyName("symbol")] Symbol, /// /// bigint /// [JsonPropertyName("bigint")] Bigint } /// /// Object subtype hint. Specified for `object` type values only. /// public enum ObjectPreviewSubtype { /// /// array /// [JsonPropertyName("array")] Array, /// /// null /// [JsonPropertyName("null")] Null, /// /// node /// [JsonPropertyName("node")] Node, /// /// regexp /// [JsonPropertyName("regexp")] Regexp, /// /// date /// [JsonPropertyName("date")] Date, /// /// map /// [JsonPropertyName("map")] Map, /// /// set /// [JsonPropertyName("set")] Set, /// /// weakmap /// [JsonPropertyName("weakmap")] Weakmap, /// /// weakset /// [JsonPropertyName("weakset")] Weakset, /// /// iterator /// [JsonPropertyName("iterator")] Iterator, /// /// generator /// [JsonPropertyName("generator")] Generator, /// /// error /// [JsonPropertyName("error")] Error, /// /// proxy /// [JsonPropertyName("proxy")] Proxy, /// /// promise /// [JsonPropertyName("promise")] Promise, /// /// typedarray /// [JsonPropertyName("typedarray")] Typedarray, /// /// arraybuffer /// [JsonPropertyName("arraybuffer")] Arraybuffer, /// /// dataview /// [JsonPropertyName("dataview")] Dataview, /// /// webassemblymemory /// [JsonPropertyName("webassemblymemory")] Webassemblymemory, /// /// wasmvalue /// [JsonPropertyName("wasmvalue")] Wasmvalue, /// /// trustedtype /// [JsonPropertyName("trustedtype")] Trustedtype } /// /// Object containing abbreviated remote object value. /// public partial class ObjectPreview : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Object type. /// [JsonPropertyName("type")] public CefSharp.DevTools.Runtime.ObjectPreviewType Type { get; set; } /// /// Object subtype hint. Specified for `object` type values only. /// [JsonPropertyName("subtype")] public CefSharp.DevTools.Runtime.ObjectPreviewSubtype? Subtype { get; set; } /// /// String representation of the object. /// [JsonPropertyName("description")] public string Description { get; set; } /// /// True iff some of the properties or entries of the original object did not fit. /// [JsonPropertyName("overflow")] public bool Overflow { get; set; } /// /// List of the properties. /// [JsonPropertyName("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. /// [JsonPropertyName("entries")] public System.Collections.Generic.IList Entries { get; set; } } /// /// Object type. Accessor means that the property itself is an accessor property. /// public enum PropertyPreviewType { /// /// object /// [JsonPropertyName("object")] Object, /// /// function /// [JsonPropertyName("function")] Function, /// /// undefined /// [JsonPropertyName("undefined")] Undefined, /// /// string /// [JsonPropertyName("string")] String, /// /// number /// [JsonPropertyName("number")] Number, /// /// boolean /// [JsonPropertyName("boolean")] Boolean, /// /// symbol /// [JsonPropertyName("symbol")] Symbol, /// /// accessor /// [JsonPropertyName("accessor")] Accessor, /// /// bigint /// [JsonPropertyName("bigint")] Bigint } /// /// Object subtype hint. Specified for `object` type values only. /// public enum PropertyPreviewSubtype { /// /// array /// [JsonPropertyName("array")] Array, /// /// null /// [JsonPropertyName("null")] Null, /// /// node /// [JsonPropertyName("node")] Node, /// /// regexp /// [JsonPropertyName("regexp")] Regexp, /// /// date /// [JsonPropertyName("date")] Date, /// /// map /// [JsonPropertyName("map")] Map, /// /// set /// [JsonPropertyName("set")] Set, /// /// weakmap /// [JsonPropertyName("weakmap")] Weakmap, /// /// weakset /// [JsonPropertyName("weakset")] Weakset, /// /// iterator /// [JsonPropertyName("iterator")] Iterator, /// /// generator /// [JsonPropertyName("generator")] Generator, /// /// error /// [JsonPropertyName("error")] Error, /// /// proxy /// [JsonPropertyName("proxy")] Proxy, /// /// promise /// [JsonPropertyName("promise")] Promise, /// /// typedarray /// [JsonPropertyName("typedarray")] Typedarray, /// /// arraybuffer /// [JsonPropertyName("arraybuffer")] Arraybuffer, /// /// dataview /// [JsonPropertyName("dataview")] Dataview, /// /// webassemblymemory /// [JsonPropertyName("webassemblymemory")] Webassemblymemory, /// /// wasmvalue /// [JsonPropertyName("wasmvalue")] Wasmvalue, /// /// trustedtype /// [JsonPropertyName("trustedtype")] Trustedtype } /// /// PropertyPreview /// public partial class PropertyPreview : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Property name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// Object type. Accessor means that the property itself is an accessor property. /// [JsonPropertyName("type")] public CefSharp.DevTools.Runtime.PropertyPreviewType Type { get; set; } /// /// User-friendly property value string. /// [JsonPropertyName("value")] public string Value { get; set; } /// /// Nested value preview. /// [JsonPropertyName("valuePreview")] public CefSharp.DevTools.Runtime.ObjectPreview ValuePreview { get; set; } /// /// Object subtype hint. Specified for `object` type values only. /// [JsonPropertyName("subtype")] public CefSharp.DevTools.Runtime.PropertyPreviewSubtype? Subtype { get; set; } } /// /// EntryPreview /// public partial class EntryPreview : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Preview of the key. Specified for map-like collection entries. /// [JsonPropertyName("key")] public CefSharp.DevTools.Runtime.ObjectPreview Key { get; set; } /// /// Preview of the value. /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.ObjectPreview Value { get; set; } } /// /// Object property descriptor. /// public partial class PropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Property name or symbol description. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// The value associated with the property. /// [JsonPropertyName("value")] public CefSharp.DevTools.Runtime.RemoteObject Value { get; set; } /// /// True if the value associated with the property may be changed (data descriptors only). /// [JsonPropertyName("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). /// [JsonPropertyName("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). /// [JsonPropertyName("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. /// [JsonPropertyName("configurable")] public bool Configurable { get; set; } /// /// True if this property shows up during enumeration of the properties on the corresponding /// object. /// [JsonPropertyName("enumerable")] public bool Enumerable { get; set; } /// /// True if the result was thrown during the evaluation. /// [JsonPropertyName("wasThrown")] public bool? WasThrown { get; set; } /// /// True if the property is owned for the object. /// [JsonPropertyName("isOwn")] public bool? IsOwn { get; set; } /// /// Property symbol object, if the property is of the `symbol` type. /// [JsonPropertyName("symbol")] public CefSharp.DevTools.Runtime.RemoteObject Symbol { get; set; } } /// /// Object internal property descriptor. This property isn't normally visible in JavaScript code. /// public partial class InternalPropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Conventional property name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// The value associated with the property. /// [JsonPropertyName("value")] public CefSharp.DevTools.Runtime.RemoteObject Value { get; set; } } /// /// Object private field descriptor. /// public partial class PrivatePropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Private property name. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// The value associated with the private property. /// [JsonPropertyName("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). /// [JsonPropertyName("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). /// [JsonPropertyName("set")] public CefSharp.DevTools.Runtime.RemoteObject Set { get; set; } } /// /// Represents function call argument. Either remote object id `objectId`, primitive `value`, /// unserializable primitive value or neither of (for undefined) them should be specified. /// public partial class CallArgument : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Primitive value or serializable javascript object. /// [JsonPropertyName("value")] public object Value { get; set; } /// /// Primitive value which can not be JSON-stringified. /// [JsonPropertyName("unserializableValue")] public string UnserializableValue { get; set; } /// /// Remote object handle. /// [JsonPropertyName("objectId")] public string ObjectId { get; set; } } /// /// Description of an isolated world. /// public partial 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. /// [JsonPropertyName("id")] public int Id { get; set; } /// /// Execution context origin. /// [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { get; set; } /// /// Human readable name describing given context. /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; set; } /// /// A system-unique execution context identifier. Unlike the id, this is unique across /// multiple processes, so can be reliably used to identify specific context while backend /// performs a cross-process navigation. /// [JsonPropertyName("uniqueId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string UniqueId { get; set; } /// /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// [JsonPropertyName("auxData")] public object AuxData { get; set; } } /// /// Detailed information about exception (or error) that was thrown during script compilation or /// execution. /// public partial class ExceptionDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Exception id. /// [JsonPropertyName("exceptionId")] public int ExceptionId { get; set; } /// /// Exception text, which should be used together with exception object when available. /// [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { get; set; } /// /// Line number of the exception location (0-based). /// [JsonPropertyName("lineNumber")] public int LineNumber { get; set; } /// /// Column number of the exception location (0-based). /// [JsonPropertyName("columnNumber")] public int ColumnNumber { get; set; } /// /// Script ID of the exception location. /// [JsonPropertyName("scriptId")] public string ScriptId { get; set; } /// /// URL of the exception location, to be used when the script was not reported. /// [JsonPropertyName("url")] public string Url { get; set; } /// /// JavaScript stack trace if available. /// [JsonPropertyName("stackTrace")] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; set; } /// /// Exception object if available. /// [JsonPropertyName("exception")] public CefSharp.DevTools.Runtime.RemoteObject Exception { get; set; } /// /// Identifier of the context where exception happened. /// [JsonPropertyName("executionContextId")] public int? ExecutionContextId { get; set; } /// /// Dictionary with entries of meta data that the client associated /// with this exception, such as information about associated network /// requests, etc. /// [JsonPropertyName("exceptionMetaData")] public object ExceptionMetaData { get; set; } } /// /// Stack entry for runtime errors and assertions. /// public partial class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript function name. /// [JsonPropertyName("functionName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FunctionName { get; set; } /// /// JavaScript script id. /// [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { get; set; } /// /// JavaScript script name or url. /// [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { get; set; } /// /// JavaScript script line number (0-based). /// [JsonPropertyName("lineNumber")] public int LineNumber { get; set; } /// /// JavaScript script column number (0-based). /// [JsonPropertyName("columnNumber")] public int ColumnNumber { get; set; } } /// /// Call frames for assertions or error messages. /// public partial 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. /// [JsonPropertyName("description")] public string Description { get; set; } /// /// JavaScript function name. /// [JsonPropertyName("callFrames")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList CallFrames { get; set; } /// /// Asynchronous JavaScript stack trace that preceded this stack, if available. /// [JsonPropertyName("parent")] public CefSharp.DevTools.Runtime.StackTrace Parent { get; set; } /// /// Asynchronous JavaScript stack trace that preceded this stack, if available. /// [JsonPropertyName("parentId")] public CefSharp.DevTools.Runtime.StackTraceId ParentId { get; set; } } /// /// 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 partial class StackTraceId : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Id /// [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { get; set; } /// /// DebuggerId /// [JsonPropertyName("debuggerId")] public string DebuggerId { get; set; } } /// /// Notification is issued every time when binding is called. /// public class BindingCalledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Name /// [JsonInclude] [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { get; private set; } /// /// Payload /// [JsonInclude] [JsonPropertyName("payload")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Payload { get; private set; } /// /// Identifier of the context where the call was made. /// [JsonInclude] [JsonPropertyName("executionContextId")] public int ExecutionContextId { get; private set; } } /// /// Type of the call. /// public enum ConsoleAPICalledType { /// /// log /// [JsonPropertyName("log")] Log, /// /// debug /// [JsonPropertyName("debug")] Debug, /// /// info /// [JsonPropertyName("info")] Info, /// /// error /// [JsonPropertyName("error")] Error, /// /// warning /// [JsonPropertyName("warning")] Warning, /// /// dir /// [JsonPropertyName("dir")] Dir, /// /// dirxml /// [JsonPropertyName("dirxml")] Dirxml, /// /// table /// [JsonPropertyName("table")] Table, /// /// trace /// [JsonPropertyName("trace")] Trace, /// /// clear /// [JsonPropertyName("clear")] Clear, /// /// startGroup /// [JsonPropertyName("startGroup")] StartGroup, /// /// startGroupCollapsed /// [JsonPropertyName("startGroupCollapsed")] StartGroupCollapsed, /// /// endGroup /// [JsonPropertyName("endGroup")] EndGroup, /// /// assert /// [JsonPropertyName("assert")] Assert, /// /// profile /// [JsonPropertyName("profile")] Profile, /// /// profileEnd /// [JsonPropertyName("profileEnd")] ProfileEnd, /// /// count /// [JsonPropertyName("count")] Count, /// /// timeEnd /// [JsonPropertyName("timeEnd")] TimeEnd } /// /// Issued when console API was called. /// public class ConsoleAPICalledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Type of the call. /// [JsonInclude] [JsonPropertyName("type")] public CefSharp.DevTools.Runtime.ConsoleAPICalledType Type { get; private set; } /// /// Call arguments. /// [JsonInclude] [JsonPropertyName("args")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Args { get; private set; } /// /// Identifier of the context where the call was made. /// [JsonInclude] [JsonPropertyName("executionContextId")] public int ExecutionContextId { get; private set; } /// /// Call timestamp. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// Stack trace captured when the call was made. The async stack chain is automatically reported for /// the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call /// chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field. /// [JsonInclude] [JsonPropertyName("stackTrace")] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; private set; } /// /// Console context descriptor for calls on non-default console context (not console.*): /// 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call /// on named context. /// [JsonInclude] [JsonPropertyName("context")] public string Context { get; private set; } } /// /// Issued when unhandled exception was revoked. /// public class ExceptionRevokedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Reason describing why exception was revoked. /// [JsonInclude] [JsonPropertyName("reason")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Reason { get; private set; } /// /// The id of revoked exception, as reported in `exceptionThrown`. /// [JsonInclude] [JsonPropertyName("exceptionId")] public int ExceptionId { get; private set; } } /// /// Issued when exception was thrown and unhandled. /// public class ExceptionThrownEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Timestamp of the exception. /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } /// /// ExceptionDetails /// [JsonInclude] [JsonPropertyName("exceptionDetails")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; private set; } } /// /// Issued when new execution context is created. /// public class ExecutionContextCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// A newly created execution context. /// [JsonInclude] [JsonPropertyName("context")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.ExecutionContextDescription Context { get; private set; } } /// /// Issued when execution context is destroyed. /// public class ExecutionContextDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Id of the destroyed context /// [JsonInclude] [JsonPropertyName("executionContextId")] public int ExecutionContextId { get; private set; } /// /// Unique Id of the destroyed context /// [JsonInclude] [JsonPropertyName("executionContextUniqueId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ExecutionContextUniqueId { get; private set; } } /// /// Issued when object should be inspected (for example, as a result of inspect() command line API /// call). /// public class InspectRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// Object /// [JsonInclude] [JsonPropertyName("object")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.RemoteObject Object { get; private set; } /// /// Hints /// [JsonInclude] [JsonPropertyName("hints")] [System.Diagnostics.CodeAnalysis.DisallowNull] public object Hints { get; private set; } /// /// Identifier of the context where the call was made. /// [JsonInclude] [JsonPropertyName("executionContextId")] public int? ExecutionContextId { get; private set; } } } namespace CefSharp.DevTools.Accessibility { /// /// GetPartialAXTreeResponse /// public class GetPartialAXTreeResponse : DevToolsDomainResponseBase { /// /// nodes /// [JsonInclude] [JsonPropertyName("nodes")] public System.Collections.Generic.IList Nodes { get; private set; } } } namespace CefSharp.DevTools.Accessibility { /// /// GetFullAXTreeResponse /// public class GetFullAXTreeResponse : DevToolsDomainResponseBase { /// /// nodes /// [JsonInclude] [JsonPropertyName("nodes")] public System.Collections.Generic.IList Nodes { get; private set; } } } namespace CefSharp.DevTools.Accessibility { /// /// GetRootAXNodeResponse /// public class GetRootAXNodeResponse : DevToolsDomainResponseBase { /// /// node /// [JsonInclude] [JsonPropertyName("node")] public CefSharp.DevTools.Accessibility.AXNode Node { get; private set; } } } namespace CefSharp.DevTools.Accessibility { /// /// GetAXNodeAndAncestorsResponse /// public class GetAXNodeAndAncestorsResponse : DevToolsDomainResponseBase { /// /// nodes /// [JsonInclude] [JsonPropertyName("nodes")] public System.Collections.Generic.IList Nodes { get; private set; } } } namespace CefSharp.DevTools.Accessibility { /// /// GetChildAXNodesResponse /// public class GetChildAXNodesResponse : DevToolsDomainResponseBase { /// /// nodes /// [JsonInclude] [JsonPropertyName("nodes")] public System.Collections.Generic.IList Nodes { get; private set; } } } namespace CefSharp.DevTools.Accessibility { /// /// QueryAXTreeResponse /// public class QueryAXTreeResponse : DevToolsDomainResponseBase { /// /// nodes /// [JsonInclude] [JsonPropertyName("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; /// /// Accessibility /// /// DevToolsClient public AccessibilityClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// The loadComplete event mirrors the load complete event sent by the browser to assistive /// technology when the web page has finished loading. /// public event System.EventHandler LoadComplete { add { _client.AddEventHandler("Accessibility.loadComplete", value); } remove { _client.RemoveEventHandler("Accessibility.loadComplete", value); } } /// /// The nodesUpdated event is sent every time a previously requested node has changed the in tree. /// public event System.EventHandler NodesUpdated { add { _client.AddEventHandler("Accessibility.nodesUpdated", value); } remove { _client.RemoveEventHandler("Accessibility.nodesUpdated", value); } } /// /// Disables the accessibility domain. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Accessibility.disable", dict); } /// /// 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 System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Accessibility.enable", dict); } 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 node's ancestors, siblings and children. Defaults to true. /// returns System.Threading.Tasks.Task<GetPartialAXTreeResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Accessibility.getPartialAXTree", dict); } partial void ValidateGetFullAXTree(int? depth = null, string frameId = null); /// /// Fetches the entire accessibility tree for the root Document /// /// The maximum depth at which descendants of the root node should be retrieved.If omitted, the full tree is returned. /// The frame for whose document the AX tree should be retrieved.If omitted, the root frame is used. /// returns System.Threading.Tasks.Task<GetFullAXTreeResponse> public System.Threading.Tasks.Task GetFullAXTreeAsync(int? depth = null, string frameId = null) { ValidateGetFullAXTree(depth, frameId); var dict = new System.Collections.Generic.Dictionary(); if (depth.HasValue) { dict.Add("depth", depth.Value); } if (!(string.IsNullOrEmpty(frameId))) { dict.Add("frameId", frameId); } return _client.ExecuteDevToolsMethodAsync("Accessibility.getFullAXTree", dict); } partial void ValidateGetRootAXNode(string frameId = null); /// /// Fetches the root node. /// Requires `enable()` to have been called previously. /// /// The frame in whose document the node resides.If omitted, the root frame is used. /// returns System.Threading.Tasks.Task<GetRootAXNodeResponse> public System.Threading.Tasks.Task GetRootAXNodeAsync(string frameId = null) { ValidateGetRootAXNode(frameId); var dict = new System.Collections.Generic.Dictionary(); if (!(string.IsNullOrEmpty(frameId))) { dict.Add("frameId", frameId); } return _client.ExecuteDevToolsMethodAsync("Accessibility.getRootAXNode", dict); } partial void ValidateGetAXNodeAndAncestors(int? nodeId = null, int? backendNodeId = null, string objectId = null); /// /// Fetches a node and all ancestors up to and including the root. /// Requires `enable()` to have been called previously. /// /// Identifier of the node to get. /// Identifier of the backend node to get. /// JavaScript object id of the node wrapper to get. /// returns System.Threading.Tasks.Task<GetAXNodeAndAncestorsResponse> public System.Threading.Tasks.Task GetAXNodeAndAncestorsAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null) { ValidateGetAXNodeAndAncestors(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); } return _client.ExecuteDevToolsMethodAsync("Accessibility.getAXNodeAndAncestors", dict); } partial void ValidateGetChildAXNodes(string id, string frameId = null); /// /// Fetches a particular accessibility node by AXNodeId. /// Requires `enable()` to have been called previously. /// /// id /// The frame in whose document the node resides.If omitted, the root frame is used. /// returns System.Threading.Tasks.Task<GetChildAXNodesResponse> public System.Threading.Tasks.Task GetChildAXNodesAsync(string id, string frameId = null) { ValidateGetChildAXNodes(id, frameId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("id", id); if (!(string.IsNullOrEmpty(frameId))) { dict.Add("frameId", frameId); } return _client.ExecuteDevToolsMethodAsync("Accessibility.getChildAXNodes", dict); } 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 match 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 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); } return _client.ExecuteDevToolsMethodAsync("Accessibility.queryAXTree", dict); } } } namespace CefSharp.DevTools.Animation { /// /// GetCurrentTimeResponse /// public class GetCurrentTimeResponse : DevToolsDomainResponseBase { /// /// currentTime /// [JsonInclude] [JsonPropertyName("currentTime")] public double CurrentTime { get; private set; } } } namespace CefSharp.DevTools.Animation { /// /// GetPlaybackRateResponse /// public class GetPlaybackRateResponse : DevToolsDomainResponseBase { /// /// playbackRate /// [JsonInclude] [JsonPropertyName("playbackRate")] public double PlaybackRate { get; private set; } } } namespace CefSharp.DevTools.Animation { /// /// ResolveAnimationResponse /// public class ResolveAnimationResponse : DevToolsDomainResponseBase { /// /// remoteObject /// [JsonInclude] [JsonPropertyName("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; /// /// Animation /// /// DevToolsClient public AnimationClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Event for when an animation has been cancelled. /// public event System.EventHandler AnimationCanceled { add { _client.AddEventHandler("Animation.animationCanceled", value); } remove { _client.RemoveEventHandler("Animation.animationCanceled", value); } } /// /// Event for each animation that has been created. /// public event System.EventHandler AnimationCreated { add { _client.AddEventHandler("Animation.animationCreated", value); } remove { _client.RemoveEventHandler("Animation.animationCreated", value); } } /// /// Event for animation that has been started. /// public event System.EventHandler AnimationStarted { add { _client.AddEventHandler("Animation.animationStarted", value); } remove { _client.RemoveEventHandler("Animation.animationStarted", value); } } /// /// Event for animation that has been updated. /// public event System.EventHandler AnimationUpdated { add { _client.AddEventHandler("Animation.animationUpdated", value); } remove { _client.RemoveEventHandler("Animation.animationUpdated", value); } } /// /// Disables animation domain notifications. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Animation.disable", dict); } /// /// Enables animation domain notifications. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Animation.enable", dict); } partial void ValidateGetCurrentTime(string id); /// /// Returns the current time of the an animation. /// /// Id of animation. /// returns System.Threading.Tasks.Task<GetCurrentTimeResponse> public System.Threading.Tasks.Task GetCurrentTimeAsync(string id) { ValidateGetCurrentTime(id); var dict = new System.Collections.Generic.Dictionary(); dict.Add("id", id); return _client.ExecuteDevToolsMethodAsync("Animation.getCurrentTime", dict); } /// /// Gets the playback rate of the document timeline. /// /// returns System.Threading.Tasks.Task<GetPlaybackRateResponse> public System.Threading.Tasks.Task GetPlaybackRateAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Animation.getPlaybackRate", dict); } 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 System.Threading.Tasks.Task ReleaseAnimationsAsync(string[] animations) { ValidateReleaseAnimations(animations); var dict = new System.Collections.Generic.Dictionary(); dict.Add("animations", animations); return _client.ExecuteDevToolsMethodAsync("Animation.releaseAnimations", dict); } partial void ValidateResolveAnimation(string animationId); /// /// Gets the remote object of the Animation. /// /// Animation id. /// returns System.Threading.Tasks.Task<ResolveAnimationResponse> public System.Threading.Tasks.Task ResolveAnimationAsync(string animationId) { ValidateResolveAnimation(animationId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("animationId", animationId); return _client.ExecuteDevToolsMethodAsync("Animation.resolveAnimation", dict); } partial void ValidateSeekAnimations(string[] animations, double 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 System.Threading.Tasks.Task SeekAnimationsAsync(string[] animations, double currentTime) { ValidateSeekAnimations(animations, currentTime); var dict = new System.Collections.Generic.Dictionary(); dict.Add("animations", animations); dict.Add("currentTime", currentTime); return _client.ExecuteDevToolsMethodAsync("Animation.seekAnimations", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("Animation.setPaused", dict); } partial void ValidateSetPlaybackRate(double playbackRate); /// /// Sets the playback rate of the document timeline. /// /// Playback rate for animations on page /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetPlaybackRateAsync(double playbackRate) { ValidateSetPlaybackRate(playbackRate); var dict = new System.Collections.Generic.Dictionary(); dict.Add("playbackRate", playbackRate); return _client.ExecuteDevToolsMethodAsync("Animation.setPlaybackRate", dict); } partial void ValidateSetTiming(string animationId, double duration, double 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 System.Threading.Tasks.Task SetTimingAsync(string animationId, double duration, double delay) { ValidateSetTiming(animationId, duration, delay); var dict = new System.Collections.Generic.Dictionary(); dict.Add("animationId", animationId); dict.Add("duration", duration); dict.Add("delay", delay); return _client.ExecuteDevToolsMethodAsync("Animation.setTiming", dict); } } } namespace CefSharp.DevTools.Audits { /// /// GetEncodedResponseResponse /// public class GetEncodedResponseResponse : DevToolsDomainResponseBase { /// /// body /// [JsonInclude] [JsonPropertyName("body")] public byte[] Body { get; private set; } /// /// originalSize /// [JsonInclude] [JsonPropertyName("originalSize")] public int OriginalSize { get; private set; } /// /// encodedSize /// [JsonInclude] [JsonPropertyName("encodedSize")] public int EncodedSize { get; private set; } } } namespace CefSharp.DevTools.Audits { /// /// CheckFormsIssuesResponse /// public class CheckFormsIssuesResponse : DevToolsDomainResponseBase { /// /// formIssues /// [JsonInclude] [JsonPropertyName("formIssues")] public System.Collections.Generic.IList FormIssues { get; private set; } } } namespace CefSharp.DevTools.Audits { using System.Linq; /// /// The encoding to use. /// public enum GetEncodedResponseEncoding { /// /// webp /// [JsonPropertyName("webp")] Webp, /// /// jpeg /// [JsonPropertyName("jpeg")] Jpeg, /// /// png /// [JsonPropertyName("png")] Png } /// /// Audits domain allows investigation of page violations and possible improvements. /// public partial class AuditsClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Audits /// /// DevToolsClient public AuditsClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// IssueAdded /// public event System.EventHandler IssueAdded { add { _client.AddEventHandler("Audits.issueAdded", value); } remove { _client.RemoveEventHandler("Audits.issueAdded", value); } } partial void ValidateGetEncodedResponse(string requestId, CefSharp.DevTools.Audits.GetEncodedResponseEncoding encoding, double? 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 System.Threading.Tasks.Task GetEncodedResponseAsync(string requestId, CefSharp.DevTools.Audits.GetEncodedResponseEncoding encoding, double? quality = null, bool? sizeOnly = null) { ValidateGetEncodedResponse(requestId, encoding, quality, sizeOnly); var dict = new System.Collections.Generic.Dictionary(); dict.Add("requestId", requestId); dict.Add("encoding", EnumToString(encoding)); if (quality.HasValue) { dict.Add("quality", quality.Value); } if (sizeOnly.HasValue) { dict.Add("sizeOnly", sizeOnly.Value); } return _client.ExecuteDevToolsMethodAsync("Audits.getEncodedResponse", dict); } /// /// Disables issues domain, prevents further issues from being reported to the client. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Audits.disable", dict); } /// /// 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 System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Audits.enable", dict); } partial void ValidateCheckContrast(bool? reportAAA = null); /// /// Runs the contrast check for the target page. Found issues are reported /// using Audits.issueAdded event. /// /// Whether to report WCAG AAA level issues. Default is false. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task CheckContrastAsync(bool? reportAAA = null) { ValidateCheckContrast(reportAAA); var dict = new System.Collections.Generic.Dictionary(); if (reportAAA.HasValue) { dict.Add("reportAAA", reportAAA.Value); } return _client.ExecuteDevToolsMethodAsync("Audits.checkContrast", dict); } /// /// Runs the form issues check for the target page. Found issues are reported /// using Audits.issueAdded event. /// /// returns System.Threading.Tasks.Task<CheckFormsIssuesResponse> public System.Threading.Tasks.Task CheckFormsIssuesAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Audits.checkFormsIssues", dict); } } } namespace CefSharp.DevTools.Autofill { using System.Linq; /// /// Defines commands and events for Autofill. /// public partial class AutofillClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Autofill /// /// DevToolsClient public AutofillClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Emitted when an address form is filled. /// public event System.EventHandler AddressFormFilled { add { _client.AddEventHandler("Autofill.addressFormFilled", value); } remove { _client.RemoveEventHandler("Autofill.addressFormFilled", value); } } partial void ValidateTrigger(int fieldId, string frameId = null, CefSharp.DevTools.Autofill.CreditCard card = null, CefSharp.DevTools.Autofill.Address address = null); /// /// Trigger autofill on a form identified by the fieldId. /// If the field and related form cannot be autofilled, returns an error. /// /// Identifies a field that serves as an anchor for autofill. /// Identifies the frame that field belongs to. /// Credit card information to fill out the form. Credit card data is not saved. Mutually exclusive with `address`. /// Address to fill out the form. Address data is not saved. Mutually exclusive with `card`. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task TriggerAsync(int fieldId, string frameId = null, CefSharp.DevTools.Autofill.CreditCard card = null, CefSharp.DevTools.Autofill.Address address = null) { ValidateTrigger(fieldId, frameId, card, address); var dict = new System.Collections.Generic.Dictionary(); dict.Add("fieldId", fieldId); if (!(string.IsNullOrEmpty(frameId))) { dict.Add("frameId", frameId); } if ((card) != (null)) { dict.Add("card", card.ToDictionary()); } if ((address) != (null)) { dict.Add("address", address.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("Autofill.trigger", dict); } partial void ValidateSetAddresses(System.Collections.Generic.IList addresses); /// /// Set addresses so that developers can verify their forms implementation. /// /// addresses /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetAddressesAsync(System.Collections.Generic.IList addresses) { ValidateSetAddresses(addresses); var dict = new System.Collections.Generic.Dictionary(); dict.Add("addresses", addresses.Select(x => x.ToDictionary())); return _client.ExecuteDevToolsMethodAsync("Autofill.setAddresses", dict); } /// /// Disables autofill domain notifications. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Autofill.disable", dict); } /// /// Enables autofill domain notifications. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Autofill.enable", dict); } } } namespace CefSharp.DevTools.BackgroundService { using System.Linq; /// /// Defines events for background web platform features. /// public partial class BackgroundServiceClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// BackgroundService /// /// DevToolsClient public BackgroundServiceClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Called when the recording state for the service has been updated. /// public event System.EventHandler RecordingStateChanged { add { _client.AddEventHandler("BackgroundService.recordingStateChanged", value); } remove { _client.RemoveEventHandler("BackgroundService.recordingStateChanged", value); } } /// /// Called with all existing backgroundServiceEvents when enabled, and all new /// events afterwards if enabled and recording. /// public event System.EventHandler BackgroundServiceEventReceived { add { _client.AddEventHandler("BackgroundService.backgroundServiceEventReceived", value); } remove { _client.RemoveEventHandler("BackgroundService.backgroundServiceEventReceived", value); } } partial void ValidateStartObserving(CefSharp.DevTools.BackgroundService.ServiceName service); /// /// Enables event updates for the service. /// /// service /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StartObservingAsync(CefSharp.DevTools.BackgroundService.ServiceName service) { ValidateStartObserving(service); var dict = new System.Collections.Generic.Dictionary(); dict.Add("service", EnumToString(service)); return _client.ExecuteDevToolsMethodAsync("BackgroundService.startObserving", dict); } partial void ValidateStopObserving(CefSharp.DevTools.BackgroundService.ServiceName service); /// /// Disables event updates for the service. /// /// service /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StopObservingAsync(CefSharp.DevTools.BackgroundService.ServiceName service) { ValidateStopObserving(service); var dict = new System.Collections.Generic.Dictionary(); dict.Add("service", EnumToString(service)); return _client.ExecuteDevToolsMethodAsync("BackgroundService.stopObserving", dict); } 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 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", EnumToString(service)); return _client.ExecuteDevToolsMethodAsync("BackgroundService.setRecording", dict); } partial void ValidateClearEvents(CefSharp.DevTools.BackgroundService.ServiceName service); /// /// Clears all stored data for the service. /// /// service /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearEventsAsync(CefSharp.DevTools.BackgroundService.ServiceName service) { ValidateClearEvents(service); var dict = new System.Collections.Generic.Dictionary(); dict.Add("service", EnumToString(service)); return _client.ExecuteDevToolsMethodAsync("BackgroundService.clearEvents", dict); } } } namespace CefSharp.DevTools.BluetoothEmulation { /// /// AddServiceResponse /// public class AddServiceResponse : DevToolsDomainResponseBase { /// /// serviceId /// [JsonInclude] [JsonPropertyName("serviceId")] public string ServiceId { get; private set; } } } namespace CefSharp.DevTools.BluetoothEmulation { /// /// AddCharacteristicResponse /// public class AddCharacteristicResponse : DevToolsDomainResponseBase { /// /// characteristicId /// [JsonInclude] [JsonPropertyName("characteristicId")] public string CharacteristicId { get; private set; } } } namespace CefSharp.DevTools.BluetoothEmulation { /// /// AddDescriptorResponse /// public class AddDescriptorResponse : DevToolsDomainResponseBase { /// /// descriptorId /// [JsonInclude] [JsonPropertyName("descriptorId")] public string DescriptorId { get; private set; } } } namespace CefSharp.DevTools.BluetoothEmulation { using System.Linq; /// /// This domain allows configuring virtual Bluetooth devices to test /// the web-bluetooth API. /// public partial class BluetoothEmulationClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// BluetoothEmulation /// /// DevToolsClient public BluetoothEmulationClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Event for when a GATT operation of |type| to the peripheral with |address| /// happened. /// public event System.EventHandler GattOperationReceived { add { _client.AddEventHandler("BluetoothEmulation.gattOperationReceived", value); } remove { _client.RemoveEventHandler("BluetoothEmulation.gattOperationReceived", value); } } /// /// Event for when a characteristic operation of |type| to the characteristic /// respresented by |characteristicId| happened. |data| and |writeType| is /// expected to exist when |type| is write. /// public event System.EventHandler CharacteristicOperationReceived { add { _client.AddEventHandler("BluetoothEmulation.characteristicOperationReceived", value); } remove { _client.RemoveEventHandler("BluetoothEmulation.characteristicOperationReceived", value); } } /// /// Event for when a descriptor operation of |type| to the descriptor /// respresented by |descriptorId| happened. |data| is expected to exist when /// |type| is write. /// public event System.EventHandler DescriptorOperationReceived { add { _client.AddEventHandler("BluetoothEmulation.descriptorOperationReceived", value); } remove { _client.RemoveEventHandler("BluetoothEmulation.descriptorOperationReceived", value); } } partial void ValidateEnable(CefSharp.DevTools.BluetoothEmulation.CentralState state, bool leSupported); /// /// Enable the BluetoothEmulation domain. /// /// State of the simulated central. /// If the simulated central supports low-energy. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync(CefSharp.DevTools.BluetoothEmulation.CentralState state, bool leSupported) { ValidateEnable(state, leSupported); var dict = new System.Collections.Generic.Dictionary(); dict.Add("state", EnumToString(state)); dict.Add("leSupported", leSupported); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.enable", dict); } partial void ValidateSetSimulatedCentralState(CefSharp.DevTools.BluetoothEmulation.CentralState state); /// /// Set the state of the simulated central. /// /// State of the simulated central. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetSimulatedCentralStateAsync(CefSharp.DevTools.BluetoothEmulation.CentralState state) { ValidateSetSimulatedCentralState(state); var dict = new System.Collections.Generic.Dictionary(); dict.Add("state", EnumToString(state)); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.setSimulatedCentralState", dict); } /// /// Disable the BluetoothEmulation domain. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.disable", dict); } partial void ValidateSimulatePreconnectedPeripheral(string address, string name, System.Collections.Generic.IList manufacturerData, string[] knownServiceUuids); /// /// Simulates a peripheral with |address|, |name| and |knownServiceUuids| /// that has already been connected to the system. /// /// address /// name /// manufacturerData /// knownServiceUuids /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SimulatePreconnectedPeripheralAsync(string address, string name, System.Collections.Generic.IList manufacturerData, string[] knownServiceUuids) { ValidateSimulatePreconnectedPeripheral(address, name, manufacturerData, knownServiceUuids); var dict = new System.Collections.Generic.Dictionary(); dict.Add("address", address); dict.Add("name", name); dict.Add("manufacturerData", manufacturerData.Select(x => x.ToDictionary())); dict.Add("knownServiceUuids", knownServiceUuids); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulatePreconnectedPeripheral", dict); } partial void ValidateSimulateAdvertisement(CefSharp.DevTools.BluetoothEmulation.ScanEntry entry); /// /// Simulates an advertisement packet described in |entry| being received by /// the central. /// /// entry /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SimulateAdvertisementAsync(CefSharp.DevTools.BluetoothEmulation.ScanEntry entry) { ValidateSimulateAdvertisement(entry); var dict = new System.Collections.Generic.Dictionary(); dict.Add("entry", entry.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateAdvertisement", dict); } partial void ValidateSimulateGATTOperationResponse(string address, CefSharp.DevTools.BluetoothEmulation.GATTOperationType type, int code); /// /// Simulates the response code from the peripheral with |address| for a /// GATT operation of |type|. The |code| value follows the HCI Error Codes from /// Bluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes. /// /// address /// type /// code /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SimulateGATTOperationResponseAsync(string address, CefSharp.DevTools.BluetoothEmulation.GATTOperationType type, int code) { ValidateSimulateGATTOperationResponse(address, type, code); var dict = new System.Collections.Generic.Dictionary(); dict.Add("address", address); dict.Add("type", EnumToString(type)); dict.Add("code", code); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateGATTOperationResponse", dict); } partial void ValidateSimulateCharacteristicOperationResponse(string characteristicId, CefSharp.DevTools.BluetoothEmulation.CharacteristicOperationType type, int code, byte[] data = null); /// /// Simulates the response from the characteristic with |characteristicId| for a /// characteristic operation of |type|. The |code| value follows the Error /// Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response. /// The |data| is expected to exist when simulating a successful read operation /// response. /// /// characteristicId /// type /// code /// data /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SimulateCharacteristicOperationResponseAsync(string characteristicId, CefSharp.DevTools.BluetoothEmulation.CharacteristicOperationType type, int code, byte[] data = null) { ValidateSimulateCharacteristicOperationResponse(characteristicId, type, code, data); var dict = new System.Collections.Generic.Dictionary(); dict.Add("characteristicId", characteristicId); dict.Add("type", EnumToString(type)); dict.Add("code", code); if ((data) != (null)) { dict.Add("data", ToBase64String(data)); } return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateCharacteristicOperationResponse", dict); } partial void ValidateSimulateDescriptorOperationResponse(string descriptorId, CefSharp.DevTools.BluetoothEmulation.DescriptorOperationType type, int code, byte[] data = null); /// /// Simulates the response from the descriptor with |descriptorId| for a /// descriptor operation of |type|. The |code| value follows the Error /// Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response. /// The |data| is expected to exist when simulating a successful read operation /// response. /// /// descriptorId /// type /// code /// data /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SimulateDescriptorOperationResponseAsync(string descriptorId, CefSharp.DevTools.BluetoothEmulation.DescriptorOperationType type, int code, byte[] data = null) { ValidateSimulateDescriptorOperationResponse(descriptorId, type, code, data); var dict = new System.Collections.Generic.Dictionary(); dict.Add("descriptorId", descriptorId); dict.Add("type", EnumToString(type)); dict.Add("code", code); if ((data) != (null)) { dict.Add("data", ToBase64String(data)); } return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateDescriptorOperationResponse", dict); } partial void ValidateAddService(string address, string serviceUuid); /// /// Adds a service with |serviceUuid| to the peripheral with |address|. /// /// address /// serviceUuid /// returns System.Threading.Tasks.Task<AddServiceResponse> public System.Threading.Tasks.Task AddServiceAsync(string address, string serviceUuid) { ValidateAddService(address, serviceUuid); var dict = new System.Collections.Generic.Dictionary(); dict.Add("address", address); dict.Add("serviceUuid", serviceUuid); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.addService", dict); } partial void ValidateRemoveService(string serviceId); /// /// Removes the service respresented by |serviceId| from the simulated central. /// /// serviceId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RemoveServiceAsync(string serviceId) { ValidateRemoveService(serviceId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("serviceId", serviceId); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.removeService", dict); } partial void ValidateAddCharacteristic(string serviceId, string characteristicUuid, CefSharp.DevTools.BluetoothEmulation.CharacteristicProperties properties); /// /// Adds a characteristic with |characteristicUuid| and |properties| to the /// service represented by |serviceId|. /// /// serviceId /// characteristicUuid /// properties /// returns System.Threading.Tasks.Task<AddCharacteristicResponse> public System.Threading.Tasks.Task AddCharacteristicAsync(string serviceId, string characteristicUuid, CefSharp.DevTools.BluetoothEmulation.CharacteristicProperties properties) { ValidateAddCharacteristic(serviceId, characteristicUuid, properties); var dict = new System.Collections.Generic.Dictionary(); dict.Add("serviceId", serviceId); dict.Add("characteristicUuid", characteristicUuid); dict.Add("properties", properties.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.addCharacteristic", dict); } partial void ValidateRemoveCharacteristic(string characteristicId); /// /// Removes the characteristic respresented by |characteristicId| from the /// simulated central. /// /// characteristicId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RemoveCharacteristicAsync(string characteristicId) { ValidateRemoveCharacteristic(characteristicId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("characteristicId", characteristicId); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.removeCharacteristic", dict); } partial void ValidateAddDescriptor(string characteristicId, string descriptorUuid); /// /// Adds a descriptor with |descriptorUuid| to the characteristic respresented /// by |characteristicId|. /// /// characteristicId /// descriptorUuid /// returns System.Threading.Tasks.Task<AddDescriptorResponse> public System.Threading.Tasks.Task AddDescriptorAsync(string characteristicId, string descriptorUuid) { ValidateAddDescriptor(characteristicId, descriptorUuid); var dict = new System.Collections.Generic.Dictionary(); dict.Add("characteristicId", characteristicId); dict.Add("descriptorUuid", descriptorUuid); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.addDescriptor", dict); } partial void ValidateRemoveDescriptor(string descriptorId); /// /// Removes the descriptor with |descriptorId| from the simulated central. /// /// descriptorId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RemoveDescriptorAsync(string descriptorId) { ValidateRemoveDescriptor(descriptorId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("descriptorId", descriptorId); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.removeDescriptor", dict); } partial void ValidateSimulateGATTDisconnection(string address); /// /// Simulates a GATT disconnection from the peripheral with |address|. /// /// address /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SimulateGATTDisconnectionAsync(string address) { ValidateSimulateGATTDisconnection(address); var dict = new System.Collections.Generic.Dictionary(); dict.Add("address", address); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateGATTDisconnection", dict); } } } namespace CefSharp.DevTools.Browser { /// /// GetVersionResponse /// public class GetVersionResponse : DevToolsDomainResponseBase { /// /// protocolVersion /// [JsonInclude] [JsonPropertyName("protocolVersion")] public string ProtocolVersion { get; private set; } /// /// product /// [JsonInclude] [JsonPropertyName("product")] public string Product { get; private set; } /// /// revision /// [JsonInclude] [JsonPropertyName("revision")] public string Revision { get; private set; } /// /// userAgent /// [JsonInclude] [JsonPropertyName("userAgent")] public string UserAgent { get; private set; } /// /// jsVersion /// [JsonInclude] [JsonPropertyName("jsVersion")] public string JsVersion { get; private set; } } } namespace CefSharp.DevTools.Browser { /// /// GetBrowserCommandLineResponse /// public class GetBrowserCommandLineResponse : DevToolsDomainResponseBase { /// /// arguments /// [JsonInclude] [JsonPropertyName("arguments")] public string[] Arguments { get; private set; } } } namespace CefSharp.DevTools.Browser { /// /// GetHistogramsResponse /// public class GetHistogramsResponse : DevToolsDomainResponseBase { /// /// histograms /// [JsonInclude] [JsonPropertyName("histograms")] public System.Collections.Generic.IList Histograms { get; private set; } } } namespace CefSharp.DevTools.Browser { /// /// GetHistogramResponse /// public class GetHistogramResponse : DevToolsDomainResponseBase { /// /// histogram /// [JsonInclude] [JsonPropertyName("histogram")] public CefSharp.DevTools.Browser.Histogram Histogram { get; private set; } } } namespace CefSharp.DevTools.Browser { /// /// GetWindowBoundsResponse /// public class GetWindowBoundsResponse : DevToolsDomainResponseBase { /// /// bounds /// [JsonInclude] [JsonPropertyName("bounds")] public CefSharp.DevTools.Browser.Bounds Bounds { get; private set; } } } namespace CefSharp.DevTools.Browser { /// /// GetWindowForTargetResponse /// public class GetWindowForTargetResponse : DevToolsDomainResponseBase { /// /// windowId /// [JsonInclude] [JsonPropertyName("windowId")] public int WindowId { get; private set; } /// /// bounds /// [JsonInclude] [JsonPropertyName("bounds")] public CefSharp.DevTools.Browser.Bounds Bounds { get; private set; } } } namespace CefSharp.DevTools.Browser { using System.Linq; /// /// Whether to allow all or deny all download requests, or use default Chrome behavior if /// available (otherwise deny). |allowAndName| allows download and names files according to /// their download guids. /// public enum SetDownloadBehaviorBehavior { /// /// deny /// [JsonPropertyName("deny")] Deny, /// /// allow /// [JsonPropertyName("allow")] Allow, /// /// allowAndName /// [JsonPropertyName("allowAndName")] AllowAndName, /// /// default /// [JsonPropertyName("default")] Default } /// /// The Browser domain defines methods and events for browser managing. /// public partial class BrowserClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Browser /// /// DevToolsClient public BrowserClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Fired when page is about to start a download. /// public event System.EventHandler DownloadWillBegin { add { _client.AddEventHandler("Browser.downloadWillBegin", value); } remove { _client.RemoveEventHandler("Browser.downloadWillBegin", value); } } /// /// Fired when download makes progress. Last call has |done| == true. /// public event System.EventHandler DownloadProgress { add { _client.AddEventHandler("Browser.downloadProgress", value); } remove { _client.RemoveEventHandler("Browser.downloadProgress", value); } } partial void ValidateSetPermission(CefSharp.DevTools.Browser.PermissionDescriptor permission, CefSharp.DevTools.Browser.PermissionSetting setting, string origin = null, string embeddedOrigin = null, string browserContextId = null); /// /// Set permission settings for given embedding and embedded origins. /// /// Descriptor of permission to override. /// Setting of the permission. /// Embedding origin the permission applies to, all origins if not specified. /// Embedded origin the permission applies to. It is ignored unless the embedding origin ispresent and valid. If the embedding origin is provided but the embedded origin isn't, theembedding origin is used as the embedded origin. /// Context to override. When omitted, default browser context is used. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetPermissionAsync(CefSharp.DevTools.Browser.PermissionDescriptor permission, CefSharp.DevTools.Browser.PermissionSetting setting, string origin = null, string embeddedOrigin = null, string browserContextId = null) { ValidateSetPermission(permission, setting, origin, embeddedOrigin, browserContextId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("permission", permission.ToDictionary()); dict.Add("setting", EnumToString(setting)); if (!(string.IsNullOrEmpty(origin))) { dict.Add("origin", origin); } if (!(string.IsNullOrEmpty(embeddedOrigin))) { dict.Add("embeddedOrigin", embeddedOrigin); } if (!(string.IsNullOrEmpty(browserContextId))) { dict.Add("browserContextId", browserContextId); } return _client.ExecuteDevToolsMethodAsync("Browser.setPermission", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Browser.resetPermissions", dict); } partial void ValidateSetDownloadBehavior(CefSharp.DevTools.Browser.SetDownloadBehaviorBehavior behavior, string browserContextId = null, string downloadPath = null, bool? eventsEnabled = null); /// /// Set the behavior when downloading a file. /// /// Whether to allow all or deny all download requests, or use default Chrome behavior ifavailable (otherwise deny). |allowAndName| allows download and names files according totheir download guids. /// BrowserContext to set download behavior. When omitted, default browser context is used. /// The default path to save downloaded files to. This is required if behavior is set to 'allow'or 'allowAndName'. /// Whether to emit download events (defaults to false). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetDownloadBehaviorAsync(CefSharp.DevTools.Browser.SetDownloadBehaviorBehavior behavior, string browserContextId = null, string downloadPath = null, bool? eventsEnabled = null) { ValidateSetDownloadBehavior(behavior, browserContextId, downloadPath, eventsEnabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("behavior", EnumToString(behavior)); if (!(string.IsNullOrEmpty(browserContextId))) { dict.Add("browserContextId", browserContextId); } if (!(string.IsNullOrEmpty(downloadPath))) { dict.Add("downloadPath", downloadPath); } if (eventsEnabled.HasValue) { dict.Add("eventsEnabled", eventsEnabled.Value); } return _client.ExecuteDevToolsMethodAsync("Browser.setDownloadBehavior", dict); } partial void ValidateCancelDownload(string guid, string browserContextId = null); /// /// Cancel a download if in progress /// /// Global unique identifier of the download. /// BrowserContext to perform the action in. When omitted, default browser context is used. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task CancelDownloadAsync(string guid, string browserContextId = null) { ValidateCancelDownload(guid, browserContextId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("guid", guid); if (!(string.IsNullOrEmpty(browserContextId))) { dict.Add("browserContextId", browserContextId); } return _client.ExecuteDevToolsMethodAsync("Browser.cancelDownload", dict); } /// /// Close browser gracefully. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task CloseAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Browser.close", dict); } /// /// Crashes browser on the main thread. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task CrashAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Browser.crash", dict); } /// /// Crashes GPU process. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task CrashGpuProcessAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Browser.crashGpuProcess", dict); } /// /// Returns version information. /// /// returns System.Threading.Tasks.Task<GetVersionResponse> public System.Threading.Tasks.Task GetVersionAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Browser.getVersion", dict); } /// /// 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 System.Threading.Tasks.Task GetBrowserCommandLineAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Browser.getBrowserCommandLine", dict); } partial void ValidateGetHistograms(string query = null, bool? delta = null); /// /// Get Chrome histograms. /// /// Requested substring in name. Only histograms which have query as asubstring in their name are extracted. An empty or absent query returnsall histograms. /// If true, retrieve delta since last delta call. /// returns System.Threading.Tasks.Task<GetHistogramsResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Browser.getHistograms", dict); } partial void ValidateGetHistogram(string name, bool? delta = null); /// /// Get a Chrome histogram by name. /// /// Requested histogram name. /// If true, retrieve delta since last delta call. /// returns System.Threading.Tasks.Task<GetHistogramResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Browser.getHistogram", dict); } partial void ValidateGetWindowBounds(int windowId); /// /// Get position and size of the browser window. /// /// Browser window id. /// returns System.Threading.Tasks.Task<GetWindowBoundsResponse> public System.Threading.Tasks.Task GetWindowBoundsAsync(int windowId) { ValidateGetWindowBounds(windowId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("windowId", windowId); return _client.ExecuteDevToolsMethodAsync("Browser.getWindowBounds", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Browser.getWindowForTarget", dict); } 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 combinedwith 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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()); return _client.ExecuteDevToolsMethodAsync("Browser.setWindowBounds", dict); } partial void ValidateSetContentsSize(int windowId, int? width = null, int? height = null); /// /// Set size of the browser contents resizing browser window as necessary. /// /// Browser window id. /// The window contents width in DIP. Assumes current width if omitted.Must be specified if 'height' is omitted. /// The window contents height in DIP. Assumes current height if omitted.Must be specified if 'width' is omitted. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetContentsSizeAsync(int windowId, int? width = null, int? height = null) { ValidateSetContentsSize(windowId, width, height); var dict = new System.Collections.Generic.Dictionary(); dict.Add("windowId", windowId); if (width.HasValue) { dict.Add("width", width.Value); } if (height.HasValue) { dict.Add("height", height.Value); } return _client.ExecuteDevToolsMethodAsync("Browser.setContentsSize", dict); } 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 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)); } return _client.ExecuteDevToolsMethodAsync("Browser.setDockTile", dict); } partial void ValidateExecuteBrowserCommand(CefSharp.DevTools.Browser.BrowserCommandId commandId); /// /// Invoke custom browser commands used by telemetry. /// /// commandId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ExecuteBrowserCommandAsync(CefSharp.DevTools.Browser.BrowserCommandId commandId) { ValidateExecuteBrowserCommand(commandId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("commandId", EnumToString(commandId)); return _client.ExecuteDevToolsMethodAsync("Browser.executeBrowserCommand", dict); } partial void ValidateAddPrivacySandboxEnrollmentOverride(string url); /// /// Allows a site to use privacy sandbox features that require enrollment /// without the site actually being enrolled. Only supported on page targets. /// /// url /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task AddPrivacySandboxEnrollmentOverrideAsync(string url) { ValidateAddPrivacySandboxEnrollmentOverride(url); var dict = new System.Collections.Generic.Dictionary(); dict.Add("url", url); return _client.ExecuteDevToolsMethodAsync("Browser.addPrivacySandboxEnrollmentOverride", dict); } partial void ValidateAddPrivacySandboxCoordinatorKeyConfig(CefSharp.DevTools.Browser.PrivacySandboxAPI api, string coordinatorOrigin, string keyConfig, string browserContextId = null); /// /// Configures encryption keys used with a given privacy sandbox API to talk /// to a trusted coordinator. Since this is intended for test automation only, /// coordinatorOrigin must be a .test domain. No existing coordinator /// configuration for the origin may exist. /// /// api /// coordinatorOrigin /// keyConfig /// BrowserContext to perform the action in. When omitted, default browsercontext is used. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task AddPrivacySandboxCoordinatorKeyConfigAsync(CefSharp.DevTools.Browser.PrivacySandboxAPI api, string coordinatorOrigin, string keyConfig, string browserContextId = null) { ValidateAddPrivacySandboxCoordinatorKeyConfig(api, coordinatorOrigin, keyConfig, browserContextId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("api", EnumToString(api)); dict.Add("coordinatorOrigin", coordinatorOrigin); dict.Add("keyConfig", keyConfig); if (!(string.IsNullOrEmpty(browserContextId))) { dict.Add("browserContextId", browserContextId); } return _client.ExecuteDevToolsMethodAsync("Browser.addPrivacySandboxCoordinatorKeyConfig", dict); } } } namespace CefSharp.DevTools.CSS { /// /// AddRuleResponse /// public class AddRuleResponse : DevToolsDomainResponseBase { /// /// rule /// [JsonInclude] [JsonPropertyName("rule")] public CefSharp.DevTools.CSS.CSSRule Rule { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// CollectClassNamesResponse /// public class CollectClassNamesResponse : DevToolsDomainResponseBase { /// /// classNames /// [JsonInclude] [JsonPropertyName("classNames")] public string[] ClassNames { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// CreateStyleSheetResponse /// public class CreateStyleSheetResponse : DevToolsDomainResponseBase { /// /// styleSheetId /// [JsonInclude] [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// GetBackgroundColorsResponse /// public class GetBackgroundColorsResponse : DevToolsDomainResponseBase { /// /// backgroundColors /// [JsonInclude] [JsonPropertyName("backgroundColors")] public string[] BackgroundColors { get; private set; } /// /// computedFontSize /// [JsonInclude] [JsonPropertyName("computedFontSize")] public string ComputedFontSize { get; private set; } /// /// computedFontWeight /// [JsonInclude] [JsonPropertyName("computedFontWeight")] public string ComputedFontWeight { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// GetComputedStyleForNodeResponse /// public class GetComputedStyleForNodeResponse : DevToolsDomainResponseBase { /// /// computedStyle /// [JsonInclude] [JsonPropertyName("computedStyle")] public System.Collections.Generic.IList ComputedStyle { get; private set; } /// /// extraFields /// [JsonInclude] [JsonPropertyName("extraFields")] public CefSharp.DevTools.CSS.ComputedStyleExtraFields ExtraFields { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// ResolveValuesResponse /// public class ResolveValuesResponse : DevToolsDomainResponseBase { /// /// results /// [JsonInclude] [JsonPropertyName("results")] public string[] Results { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// GetLonghandPropertiesResponse /// public class GetLonghandPropertiesResponse : DevToolsDomainResponseBase { /// /// longhandProperties /// [JsonInclude] [JsonPropertyName("longhandProperties")] public System.Collections.Generic.IList LonghandProperties { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// GetInlineStylesForNodeResponse /// public class GetInlineStylesForNodeResponse : DevToolsDomainResponseBase { /// /// inlineStyle /// [JsonInclude] [JsonPropertyName("inlineStyle")] public CefSharp.DevTools.CSS.CSSStyle InlineStyle { get; private set; } /// /// attributesStyle /// [JsonInclude] [JsonPropertyName("attributesStyle")] public CefSharp.DevTools.CSS.CSSStyle AttributesStyle { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// GetAnimatedStylesForNodeResponse /// public class GetAnimatedStylesForNodeResponse : DevToolsDomainResponseBase { /// /// animationStyles /// [JsonInclude] [JsonPropertyName("animationStyles")] public System.Collections.Generic.IList AnimationStyles { get; private set; } /// /// transitionsStyle /// [JsonInclude] [JsonPropertyName("transitionsStyle")] public CefSharp.DevTools.CSS.CSSStyle TransitionsStyle { get; private set; } /// /// inherited /// [JsonInclude] [JsonPropertyName("inherited")] public System.Collections.Generic.IList Inherited { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// GetMatchedStylesForNodeResponse /// public class GetMatchedStylesForNodeResponse : DevToolsDomainResponseBase { /// /// inlineStyle /// [JsonInclude] [JsonPropertyName("inlineStyle")] public CefSharp.DevTools.CSS.CSSStyle InlineStyle { get; private set; } /// /// attributesStyle /// [JsonInclude] [JsonPropertyName("attributesStyle")] public CefSharp.DevTools.CSS.CSSStyle AttributesStyle { get; private set; } /// /// matchedCSSRules /// [JsonInclude] [JsonPropertyName("matchedCSSRules")] public System.Collections.Generic.IList MatchedCSSRules { get; private set; } /// /// pseudoElements /// [JsonInclude] [JsonPropertyName("pseudoElements")] public System.Collections.Generic.IList PseudoElements { get; private set; } /// /// inherited /// [JsonInclude] [JsonPropertyName("inherited")] public System.Collections.Generic.IList Inherited { get; private set; } /// /// inheritedPseudoElements /// [JsonInclude] [JsonPropertyName("inheritedPseudoElements")] public System.Collections.Generic.IList InheritedPseudoElements { get; private set; } /// /// cssKeyframesRules /// [JsonInclude] [JsonPropertyName("cssKeyframesRules")] public System.Collections.Generic.IList CssKeyframesRules { get; private set; } /// /// cssPositionTryRules /// [JsonInclude] [JsonPropertyName("cssPositionTryRules")] public System.Collections.Generic.IList CssPositionTryRules { get; private set; } /// /// activePositionFallbackIndex /// [JsonInclude] [JsonPropertyName("activePositionFallbackIndex")] public int? ActivePositionFallbackIndex { get; private set; } /// /// cssPropertyRules /// [JsonInclude] [JsonPropertyName("cssPropertyRules")] public System.Collections.Generic.IList CssPropertyRules { get; private set; } /// /// cssPropertyRegistrations /// [JsonInclude] [JsonPropertyName("cssPropertyRegistrations")] public System.Collections.Generic.IList CssPropertyRegistrations { get; private set; } /// /// cssAtRules /// [JsonInclude] [JsonPropertyName("cssAtRules")] public System.Collections.Generic.IList CssAtRules { get; private set; } /// /// parentLayoutNodeId /// [JsonInclude] [JsonPropertyName("parentLayoutNodeId")] public int? ParentLayoutNodeId { get; private set; } /// /// cssFunctionRules /// [JsonInclude] [JsonPropertyName("cssFunctionRules")] public System.Collections.Generic.IList CssFunctionRules { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// GetEnvironmentVariablesResponse /// public class GetEnvironmentVariablesResponse : DevToolsDomainResponseBase { /// /// environmentVariables /// [JsonInclude] [JsonPropertyName("environmentVariables")] public object EnvironmentVariables { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// GetMediaQueriesResponse /// public class GetMediaQueriesResponse : DevToolsDomainResponseBase { /// /// medias /// [JsonInclude] [JsonPropertyName("medias")] public System.Collections.Generic.IList Medias { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// GetPlatformFontsForNodeResponse /// public class GetPlatformFontsForNodeResponse : DevToolsDomainResponseBase { /// /// fonts /// [JsonInclude] [JsonPropertyName("fonts")] public System.Collections.Generic.IList Fonts { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// GetStyleSheetTextResponse /// public class GetStyleSheetTextResponse : DevToolsDomainResponseBase { /// /// text /// [JsonInclude] [JsonPropertyName("text")] public string Text { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// GetLayersForNodeResponse /// public class GetLayersForNodeResponse : DevToolsDomainResponseBase { /// /// rootLayer /// [JsonInclude] [JsonPropertyName("rootLayer")] public CefSharp.DevTools.CSS.CSSLayerData RootLayer { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// GetLocationForSelectorResponse /// public class GetLocationForSelectorResponse : DevToolsDomainResponseBase { /// /// ranges /// [JsonInclude] [JsonPropertyName("ranges")] public System.Collections.Generic.IList Ranges { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// TakeComputedStyleUpdatesResponse /// public class TakeComputedStyleUpdatesResponse : DevToolsDomainResponseBase { /// /// nodeIds /// [JsonInclude] [JsonPropertyName("nodeIds")] public int[] NodeIds { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// SetPropertyRulePropertyNameResponse /// public class SetPropertyRulePropertyNameResponse : DevToolsDomainResponseBase { /// /// propertyName /// [JsonInclude] [JsonPropertyName("propertyName")] public CefSharp.DevTools.CSS.Value PropertyName { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// SetKeyframeKeyResponse /// public class SetKeyframeKeyResponse : DevToolsDomainResponseBase { /// /// keyText /// [JsonInclude] [JsonPropertyName("keyText")] public CefSharp.DevTools.CSS.Value KeyText { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// SetMediaTextResponse /// public class SetMediaTextResponse : DevToolsDomainResponseBase { /// /// media /// [JsonInclude] [JsonPropertyName("media")] public CefSharp.DevTools.CSS.CSSMedia Media { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// SetContainerQueryTextResponse /// public class SetContainerQueryTextResponse : DevToolsDomainResponseBase { /// /// containerQuery /// [JsonInclude] [JsonPropertyName("containerQuery")] public CefSharp.DevTools.CSS.CSSContainerQuery ContainerQuery { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// SetSupportsTextResponse /// public class SetSupportsTextResponse : DevToolsDomainResponseBase { /// /// supports /// [JsonInclude] [JsonPropertyName("supports")] public CefSharp.DevTools.CSS.CSSSupports Supports { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// SetScopeTextResponse /// public class SetScopeTextResponse : DevToolsDomainResponseBase { /// /// scope /// [JsonInclude] [JsonPropertyName("scope")] public CefSharp.DevTools.CSS.CSSScope Scope { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// SetRuleSelectorResponse /// public class SetRuleSelectorResponse : DevToolsDomainResponseBase { /// /// selectorList /// [JsonInclude] [JsonPropertyName("selectorList")] public CefSharp.DevTools.CSS.SelectorList SelectorList { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// SetStyleSheetTextResponse /// public class SetStyleSheetTextResponse : DevToolsDomainResponseBase { /// /// sourceMapURL /// [JsonInclude] [JsonPropertyName("sourceMapURL")] public string SourceMapURL { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// SetStyleTextsResponse /// public class SetStyleTextsResponse : DevToolsDomainResponseBase { /// /// styles /// [JsonInclude] [JsonPropertyName("styles")] public System.Collections.Generic.IList Styles { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// StopRuleUsageTrackingResponse /// public class StopRuleUsageTrackingResponse : DevToolsDomainResponseBase { /// /// ruleUsage /// [JsonInclude] [JsonPropertyName("ruleUsage")] public System.Collections.Generic.IList RuleUsage { get; private set; } } } namespace CefSharp.DevTools.CSS { /// /// TakeCoverageDeltaResponse /// public class TakeCoverageDeltaResponse : DevToolsDomainResponseBase { /// /// coverage /// [JsonInclude] [JsonPropertyName("coverage")] public System.Collections.Generic.IList Coverage { get; private set; } /// /// timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double 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; /// /// CSS /// /// DevToolsClient public CSSClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded /// web font. /// public event System.EventHandler FontsUpdated { add { _client.AddEventHandler("CSS.fontsUpdated", value); } remove { _client.RemoveEventHandler("CSS.fontsUpdated", value); } } /// /// Fires whenever a MediaQuery result changes (for example, after a browser window has been /// resized.) The current implementation considers only viewport-dependent media features. /// public event System.EventHandler MediaQueryResultChanged { add { _client.AddEventHandler("CSS.mediaQueryResultChanged", value); } remove { _client.RemoveEventHandler("CSS.mediaQueryResultChanged", value); } } /// /// Fired whenever an active document stylesheet is added. /// public event System.EventHandler StyleSheetAdded { add { _client.AddEventHandler("CSS.styleSheetAdded", value); } remove { _client.RemoveEventHandler("CSS.styleSheetAdded", value); } } /// /// Fired whenever a stylesheet is changed as a result of the client operation. /// public event System.EventHandler StyleSheetChanged { add { _client.AddEventHandler("CSS.styleSheetChanged", value); } remove { _client.RemoveEventHandler("CSS.styleSheetChanged", value); } } /// /// Fired whenever an active document stylesheet is removed. /// public event System.EventHandler StyleSheetRemoved { add { _client.AddEventHandler("CSS.styleSheetRemoved", value); } remove { _client.RemoveEventHandler("CSS.styleSheetRemoved", value); } } /// /// ComputedStyleUpdated /// public event System.EventHandler ComputedStyleUpdated { add { _client.AddEventHandler("CSS.computedStyleUpdated", value); } remove { _client.RemoveEventHandler("CSS.computedStyleUpdated", value); } } partial void ValidateAddRule(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location, int? nodeForPropertySyntaxValidation = null); /// /// 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. /// NodeId for the DOM node in whose context custom property declarations for registered properties should bevalidated. If omitted, declarations in the new rule text can only be validated statically, which may produceincorrect results if the declaration contains a var() for example. /// returns System.Threading.Tasks.Task<AddRuleResponse> public System.Threading.Tasks.Task AddRuleAsync(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location, int? nodeForPropertySyntaxValidation = null) { ValidateAddRule(styleSheetId, ruleText, location, nodeForPropertySyntaxValidation); var dict = new System.Collections.Generic.Dictionary(); dict.Add("styleSheetId", styleSheetId); dict.Add("ruleText", ruleText); dict.Add("location", location.ToDictionary()); if (nodeForPropertySyntaxValidation.HasValue) { dict.Add("nodeForPropertySyntaxValidation", nodeForPropertySyntaxValidation.Value); } return _client.ExecuteDevToolsMethodAsync("CSS.addRule", dict); } partial void ValidateCollectClassNames(string styleSheetId); /// /// Returns all class names from specified stylesheet. /// /// styleSheetId /// returns System.Threading.Tasks.Task<CollectClassNamesResponse> public System.Threading.Tasks.Task CollectClassNamesAsync(string styleSheetId) { ValidateCollectClassNames(styleSheetId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("styleSheetId", styleSheetId); return _client.ExecuteDevToolsMethodAsync("CSS.collectClassNames", dict); } partial void ValidateCreateStyleSheet(string frameId, bool? force = null); /// /// Creates a new special "via-inspector" stylesheet in the frame with given `frameId`. /// /// Identifier of the frame where "via-inspector" stylesheet should be created. /// If true, creates a new stylesheet for every call. If false,returns a stylesheet previously created by a call with force=falsefor the frame's document if it exists or creates a new stylesheet(default: false). /// returns System.Threading.Tasks.Task<CreateStyleSheetResponse> public System.Threading.Tasks.Task CreateStyleSheetAsync(string frameId, bool? force = null) { ValidateCreateStyleSheet(frameId, force); var dict = new System.Collections.Generic.Dictionary(); dict.Add("frameId", frameId); if (force.HasValue) { dict.Add("force", force.Value); } return _client.ExecuteDevToolsMethodAsync("CSS.createStyleSheet", dict); } /// /// Disables the CSS agent for the given page. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("CSS.disable", dict); } /// /// 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 System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("CSS.enable", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("CSS.forcePseudoState", dict); } partial void ValidateForceStartingStyle(int nodeId, bool forced); /// /// Ensures that the given node is in its starting-style state. /// /// The element id for which to force the starting-style state. /// Boolean indicating if this is on or off. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ForceStartingStyleAsync(int nodeId, bool forced) { ValidateForceStartingStyle(nodeId, forced); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); dict.Add("forced", forced); return _client.ExecuteDevToolsMethodAsync("CSS.forceStartingStyle", dict); } partial void ValidateGetBackgroundColors(int nodeId); /// /// GetBackgroundColors /// /// Id of the node to get background colors for. /// returns System.Threading.Tasks.Task<GetBackgroundColorsResponse> public System.Threading.Tasks.Task GetBackgroundColorsAsync(int nodeId) { ValidateGetBackgroundColors(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("CSS.getBackgroundColors", dict); } partial void ValidateGetComputedStyleForNode(int nodeId); /// /// Returns the computed style for a DOM node identified by `nodeId`. /// /// nodeId /// returns System.Threading.Tasks.Task<GetComputedStyleForNodeResponse> public System.Threading.Tasks.Task GetComputedStyleForNodeAsync(int nodeId) { ValidateGetComputedStyleForNode(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("CSS.getComputedStyleForNode", dict); } partial void ValidateResolveValues(string[] values, int nodeId, string propertyName = null, CefSharp.DevTools.DOM.PseudoType? pseudoType = null, string pseudoIdentifier = null); /// /// Resolve the specified values in the context of the provided element. /// For example, a value of '1em' is evaluated according to the computed /// 'font-size' of the element and a value 'calc(1px + 2px)' will be /// resolved to '3px'. /// If the `propertyName` was specified the `values` are resolved as if /// they were property's declaration. If a value cannot be parsed according /// to the provided property syntax, the value is parsed using combined /// syntax as if null `propertyName` was provided. If the value cannot be /// resolved even then, return the provided value without any changes. /// /// Cascade-dependent keywords (revert/revert-layer) do not work. /// Id of the node in whose context the expression is evaluated /// Only longhands and custom property names are accepted. /// Pseudo element type, only works for pseudo elements that generateelements in the tree, such as ::before and ::after. /// Pseudo element custom ident. /// returns System.Threading.Tasks.Task<ResolveValuesResponse> public System.Threading.Tasks.Task ResolveValuesAsync(string[] values, int nodeId, string propertyName = null, CefSharp.DevTools.DOM.PseudoType? pseudoType = null, string pseudoIdentifier = null) { ValidateResolveValues(values, nodeId, propertyName, pseudoType, pseudoIdentifier); var dict = new System.Collections.Generic.Dictionary(); dict.Add("values", values); dict.Add("nodeId", nodeId); if (!(string.IsNullOrEmpty(propertyName))) { dict.Add("propertyName", propertyName); } if (pseudoType.HasValue) { dict.Add("pseudoType", EnumToString(pseudoType)); } if (!(string.IsNullOrEmpty(pseudoIdentifier))) { dict.Add("pseudoIdentifier", pseudoIdentifier); } return _client.ExecuteDevToolsMethodAsync("CSS.resolveValues", dict); } partial void ValidateGetLonghandProperties(string shorthandName, string value); /// /// GetLonghandProperties /// /// shorthandName /// value /// returns System.Threading.Tasks.Task<GetLonghandPropertiesResponse> public System.Threading.Tasks.Task GetLonghandPropertiesAsync(string shorthandName, string value) { ValidateGetLonghandProperties(shorthandName, value); var dict = new System.Collections.Generic.Dictionary(); dict.Add("shorthandName", shorthandName); dict.Add("value", value); return _client.ExecuteDevToolsMethodAsync("CSS.getLonghandProperties", dict); } partial void ValidateGetInlineStylesForNode(int nodeId); /// /// Returns the styles defined inline (explicitly in the "style" attribute and implicitly, using DOM /// attributes) for a DOM node identified by `nodeId`. /// /// nodeId /// returns System.Threading.Tasks.Task<GetInlineStylesForNodeResponse> public System.Threading.Tasks.Task GetInlineStylesForNodeAsync(int nodeId) { ValidateGetInlineStylesForNode(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("CSS.getInlineStylesForNode", dict); } partial void ValidateGetAnimatedStylesForNode(int nodeId); /// /// Returns the styles coming from animations & transitions /// including the animation & transition styles coming from inheritance chain. /// /// nodeId /// returns System.Threading.Tasks.Task<GetAnimatedStylesForNodeResponse> public System.Threading.Tasks.Task GetAnimatedStylesForNodeAsync(int nodeId) { ValidateGetAnimatedStylesForNode(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("CSS.getAnimatedStylesForNode", dict); } partial void ValidateGetMatchedStylesForNode(int nodeId); /// /// Returns requested styles for a DOM node identified by `nodeId`. /// /// nodeId /// returns System.Threading.Tasks.Task<GetMatchedStylesForNodeResponse> public System.Threading.Tasks.Task GetMatchedStylesForNodeAsync(int nodeId) { ValidateGetMatchedStylesForNode(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("CSS.getMatchedStylesForNode", dict); } /// /// Returns the values of the default UA-defined environment variables used in env() /// /// returns System.Threading.Tasks.Task<GetEnvironmentVariablesResponse> public System.Threading.Tasks.Task GetEnvironmentVariablesAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("CSS.getEnvironmentVariables", dict); } /// /// Returns all media queries parsed by the rendering engine. /// /// returns System.Threading.Tasks.Task<GetMediaQueriesResponse> public System.Threading.Tasks.Task GetMediaQueriesAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("CSS.getMediaQueries", dict); } 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 System.Threading.Tasks.Task GetPlatformFontsForNodeAsync(int nodeId) { ValidateGetPlatformFontsForNode(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("CSS.getPlatformFontsForNode", dict); } partial void ValidateGetStyleSheetText(string styleSheetId); /// /// Returns the current textual content for a stylesheet. /// /// styleSheetId /// returns System.Threading.Tasks.Task<GetStyleSheetTextResponse> public System.Threading.Tasks.Task GetStyleSheetTextAsync(string styleSheetId) { ValidateGetStyleSheetText(styleSheetId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("styleSheetId", styleSheetId); return _client.ExecuteDevToolsMethodAsync("CSS.getStyleSheetText", dict); } partial void ValidateGetLayersForNode(int nodeId); /// /// Returns all layers parsed by the rendering engine for the tree scope of a node. /// Given a DOM element identified by nodeId, getLayersForNode returns the root /// layer for the nearest ancestor document or shadow root. The layer root contains /// the full layer tree for the tree scope and their ordering. /// /// nodeId /// returns System.Threading.Tasks.Task<GetLayersForNodeResponse> public System.Threading.Tasks.Task GetLayersForNodeAsync(int nodeId) { ValidateGetLayersForNode(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("CSS.getLayersForNode", dict); } partial void ValidateGetLocationForSelector(string styleSheetId, string selectorText); /// /// Given a CSS selector text and a style sheet ID, getLocationForSelector /// returns an array of locations of the CSS selector in the style sheet. /// /// styleSheetId /// selectorText /// returns System.Threading.Tasks.Task<GetLocationForSelectorResponse> public System.Threading.Tasks.Task GetLocationForSelectorAsync(string styleSheetId, string selectorText) { ValidateGetLocationForSelector(styleSheetId, selectorText); var dict = new System.Collections.Generic.Dictionary(); dict.Add("styleSheetId", styleSheetId); dict.Add("selectorText", selectorText); return _client.ExecuteDevToolsMethodAsync("CSS.getLocationForSelector", dict); } partial void ValidateTrackComputedStyleUpdatesForNode(int? nodeId = null); /// /// Starts tracking the given node for the computed style updates /// and whenever the computed style is updated for node, it queues /// a `computedStyleUpdated` event with throttling. /// There can only be 1 node tracked for computed style updates /// so passing a new node id removes tracking from the previous node. /// Pass `undefined` to disable tracking. /// /// nodeId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task TrackComputedStyleUpdatesForNodeAsync(int? nodeId = null) { ValidateTrackComputedStyleUpdatesForNode(nodeId); var dict = new System.Collections.Generic.Dictionary(); if (nodeId.HasValue) { dict.Add("nodeId", nodeId.Value); } return _client.ExecuteDevToolsMethodAsync("CSS.trackComputedStyleUpdatesForNode", dict); } 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 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())); return _client.ExecuteDevToolsMethodAsync("CSS.trackComputedStyleUpdates", dict); } /// /// Polls the next batch of computed style updates. /// /// returns System.Threading.Tasks.Task<TakeComputedStyleUpdatesResponse> public System.Threading.Tasks.Task TakeComputedStyleUpdatesAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("CSS.takeComputedStyleUpdates", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("CSS.setEffectivePropertyValueForNode", dict); } partial void ValidateSetPropertyRulePropertyName(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string propertyName); /// /// Modifies the property rule property name. /// /// styleSheetId /// range /// propertyName /// returns System.Threading.Tasks.Task<SetPropertyRulePropertyNameResponse> public System.Threading.Tasks.Task SetPropertyRulePropertyNameAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string propertyName) { ValidateSetPropertyRulePropertyName(styleSheetId, range, propertyName); var dict = new System.Collections.Generic.Dictionary(); dict.Add("styleSheetId", styleSheetId); dict.Add("range", range.ToDictionary()); dict.Add("propertyName", propertyName); return _client.ExecuteDevToolsMethodAsync("CSS.setPropertyRulePropertyName", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("CSS.setKeyframeKey", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("CSS.setMediaText", dict); } partial void ValidateSetContainerQueryText(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text); /// /// Modifies the expression of a container query. /// /// styleSheetId /// range /// text /// returns System.Threading.Tasks.Task<SetContainerQueryTextResponse> public System.Threading.Tasks.Task SetContainerQueryTextAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text) { ValidateSetContainerQueryText(styleSheetId, range, text); var dict = new System.Collections.Generic.Dictionary(); dict.Add("styleSheetId", styleSheetId); dict.Add("range", range.ToDictionary()); dict.Add("text", text); return _client.ExecuteDevToolsMethodAsync("CSS.setContainerQueryText", dict); } partial void ValidateSetSupportsText(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text); /// /// Modifies the expression of a supports at-rule. /// /// styleSheetId /// range /// text /// returns System.Threading.Tasks.Task<SetSupportsTextResponse> public System.Threading.Tasks.Task SetSupportsTextAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text) { ValidateSetSupportsText(styleSheetId, range, text); var dict = new System.Collections.Generic.Dictionary(); dict.Add("styleSheetId", styleSheetId); dict.Add("range", range.ToDictionary()); dict.Add("text", text); return _client.ExecuteDevToolsMethodAsync("CSS.setSupportsText", dict); } partial void ValidateSetScopeText(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text); /// /// Modifies the expression of a scope at-rule. /// /// styleSheetId /// range /// text /// returns System.Threading.Tasks.Task<SetScopeTextResponse> public System.Threading.Tasks.Task SetScopeTextAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text) { ValidateSetScopeText(styleSheetId, range, text); var dict = new System.Collections.Generic.Dictionary(); dict.Add("styleSheetId", styleSheetId); dict.Add("range", range.ToDictionary()); dict.Add("text", text); return _client.ExecuteDevToolsMethodAsync("CSS.setScopeText", dict); } partial void ValidateSetRuleSelector(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string selector); /// /// Modifies the rule selector. /// /// styleSheetId /// range /// selector /// returns System.Threading.Tasks.Task<SetRuleSelectorResponse> public 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); return _client.ExecuteDevToolsMethodAsync("CSS.setRuleSelector", dict); } partial void ValidateSetStyleSheetText(string styleSheetId, string text); /// /// Sets the new stylesheet text. /// /// styleSheetId /// text /// returns System.Threading.Tasks.Task<SetStyleSheetTextResponse> public 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); return _client.ExecuteDevToolsMethodAsync("CSS.setStyleSheetText", dict); } partial void ValidateSetStyleTexts(System.Collections.Generic.IList edits, int? nodeForPropertySyntaxValidation = null); /// /// Applies specified style edits one after another in the given order. /// /// edits /// NodeId for the DOM node in whose context custom property declarations for registered properties should bevalidated. If omitted, declarations in the new rule text can only be validated statically, which may produceincorrect results if the declaration contains a var() for example. /// returns System.Threading.Tasks.Task<SetStyleTextsResponse> public System.Threading.Tasks.Task SetStyleTextsAsync(System.Collections.Generic.IList edits, int? nodeForPropertySyntaxValidation = null) { ValidateSetStyleTexts(edits, nodeForPropertySyntaxValidation); var dict = new System.Collections.Generic.Dictionary(); dict.Add("edits", edits.Select(x => x.ToDictionary())); if (nodeForPropertySyntaxValidation.HasValue) { dict.Add("nodeForPropertySyntaxValidation", nodeForPropertySyntaxValidation.Value); } return _client.ExecuteDevToolsMethodAsync("CSS.setStyleTexts", dict); } /// /// Enables the selector recording. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StartRuleUsageTrackingAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("CSS.startRuleUsageTracking", dict); } /// /// 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 System.Threading.Tasks.Task StopRuleUsageTrackingAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("CSS.stopRuleUsageTracking", dict); } /// /// 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 System.Threading.Tasks.Task TakeCoverageDeltaAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("CSS.takeCoverageDelta", dict); } 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 System.Threading.Tasks.Task SetLocalFontsEnabledAsync(bool enabled) { ValidateSetLocalFontsEnabled(enabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("CSS.setLocalFontsEnabled", dict); } } } namespace CefSharp.DevTools.CacheStorage { /// /// RequestCacheNamesResponse /// public class RequestCacheNamesResponse : DevToolsDomainResponseBase { /// /// caches /// [JsonInclude] [JsonPropertyName("caches")] public System.Collections.Generic.IList Caches { get; private set; } } } namespace CefSharp.DevTools.CacheStorage { /// /// RequestCachedResponseResponse /// public class RequestCachedResponseResponse : DevToolsDomainResponseBase { /// /// response /// [JsonInclude] [JsonPropertyName("response")] public CefSharp.DevTools.CacheStorage.CachedResponse Response { get; private set; } } } namespace CefSharp.DevTools.CacheStorage { /// /// RequestEntriesResponse /// public class RequestEntriesResponse : DevToolsDomainResponseBase { /// /// cacheDataEntries /// [JsonInclude] [JsonPropertyName("cacheDataEntries")] public System.Collections.Generic.IList CacheDataEntries { get; private set; } /// /// returnCount /// [JsonInclude] [JsonPropertyName("returnCount")] public double ReturnCount { get; private set; } } } namespace CefSharp.DevTools.CacheStorage { using System.Linq; /// /// CacheStorage /// public partial class CacheStorageClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// CacheStorage /// /// DevToolsClient 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 System.Threading.Tasks.Task DeleteCacheAsync(string cacheId) { ValidateDeleteCache(cacheId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("cacheId", cacheId); return _client.ExecuteDevToolsMethodAsync("CacheStorage.deleteCache", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("CacheStorage.deleteEntry", dict); } partial void ValidateRequestCacheNames(string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Requests cache names. /// /// At least and at most one of securityOrigin, storageKey, storageBucket must be specified.Security origin. /// Storage key. /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<RequestCacheNamesResponse> public System.Threading.Tasks.Task RequestCacheNamesAsync(string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { ValidateRequestCacheNames(securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); } if (!(string.IsNullOrEmpty(storageKey))) { dict.Add("storageKey", storageKey); } if ((storageBucket) != (null)) { dict.Add("storageBucket", storageBucket.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("CacheStorage.requestCacheNames", dict); } 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 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())); return _client.ExecuteDevToolsMethodAsync("CacheStorage.requestCachedResponse", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("CacheStorage.requestEntries", dict); } } } 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; /// /// Cast /// /// DevToolsClient public CastClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// This is fired whenever the list of available sinks changes. A sink is a /// device or a software surface that you can cast to. /// public event System.EventHandler SinksUpdated { add { _client.AddEventHandler("Cast.sinksUpdated", value); } remove { _client.RemoveEventHandler("Cast.sinksUpdated", value); } } /// /// This is fired whenever the outstanding issue/error message changes. /// |issueMessage| is empty if there is no issue. /// public event System.EventHandler IssueUpdated { add { _client.AddEventHandler("Cast.issueUpdated", value); } remove { _client.RemoveEventHandler("Cast.issueUpdated", value); } } 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 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); } return _client.ExecuteDevToolsMethodAsync("Cast.enable", dict); } /// /// Stops observing for sinks and issues. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Cast.disable", dict); } 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 System.Threading.Tasks.Task SetSinkToUseAsync(string sinkName) { ValidateSetSinkToUse(sinkName); var dict = new System.Collections.Generic.Dictionary(); dict.Add("sinkName", sinkName); return _client.ExecuteDevToolsMethodAsync("Cast.setSinkToUse", dict); } partial void ValidateStartDesktopMirroring(string sinkName); /// /// Starts mirroring the desktop to the sink. /// /// sinkName /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StartDesktopMirroringAsync(string sinkName) { ValidateStartDesktopMirroring(sinkName); var dict = new System.Collections.Generic.Dictionary(); dict.Add("sinkName", sinkName); return _client.ExecuteDevToolsMethodAsync("Cast.startDesktopMirroring", dict); } partial void ValidateStartTabMirroring(string sinkName); /// /// Starts mirroring the tab to the sink. /// /// sinkName /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StartTabMirroringAsync(string sinkName) { ValidateStartTabMirroring(sinkName); var dict = new System.Collections.Generic.Dictionary(); dict.Add("sinkName", sinkName); return _client.ExecuteDevToolsMethodAsync("Cast.startTabMirroring", dict); } partial void ValidateStopCasting(string sinkName); /// /// Stops the active Cast session on the sink. /// /// sinkName /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StopCastingAsync(string sinkName) { ValidateStopCasting(sinkName); var dict = new System.Collections.Generic.Dictionary(); dict.Add("sinkName", sinkName); return _client.ExecuteDevToolsMethodAsync("Cast.stopCasting", dict); } } } namespace CefSharp.DevTools.DOM { /// /// CollectClassNamesFromSubtreeResponse /// public class CollectClassNamesFromSubtreeResponse : DevToolsDomainResponseBase { /// /// classNames /// [JsonInclude] [JsonPropertyName("classNames")] public string[] ClassNames { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// CopyToResponse /// public class CopyToResponse : DevToolsDomainResponseBase { /// /// nodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// DescribeNodeResponse /// public class DescribeNodeResponse : DevToolsDomainResponseBase { /// /// node /// [JsonInclude] [JsonPropertyName("node")] public CefSharp.DevTools.DOM.Node Node { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetAttributesResponse /// public class GetAttributesResponse : DevToolsDomainResponseBase { /// /// attributes /// [JsonInclude] [JsonPropertyName("attributes")] public string[] Attributes { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetBoxModelResponse /// public class GetBoxModelResponse : DevToolsDomainResponseBase { /// /// model /// [JsonInclude] [JsonPropertyName("model")] public CefSharp.DevTools.DOM.BoxModel Model { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetContentQuadsResponse /// public class GetContentQuadsResponse : DevToolsDomainResponseBase { /// /// quads /// [JsonInclude] [JsonPropertyName("quads")] public double[] Quads { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetDocumentResponse /// public class GetDocumentResponse : DevToolsDomainResponseBase { /// /// root /// [JsonInclude] [JsonPropertyName("root")] public CefSharp.DevTools.DOM.Node Root { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetNodesForSubtreeByStyleResponse /// public class GetNodesForSubtreeByStyleResponse : DevToolsDomainResponseBase { /// /// nodeIds /// [JsonInclude] [JsonPropertyName("nodeIds")] public int[] NodeIds { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetNodeForLocationResponse /// public class GetNodeForLocationResponse : DevToolsDomainResponseBase { /// /// backendNodeId /// [JsonInclude] [JsonPropertyName("backendNodeId")] public int BackendNodeId { get; private set; } /// /// frameId /// [JsonInclude] [JsonPropertyName("frameId")] public string FrameId { get; private set; } /// /// nodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int? NodeId { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetOuterHTMLResponse /// public class GetOuterHTMLResponse : DevToolsDomainResponseBase { /// /// outerHTML /// [JsonInclude] [JsonPropertyName("outerHTML")] public string OuterHTML { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetRelayoutBoundaryResponse /// public class GetRelayoutBoundaryResponse : DevToolsDomainResponseBase { /// /// nodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetSearchResultsResponse /// public class GetSearchResultsResponse : DevToolsDomainResponseBase { /// /// nodeIds /// [JsonInclude] [JsonPropertyName("nodeIds")] public int[] NodeIds { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// MoveToResponse /// public class MoveToResponse : DevToolsDomainResponseBase { /// /// nodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// PerformSearchResponse /// public class PerformSearchResponse : DevToolsDomainResponseBase { /// /// searchId /// [JsonInclude] [JsonPropertyName("searchId")] public string SearchId { get; private set; } /// /// resultCount /// [JsonInclude] [JsonPropertyName("resultCount")] public int ResultCount { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// PushNodeByPathToFrontendResponse /// public class PushNodeByPathToFrontendResponse : DevToolsDomainResponseBase { /// /// nodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// PushNodesByBackendIdsToFrontendResponse /// public class PushNodesByBackendIdsToFrontendResponse : DevToolsDomainResponseBase { /// /// nodeIds /// [JsonInclude] [JsonPropertyName("nodeIds")] public int[] NodeIds { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// QuerySelectorResponse /// public class QuerySelectorResponse : DevToolsDomainResponseBase { /// /// nodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// QuerySelectorAllResponse /// public class QuerySelectorAllResponse : DevToolsDomainResponseBase { /// /// nodeIds /// [JsonInclude] [JsonPropertyName("nodeIds")] public int[] NodeIds { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetTopLayerElementsResponse /// public class GetTopLayerElementsResponse : DevToolsDomainResponseBase { /// /// nodeIds /// [JsonInclude] [JsonPropertyName("nodeIds")] public int[] NodeIds { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetElementByRelationResponse /// public class GetElementByRelationResponse : DevToolsDomainResponseBase { /// /// nodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// RequestNodeResponse /// public class RequestNodeResponse : DevToolsDomainResponseBase { /// /// nodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// ResolveNodeResponse /// public class ResolveNodeResponse : DevToolsDomainResponseBase { /// /// object /// [JsonInclude] [JsonPropertyName("object")] public CefSharp.DevTools.Runtime.RemoteObject Object { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetNodeStackTracesResponse /// public class GetNodeStackTracesResponse : DevToolsDomainResponseBase { /// /// creation /// [JsonInclude] [JsonPropertyName("creation")] public CefSharp.DevTools.Runtime.StackTrace Creation { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetFileInfoResponse /// public class GetFileInfoResponse : DevToolsDomainResponseBase { /// /// path /// [JsonInclude] [JsonPropertyName("path")] public string Path { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetDetachedDomNodesResponse /// public class GetDetachedDomNodesResponse : DevToolsDomainResponseBase { /// /// detachedNodes /// [JsonInclude] [JsonPropertyName("detachedNodes")] public System.Collections.Generic.IList DetachedNodes { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// SetNodeNameResponse /// public class SetNodeNameResponse : DevToolsDomainResponseBase { /// /// nodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetFrameOwnerResponse /// public class GetFrameOwnerResponse : DevToolsDomainResponseBase { /// /// backendNodeId /// [JsonInclude] [JsonPropertyName("backendNodeId")] public int BackendNodeId { get; private set; } /// /// nodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int? NodeId { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetContainerForNodeResponse /// public class GetContainerForNodeResponse : DevToolsDomainResponseBase { /// /// nodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int? NodeId { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetQueryingDescendantsForContainerResponse /// public class GetQueryingDescendantsForContainerResponse : DevToolsDomainResponseBase { /// /// nodeIds /// [JsonInclude] [JsonPropertyName("nodeIds")] public int[] NodeIds { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// GetAnchorElementResponse /// public class GetAnchorElementResponse : DevToolsDomainResponseBase { /// /// nodeId /// [JsonInclude] [JsonPropertyName("nodeId")] public int NodeId { get; private set; } } } namespace CefSharp.DevTools.DOM { /// /// ForceShowPopoverResponse /// public class ForceShowPopoverResponse : DevToolsDomainResponseBase { /// /// nodeIds /// [JsonInclude] [JsonPropertyName("nodeIds")] public int[] NodeIds { get; private set; } } } namespace CefSharp.DevTools.DOM { using System.Linq; /// /// Whether to include whitespaces in the children array of returned Nodes. /// public enum EnableIncludeWhitespace { /// /// none /// [JsonPropertyName("none")] None, /// /// all /// [JsonPropertyName("all")] All } /// /// Type of relation to get. /// public enum GetElementByRelationRelation { /// /// PopoverTarget /// [JsonPropertyName("PopoverTarget")] PopoverTarget, /// /// InterestTarget /// [JsonPropertyName("InterestTarget")] InterestTarget, /// /// CommandFor /// [JsonPropertyName("CommandFor")] CommandFor } /// /// 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. Note that `iframe` owner elements will return /// corresponding document elements as their child nodes. /// public partial class DOMClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// DOM /// /// DevToolsClient public DOMClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Fired when `Element`'s attribute is modified. /// public event System.EventHandler AttributeModified { add { _client.AddEventHandler("DOM.attributeModified", value); } remove { _client.RemoveEventHandler("DOM.attributeModified", value); } } /// /// Fired when `Element`'s adoptedStyleSheets are modified. /// public event System.EventHandler AdoptedStyleSheetsModified { add { _client.AddEventHandler("DOM.adoptedStyleSheetsModified", value); } remove { _client.RemoveEventHandler("DOM.adoptedStyleSheetsModified", value); } } /// /// Fired when `Element`'s attribute is removed. /// public event System.EventHandler AttributeRemoved { add { _client.AddEventHandler("DOM.attributeRemoved", value); } remove { _client.RemoveEventHandler("DOM.attributeRemoved", value); } } /// /// Mirrors `DOMCharacterDataModified` event. /// public event System.EventHandler CharacterDataModified { add { _client.AddEventHandler("DOM.characterDataModified", value); } remove { _client.RemoveEventHandler("DOM.characterDataModified", value); } } /// /// Fired when `Container`'s child node count has changed. /// public event System.EventHandler ChildNodeCountUpdated { add { _client.AddEventHandler("DOM.childNodeCountUpdated", value); } remove { _client.RemoveEventHandler("DOM.childNodeCountUpdated", value); } } /// /// Mirrors `DOMNodeInserted` event. /// public event System.EventHandler ChildNodeInserted { add { _client.AddEventHandler("DOM.childNodeInserted", value); } remove { _client.RemoveEventHandler("DOM.childNodeInserted", value); } } /// /// Mirrors `DOMNodeRemoved` event. /// public event System.EventHandler ChildNodeRemoved { add { _client.AddEventHandler("DOM.childNodeRemoved", value); } remove { _client.RemoveEventHandler("DOM.childNodeRemoved", value); } } /// /// Called when distribution is changed. /// public event System.EventHandler DistributedNodesUpdated { add { _client.AddEventHandler("DOM.distributedNodesUpdated", value); } remove { _client.RemoveEventHandler("DOM.distributedNodesUpdated", value); } } /// /// Fired when `Document` has been totally updated. Node ids are no longer valid. /// public event System.EventHandler DocumentUpdated { add { _client.AddEventHandler("DOM.documentUpdated", value); } remove { _client.RemoveEventHandler("DOM.documentUpdated", value); } } /// /// Fired when `Element`'s inline style is modified via a CSS property modification. /// public event System.EventHandler InlineStyleInvalidated { add { _client.AddEventHandler("DOM.inlineStyleInvalidated", value); } remove { _client.RemoveEventHandler("DOM.inlineStyleInvalidated", value); } } /// /// Called when a pseudo element is added to an element. /// public event System.EventHandler PseudoElementAdded { add { _client.AddEventHandler("DOM.pseudoElementAdded", value); } remove { _client.RemoveEventHandler("DOM.pseudoElementAdded", value); } } /// /// Called when top layer elements are changed. /// public event System.EventHandler TopLayerElementsUpdated { add { _client.AddEventHandler("DOM.topLayerElementsUpdated", value); } remove { _client.RemoveEventHandler("DOM.topLayerElementsUpdated", value); } } /// /// Fired when a node's scrollability state changes. /// public event System.EventHandler ScrollableFlagUpdated { add { _client.AddEventHandler("DOM.scrollableFlagUpdated", value); } remove { _client.RemoveEventHandler("DOM.scrollableFlagUpdated", value); } } /// /// Fired when a node's starting styles changes. /// public event System.EventHandler AffectedByStartingStylesFlagUpdated { add { _client.AddEventHandler("DOM.affectedByStartingStylesFlagUpdated", value); } remove { _client.RemoveEventHandler("DOM.affectedByStartingStylesFlagUpdated", value); } } /// /// Called when a pseudo element is removed from an element. /// public event System.EventHandler PseudoElementRemoved { add { _client.AddEventHandler("DOM.pseudoElementRemoved", value); } remove { _client.RemoveEventHandler("DOM.pseudoElementRemoved", value); } } /// /// Fired when backend wants to provide client with the missing DOM structure. This happens upon /// most of the calls requesting node ids. /// public event System.EventHandler SetChildNodes { add { _client.AddEventHandler("DOM.setChildNodes", value); } remove { _client.RemoveEventHandler("DOM.setChildNodes", value); } } /// /// Called when shadow root is popped from the element. /// public event System.EventHandler ShadowRootPopped { add { _client.AddEventHandler("DOM.shadowRootPopped", value); } remove { _client.RemoveEventHandler("DOM.shadowRootPopped", value); } } /// /// Called when shadow root is pushed into the element. /// public event System.EventHandler ShadowRootPushed { add { _client.AddEventHandler("DOM.shadowRootPushed", value); } remove { _client.RemoveEventHandler("DOM.shadowRootPushed", value); } } 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 System.Threading.Tasks.Task CollectClassNamesFromSubtreeAsync(int nodeId) { ValidateCollectClassNamesFromSubtree(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("DOM.collectClassNamesFromSubtree", dict); } 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`targetNodeId`). /// returns System.Threading.Tasks.Task<CopyToResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("DOM.copyTo", dict); } 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 theentire subtree or provide an integer larger than 0. /// Whether or not iframes and shadow roots should be traversed when returning the subtree(default is false). /// returns System.Threading.Tasks.Task<DescribeNodeResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("DOM.describeNode", dict); } 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.When omitted, center of the node will be used, similar to Element.scrollIntoView. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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()); } return _client.ExecuteDevToolsMethodAsync("DOM.scrollIntoViewIfNeeded", dict); } /// /// Disables DOM agent for the given page. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOM.disable", dict); } 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 System.Threading.Tasks.Task DiscardSearchResultsAsync(string searchId) { ValidateDiscardSearchResults(searchId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("searchId", searchId); return _client.ExecuteDevToolsMethodAsync("DOM.discardSearchResults", dict); } partial void ValidateEnable(CefSharp.DevTools.DOM.EnableIncludeWhitespace? includeWhitespace = null); /// /// Enables DOM agent for the given page. /// /// Whether to include whitespaces in the children array of returned Nodes. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync(CefSharp.DevTools.DOM.EnableIncludeWhitespace? includeWhitespace = null) { ValidateEnable(includeWhitespace); var dict = new System.Collections.Generic.Dictionary(); if (includeWhitespace.HasValue) { dict.Add("includeWhitespace", EnumToString(includeWhitespace)); } return _client.ExecuteDevToolsMethodAsync("DOM.enable", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("DOM.focus", dict); } partial void ValidateGetAttributes(int nodeId); /// /// Returns attributes for the specified node. /// /// Id of the node to retrieve attributes for. /// returns System.Threading.Tasks.Task<GetAttributesResponse> public System.Threading.Tasks.Task GetAttributesAsync(int nodeId) { ValidateGetAttributes(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("DOM.getAttributes", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("DOM.getBoxModel", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("DOM.getContentQuads", dict); } partial void ValidateGetDocument(int? depth = null, bool? pierce = null); /// /// Returns the root DOM node (and optionally the subtree) to the caller. /// Implicitly enables the DOM domain events for the current target. /// /// The maximum depth at which children should be retrieved, defaults to 1. Use -1 for theentire subtree or provide an integer larger than 0. /// Whether or not iframes and shadow roots should be traversed when returning the subtree(default is false). /// returns System.Threading.Tasks.Task<GetDocumentResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("DOM.getDocument", dict); } 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 theresults (default is false). /// returns System.Threading.Tasks.Task<GetNodesForSubtreeByStyleResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("DOM.getNodesForSubtreeByStyle", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("DOM.getNodeForLocation", dict); } partial void ValidateGetOuterHTML(int? nodeId = null, int? backendNodeId = null, string objectId = null, bool? includeShadowDOM = null); /// /// Returns node's HTML markup. /// /// Identifier of the node. /// Identifier of the backend node. /// JavaScript object id of the node wrapper. /// Include all shadow roots. Equals to false if not specified. /// returns System.Threading.Tasks.Task<GetOuterHTMLResponse> public System.Threading.Tasks.Task GetOuterHTMLAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null, bool? includeShadowDOM = null) { ValidateGetOuterHTML(nodeId, backendNodeId, objectId, includeShadowDOM); 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 (includeShadowDOM.HasValue) { dict.Add("includeShadowDOM", includeShadowDOM.Value); } return _client.ExecuteDevToolsMethodAsync("DOM.getOuterHTML", dict); } 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 System.Threading.Tasks.Task GetRelayoutBoundaryAsync(int nodeId) { ValidateGetRelayoutBoundary(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("DOM.getRelayoutBoundary", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("DOM.getSearchResults", dict); } /// /// Hides any highlight. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task HideHighlightAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOM.hideHighlight", dict); } /// /// Highlights DOM node. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task HighlightNodeAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOM.highlightNode", dict); } /// /// Highlights given rectangle. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task HighlightRectAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOM.highlightRect", dict); } /// /// Marks last undoable state. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task MarkUndoableStateAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOM.markUndoableState", dict); } 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`targetNodeId`). /// returns System.Threading.Tasks.Task<MoveToResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("DOM.moveTo", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("DOM.performSearch", dict); } 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 System.Threading.Tasks.Task PushNodeByPathToFrontendAsync(string path) { ValidatePushNodeByPathToFrontend(path); var dict = new System.Collections.Generic.Dictionary(); dict.Add("path", path); return _client.ExecuteDevToolsMethodAsync("DOM.pushNodeByPathToFrontend", dict); } 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 System.Threading.Tasks.Task PushNodesByBackendIdsToFrontendAsync(int[] backendNodeIds) { ValidatePushNodesByBackendIdsToFrontend(backendNodeIds); var dict = new System.Collections.Generic.Dictionary(); dict.Add("backendNodeIds", backendNodeIds); return _client.ExecuteDevToolsMethodAsync("DOM.pushNodesByBackendIdsToFrontend", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("DOM.querySelector", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("DOM.querySelectorAll", dict); } /// /// Returns NodeIds of current top layer elements. /// Top layer is rendered closest to the user within a viewport, therefore its elements always /// appear on top of all other content. /// /// returns System.Threading.Tasks.Task<GetTopLayerElementsResponse> public System.Threading.Tasks.Task GetTopLayerElementsAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOM.getTopLayerElements", dict); } partial void ValidateGetElementByRelation(int nodeId, CefSharp.DevTools.DOM.GetElementByRelationRelation relation); /// /// Returns the NodeId of the matched element according to certain relations. /// /// Id of the node from which to query the relation. /// Type of relation to get. /// returns System.Threading.Tasks.Task<GetElementByRelationResponse> public System.Threading.Tasks.Task GetElementByRelationAsync(int nodeId, CefSharp.DevTools.DOM.GetElementByRelationRelation relation) { ValidateGetElementByRelation(nodeId, relation); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); dict.Add("relation", EnumToString(relation)); return _client.ExecuteDevToolsMethodAsync("DOM.getElementByRelation", dict); } /// /// Re-does the last undone action. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RedoAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOM.redo", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("DOM.removeAttribute", dict); } partial void ValidateRemoveNode(int nodeId); /// /// Removes node with given id. /// /// Id of the node to remove. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RemoveNodeAsync(int nodeId) { ValidateRemoveNode(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("DOM.removeNode", dict); } 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 theentire subtree or provide an integer larger than 0. /// Whether or not iframes and shadow roots should be traversed when returning the sub-tree(default is false). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("DOM.requestChildNodes", dict); } 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 System.Threading.Tasks.Task RequestNodeAsync(string objectId) { ValidateRequestNode(objectId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("objectId", objectId); return _client.ExecuteDevToolsMethodAsync("DOM.requestNode", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("DOM.resolveNode", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("DOM.setAttributeValue", dict); } 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 parsedsuccessfully. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("DOM.setAttributesAsText", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("DOM.setFileInputFiles", dict); } 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 System.Threading.Tasks.Task SetNodeStackTracesEnabledAsync(bool enable) { ValidateSetNodeStackTracesEnabled(enable); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("DOM.setNodeStackTracesEnabled", dict); } 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 System.Threading.Tasks.Task GetNodeStackTracesAsync(int nodeId) { ValidateGetNodeStackTraces(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("DOM.getNodeStackTraces", dict); } 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 System.Threading.Tasks.Task GetFileInfoAsync(string objectId) { ValidateGetFileInfo(objectId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("objectId", objectId); return _client.ExecuteDevToolsMethodAsync("DOM.getFileInfo", dict); } /// /// Returns list of detached nodes /// /// returns System.Threading.Tasks.Task<GetDetachedDomNodesResponse> public System.Threading.Tasks.Task GetDetachedDomNodesAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOM.getDetachedDomNodes", dict); } 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 System.Threading.Tasks.Task SetInspectedNodeAsync(int nodeId) { ValidateSetInspectedNode(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("DOM.setInspectedNode", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("DOM.setNodeName", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("DOM.setNodeValue", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("DOM.setOuterHTML", dict); } /// /// Undoes the last performed action. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task UndoAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOM.undo", dict); } partial void ValidateGetFrameOwner(string frameId); /// /// Returns iframe node that owns iframe with the given domain. /// /// frameId /// returns System.Threading.Tasks.Task<GetFrameOwnerResponse> public System.Threading.Tasks.Task GetFrameOwnerAsync(string frameId) { ValidateGetFrameOwner(frameId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("frameId", frameId); return _client.ExecuteDevToolsMethodAsync("DOM.getFrameOwner", dict); } partial void ValidateGetContainerForNode(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null, bool? queriesScrollState = null, bool? queriesAnchored = null); /// /// Returns the query container of the given node based on container query /// conditions: containerName, physical and logical axes, and whether it queries /// scroll-state or anchored elements. If no axes are provided and /// queriesScrollState is false, the style container is returned, which is the /// direct parent or the closest element with a matching container-name. /// /// nodeId /// containerName /// physicalAxes /// logicalAxes /// queriesScrollState /// queriesAnchored /// returns System.Threading.Tasks.Task<GetContainerForNodeResponse> public System.Threading.Tasks.Task GetContainerForNodeAsync(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null, bool? queriesScrollState = null, bool? queriesAnchored = null) { ValidateGetContainerForNode(nodeId, containerName, physicalAxes, logicalAxes, queriesScrollState, queriesAnchored); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); if (!(string.IsNullOrEmpty(containerName))) { dict.Add("containerName", containerName); } if (physicalAxes.HasValue) { dict.Add("physicalAxes", EnumToString(physicalAxes)); } if (logicalAxes.HasValue) { dict.Add("logicalAxes", EnumToString(logicalAxes)); } if (queriesScrollState.HasValue) { dict.Add("queriesScrollState", queriesScrollState.Value); } if (queriesAnchored.HasValue) { dict.Add("queriesAnchored", queriesAnchored.Value); } return _client.ExecuteDevToolsMethodAsync("DOM.getContainerForNode", dict); } partial void ValidateGetQueryingDescendantsForContainer(int nodeId); /// /// Returns the descendants of a container query container that have /// container queries against this container. /// /// Id of the container node to find querying descendants from. /// returns System.Threading.Tasks.Task<GetQueryingDescendantsForContainerResponse> public System.Threading.Tasks.Task GetQueryingDescendantsForContainerAsync(int nodeId) { ValidateGetQueryingDescendantsForContainer(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("DOM.getQueryingDescendantsForContainer", dict); } partial void ValidateGetAnchorElement(int nodeId, string anchorSpecifier = null); /// /// Returns the target anchor element of the given anchor query according to /// https://www.w3.org/TR/css-anchor-position-1/#target. /// /// Id of the positioned element from which to find the anchor. /// An optional anchor specifier, as defined inhttps://www.w3.org/TR/css-anchor-position-1/#anchor-specifier.If not provided, it will return the implicit anchor element forthe given positioned element. /// returns System.Threading.Tasks.Task<GetAnchorElementResponse> public System.Threading.Tasks.Task GetAnchorElementAsync(int nodeId, string anchorSpecifier = null) { ValidateGetAnchorElement(nodeId, anchorSpecifier); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); if (!(string.IsNullOrEmpty(anchorSpecifier))) { dict.Add("anchorSpecifier", anchorSpecifier); } return _client.ExecuteDevToolsMethodAsync("DOM.getAnchorElement", dict); } partial void ValidateForceShowPopover(int nodeId, bool enable); /// /// When enabling, this API force-opens the popover identified by nodeId /// and keeps it open until disabled. /// /// Id of the popover HTMLElement /// If true, opens the popover and keeps it open. If false, closes thepopover if it was previously force-opened. /// returns System.Threading.Tasks.Task<ForceShowPopoverResponse> public System.Threading.Tasks.Task ForceShowPopoverAsync(int nodeId, bool enable) { ValidateForceShowPopover(nodeId, enable); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("DOM.forceShowPopover", dict); } } } namespace CefSharp.DevTools.DOMDebugger { /// /// GetEventListenersResponse /// public class GetEventListenersResponse : DevToolsDomainResponseBase { /// /// listeners /// [JsonInclude] [JsonPropertyName("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; /// /// DOMDebugger /// /// DevToolsClient 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 theentire subtree or provide an integer larger than 0. /// Whether or not iframes and shadow roots should be traversed when returning the subtree(default is false). Reports listeners for all contexts if pierce is enabled. /// returns System.Threading.Tasks.Task<GetEventListenersResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("DOMDebugger.getEventListeners", dict); } 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 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", EnumToString(type)); return _client.ExecuteDevToolsMethodAsync("DOMDebugger.removeDOMBreakpoint", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("DOMDebugger.removeEventListenerBreakpoint", dict); } partial void ValidateRemoveXHRBreakpoint(string url); /// /// Removes breakpoint from XMLHttpRequest. /// /// Resource URL substring. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RemoveXHRBreakpointAsync(string url) { ValidateRemoveXHRBreakpoint(url); var dict = new System.Collections.Generic.Dictionary(); dict.Add("url", url); return _client.ExecuteDevToolsMethodAsync("DOMDebugger.removeXHRBreakpoint", dict); } partial void ValidateSetBreakOnCSPViolation(CefSharp.DevTools.DOMDebugger.CSPViolationType[] violationTypes); /// /// Sets breakpoint on particular CSP violations. /// /// CSP Violations to stop upon. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetBreakOnCSPViolationAsync(CefSharp.DevTools.DOMDebugger.CSPViolationType[] violationTypes) { ValidateSetBreakOnCSPViolation(violationTypes); var dict = new System.Collections.Generic.Dictionary(); dict.Add("violationTypes", EnumToString(violationTypes)); return _client.ExecuteDevToolsMethodAsync("DOMDebugger.setBreakOnCSPViolation", dict); } 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 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", EnumToString(type)); return _client.ExecuteDevToolsMethodAsync("DOMDebugger.setDOMBreakpoint", dict); } 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 anyEventTarget. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("DOMDebugger.setEventListenerBreakpoint", dict); } 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 System.Threading.Tasks.Task SetXHRBreakpointAsync(string url) { ValidateSetXHRBreakpoint(url); var dict = new System.Collections.Generic.Dictionary(); dict.Add("url", url); return _client.ExecuteDevToolsMethodAsync("DOMDebugger.setXHRBreakpoint", dict); } } } namespace CefSharp.DevTools.DOMSnapshot { /// /// CaptureSnapshotResponse /// public class CaptureSnapshotResponse : DevToolsDomainResponseBase { /// /// documents /// [JsonInclude] [JsonPropertyName("documents")] public System.Collections.Generic.IList Documents { get; private set; } /// /// strings /// [JsonInclude] [JsonPropertyName("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; /// /// DOMSnapshot /// /// DevToolsClient public DOMSnapshotClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Disables DOM snapshot agent for the given page. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOMSnapshot.disable", dict); } /// /// Enables DOM snapshot agent for the given page. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOMSnapshot.enable", dict); } partial void ValidateCaptureSnapshot(string[] computedStyles, bool? includePaintOrder = null, bool? includeDOMRects = null, bool? includeBlendedBackgroundColors = null, bool? includeTextColorOpacities = 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 /// Whether to include blended background colors in the snapshot (default: false).Blended background color is achieved by blending background colors of all elementsthat overlap with the current element. /// Whether to include text color opacity in the snapshot (default: false).An element might have the opacity property set that affects the text color of the element.The final text color opacity is computed based on the opacity of all overlapping elements. /// returns System.Threading.Tasks.Task<CaptureSnapshotResponse> public System.Threading.Tasks.Task CaptureSnapshotAsync(string[] computedStyles, bool? includePaintOrder = null, bool? includeDOMRects = null, bool? includeBlendedBackgroundColors = null, bool? includeTextColorOpacities = null) { ValidateCaptureSnapshot(computedStyles, includePaintOrder, includeDOMRects, includeBlendedBackgroundColors, includeTextColorOpacities); 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); } if (includeBlendedBackgroundColors.HasValue) { dict.Add("includeBlendedBackgroundColors", includeBlendedBackgroundColors.Value); } if (includeTextColorOpacities.HasValue) { dict.Add("includeTextColorOpacities", includeTextColorOpacities.Value); } return _client.ExecuteDevToolsMethodAsync("DOMSnapshot.captureSnapshot", dict); } } } namespace CefSharp.DevTools.DOMStorage { /// /// GetDOMStorageItemsResponse /// public class GetDOMStorageItemsResponse : DevToolsDomainResponseBase { /// /// entries /// [JsonInclude] [JsonPropertyName("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; /// /// DOMStorage /// /// DevToolsClient public DOMStorageClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// DomStorageItemAdded /// public event System.EventHandler DomStorageItemAdded { add { _client.AddEventHandler("DOMStorage.domStorageItemAdded", value); } remove { _client.RemoveEventHandler("DOMStorage.domStorageItemAdded", value); } } /// /// DomStorageItemRemoved /// public event System.EventHandler DomStorageItemRemoved { add { _client.AddEventHandler("DOMStorage.domStorageItemRemoved", value); } remove { _client.RemoveEventHandler("DOMStorage.domStorageItemRemoved", value); } } /// /// DomStorageItemUpdated /// public event System.EventHandler DomStorageItemUpdated { add { _client.AddEventHandler("DOMStorage.domStorageItemUpdated", value); } remove { _client.RemoveEventHandler("DOMStorage.domStorageItemUpdated", value); } } /// /// DomStorageItemsCleared /// public event System.EventHandler DomStorageItemsCleared { add { _client.AddEventHandler("DOMStorage.domStorageItemsCleared", value); } remove { _client.RemoveEventHandler("DOMStorage.domStorageItemsCleared", value); } } partial void ValidateClear(CefSharp.DevTools.DOMStorage.StorageId storageId); /// /// Clear /// /// storageId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearAsync(CefSharp.DevTools.DOMStorage.StorageId storageId) { ValidateClear(storageId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("storageId", storageId.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("DOMStorage.clear", dict); } /// /// Disables storage tracking, prevents storage events from being sent to the client. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOMStorage.disable", dict); } /// /// Enables storage tracking, storage events will now be delivered to the client. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DOMStorage.enable", dict); } partial void ValidateGetDOMStorageItems(CefSharp.DevTools.DOMStorage.StorageId storageId); /// /// GetDOMStorageItems /// /// storageId /// returns System.Threading.Tasks.Task<GetDOMStorageItemsResponse> public System.Threading.Tasks.Task GetDOMStorageItemsAsync(CefSharp.DevTools.DOMStorage.StorageId storageId) { ValidateGetDOMStorageItems(storageId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("storageId", storageId.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("DOMStorage.getDOMStorageItems", dict); } partial void ValidateRemoveDOMStorageItem(CefSharp.DevTools.DOMStorage.StorageId storageId, string key); /// /// RemoveDOMStorageItem /// /// storageId /// key /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); return _client.ExecuteDevToolsMethodAsync("DOMStorage.removeDOMStorageItem", dict); } partial void ValidateSetDOMStorageItem(CefSharp.DevTools.DOMStorage.StorageId storageId, string key, string value); /// /// SetDOMStorageItem /// /// storageId /// key /// value /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); return _client.ExecuteDevToolsMethodAsync("DOMStorage.setDOMStorageItem", dict); } } } namespace CefSharp.DevTools.DeviceAccess { using System.Linq; /// /// DeviceAccess /// public partial class DeviceAccessClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// DeviceAccess /// /// DevToolsClient public DeviceAccessClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// A device request opened a user prompt to select a device. Respond with the /// selectPrompt or cancelPrompt command. /// public event System.EventHandler DeviceRequestPrompted { add { _client.AddEventHandler("DeviceAccess.deviceRequestPrompted", value); } remove { _client.RemoveEventHandler("DeviceAccess.deviceRequestPrompted", value); } } /// /// Enable events in this domain. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DeviceAccess.enable", dict); } /// /// Disable events in this domain. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DeviceAccess.disable", dict); } partial void ValidateSelectPrompt(string id, string deviceId); /// /// Select a device in response to a DeviceAccess.deviceRequestPrompted event. /// /// id /// deviceId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SelectPromptAsync(string id, string deviceId) { ValidateSelectPrompt(id, deviceId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("id", id); dict.Add("deviceId", deviceId); return _client.ExecuteDevToolsMethodAsync("DeviceAccess.selectPrompt", dict); } partial void ValidateCancelPrompt(string id); /// /// Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event. /// /// id /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task CancelPromptAsync(string id) { ValidateCancelPrompt(id); var dict = new System.Collections.Generic.Dictionary(); dict.Add("id", id); return _client.ExecuteDevToolsMethodAsync("DeviceAccess.cancelPrompt", dict); } } } namespace CefSharp.DevTools.DeviceOrientation { using System.Linq; /// /// DeviceOrientation /// public partial class DeviceOrientationClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// DeviceOrientation /// /// DevToolsClient public DeviceOrientationClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Clears the overridden Device Orientation. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearDeviceOrientationOverrideAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("DeviceOrientation.clearDeviceOrientationOverride", dict); } partial void ValidateSetDeviceOrientationOverride(double alpha, double beta, double gamma); /// /// Overrides the Device Orientation. /// /// Mock alpha /// Mock beta /// Mock gamma /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetDeviceOrientationOverrideAsync(double alpha, double beta, double gamma) { ValidateSetDeviceOrientationOverride(alpha, beta, gamma); var dict = new System.Collections.Generic.Dictionary(); dict.Add("alpha", alpha); dict.Add("beta", beta); dict.Add("gamma", gamma); return _client.ExecuteDevToolsMethodAsync("DeviceOrientation.setDeviceOrientationOverride", dict); } } } namespace CefSharp.DevTools.Emulation { /// /// GetOverriddenSensorInformationResponse /// public class GetOverriddenSensorInformationResponse : DevToolsDomainResponseBase { /// /// requestedSamplingFrequency /// [JsonInclude] [JsonPropertyName("requestedSamplingFrequency")] public double RequestedSamplingFrequency { get; private set; } } } namespace CefSharp.DevTools.Emulation { /// /// SetVirtualTimePolicyResponse /// public class SetVirtualTimePolicyResponse : DevToolsDomainResponseBase { /// /// virtualTimeTicksBase /// [JsonInclude] [JsonPropertyName("virtualTimeTicksBase")] public double VirtualTimeTicksBase { get; private set; } } } namespace CefSharp.DevTools.Emulation { /// /// GetScreenInfosResponse /// public class GetScreenInfosResponse : DevToolsDomainResponseBase { /// /// screenInfos /// [JsonInclude] [JsonPropertyName("screenInfos")] public System.Collections.Generic.IList ScreenInfos { get; private set; } } } namespace CefSharp.DevTools.Emulation { /// /// AddScreenResponse /// public class AddScreenResponse : DevToolsDomainResponseBase { /// /// screenInfo /// [JsonInclude] [JsonPropertyName("screenInfo")] public CefSharp.DevTools.Emulation.ScreenInfo ScreenInfo { get; private set; } } } namespace CefSharp.DevTools.Emulation { using System.Linq; /// /// Touch/gesture events configuration. Default: current platform. /// public enum SetEmitTouchEventsForMouseConfiguration { /// /// mobile /// [JsonPropertyName("mobile")] Mobile, /// /// desktop /// [JsonPropertyName("desktop")] Desktop } /// /// Vision deficiency to emulate. Order: best-effort emulations come first, followed by any /// physiologically accurate emulations for medically recognized color vision deficiencies. /// public enum SetEmulatedVisionDeficiencyType { /// /// none /// [JsonPropertyName("none")] None, /// /// blurredVision /// [JsonPropertyName("blurredVision")] BlurredVision, /// /// reducedContrast /// [JsonPropertyName("reducedContrast")] ReducedContrast, /// /// achromatopsia /// [JsonPropertyName("achromatopsia")] Achromatopsia, /// /// deuteranopia /// [JsonPropertyName("deuteranopia")] Deuteranopia, /// /// protanopia /// [JsonPropertyName("protanopia")] Protanopia, /// /// tritanopia /// [JsonPropertyName("tritanopia")] Tritanopia } /// /// This domain emulates different environments for the page. /// public partial class EmulationClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Emulation /// /// DevToolsClient public EmulationClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Notification sent after the virtual time budget for the current VirtualTimePolicy has run out. /// public event System.EventHandler VirtualTimeBudgetExpired { add { _client.AddEventHandler("Emulation.virtualTimeBudgetExpired", value); } remove { _client.RemoveEventHandler("Emulation.virtualTimeBudgetExpired", value); } } /// /// Clears the overridden device metrics. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearDeviceMetricsOverrideAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Emulation.clearDeviceMetricsOverride", dict); } /// /// Clears the overridden Geolocation Position and Error. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearGeolocationOverrideAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Emulation.clearGeolocationOverride", dict); } /// /// Requests that page scale factor is reset to initial values. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ResetPageScaleFactorAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Emulation.resetPageScaleFactor", dict); } 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 System.Threading.Tasks.Task SetFocusEmulationEnabledAsync(bool enabled) { ValidateSetFocusEmulationEnabled(enabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Emulation.setFocusEmulationEnabled", dict); } partial void ValidateSetAutoDarkModeOverride(bool? enabled = null); /// /// Automatically render all web contents using a dark theme. /// /// Whether to enable or disable automatic dark mode.If not specified, any existing override will be cleared. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetAutoDarkModeOverrideAsync(bool? enabled = null) { ValidateSetAutoDarkModeOverride(enabled); var dict = new System.Collections.Generic.Dictionary(); if (enabled.HasValue) { dict.Add("enabled", enabled.Value); } return _client.ExecuteDevToolsMethodAsync("Emulation.setAutoDarkModeOverride", dict); } partial void ValidateSetCPUThrottlingRate(double 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 System.Threading.Tasks.Task SetCPUThrottlingRateAsync(double rate) { ValidateSetCPUThrottlingRate(rate); var dict = new System.Collections.Generic.Dictionary(); dict.Add("rate", rate); return _client.ExecuteDevToolsMethodAsync("Emulation.setCPUThrottlingRate", dict); } 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 becleared. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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()); } return _client.ExecuteDevToolsMethodAsync("Emulation.setDefaultBackgroundColorOverride", dict); } partial void ValidateSetSafeAreaInsetsOverride(CefSharp.DevTools.Emulation.SafeAreaInsets insets); /// /// Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the /// respective variables to be undefined, even if previously overridden. /// /// insets /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetSafeAreaInsetsOverrideAsync(CefSharp.DevTools.Emulation.SafeAreaInsets insets) { ValidateSetSafeAreaInsetsOverride(insets); var dict = new System.Collections.Generic.Dictionary(); dict.Add("insets", insets.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("Emulation.setSafeAreaInsetsOverride", dict); } partial void ValidateSetDeviceMetricsOverride(int width, int height, double deviceScaleFactor, bool mobile, double? 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, CefSharp.DevTools.Emulation.DevicePosture devicePosture = 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, textautosizing and more. /// Scale to apply to resulting view image. /// Overriding screen width value in pixels (minimum 0, maximum 10000000). /// Overriding screen height value in pixels (minimum 0, maximum 10000000). /// Overriding view X position on screen in pixels (minimum 0, maximum 10000000). /// Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). /// Do not set visible view size, rely upon explicit setVisibleSize call. /// Screen orientation override. /// If set, the visible area of the page will be overridden to this viewport. This viewportchange is not observed by the page, e.g. viewport-relative elements do not change positions. /// If set, the display feature of a multi-segment screen. If not set, multi-segment supportis turned-off.Deprecated, use Emulation.setDisplayFeaturesOverride. /// If set, the posture of a foldable device. If not set the posture is setto continuous.Deprecated, use Emulation.setDevicePostureOverride. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, double deviceScaleFactor, bool mobile, double? 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, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null) { ValidateSetDeviceMetricsOverride(width, height, deviceScaleFactor, mobile, scale, screenWidth, screenHeight, positionX, positionY, dontSetVisibleSize, screenOrientation, viewport, displayFeature, devicePosture); 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()); } if ((devicePosture) != (null)) { dict.Add("devicePosture", devicePosture.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("Emulation.setDeviceMetricsOverride", dict); } partial void ValidateSetDevicePostureOverride(CefSharp.DevTools.Emulation.DevicePosture posture); /// /// Start reporting the given posture value to the Device Posture API. /// This override can also be set in setDeviceMetricsOverride(). /// /// posture /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetDevicePostureOverrideAsync(CefSharp.DevTools.Emulation.DevicePosture posture) { ValidateSetDevicePostureOverride(posture); var dict = new System.Collections.Generic.Dictionary(); dict.Add("posture", posture.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("Emulation.setDevicePostureOverride", dict); } /// /// Clears a device posture override set with either setDeviceMetricsOverride() /// or setDevicePostureOverride() and starts using posture information from the /// platform again. /// Does nothing if no override is set. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearDevicePostureOverrideAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Emulation.clearDevicePostureOverride", dict); } partial void ValidateSetDisplayFeaturesOverride(System.Collections.Generic.IList features); /// /// Start using the given display features to pupulate the Viewport Segments API. /// This override can also be set in setDeviceMetricsOverride(). /// /// features /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetDisplayFeaturesOverrideAsync(System.Collections.Generic.IList features) { ValidateSetDisplayFeaturesOverride(features); var dict = new System.Collections.Generic.Dictionary(); dict.Add("features", features.Select(x => x.ToDictionary())); return _client.ExecuteDevToolsMethodAsync("Emulation.setDisplayFeaturesOverride", dict); } /// /// Clears the display features override set with either setDeviceMetricsOverride() /// or setDisplayFeaturesOverride() and starts using display features from the /// platform again. /// Does nothing if no override is set. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearDisplayFeaturesOverrideAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Emulation.clearDisplayFeaturesOverride", dict); } partial void ValidateSetScrollbarsHidden(bool hidden); /// /// SetScrollbarsHidden /// /// Whether scrollbars should be always hidden. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetScrollbarsHiddenAsync(bool hidden) { ValidateSetScrollbarsHidden(hidden); var dict = new System.Collections.Generic.Dictionary(); dict.Add("hidden", hidden); return _client.ExecuteDevToolsMethodAsync("Emulation.setScrollbarsHidden", dict); } partial void ValidateSetDocumentCookieDisabled(bool disabled); /// /// SetDocumentCookieDisabled /// /// Whether document.coookie API should be disabled. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetDocumentCookieDisabledAsync(bool disabled) { ValidateSetDocumentCookieDisabled(disabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("disabled", disabled); return _client.ExecuteDevToolsMethodAsync("Emulation.setDocumentCookieDisabled", dict); } partial void ValidateSetEmitTouchEventsForMouse(bool enabled, CefSharp.DevTools.Emulation.SetEmitTouchEventsForMouseConfiguration? 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 System.Threading.Tasks.Task SetEmitTouchEventsForMouseAsync(bool enabled, CefSharp.DevTools.Emulation.SetEmitTouchEventsForMouseConfiguration? configuration = null) { ValidateSetEmitTouchEventsForMouse(enabled, configuration); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); if (configuration.HasValue) { dict.Add("configuration", EnumToString(configuration)); } return _client.ExecuteDevToolsMethodAsync("Emulation.setEmitTouchEventsForMouse", dict); } 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 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())); } return _client.ExecuteDevToolsMethodAsync("Emulation.setEmulatedMedia", dict); } partial void ValidateSetEmulatedVisionDeficiency(CefSharp.DevTools.Emulation.SetEmulatedVisionDeficiencyType type); /// /// Emulates the given vision deficiency. /// /// Vision deficiency to emulate. Order: best-effort emulations come first, followed by anyphysiologically accurate emulations for medically recognized color vision deficiencies. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetEmulatedVisionDeficiencyAsync(CefSharp.DevTools.Emulation.SetEmulatedVisionDeficiencyType type) { ValidateSetEmulatedVisionDeficiency(type); var dict = new System.Collections.Generic.Dictionary(); dict.Add("type", EnumToString(type)); return _client.ExecuteDevToolsMethodAsync("Emulation.setEmulatedVisionDeficiency", dict); } partial void ValidateSetEmulatedOSTextScale(double? scale = null); /// /// Emulates the given OS text scale. /// /// scale /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetEmulatedOSTextScaleAsync(double? scale = null) { ValidateSetEmulatedOSTextScale(scale); var dict = new System.Collections.Generic.Dictionary(); if (scale.HasValue) { dict.Add("scale", scale.Value); } return _client.ExecuteDevToolsMethodAsync("Emulation.setEmulatedOSTextScale", dict); } partial void ValidateSetGeolocationOverride(double? latitude = null, double? longitude = null, double? accuracy = null, double? altitude = null, double? altitudeAccuracy = null, double? heading = null, double? speed = null); /// /// Overrides the Geolocation Position or Error. Omitting latitude, longitude or /// accuracy emulates position unavailable. /// /// Mock latitude /// Mock longitude /// Mock accuracy /// Mock altitude /// Mock altitudeAccuracy /// Mock heading /// Mock speed /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetGeolocationOverrideAsync(double? latitude = null, double? longitude = null, double? accuracy = null, double? altitude = null, double? altitudeAccuracy = null, double? heading = null, double? speed = null) { ValidateSetGeolocationOverride(latitude, longitude, accuracy, altitude, altitudeAccuracy, heading, speed); 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); } if (altitude.HasValue) { dict.Add("altitude", altitude.Value); } if (altitudeAccuracy.HasValue) { dict.Add("altitudeAccuracy", altitudeAccuracy.Value); } if (heading.HasValue) { dict.Add("heading", heading.Value); } if (speed.HasValue) { dict.Add("speed", speed.Value); } return _client.ExecuteDevToolsMethodAsync("Emulation.setGeolocationOverride", dict); } partial void ValidateGetOverriddenSensorInformation(CefSharp.DevTools.Emulation.SensorType type); /// /// GetOverriddenSensorInformation /// /// type /// returns System.Threading.Tasks.Task<GetOverriddenSensorInformationResponse> public System.Threading.Tasks.Task GetOverriddenSensorInformationAsync(CefSharp.DevTools.Emulation.SensorType type) { ValidateGetOverriddenSensorInformation(type); var dict = new System.Collections.Generic.Dictionary(); dict.Add("type", EnumToString(type)); return _client.ExecuteDevToolsMethodAsync("Emulation.getOverriddenSensorInformation", dict); } partial void ValidateSetSensorOverrideEnabled(bool enabled, CefSharp.DevTools.Emulation.SensorType type, CefSharp.DevTools.Emulation.SensorMetadata metadata = null); /// /// Overrides a platform sensor of a given type. If |enabled| is true, calls to /// Sensor.start() will use a virtual sensor as backend rather than fetching /// data from a real hardware sensor. Otherwise, existing virtual /// sensor-backend Sensor objects will fire an error event and new calls to /// Sensor.start() will attempt to use a real sensor instead. /// /// enabled /// type /// metadata /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetSensorOverrideEnabledAsync(bool enabled, CefSharp.DevTools.Emulation.SensorType type, CefSharp.DevTools.Emulation.SensorMetadata metadata = null) { ValidateSetSensorOverrideEnabled(enabled, type, metadata); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); dict.Add("type", EnumToString(type)); if ((metadata) != (null)) { dict.Add("metadata", metadata.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("Emulation.setSensorOverrideEnabled", dict); } partial void ValidateSetSensorOverrideReadings(CefSharp.DevTools.Emulation.SensorType type, CefSharp.DevTools.Emulation.SensorReading reading); /// /// Updates the sensor readings reported by a sensor type previously overridden /// by setSensorOverrideEnabled. /// /// type /// reading /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetSensorOverrideReadingsAsync(CefSharp.DevTools.Emulation.SensorType type, CefSharp.DevTools.Emulation.SensorReading reading) { ValidateSetSensorOverrideReadings(type, reading); var dict = new System.Collections.Generic.Dictionary(); dict.Add("type", EnumToString(type)); dict.Add("reading", reading.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("Emulation.setSensorOverrideReadings", dict); } partial void ValidateSetPressureSourceOverrideEnabled(bool enabled, CefSharp.DevTools.Emulation.PressureSource source, CefSharp.DevTools.Emulation.PressureMetadata metadata = null); /// /// Overrides a pressure source of a given type, as used by the Compute /// Pressure API, so that updates to PressureObserver.observe() are provided /// via setPressureStateOverride instead of being retrieved from /// platform-provided telemetry data. /// /// enabled /// source /// metadata /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetPressureSourceOverrideEnabledAsync(bool enabled, CefSharp.DevTools.Emulation.PressureSource source, CefSharp.DevTools.Emulation.PressureMetadata metadata = null) { ValidateSetPressureSourceOverrideEnabled(enabled, source, metadata); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); dict.Add("source", EnumToString(source)); if ((metadata) != (null)) { dict.Add("metadata", metadata.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("Emulation.setPressureSourceOverrideEnabled", dict); } partial void ValidateSetPressureStateOverride(CefSharp.DevTools.Emulation.PressureSource source, CefSharp.DevTools.Emulation.PressureState state); /// /// TODO: OBSOLETE: To remove when setPressureDataOverride is merged. /// Provides a given pressure state that will be processed and eventually be /// delivered to PressureObserver users. |source| must have been previously /// overridden by setPressureSourceOverrideEnabled. /// /// source /// state /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetPressureStateOverrideAsync(CefSharp.DevTools.Emulation.PressureSource source, CefSharp.DevTools.Emulation.PressureState state) { ValidateSetPressureStateOverride(source, state); var dict = new System.Collections.Generic.Dictionary(); dict.Add("source", EnumToString(source)); dict.Add("state", EnumToString(state)); return _client.ExecuteDevToolsMethodAsync("Emulation.setPressureStateOverride", dict); } partial void ValidateSetPressureDataOverride(CefSharp.DevTools.Emulation.PressureSource source, CefSharp.DevTools.Emulation.PressureState state, double? ownContributionEstimate = null); /// /// Provides a given pressure data set that will be processed and eventually be /// delivered to PressureObserver users. |source| must have been previously /// overridden by setPressureSourceOverrideEnabled. /// /// source /// state /// ownContributionEstimate /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetPressureDataOverrideAsync(CefSharp.DevTools.Emulation.PressureSource source, CefSharp.DevTools.Emulation.PressureState state, double? ownContributionEstimate = null) { ValidateSetPressureDataOverride(source, state, ownContributionEstimate); var dict = new System.Collections.Generic.Dictionary(); dict.Add("source", EnumToString(source)); dict.Add("state", EnumToString(state)); if (ownContributionEstimate.HasValue) { dict.Add("ownContributionEstimate", ownContributionEstimate.Value); } return _client.ExecuteDevToolsMethodAsync("Emulation.setPressureDataOverride", dict); } partial void ValidateSetIdleOverride(bool isUserActive, bool isScreenUnlocked); /// /// Overrides the Idle state. /// /// Mock isUserActive /// Mock isScreenUnlocked /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); return _client.ExecuteDevToolsMethodAsync("Emulation.setIdleOverride", dict); } /// /// Clears Idle state overrides. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearIdleOverrideAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Emulation.clearIdleOverride", dict); } partial void ValidateSetPageScaleFactor(double pageScaleFactor); /// /// Sets a specified page scale factor. /// /// Page scale factor. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetPageScaleFactorAsync(double pageScaleFactor) { ValidateSetPageScaleFactor(pageScaleFactor); var dict = new System.Collections.Generic.Dictionary(); dict.Add("pageScaleFactor", pageScaleFactor); return _client.ExecuteDevToolsMethodAsync("Emulation.setPageScaleFactor", dict); } 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 System.Threading.Tasks.Task SetScriptExecutionDisabledAsync(bool value) { ValidateSetScriptExecutionDisabled(value); var dict = new System.Collections.Generic.Dictionary(); dict.Add("value", value); return _client.ExecuteDevToolsMethodAsync("Emulation.setScriptExecutionDisabled", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Emulation.setTouchEmulationEnabled", dict); } partial void ValidateSetVirtualTimePolicy(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, double? 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 avirtualTimeBudgetExpired event is sent. /// If set this specifies the maximum number of tasks that can be run before virtual is forcedforwards to prevent deadlock. /// If set, base::Time::Now will be overridden to initially return this value. /// returns System.Threading.Tasks.Task<SetVirtualTimePolicyResponse> public System.Threading.Tasks.Task SetVirtualTimePolicyAsync(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, double? initialVirtualTime = null) { ValidateSetVirtualTimePolicy(policy, budget, maxVirtualTimeTaskStarvationCount, initialVirtualTime); var dict = new System.Collections.Generic.Dictionary(); dict.Add("policy", EnumToString(policy)); if (budget.HasValue) { dict.Add("budget", budget.Value); } if (maxVirtualTimeTaskStarvationCount.HasValue) { dict.Add("maxVirtualTimeTaskStarvationCount", maxVirtualTimeTaskStarvationCount.Value); } if (initialVirtualTime.HasValue) { dict.Add("initialVirtualTime", initialVirtualTime.Value); } return _client.ExecuteDevToolsMethodAsync("Emulation.setVirtualTimePolicy", dict); } 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 andrestores default host system locale. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Emulation.setLocaleOverride", dict); } partial void ValidateSetTimezoneOverride(string timezoneId); /// /// Overrides default host system timezone with the specified one. /// /// The timezone identifier. List of supported timezones:https://source.chromium.org/chromium/chromium/deps/icu.git/+/faee8bc70570192d82d2978a71e2a615788597d1:source/data/misc/metaZones.txtIf empty, disables the override and restores default host system timezone. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetTimezoneOverrideAsync(string timezoneId) { ValidateSetTimezoneOverride(timezoneId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("timezoneId", timezoneId); return _client.ExecuteDevToolsMethodAsync("Emulation.setTimezoneOverride", dict); } partial void ValidateSetDisabledImageTypes(CefSharp.DevTools.Emulation.DisabledImageType[] imageTypes); /// /// SetDisabledImageTypes /// /// Image types to disable. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetDisabledImageTypesAsync(CefSharp.DevTools.Emulation.DisabledImageType[] imageTypes) { ValidateSetDisabledImageTypes(imageTypes); var dict = new System.Collections.Generic.Dictionary(); dict.Add("imageTypes", EnumToString(imageTypes)); return _client.ExecuteDevToolsMethodAsync("Emulation.setDisabledImageTypes", dict); } partial void ValidateSetDataSaverOverride(bool? dataSaverEnabled = null); /// /// Override the value of navigator.connection.saveData /// /// Override value. Omitting the parameter disables the override. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetDataSaverOverrideAsync(bool? dataSaverEnabled = null) { ValidateSetDataSaverOverride(dataSaverEnabled); var dict = new System.Collections.Generic.Dictionary(); if (dataSaverEnabled.HasValue) { dict.Add("dataSaverEnabled", dataSaverEnabled.Value); } return _client.ExecuteDevToolsMethodAsync("Emulation.setDataSaverOverride", dict); } partial void ValidateSetHardwareConcurrencyOverride(int hardwareConcurrency); /// /// SetHardwareConcurrencyOverride /// /// Hardware concurrency to report /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetHardwareConcurrencyOverrideAsync(int hardwareConcurrency) { ValidateSetHardwareConcurrencyOverride(hardwareConcurrency); var dict = new System.Collections.Generic.Dictionary(); dict.Add("hardwareConcurrency", hardwareConcurrency); return _client.ExecuteDevToolsMethodAsync("Emulation.setHardwareConcurrencyOverride", dict); } 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. /// `userAgentMetadata` must be set for Client Hint headers to be sent. /// /// User agent to use. /// Browser language 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 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()); } return _client.ExecuteDevToolsMethodAsync("Emulation.setUserAgentOverride", dict); } partial void ValidateSetAutomationOverride(bool enabled); /// /// Allows overriding the automation flag. /// /// Whether the override should be enabled. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetAutomationOverrideAsync(bool enabled) { ValidateSetAutomationOverride(enabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Emulation.setAutomationOverride", dict); } partial void ValidateSetSmallViewportHeightDifferenceOverride(int difference); /// /// Allows overriding the difference between the small and large viewport sizes, which determine the /// value of the `svh` and `lvh` unit, respectively. Only supported for top-level frames. /// /// This will cause an element of size 100svh to be `difference` pixels smaller than an elementof size 100lvh. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetSmallViewportHeightDifferenceOverrideAsync(int difference) { ValidateSetSmallViewportHeightDifferenceOverride(difference); var dict = new System.Collections.Generic.Dictionary(); dict.Add("difference", difference); return _client.ExecuteDevToolsMethodAsync("Emulation.setSmallViewportHeightDifferenceOverride", dict); } /// /// Returns device's screen configuration. /// /// returns System.Threading.Tasks.Task<GetScreenInfosResponse> public System.Threading.Tasks.Task GetScreenInfosAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Emulation.getScreenInfos", dict); } partial void ValidateAddScreen(int left, int top, int width, int height, CefSharp.DevTools.Emulation.WorkAreaInsets workAreaInsets = null, double? devicePixelRatio = null, int? rotation = null, int? colorDepth = null, string label = null, bool? isInternal = null); /// /// Add a new screen to the device. Only supported in headless mode. /// /// Offset of the left edge of the screen in pixels. /// Offset of the top edge of the screen in pixels. /// The width of the screen in pixels. /// The height of the screen in pixels. /// Specifies the screen's work area. Default is entire screen. /// Specifies the screen's device pixel ratio. Default is 1. /// Specifies the screen's rotation angle. Available values are 0, 90, 180 and 270. Default is 0. /// Specifies the screen's color depth in bits. Default is 24. /// Specifies the descriptive label for the screen. Default is none. /// Indicates whether the screen is internal to the device or external, attached to the device. Default is false. /// returns System.Threading.Tasks.Task<AddScreenResponse> public System.Threading.Tasks.Task AddScreenAsync(int left, int top, int width, int height, CefSharp.DevTools.Emulation.WorkAreaInsets workAreaInsets = null, double? devicePixelRatio = null, int? rotation = null, int? colorDepth = null, string label = null, bool? isInternal = null) { ValidateAddScreen(left, top, width, height, workAreaInsets, devicePixelRatio, rotation, colorDepth, label, isInternal); var dict = new System.Collections.Generic.Dictionary(); dict.Add("left", left); dict.Add("top", top); dict.Add("width", width); dict.Add("height", height); if ((workAreaInsets) != (null)) { dict.Add("workAreaInsets", workAreaInsets.ToDictionary()); } if (devicePixelRatio.HasValue) { dict.Add("devicePixelRatio", devicePixelRatio.Value); } if (rotation.HasValue) { dict.Add("rotation", rotation.Value); } if (colorDepth.HasValue) { dict.Add("colorDepth", colorDepth.Value); } if (!(string.IsNullOrEmpty(label))) { dict.Add("label", label); } if (isInternal.HasValue) { dict.Add("isInternal", isInternal.Value); } return _client.ExecuteDevToolsMethodAsync("Emulation.addScreen", dict); } partial void ValidateRemoveScreen(string screenId); /// /// Remove screen from the device. Only supported in headless mode. /// /// screenId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RemoveScreenAsync(string screenId) { ValidateRemoveScreen(screenId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("screenId", screenId); return _client.ExecuteDevToolsMethodAsync("Emulation.removeScreen", dict); } } } namespace CefSharp.DevTools.EventBreakpoints { using System.Linq; /// /// EventBreakpoints permits setting JavaScript breakpoints on operations and events /// occurring in native code invoked from JavaScript. Once breakpoint is hit, it is /// reported through Debugger domain, similarly to regular breakpoints being hit. /// public partial class EventBreakpointsClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// EventBreakpoints /// /// DevToolsClient public EventBreakpointsClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } partial void ValidateSetInstrumentationBreakpoint(string eventName); /// /// Sets breakpoint on particular native event. /// /// Instrumentation name to stop on. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetInstrumentationBreakpointAsync(string eventName) { ValidateSetInstrumentationBreakpoint(eventName); var dict = new System.Collections.Generic.Dictionary(); dict.Add("eventName", eventName); return _client.ExecuteDevToolsMethodAsync("EventBreakpoints.setInstrumentationBreakpoint", dict); } partial void ValidateRemoveInstrumentationBreakpoint(string eventName); /// /// Removes breakpoint on particular native event. /// /// Instrumentation name to stop on. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RemoveInstrumentationBreakpointAsync(string eventName) { ValidateRemoveInstrumentationBreakpoint(eventName); var dict = new System.Collections.Generic.Dictionary(); dict.Add("eventName", eventName); return _client.ExecuteDevToolsMethodAsync("EventBreakpoints.removeInstrumentationBreakpoint", dict); } /// /// Removes all breakpoints /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("EventBreakpoints.disable", dict); } } } namespace CefSharp.DevTools.Extensions { /// /// LoadUnpackedResponse /// public class LoadUnpackedResponse : DevToolsDomainResponseBase { /// /// id /// [JsonInclude] [JsonPropertyName("id")] public string Id { get; private set; } } } namespace CefSharp.DevTools.Extensions { /// /// GetStorageItemsResponse /// public class GetStorageItemsResponse : DevToolsDomainResponseBase { /// /// data /// [JsonInclude] [JsonPropertyName("data")] public object Data { get; private set; } } } namespace CefSharp.DevTools.Extensions { using System.Linq; /// /// Defines commands and events for browser extensions. /// public partial class ExtensionsClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Extensions /// /// DevToolsClient public ExtensionsClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } partial void ValidateLoadUnpacked(string path); /// /// Installs an unpacked extension from the filesystem similar to /// --load-extension CLI flags. Returns extension ID once the extension /// has been installed. Available if the client is connected using the /// --remote-debugging-pipe flag and the --enable-unsafe-extension-debugging /// flag is set. /// /// Absolute file path. /// returns System.Threading.Tasks.Task<LoadUnpackedResponse> public System.Threading.Tasks.Task LoadUnpackedAsync(string path) { ValidateLoadUnpacked(path); var dict = new System.Collections.Generic.Dictionary(); dict.Add("path", path); return _client.ExecuteDevToolsMethodAsync("Extensions.loadUnpacked", dict); } partial void ValidateUninstall(string id); /// /// Uninstalls an unpacked extension (others not supported) from the profile. /// Available if the client is connected using the --remote-debugging-pipe flag /// and the --enable-unsafe-extension-debugging. /// /// Extension id. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task UninstallAsync(string id) { ValidateUninstall(id); var dict = new System.Collections.Generic.Dictionary(); dict.Add("id", id); return _client.ExecuteDevToolsMethodAsync("Extensions.uninstall", dict); } partial void ValidateGetStorageItems(string id, CefSharp.DevTools.Extensions.StorageArea storageArea, string[] keys = null); /// /// Gets data from extension storage in the given `storageArea`. If `keys` is /// specified, these are used to filter the result. /// /// ID of extension. /// StorageArea to retrieve data from. /// Keys to retrieve. /// returns System.Threading.Tasks.Task<GetStorageItemsResponse> public System.Threading.Tasks.Task GetStorageItemsAsync(string id, CefSharp.DevTools.Extensions.StorageArea storageArea, string[] keys = null) { ValidateGetStorageItems(id, storageArea, keys); var dict = new System.Collections.Generic.Dictionary(); dict.Add("id", id); dict.Add("storageArea", EnumToString(storageArea)); if ((keys) != (null)) { dict.Add("keys", keys); } return _client.ExecuteDevToolsMethodAsync("Extensions.getStorageItems", dict); } partial void ValidateRemoveStorageItems(string id, CefSharp.DevTools.Extensions.StorageArea storageArea, string[] keys); /// /// Removes `keys` from extension storage in the given `storageArea`. /// /// ID of extension. /// StorageArea to remove data from. /// Keys to remove. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RemoveStorageItemsAsync(string id, CefSharp.DevTools.Extensions.StorageArea storageArea, string[] keys) { ValidateRemoveStorageItems(id, storageArea, keys); var dict = new System.Collections.Generic.Dictionary(); dict.Add("id", id); dict.Add("storageArea", EnumToString(storageArea)); dict.Add("keys", keys); return _client.ExecuteDevToolsMethodAsync("Extensions.removeStorageItems", dict); } partial void ValidateClearStorageItems(string id, CefSharp.DevTools.Extensions.StorageArea storageArea); /// /// Clears extension storage in the given `storageArea`. /// /// ID of extension. /// StorageArea to remove data from. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearStorageItemsAsync(string id, CefSharp.DevTools.Extensions.StorageArea storageArea) { ValidateClearStorageItems(id, storageArea); var dict = new System.Collections.Generic.Dictionary(); dict.Add("id", id); dict.Add("storageArea", EnumToString(storageArea)); return _client.ExecuteDevToolsMethodAsync("Extensions.clearStorageItems", dict); } partial void ValidateSetStorageItems(string id, CefSharp.DevTools.Extensions.StorageArea storageArea, object values); /// /// Sets `values` in extension storage in the given `storageArea`. The provided `values` /// will be merged with existing values in the storage area. /// /// ID of extension. /// StorageArea to set data in. /// Values to set. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetStorageItemsAsync(string id, CefSharp.DevTools.Extensions.StorageArea storageArea, object values) { ValidateSetStorageItems(id, storageArea, values); var dict = new System.Collections.Generic.Dictionary(); dict.Add("id", id); dict.Add("storageArea", EnumToString(storageArea)); dict.Add("values", values); return _client.ExecuteDevToolsMethodAsync("Extensions.setStorageItems", dict); } } } namespace CefSharp.DevTools.FedCm { using System.Linq; /// /// This domain allows interacting with the FedCM dialog. /// public partial class FedCmClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// FedCm /// /// DevToolsClient public FedCmClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// DialogShown /// public event System.EventHandler DialogShown { add { _client.AddEventHandler("FedCm.dialogShown", value); } remove { _client.RemoveEventHandler("FedCm.dialogShown", value); } } /// /// Triggered when a dialog is closed, either by user action, JS abort, /// or a command below. /// public event System.EventHandler DialogClosed { add { _client.AddEventHandler("FedCm.dialogClosed", value); } remove { _client.RemoveEventHandler("FedCm.dialogClosed", value); } } partial void ValidateEnable(bool? disableRejectionDelay = null); /// /// Enable /// /// Allows callers to disable the promise rejection delay that wouldnormally happen, if this is unimportant to what's being tested.(step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in) /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync(bool? disableRejectionDelay = null) { ValidateEnable(disableRejectionDelay); var dict = new System.Collections.Generic.Dictionary(); if (disableRejectionDelay.HasValue) { dict.Add("disableRejectionDelay", disableRejectionDelay.Value); } return _client.ExecuteDevToolsMethodAsync("FedCm.enable", dict); } /// /// Disable /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("FedCm.disable", dict); } partial void ValidateSelectAccount(string dialogId, int accountIndex); /// /// SelectAccount /// /// dialogId /// accountIndex /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SelectAccountAsync(string dialogId, int accountIndex) { ValidateSelectAccount(dialogId, accountIndex); var dict = new System.Collections.Generic.Dictionary(); dict.Add("dialogId", dialogId); dict.Add("accountIndex", accountIndex); return _client.ExecuteDevToolsMethodAsync("FedCm.selectAccount", dict); } partial void ValidateClickDialogButton(string dialogId, CefSharp.DevTools.FedCm.DialogButton dialogButton); /// /// ClickDialogButton /// /// dialogId /// dialogButton /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClickDialogButtonAsync(string dialogId, CefSharp.DevTools.FedCm.DialogButton dialogButton) { ValidateClickDialogButton(dialogId, dialogButton); var dict = new System.Collections.Generic.Dictionary(); dict.Add("dialogId", dialogId); dict.Add("dialogButton", EnumToString(dialogButton)); return _client.ExecuteDevToolsMethodAsync("FedCm.clickDialogButton", dict); } partial void ValidateOpenUrl(string dialogId, int accountIndex, CefSharp.DevTools.FedCm.AccountUrlType accountUrlType); /// /// OpenUrl /// /// dialogId /// accountIndex /// accountUrlType /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task OpenUrlAsync(string dialogId, int accountIndex, CefSharp.DevTools.FedCm.AccountUrlType accountUrlType) { ValidateOpenUrl(dialogId, accountIndex, accountUrlType); var dict = new System.Collections.Generic.Dictionary(); dict.Add("dialogId", dialogId); dict.Add("accountIndex", accountIndex); dict.Add("accountUrlType", EnumToString(accountUrlType)); return _client.ExecuteDevToolsMethodAsync("FedCm.openUrl", dict); } partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null); /// /// DismissDialog /// /// dialogId /// triggerCooldown /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DismissDialogAsync(string dialogId, bool? triggerCooldown = null) { ValidateDismissDialog(dialogId, triggerCooldown); var dict = new System.Collections.Generic.Dictionary(); dict.Add("dialogId", dialogId); if (triggerCooldown.HasValue) { dict.Add("triggerCooldown", triggerCooldown.Value); } return _client.ExecuteDevToolsMethodAsync("FedCm.dismissDialog", dict); } /// /// Resets the cooldown time, if any, to allow the next FedCM call to show /// a dialog even if one was recently dismissed by the user. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ResetCooldownAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("FedCm.resetCooldown", dict); } } } namespace CefSharp.DevTools.Fetch { /// /// GetResponseBodyResponse /// public class GetResponseBodyResponse : DevToolsDomainResponseBase { /// /// body /// [JsonInclude] [JsonPropertyName("body")] public string Body { get; private set; } /// /// base64Encoded /// [JsonInclude] [JsonPropertyName("base64Encoded")] public bool Base64Encoded { get; private set; } } } namespace CefSharp.DevTools.Fetch { /// /// TakeResponseBodyAsStreamResponse /// public class TakeResponseBodyAsStreamResponse : DevToolsDomainResponseBase { /// /// stream /// [JsonInclude] [JsonPropertyName("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; /// /// Fetch /// /// DevToolsClient public FetchClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Issued when the domain is enabled and the request URL matches the /// specified filter. The request is paused until the client responds /// with one of continueRequest, failRequest or fulfillRequest. /// The stage of the request can be determined by presence of responseErrorReason /// and responseStatusCode -- the request is at the response stage if either /// of these fields is present and in the request stage otherwise. /// Redirect responses and subsequent requests are reported similarly to regular /// responses and requests. Redirect responses may be distinguished by the value /// of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with /// presence of the `location` header. Requests resulting from a redirect will /// have `redirectedRequestId` field set. /// public event System.EventHandler RequestPaused { add { _client.AddEventHandler("Fetch.requestPaused", value); } remove { _client.RemoveEventHandler("Fetch.requestPaused", value); } } /// /// Issued when the domain is enabled with handleAuthRequests set to true. /// The request is paused until client responds with continueWithAuth. /// public event System.EventHandler AuthRequired { add { _client.AddEventHandler("Fetch.authRequired", value); } remove { _client.RemoveEventHandler("Fetch.authRequired", value); } } /// /// Disables the fetch domain. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Fetch.disable", dict); } 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 producefetchRequested event and will be paused until clients response. If not set,all requests will be affected. /// If true, authRequired events will be issued and requests will be pausedexpecting a call to continueWithAuth. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Fetch.enable", dict); } 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 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", EnumToString(errorReason)); return _client.ExecuteDevToolsMethodAsync("Fetch.failRequest", dict); } 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-separatedseries of name: value pairs. Prefer the above method unless youneed to represent some non-UTF8 values that can't be transmittedover the protocol as text. /// A response body. If absent, original response body will be used ifthe request is intercepted at the response stage and empty bodywill be used if the request is intercepted at the request stage. /// A textual representation of responseCode.If absent, a standard phrase matching responseCode is used. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Fetch.fulfillRequest", dict); } partial void ValidateContinueRequest(string requestId, string url = null, string method = null, byte[] postData = null, System.Collections.Generic.IList headers = null, bool? interceptResponse = 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. Note that the overrides do notextend to subsequent redirect hops, if a redirect happens. Another overridemay be applied to a different request produced by a redirect. /// If set, overrides response interception behavior for this request. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ContinueRequestAsync(string requestId, string url = null, string method = null, byte[] postData = null, System.Collections.Generic.IList headers = null, bool? interceptResponse = null) { ValidateContinueRequest(requestId, url, method, postData, headers, interceptResponse); 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())); } if (interceptResponse.HasValue) { dict.Add("interceptResponse", interceptResponse.Value); } return _client.ExecuteDevToolsMethodAsync("Fetch.continueRequest", dict); } 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 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()); return _client.ExecuteDevToolsMethodAsync("Fetch.continueWithAuth", dict); } partial void ValidateContinueResponse(string requestId, int? responseCode = null, string responsePhrase = null, System.Collections.Generic.IList responseHeaders = null, byte[] binaryResponseHeaders = null); /// /// Continues loading of the paused response, optionally modifying the /// response headers. If either responseCode or headers are modified, all of them /// must be present. /// /// An id the client received in requestPaused event. /// An HTTP response code. If absent, original response code will be used. /// A textual representation of responseCode.If absent, a standard phrase matching responseCode is used. /// Response headers. If absent, original response headers will be used. /// Alternative way of specifying response headers as a \0-separatedseries of name: value pairs. Prefer the above method unless youneed to represent some non-UTF8 values that can't be transmittedover the protocol as text. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ContinueResponseAsync(string requestId, int? responseCode = null, string responsePhrase = null, System.Collections.Generic.IList responseHeaders = null, byte[] binaryResponseHeaders = null) { ValidateContinueResponse(requestId, responseCode, responsePhrase, responseHeaders, binaryResponseHeaders); var dict = new System.Collections.Generic.Dictionary(); dict.Add("requestId", requestId); if (responseCode.HasValue) { dict.Add("responseCode", responseCode.Value); } if (!(string.IsNullOrEmpty(responsePhrase))) { dict.Add("responsePhrase", responsePhrase); } if ((responseHeaders) != (null)) { dict.Add("responseHeaders", responseHeaders.Select(x => x.ToDictionary())); } if ((binaryResponseHeaders) != (null)) { dict.Add("binaryResponseHeaders", ToBase64String(binaryResponseHeaders)); } return _client.ExecuteDevToolsMethodAsync("Fetch.continueResponse", dict); } 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. /// Note that the response body is not available for redirects. Requests /// paused in the _redirect received_ state may be differentiated by /// `responseCode` and presence of `location` response header, see /// comments to `requestPaused` for details. /// /// Identifier for the intercepted request to get body for. /// returns System.Threading.Tasks.Task<GetResponseBodyResponse> public System.Threading.Tasks.Task GetResponseBodyAsync(string requestId) { ValidateGetResponseBody(requestId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("requestId", requestId); return _client.ExecuteDevToolsMethodAsync("Fetch.getResponseBody", dict); } 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 System.Threading.Tasks.Task TakeResponseBodyAsStreamAsync(string requestId) { ValidateTakeResponseBodyAsStream(requestId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("requestId", requestId); return _client.ExecuteDevToolsMethodAsync("Fetch.takeResponseBodyAsStream", dict); } } } namespace CefSharp.DevTools.FileSystem { /// /// GetDirectoryResponse /// public class GetDirectoryResponse : DevToolsDomainResponseBase { /// /// directory /// [JsonInclude] [JsonPropertyName("directory")] public CefSharp.DevTools.FileSystem.Directory Directory { get; private set; } } } namespace CefSharp.DevTools.FileSystem { using System.Linq; /// /// FileSystem /// public partial class FileSystemClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// FileSystem /// /// DevToolsClient public FileSystemClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } partial void ValidateGetDirectory(CefSharp.DevTools.FileSystem.BucketFileSystemLocator bucketFileSystemLocator); /// /// GetDirectory /// /// bucketFileSystemLocator /// returns System.Threading.Tasks.Task<GetDirectoryResponse> public System.Threading.Tasks.Task GetDirectoryAsync(CefSharp.DevTools.FileSystem.BucketFileSystemLocator bucketFileSystemLocator) { ValidateGetDirectory(bucketFileSystemLocator); var dict = new System.Collections.Generic.Dictionary(); dict.Add("bucketFileSystemLocator", bucketFileSystemLocator.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("FileSystem.getDirectory", dict); } } } namespace CefSharp.DevTools.HeadlessExperimental { /// /// BeginFrameResponse /// public class BeginFrameResponse : DevToolsDomainResponseBase { /// /// hasDamage /// [JsonInclude] [JsonPropertyName("hasDamage")] public bool HasDamage { get; private set; } /// /// screenshotData /// [JsonInclude] [JsonPropertyName("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; /// /// HeadlessExperimental /// /// DevToolsClient public HeadlessExperimentalClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } partial void ValidateBeginFrame(double? frameTimeTicks = null, double? 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.gle/chrome-headless-rendering for more background. /// /// Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set,the current time will be used. /// The interval between BeginFrames that is reported to the compositor, in milliseconds.Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds. /// Whether updates should not be committed and drawn onto the display. False by default. Iftrue, only side effects of the BeginFrame will be run, such as layout and animations, butany visual updates may not be visible on the display or in screenshots. /// If set, a screenshot of the frame will be captured and returned in the response. Otherwise,no screenshot will be captured. Note that capturing a screenshot can fail, for example,during renderer initialization. In such a case, no screenshot data will be returned. /// returns System.Threading.Tasks.Task<BeginFrameResponse> public System.Threading.Tasks.Task BeginFrameAsync(double? frameTimeTicks = null, double? 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()); } return _client.ExecuteDevToolsMethodAsync("HeadlessExperimental.beginFrame", dict); } } } namespace CefSharp.DevTools.IO { /// /// ReadResponse /// public class ReadResponse : DevToolsDomainResponseBase { /// /// base64Encoded /// [JsonInclude] [JsonPropertyName("base64Encoded")] public bool? Base64Encoded { get; private set; } /// /// data /// [JsonInclude] [JsonPropertyName("data")] public string Data { get; private set; } /// /// eof /// [JsonInclude] [JsonPropertyName("eof")] public bool Eof { get; private set; } } } namespace CefSharp.DevTools.IO { /// /// ResolveBlobResponse /// public class ResolveBlobResponse : DevToolsDomainResponseBase { /// /// uuid /// [JsonInclude] [JsonPropertyName("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; /// /// IO /// /// DevToolsClient 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 System.Threading.Tasks.Task CloseAsync(string handle) { ValidateClose(handle); var dict = new System.Collections.Generic.Dictionary(); dict.Add("handle", handle); return _client.ExecuteDevToolsMethodAsync("IO.close", dict); } 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 specified, proceed with offsetfollowing the last read). Some types of streams may only support sequential reads. /// Maximum number of bytes to read (left upon the agent discretion if not specified). /// returns System.Threading.Tasks.Task<ReadResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("IO.read", dict); } 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 System.Threading.Tasks.Task ResolveBlobAsync(string objectId) { ValidateResolveBlob(objectId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("objectId", objectId); return _client.ExecuteDevToolsMethodAsync("IO.resolveBlob", dict); } } } namespace CefSharp.DevTools.IndexedDB { /// /// RequestDataResponse /// public class RequestDataResponse : DevToolsDomainResponseBase { /// /// objectStoreDataEntries /// [JsonInclude] [JsonPropertyName("objectStoreDataEntries")] public System.Collections.Generic.IList ObjectStoreDataEntries { get; private set; } /// /// hasMore /// [JsonInclude] [JsonPropertyName("hasMore")] public bool HasMore { get; private set; } } } namespace CefSharp.DevTools.IndexedDB { /// /// GetMetadataResponse /// public class GetMetadataResponse : DevToolsDomainResponseBase { /// /// entriesCount /// [JsonInclude] [JsonPropertyName("entriesCount")] public double EntriesCount { get; private set; } /// /// keyGeneratorValue /// [JsonInclude] [JsonPropertyName("keyGeneratorValue")] public double KeyGeneratorValue { get; private set; } } } namespace CefSharp.DevTools.IndexedDB { /// /// RequestDatabaseResponse /// public class RequestDatabaseResponse : DevToolsDomainResponseBase { /// /// databaseWithObjectStores /// [JsonInclude] [JsonPropertyName("databaseWithObjectStores")] public CefSharp.DevTools.IndexedDB.DatabaseWithObjectStores DatabaseWithObjectStores { get; private set; } } } namespace CefSharp.DevTools.IndexedDB { /// /// RequestDatabaseNamesResponse /// public class RequestDatabaseNamesResponse : DevToolsDomainResponseBase { /// /// databaseNames /// [JsonInclude] [JsonPropertyName("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; /// /// IndexedDB /// /// DevToolsClient public IndexedDBClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } partial void ValidateClearObjectStore(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Clears all entries from an object store. /// /// Database name. /// Object store name. /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearObjectStoreAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { ValidateClearObjectStore(databaseName, objectStoreName, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); } if (!(string.IsNullOrEmpty(storageKey))) { dict.Add("storageKey", storageKey); } if ((storageBucket) != (null)) { dict.Add("storageBucket", storageBucket.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("IndexedDB.clearObjectStore", dict); } partial void ValidateDeleteDatabase(string databaseName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Deletes a database. /// /// Database name. /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DeleteDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { ValidateDeleteDatabase(databaseName, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); } if (!(string.IsNullOrEmpty(storageKey))) { dict.Add("storageKey", storageKey); } if ((storageBucket) != (null)) { dict.Add("storageBucket", storageBucket.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteDatabase", dict); } partial void ValidateDeleteObjectStoreEntries(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Delete a range of entries from an object store /// /// databaseName /// objectStoreName /// Range of entry keys to delete /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { ValidateDeleteObjectStoreEntries(databaseName, objectStoreName, keyRange, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); dict.Add("keyRange", keyRange.ToDictionary()); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); } if (!(string.IsNullOrEmpty(storageKey))) { dict.Add("storageKey", storageKey); } if ((storageBucket) != (null)) { dict.Add("storageBucket", storageBucket.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteObjectStoreEntries", dict); } /// /// Disables events from backend. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("IndexedDB.disable", dict); } /// /// Enables events from backend. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("IndexedDB.enable", dict); } partial void ValidateRequestData(string databaseName, string objectStoreName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null, string indexName = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); /// /// Requests data from object store or index. /// /// Database name. /// Object store name. /// Number of records to skip. /// Number of records to fetch. /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. /// Storage bucket. If not specified, it uses the default bucket. /// Index name. If not specified, it performs an object store data request. /// Key range. /// returns System.Threading.Tasks.Task<RequestDataResponse> public System.Threading.Tasks.Task RequestDataAsync(string databaseName, string objectStoreName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null, string indexName = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) { ValidateRequestData(databaseName, objectStoreName, skipCount, pageSize, securityOrigin, storageKey, storageBucket, indexName, keyRange); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); dict.Add("skipCount", skipCount); dict.Add("pageSize", pageSize); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); } if (!(string.IsNullOrEmpty(storageKey))) { dict.Add("storageKey", storageKey); } if ((storageBucket) != (null)) { dict.Add("storageBucket", storageBucket.ToDictionary()); } if (!(string.IsNullOrEmpty(indexName))) { dict.Add("indexName", indexName); } if ((keyRange) != (null)) { dict.Add("keyRange", keyRange.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestData", dict); } partial void ValidateGetMetadata(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Gets metadata of an object store. /// /// Database name. /// Object store name. /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<GetMetadataResponse> public System.Threading.Tasks.Task GetMetadataAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { ValidateGetMetadata(databaseName, objectStoreName, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); } if (!(string.IsNullOrEmpty(storageKey))) { dict.Add("storageKey", storageKey); } if ((storageBucket) != (null)) { dict.Add("storageBucket", storageBucket.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("IndexedDB.getMetadata", dict); } partial void ValidateRequestDatabase(string databaseName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Requests database with given name in given frame. /// /// Database name. /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<RequestDatabaseResponse> public System.Threading.Tasks.Task RequestDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { ValidateRequestDatabase(databaseName, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); } if (!(string.IsNullOrEmpty(storageKey))) { dict.Add("storageKey", storageKey); } if ((storageBucket) != (null)) { dict.Add("storageBucket", storageBucket.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabase", dict); } partial void ValidateRequestDatabaseNames(string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Requests database names for given security origin. /// /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<RequestDatabaseNamesResponse> public System.Threading.Tasks.Task RequestDatabaseNamesAsync(string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { ValidateRequestDatabaseNames(securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); } if (!(string.IsNullOrEmpty(storageKey))) { dict.Add("storageKey", storageKey); } if ((storageBucket) != (null)) { dict.Add("storageBucket", storageBucket.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabaseNames", dict); } } } namespace CefSharp.DevTools.Input { using System.Linq; /// /// Type of the drag event. /// public enum DispatchDragEventType { /// /// dragEnter /// [JsonPropertyName("dragEnter")] DragEnter, /// /// dragOver /// [JsonPropertyName("dragOver")] DragOver, /// /// drop /// [JsonPropertyName("drop")] Drop, /// /// dragCancel /// [JsonPropertyName("dragCancel")] DragCancel } /// /// Type of the key event. /// public enum DispatchKeyEventType { /// /// keyDown /// [JsonPropertyName("keyDown")] KeyDown, /// /// keyUp /// [JsonPropertyName("keyUp")] KeyUp, /// /// rawKeyDown /// [JsonPropertyName("rawKeyDown")] RawKeyDown, /// /// char /// [JsonPropertyName("char")] Char } /// /// Type of the mouse event. /// public enum DispatchMouseEventType { /// /// mousePressed /// [JsonPropertyName("mousePressed")] MousePressed, /// /// mouseReleased /// [JsonPropertyName("mouseReleased")] MouseReleased, /// /// mouseMoved /// [JsonPropertyName("mouseMoved")] MouseMoved, /// /// mouseWheel /// [JsonPropertyName("mouseWheel")] MouseWheel } /// /// Pointer type (default: "mouse"). /// public enum DispatchMouseEventPointerType { /// /// mouse /// [JsonPropertyName("mouse")] Mouse, /// /// pen /// [JsonPropertyName("pen")] Pen } /// /// Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while /// TouchStart and TouchMove must contains at least one. /// public enum DispatchTouchEventType { /// /// touchStart /// [JsonPropertyName("touchStart")] TouchStart, /// /// touchEnd /// [JsonPropertyName("touchEnd")] TouchEnd, /// /// touchMove /// [JsonPropertyName("touchMove")] TouchMove, /// /// touchCancel /// [JsonPropertyName("touchCancel")] TouchCancel } /// /// Type of the mouse event. /// public enum EmulateTouchFromMouseEventType { /// /// mousePressed /// [JsonPropertyName("mousePressed")] MousePressed, /// /// mouseReleased /// [JsonPropertyName("mouseReleased")] MouseReleased, /// /// mouseMoved /// [JsonPropertyName("mouseMoved")] MouseMoved, /// /// mouseWheel /// [JsonPropertyName("mouseWheel")] MouseWheel } /// /// Input /// public partial class InputClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Input /// /// DevToolsClient public InputClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to /// restore normal drag and drop behavior. /// public event System.EventHandler DragIntercepted { add { _client.AddEventHandler("Input.dragIntercepted", value); } remove { _client.RemoveEventHandler("Input.dragIntercepted", value); } } partial void ValidateDispatchDragEvent(CefSharp.DevTools.Input.DispatchDragEventType type, double x, double y, CefSharp.DevTools.Input.DragData data, int? modifiers = null); /// /// Dispatches a drag event into the page. /// /// Type of the drag 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 tothe top of the viewport and Y increases as it proceeds towards the bottom of the viewport. /// data /// Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8(default: 0). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DispatchDragEventAsync(CefSharp.DevTools.Input.DispatchDragEventType type, double x, double y, CefSharp.DevTools.Input.DragData data, int? modifiers = null) { ValidateDispatchDragEvent(type, x, y, data, modifiers); var dict = new System.Collections.Generic.Dictionary(); dict.Add("type", EnumToString(type)); dict.Add("x", x); dict.Add("y", y); dict.Add("data", data.ToDictionary()); if (modifiers.HasValue) { dict.Add("modifiers", modifiers.Value); } return _client.ExecuteDevToolsMethodAsync("Input.dispatchDragEvent", dict); } partial void ValidateDispatchKeyEvent(CefSharp.DevTools.Input.DispatchKeyEventType type, int? modifiers = null, double? 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(default: 0). /// Time at which the event occurred. /// Text as generated by processing a virtual key code with a keyboard layout. Not needed forfor `keyUp` and `rawKeyDown` events (default: "") /// Text that would have been generated by the keyboard if no modifiers were pressed (except forshift). Useful for shortcut (accelerator) key handling (default: ""). /// Unique key identifier (e.g., 'U+0041') (default: ""). /// Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: ""). /// Unique DOM defined string value describing the meaning of the key in the context of activemodifiers, keyboard layout, etc (e.g., 'AltGr') (default: ""). /// Windows virtual key code (default: 0). /// Native virtual key code (default: 0). /// Whether the event was generated from auto repeat (default: false). /// Whether the event was generated from the keypad (default: false). /// Whether the event was a system key event (default: false). /// Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default:0). /// Editing commands to send with the key event (e.g., 'selectAll') (default: []).These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DispatchKeyEventAsync(CefSharp.DevTools.Input.DispatchKeyEventType type, int? modifiers = null, double? 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", EnumToString(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); } return _client.ExecuteDevToolsMethodAsync("Input.dispatchKeyEvent", dict); } 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 System.Threading.Tasks.Task InsertTextAsync(string text) { ValidateInsertText(text); var dict = new System.Collections.Generic.Dictionary(); dict.Add("text", text); return _client.ExecuteDevToolsMethodAsync("Input.insertText", dict); } partial void ValidateImeSetComposition(string text, int selectionStart, int selectionEnd, int? replacementStart = null, int? replacementEnd = null); /// /// This method sets the current candidate text for IME. /// Use imeCommitComposition to commit the final text. /// Use imeSetComposition with empty string as text to cancel composition. /// /// The text to insert /// selection start /// selection end /// replacement start /// replacement end /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ImeSetCompositionAsync(string text, int selectionStart, int selectionEnd, int? replacementStart = null, int? replacementEnd = null) { ValidateImeSetComposition(text, selectionStart, selectionEnd, replacementStart, replacementEnd); var dict = new System.Collections.Generic.Dictionary(); dict.Add("text", text); dict.Add("selectionStart", selectionStart); dict.Add("selectionEnd", selectionEnd); if (replacementStart.HasValue) { dict.Add("replacementStart", replacementStart.Value); } if (replacementEnd.HasValue) { dict.Add("replacementEnd", replacementEnd.Value); } return _client.ExecuteDevToolsMethodAsync("Input.imeSetComposition", dict); } partial void ValidateDispatchMouseEvent(CefSharp.DevTools.Input.DispatchMouseEventType type, double x, double y, int? modifiers = null, double? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, double? force = null, double? tangentialPressure = null, double? tiltX = null, double? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, CefSharp.DevTools.Input.DispatchMouseEventPointerType? 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 tothe top of the viewport and Y increases as it proceeds towards the bottom of the viewport. /// Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8(default: 0). /// Time at which the event occurred. /// Mouse button (default: "none"). /// A number indicating which buttons are pressed on the mouse when a mouse event is triggered.Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0. /// Number of times the mouse button was clicked (default: 0). /// The normalized pressure, which has a range of [0,1] (default: 0). /// The normalized tangential pressure, which has a range of [-1,1] (default: 0). /// The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0). /// The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). /// The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). /// X delta in CSS pixels for mouse wheel event (default: 0). /// Y delta in CSS pixels for mouse wheel event (default: 0). /// Pointer type (default: "mouse"). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DispatchMouseEventAsync(CefSharp.DevTools.Input.DispatchMouseEventType type, double x, double y, int? modifiers = null, double? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, double? force = null, double? tangentialPressure = null, double? tiltX = null, double? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, CefSharp.DevTools.Input.DispatchMouseEventPointerType? pointerType = null) { ValidateDispatchMouseEvent(type, x, y, modifiers, timestamp, button, buttons, clickCount, force, tangentialPressure, tiltX, tiltY, twist, deltaX, deltaY, pointerType); var dict = new System.Collections.Generic.Dictionary(); dict.Add("type", EnumToString(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", EnumToString(button)); } if (buttons.HasValue) { dict.Add("buttons", buttons.Value); } if (clickCount.HasValue) { dict.Add("clickCount", clickCount.Value); } if (force.HasValue) { dict.Add("force", force.Value); } if (tangentialPressure.HasValue) { dict.Add("tangentialPressure", tangentialPressure.Value); } if (tiltX.HasValue) { dict.Add("tiltX", tiltX.Value); } if (tiltY.HasValue) { dict.Add("tiltY", tiltY.Value); } if (twist.HasValue) { dict.Add("twist", twist.Value); } if (deltaX.HasValue) { dict.Add("deltaX", deltaX.Value); } if (deltaY.HasValue) { dict.Add("deltaY", deltaY.Value); } if (pointerType.HasValue) { dict.Add("pointerType", EnumToString(pointerType)); } return _client.ExecuteDevToolsMethodAsync("Input.dispatchMouseEvent", dict); } partial void ValidateDispatchTouchEvent(CefSharp.DevTools.Input.DispatchTouchEventType type, System.Collections.Generic.IList touchPoints, int? modifiers = null, double? timestamp = null); /// /// Dispatches a touch event to the page. /// /// Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, whileTouchStart and TouchMove must contains at least one. /// Active touch points on the touch device. One event per any changed point (compared toprevious touch event in a sequence) is generated, emulating pressing/moving/releasing pointsone by one. /// Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8(default: 0). /// Time at which the event occurred. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DispatchTouchEventAsync(CefSharp.DevTools.Input.DispatchTouchEventType type, System.Collections.Generic.IList touchPoints, int? modifiers = null, double? timestamp = null) { ValidateDispatchTouchEvent(type, touchPoints, modifiers, timestamp); var dict = new System.Collections.Generic.Dictionary(); dict.Add("type", EnumToString(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); } return _client.ExecuteDevToolsMethodAsync("Input.dispatchTouchEvent", dict); } /// /// Cancels any active dragging in the page. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task CancelDraggingAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Input.cancelDragging", dict); } partial void ValidateEmulateTouchFromMouseEvent(CefSharp.DevTools.Input.EmulateTouchFromMouseEventType type, int x, int y, CefSharp.DevTools.Input.MouseButton button, double? timestamp = null, double? deltaX = null, double? 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(default: 0). /// Number of times the mouse button was clicked (default: 0). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EmulateTouchFromMouseEventAsync(CefSharp.DevTools.Input.EmulateTouchFromMouseEventType type, int x, int y, CefSharp.DevTools.Input.MouseButton button, double? timestamp = null, double? deltaX = null, double? 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", EnumToString(type)); dict.Add("x", x); dict.Add("y", y); dict.Add("button", 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); } return _client.ExecuteDevToolsMethodAsync("Input.emulateTouchFromMouseEvent", dict); } 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 System.Threading.Tasks.Task SetIgnoreInputEventsAsync(bool ignore) { ValidateSetIgnoreInputEvents(ignore); var dict = new System.Collections.Generic.Dictionary(); dict.Add("ignore", ignore); return _client.ExecuteDevToolsMethodAsync("Input.setIgnoreInputEvents", dict); } partial void ValidateSetInterceptDrags(bool enabled); /// /// Prevents default drag and drop behavior and instead emits `Input.dragIntercepted` events. /// Drag and drop behavior can be directly controlled via `Input.dispatchDragEvent`. /// /// enabled /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetInterceptDragsAsync(bool enabled) { ValidateSetInterceptDrags(enabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Input.setInterceptDrags", dict); } partial void ValidateSynthesizePinchGesture(double x, double y, double 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 platformfor the preferred input type). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SynthesizePinchGestureAsync(double x, double y, double 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", EnumToString(gestureSourceType)); } return _client.ExecuteDevToolsMethodAsync("Input.synthesizePinchGesture", dict); } partial void ValidateSynthesizeScrollGesture(double x, double y, double? xDistance = null, double? yDistance = null, double? xOverscroll = null, double? 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 givendistance. /// The number of additional pixels to scroll back along the Y axis, in addition to the givendistance. /// Prevent fling (default: true). /// Swipe speed in pixels per second (default: 800). /// Which type of input events to be generated (default: 'default', which queries the platformfor the preferred input type). /// The number of times to repeat the gesture (default: 0). /// The number of milliseconds delay between each repeat. (default: 250). /// The name of the interaction markers to generate, if not empty (default: ""). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SynthesizeScrollGestureAsync(double x, double y, double? xDistance = null, double? yDistance = null, double? xOverscroll = null, double? 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", 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); } return _client.ExecuteDevToolsMethodAsync("Input.synthesizeScrollGesture", dict); } partial void ValidateSynthesizeTapGesture(double x, double 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 platformfor the preferred input type). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SynthesizeTapGestureAsync(double x, double 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", EnumToString(gestureSourceType)); } return _client.ExecuteDevToolsMethodAsync("Input.synthesizeTapGesture", dict); } } } namespace CefSharp.DevTools.Inspector { using System.Linq; /// /// Inspector /// public partial class InspectorClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Inspector /// /// DevToolsClient public InspectorClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Fired when remote debugging connection is about to be terminated. Contains detach reason. /// public event System.EventHandler Detached { add { _client.AddEventHandler("Inspector.detached", value); } remove { _client.RemoveEventHandler("Inspector.detached", value); } } /// /// Fired when debugging target has crashed /// public event System.EventHandler TargetCrashed { add { _client.AddEventHandler("Inspector.targetCrashed", value); } remove { _client.RemoveEventHandler("Inspector.targetCrashed", value); } } /// /// Fired when debugging target has reloaded after crash /// public event System.EventHandler TargetReloadedAfterCrash { add { _client.AddEventHandler("Inspector.targetReloadedAfterCrash", value); } remove { _client.RemoveEventHandler("Inspector.targetReloadedAfterCrash", value); } } /// /// Fired on worker targets when main worker script and any imported scripts have been evaluated. /// public event System.EventHandler WorkerScriptLoaded { add { _client.AddEventHandler("Inspector.workerScriptLoaded", value); } remove { _client.RemoveEventHandler("Inspector.workerScriptLoaded", value); } } /// /// Disables inspector domain notifications. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Inspector.disable", dict); } /// /// Enables inspector domain notifications. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Inspector.enable", dict); } } } namespace CefSharp.DevTools.LayerTree { /// /// CompositingReasonsResponse /// public class CompositingReasonsResponse : DevToolsDomainResponseBase { /// /// compositingReasons /// [JsonInclude] [JsonPropertyName("compositingReasons")] public string[] CompositingReasons { get; private set; } /// /// compositingReasonIds /// [JsonInclude] [JsonPropertyName("compositingReasonIds")] public string[] CompositingReasonIds { get; private set; } } } namespace CefSharp.DevTools.LayerTree { /// /// LoadSnapshotResponse /// public class LoadSnapshotResponse : DevToolsDomainResponseBase { /// /// snapshotId /// [JsonInclude] [JsonPropertyName("snapshotId")] public string SnapshotId { get; private set; } } } namespace CefSharp.DevTools.LayerTree { /// /// MakeSnapshotResponse /// public class MakeSnapshotResponse : DevToolsDomainResponseBase { /// /// snapshotId /// [JsonInclude] [JsonPropertyName("snapshotId")] public string SnapshotId { get; private set; } } } namespace CefSharp.DevTools.LayerTree { /// /// ProfileSnapshotResponse /// public class ProfileSnapshotResponse : DevToolsDomainResponseBase { /// /// timings /// [JsonInclude] [JsonPropertyName("timings")] public double[] Timings { get; private set; } } } namespace CefSharp.DevTools.LayerTree { /// /// ReplaySnapshotResponse /// public class ReplaySnapshotResponse : DevToolsDomainResponseBase { /// /// dataURL /// [JsonInclude] [JsonPropertyName("dataURL")] public string DataURL { get; private set; } } } namespace CefSharp.DevTools.LayerTree { /// /// SnapshotCommandLogResponse /// public class SnapshotCommandLogResponse : DevToolsDomainResponseBase { /// /// commandLog /// [JsonInclude] [JsonPropertyName("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; /// /// LayerTree /// /// DevToolsClient public LayerTreeClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// LayerPainted /// public event System.EventHandler LayerPainted { add { _client.AddEventHandler("LayerTree.layerPainted", value); } remove { _client.RemoveEventHandler("LayerTree.layerPainted", value); } } /// /// LayerTreeDidChange /// public event System.EventHandler LayerTreeDidChange { add { _client.AddEventHandler("LayerTree.layerTreeDidChange", value); } remove { _client.RemoveEventHandler("LayerTree.layerTreeDidChange", value); } } 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 System.Threading.Tasks.Task CompositingReasonsAsync(string layerId) { ValidateCompositingReasons(layerId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("layerId", layerId); return _client.ExecuteDevToolsMethodAsync("LayerTree.compositingReasons", dict); } /// /// Disables compositing tree inspection. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("LayerTree.disable", dict); } /// /// Enables compositing tree inspection. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("LayerTree.enable", dict); } 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 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())); return _client.ExecuteDevToolsMethodAsync("LayerTree.loadSnapshot", dict); } partial void ValidateMakeSnapshot(string layerId); /// /// Returns the layer snapshot identifier. /// /// The id of the layer. /// returns System.Threading.Tasks.Task<MakeSnapshotResponse> public System.Threading.Tasks.Task MakeSnapshotAsync(string layerId) { ValidateMakeSnapshot(layerId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("layerId", layerId); return _client.ExecuteDevToolsMethodAsync("LayerTree.makeSnapshot", dict); } partial void ValidateProfileSnapshot(string snapshotId, int? minRepeatCount = null, double? 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 System.Threading.Tasks.Task ProfileSnapshotAsync(string snapshotId, int? minRepeatCount = null, double? 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()); } return _client.ExecuteDevToolsMethodAsync("LayerTree.profileSnapshot", dict); } 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 System.Threading.Tasks.Task ReleaseSnapshotAsync(string snapshotId) { ValidateReleaseSnapshot(snapshotId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("snapshotId", snapshotId); return _client.ExecuteDevToolsMethodAsync("LayerTree.releaseSnapshot", dict); } partial void ValidateReplaySnapshot(string snapshotId, int? fromStep = null, int? toStep = null, double? 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 System.Threading.Tasks.Task ReplaySnapshotAsync(string snapshotId, int? fromStep = null, int? toStep = null, double? 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); } return _client.ExecuteDevToolsMethodAsync("LayerTree.replaySnapshot", dict); } 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 System.Threading.Tasks.Task SnapshotCommandLogAsync(string snapshotId) { ValidateSnapshotCommandLog(snapshotId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("snapshotId", snapshotId); return _client.ExecuteDevToolsMethodAsync("LayerTree.snapshotCommandLog", dict); } } } namespace CefSharp.DevTools.Log { using System.Linq; /// /// Provides access to log entries. /// public partial class LogClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Log /// /// DevToolsClient public LogClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Issued when new message was logged. /// public event System.EventHandler EntryAdded { add { _client.AddEventHandler("Log.entryAdded", value); } remove { _client.RemoveEventHandler("Log.entryAdded", value); } } /// /// Clears the log. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Log.clear", dict); } /// /// Disables log domain, prevents further log entries from being reported to the client. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Log.disable", dict); } /// /// 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 System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Log.enable", dict); } partial void ValidateStartViolationsReport(System.Collections.Generic.IList config); /// /// start violation reporting. /// /// Configuration for violations. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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())); return _client.ExecuteDevToolsMethodAsync("Log.startViolationsReport", dict); } /// /// Stop violation reporting. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StopViolationsReportAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Log.stopViolationsReport", dict); } } } 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; /// /// Media /// /// DevToolsClient public MediaClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// This can be called multiple times, and can be used to set / override / /// remove player properties. A null propValue indicates removal. /// public event System.EventHandler PlayerPropertiesChanged { add { _client.AddEventHandler("Media.playerPropertiesChanged", value); } remove { _client.RemoveEventHandler("Media.playerPropertiesChanged", value); } } /// /// Send events as a list, allowing them to be batched on the browser for less /// congestion. If batched, events must ALWAYS be in chronological order. /// public event System.EventHandler PlayerEventsAdded { add { _client.AddEventHandler("Media.playerEventsAdded", value); } remove { _client.RemoveEventHandler("Media.playerEventsAdded", value); } } /// /// Send a list of any messages that need to be delivered. /// public event System.EventHandler PlayerMessagesLogged { add { _client.AddEventHandler("Media.playerMessagesLogged", value); } remove { _client.RemoveEventHandler("Media.playerMessagesLogged", value); } } /// /// Send a list of any errors that need to be delivered. /// public event System.EventHandler PlayerErrorsRaised { add { _client.AddEventHandler("Media.playerErrorsRaised", value); } remove { _client.RemoveEventHandler("Media.playerErrorsRaised", value); } } /// /// Called whenever a player is created, or when a new agent joins and receives /// a list of active players. If an agent is restored, it will receive one /// event for each active player. /// public event System.EventHandler PlayerCreated { add { _client.AddEventHandler("Media.playerCreated", value); } remove { _client.RemoveEventHandler("Media.playerCreated", value); } } /// /// Enables the Media domain /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Media.enable", dict); } /// /// Disables the Media domain. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Media.disable", dict); } } } namespace CefSharp.DevTools.Memory { /// /// GetDOMCountersResponse /// public class GetDOMCountersResponse : DevToolsDomainResponseBase { /// /// documents /// [JsonInclude] [JsonPropertyName("documents")] public int Documents { get; private set; } /// /// nodes /// [JsonInclude] [JsonPropertyName("nodes")] public int Nodes { get; private set; } /// /// jsEventListeners /// [JsonInclude] [JsonPropertyName("jsEventListeners")] public int JsEventListeners { get; private set; } } } namespace CefSharp.DevTools.Memory { /// /// GetDOMCountersForLeakDetectionResponse /// public class GetDOMCountersForLeakDetectionResponse : DevToolsDomainResponseBase { /// /// counters /// [JsonInclude] [JsonPropertyName("counters")] public System.Collections.Generic.IList Counters { get; private set; } } } namespace CefSharp.DevTools.Memory { /// /// GetAllTimeSamplingProfileResponse /// public class GetAllTimeSamplingProfileResponse : DevToolsDomainResponseBase { /// /// profile /// [JsonInclude] [JsonPropertyName("profile")] public CefSharp.DevTools.Memory.SamplingProfile Profile { get; private set; } } } namespace CefSharp.DevTools.Memory { /// /// GetBrowserSamplingProfileResponse /// public class GetBrowserSamplingProfileResponse : DevToolsDomainResponseBase { /// /// profile /// [JsonInclude] [JsonPropertyName("profile")] public CefSharp.DevTools.Memory.SamplingProfile Profile { get; private set; } } } namespace CefSharp.DevTools.Memory { /// /// GetSamplingProfileResponse /// public class GetSamplingProfileResponse : DevToolsDomainResponseBase { /// /// profile /// [JsonInclude] [JsonPropertyName("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; /// /// Memory /// /// DevToolsClient public MemoryClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Retruns current DOM object counters. /// /// returns System.Threading.Tasks.Task<GetDOMCountersResponse> public System.Threading.Tasks.Task GetDOMCountersAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Memory.getDOMCounters", dict); } /// /// Retruns DOM object counters after preparing renderer for leak detection. /// /// returns System.Threading.Tasks.Task<GetDOMCountersForLeakDetectionResponse> public System.Threading.Tasks.Task GetDOMCountersForLeakDetectionAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Memory.getDOMCountersForLeakDetection", dict); } /// /// Prepares for leak detection by terminating workers, stopping spellcheckers, /// dropping non-essential internal caches, running garbage collections, etc. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task PrepareForLeakDetectionAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Memory.prepareForLeakDetection", dict); } /// /// Simulate OomIntervention by purging V8 memory. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ForciblyPurgeJavaScriptMemoryAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Memory.forciblyPurgeJavaScriptMemory", dict); } 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 System.Threading.Tasks.Task SetPressureNotificationsSuppressedAsync(bool suppressed) { ValidateSetPressureNotificationsSuppressed(suppressed); var dict = new System.Collections.Generic.Dictionary(); dict.Add("suppressed", suppressed); return _client.ExecuteDevToolsMethodAsync("Memory.setPressureNotificationsSuppressed", dict); } 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 System.Threading.Tasks.Task SimulatePressureNotificationAsync(CefSharp.DevTools.Memory.PressureLevel level) { ValidateSimulatePressureNotification(level); var dict = new System.Collections.Generic.Dictionary(); dict.Add("level", EnumToString(level)); return _client.ExecuteDevToolsMethodAsync("Memory.simulatePressureNotification", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Memory.startSampling", dict); } /// /// Stop collecting native memory profile. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StopSamplingAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Memory.stopSampling", dict); } /// /// Retrieve native memory allocations profile /// collected since renderer process startup. /// /// returns System.Threading.Tasks.Task<GetAllTimeSamplingProfileResponse> public System.Threading.Tasks.Task GetAllTimeSamplingProfileAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Memory.getAllTimeSamplingProfile", dict); } /// /// Retrieve native memory allocations profile /// collected since browser process startup. /// /// returns System.Threading.Tasks.Task<GetBrowserSamplingProfileResponse> public System.Threading.Tasks.Task GetBrowserSamplingProfileAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Memory.getBrowserSamplingProfile", dict); } /// /// Retrieve native memory allocations profile collected since last /// `startSampling` call. /// /// returns System.Threading.Tasks.Task<GetSamplingProfileResponse> public System.Threading.Tasks.Task GetSamplingProfileAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Memory.getSamplingProfile", dict); } } } namespace CefSharp.DevTools.Network { /// /// EmulateNetworkConditionsByRuleResponse /// public class EmulateNetworkConditionsByRuleResponse : DevToolsDomainResponseBase { /// /// ruleIds /// [JsonInclude] [JsonPropertyName("ruleIds")] public string[] RuleIds { get; private set; } } } namespace CefSharp.DevTools.Network { /// /// GetCertificateResponse /// public class GetCertificateResponse : DevToolsDomainResponseBase { /// /// tableNames /// [JsonInclude] [JsonPropertyName("tableNames")] public string[] TableNames { get; private set; } } } namespace CefSharp.DevTools.Network { /// /// GetCookiesResponse /// public class GetCookiesResponse : DevToolsDomainResponseBase { /// /// cookies /// [JsonInclude] [JsonPropertyName("cookies")] public System.Collections.Generic.IList Cookies { get; private set; } } } namespace CefSharp.DevTools.Network { /// /// GetResponseBodyResponse /// public class GetResponseBodyResponse : DevToolsDomainResponseBase { /// /// body /// [JsonInclude] [JsonPropertyName("body")] public string Body { get; private set; } /// /// base64Encoded /// [JsonInclude] [JsonPropertyName("base64Encoded")] public bool Base64Encoded { get; private set; } } } namespace CefSharp.DevTools.Network { /// /// GetRequestPostDataResponse /// public class GetRequestPostDataResponse : DevToolsDomainResponseBase { /// /// postData /// [JsonInclude] [JsonPropertyName("postData")] public string PostData { get; private set; } /// /// base64Encoded /// [JsonInclude] [JsonPropertyName("base64Encoded")] public bool Base64Encoded { get; private set; } } } namespace CefSharp.DevTools.Network { /// /// GetResponseBodyForInterceptionResponse /// public class GetResponseBodyForInterceptionResponse : DevToolsDomainResponseBase { /// /// body /// [JsonInclude] [JsonPropertyName("body")] public string Body { get; private set; } /// /// base64Encoded /// [JsonInclude] [JsonPropertyName("base64Encoded")] public bool Base64Encoded { get; private set; } } } namespace CefSharp.DevTools.Network { /// /// TakeResponseBodyForInterceptionAsStreamResponse /// public class TakeResponseBodyForInterceptionAsStreamResponse : DevToolsDomainResponseBase { /// /// stream /// [JsonInclude] [JsonPropertyName("stream")] public string Stream { get; private set; } } } namespace CefSharp.DevTools.Network { /// /// SearchInResponseBodyResponse /// public class SearchInResponseBodyResponse : DevToolsDomainResponseBase { /// /// result /// [JsonInclude] [JsonPropertyName("result")] public System.Collections.Generic.IList Result { get; private set; } } } namespace CefSharp.DevTools.Network { /// /// SetCookieResponse /// public class SetCookieResponse : DevToolsDomainResponseBase { /// /// success /// [JsonInclude] [JsonPropertyName("success")] public bool Success { get; private set; } } } namespace CefSharp.DevTools.Network { /// /// StreamResourceContentResponse /// public class StreamResourceContentResponse : DevToolsDomainResponseBase { /// /// bufferedData /// [JsonInclude] [JsonPropertyName("bufferedData")] public byte[] BufferedData { get; private set; } } } namespace CefSharp.DevTools.Network { /// /// GetSecurityIsolationStatusResponse /// public class GetSecurityIsolationStatusResponse : DevToolsDomainResponseBase { /// /// status /// [JsonInclude] [JsonPropertyName("status")] public CefSharp.DevTools.Network.SecurityIsolationStatus Status { get; private set; } } } namespace CefSharp.DevTools.Network { /// /// FetchSchemefulSiteResponse /// public class FetchSchemefulSiteResponse : DevToolsDomainResponseBase { /// /// schemefulSite /// [JsonInclude] [JsonPropertyName("schemefulSite")] public string SchemefulSite { get; private set; } } } namespace CefSharp.DevTools.Network { /// /// LoadNetworkResourceResponse /// public class LoadNetworkResourceResponse : DevToolsDomainResponseBase { /// /// resource /// [JsonInclude] [JsonPropertyName("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; /// /// Network /// /// DevToolsClient public NetworkClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Fired when data chunk was received over the network. /// public event System.EventHandler DataReceived { add { _client.AddEventHandler("Network.dataReceived", value); } remove { _client.RemoveEventHandler("Network.dataReceived", value); } } /// /// Fired when EventSource message is received. /// public event System.EventHandler EventSourceMessageReceived { add { _client.AddEventHandler("Network.eventSourceMessageReceived", value); } remove { _client.RemoveEventHandler("Network.eventSourceMessageReceived", value); } } /// /// Fired when HTTP request has failed to load. /// public event System.EventHandler LoadingFailed { add { _client.AddEventHandler("Network.loadingFailed", value); } remove { _client.RemoveEventHandler("Network.loadingFailed", value); } } /// /// Fired when HTTP request has finished loading. /// public event System.EventHandler LoadingFinished { add { _client.AddEventHandler("Network.loadingFinished", value); } remove { _client.RemoveEventHandler("Network.loadingFinished", value); } } /// /// Fired if request ended up loading from cache. /// public event System.EventHandler RequestServedFromCache { add { _client.AddEventHandler("Network.requestServedFromCache", value); } remove { _client.RemoveEventHandler("Network.requestServedFromCache", value); } } /// /// Fired when page is about to send HTTP request. /// public event System.EventHandler RequestWillBeSent { add { _client.AddEventHandler("Network.requestWillBeSent", value); } remove { _client.RemoveEventHandler("Network.requestWillBeSent", value); } } /// /// Fired when resource loading priority is changed /// public event System.EventHandler ResourceChangedPriority { add { _client.AddEventHandler("Network.resourceChangedPriority", value); } remove { _client.RemoveEventHandler("Network.resourceChangedPriority", value); } } /// /// Fired when a signed exchange was received over the network /// public event System.EventHandler SignedExchangeReceived { add { _client.AddEventHandler("Network.signedExchangeReceived", value); } remove { _client.RemoveEventHandler("Network.signedExchangeReceived", value); } } /// /// Fired when HTTP response is available. /// public event System.EventHandler ResponseReceived { add { _client.AddEventHandler("Network.responseReceived", value); } remove { _client.RemoveEventHandler("Network.responseReceived", value); } } /// /// Fired when WebSocket is closed. /// public event System.EventHandler WebSocketClosed { add { _client.AddEventHandler("Network.webSocketClosed", value); } remove { _client.RemoveEventHandler("Network.webSocketClosed", value); } } /// /// Fired upon WebSocket creation. /// public event System.EventHandler WebSocketCreated { add { _client.AddEventHandler("Network.webSocketCreated", value); } remove { _client.RemoveEventHandler("Network.webSocketCreated", value); } } /// /// Fired when WebSocket message error occurs. /// public event System.EventHandler WebSocketFrameError { add { _client.AddEventHandler("Network.webSocketFrameError", value); } remove { _client.RemoveEventHandler("Network.webSocketFrameError", value); } } /// /// Fired when WebSocket message is received. /// public event System.EventHandler WebSocketFrameReceived { add { _client.AddEventHandler("Network.webSocketFrameReceived", value); } remove { _client.RemoveEventHandler("Network.webSocketFrameReceived", value); } } /// /// Fired when WebSocket message is sent. /// public event System.EventHandler WebSocketFrameSent { add { _client.AddEventHandler("Network.webSocketFrameSent", value); } remove { _client.RemoveEventHandler("Network.webSocketFrameSent", value); } } /// /// Fired when WebSocket handshake response becomes available. /// public event System.EventHandler WebSocketHandshakeResponseReceived { add { _client.AddEventHandler("Network.webSocketHandshakeResponseReceived", value); } remove { _client.RemoveEventHandler("Network.webSocketHandshakeResponseReceived", value); } } /// /// Fired when WebSocket is about to initiate handshake. /// public event System.EventHandler WebSocketWillSendHandshakeRequest { add { _client.AddEventHandler("Network.webSocketWillSendHandshakeRequest", value); } remove { _client.RemoveEventHandler("Network.webSocketWillSendHandshakeRequest", value); } } /// /// Fired upon WebTransport creation. /// public event System.EventHandler WebTransportCreated { add { _client.AddEventHandler("Network.webTransportCreated", value); } remove { _client.RemoveEventHandler("Network.webTransportCreated", value); } } /// /// Fired when WebTransport handshake is finished. /// public event System.EventHandler WebTransportConnectionEstablished { add { _client.AddEventHandler("Network.webTransportConnectionEstablished", value); } remove { _client.RemoveEventHandler("Network.webTransportConnectionEstablished", value); } } /// /// Fired when WebTransport is disposed. /// public event System.EventHandler WebTransportClosed { add { _client.AddEventHandler("Network.webTransportClosed", value); } remove { _client.RemoveEventHandler("Network.webTransportClosed", value); } } /// /// Fired upon direct_socket.TCPSocket creation. /// public event System.EventHandler DirectTCPSocketCreated { add { _client.AddEventHandler("Network.directTCPSocketCreated", value); } remove { _client.RemoveEventHandler("Network.directTCPSocketCreated", value); } } /// /// Fired when direct_socket.TCPSocket connection is opened. /// public event System.EventHandler DirectTCPSocketOpened { add { _client.AddEventHandler("Network.directTCPSocketOpened", value); } remove { _client.RemoveEventHandler("Network.directTCPSocketOpened", value); } } /// /// Fired when direct_socket.TCPSocket is aborted. /// public event System.EventHandler DirectTCPSocketAborted { add { _client.AddEventHandler("Network.directTCPSocketAborted", value); } remove { _client.RemoveEventHandler("Network.directTCPSocketAborted", value); } } /// /// Fired when direct_socket.TCPSocket is closed. /// public event System.EventHandler DirectTCPSocketClosed { add { _client.AddEventHandler("Network.directTCPSocketClosed", value); } remove { _client.RemoveEventHandler("Network.directTCPSocketClosed", value); } } /// /// Fired when data is sent to tcp direct socket stream. /// public event System.EventHandler DirectTCPSocketChunkSent { add { _client.AddEventHandler("Network.directTCPSocketChunkSent", value); } remove { _client.RemoveEventHandler("Network.directTCPSocketChunkSent", value); } } /// /// Fired when data is received from tcp direct socket stream. /// public event System.EventHandler DirectTCPSocketChunkReceived { add { _client.AddEventHandler("Network.directTCPSocketChunkReceived", value); } remove { _client.RemoveEventHandler("Network.directTCPSocketChunkReceived", value); } } /// /// DirectUDPSocketJoinedMulticastGroup /// public event System.EventHandler DirectUDPSocketJoinedMulticastGroup { add { _client.AddEventHandler("Network.directUDPSocketJoinedMulticastGroup", value); } remove { _client.RemoveEventHandler("Network.directUDPSocketJoinedMulticastGroup", value); } } /// /// DirectUDPSocketLeftMulticastGroup /// public event System.EventHandler DirectUDPSocketLeftMulticastGroup { add { _client.AddEventHandler("Network.directUDPSocketLeftMulticastGroup", value); } remove { _client.RemoveEventHandler("Network.directUDPSocketLeftMulticastGroup", value); } } /// /// Fired upon direct_socket.UDPSocket creation. /// public event System.EventHandler DirectUDPSocketCreated { add { _client.AddEventHandler("Network.directUDPSocketCreated", value); } remove { _client.RemoveEventHandler("Network.directUDPSocketCreated", value); } } /// /// Fired when direct_socket.UDPSocket connection is opened. /// public event System.EventHandler DirectUDPSocketOpened { add { _client.AddEventHandler("Network.directUDPSocketOpened", value); } remove { _client.RemoveEventHandler("Network.directUDPSocketOpened", value); } } /// /// Fired when direct_socket.UDPSocket is aborted. /// public event System.EventHandler DirectUDPSocketAborted { add { _client.AddEventHandler("Network.directUDPSocketAborted", value); } remove { _client.RemoveEventHandler("Network.directUDPSocketAborted", value); } } /// /// Fired when direct_socket.UDPSocket is closed. /// public event System.EventHandler DirectUDPSocketClosed { add { _client.AddEventHandler("Network.directUDPSocketClosed", value); } remove { _client.RemoveEventHandler("Network.directUDPSocketClosed", value); } } /// /// Fired when message is sent to udp direct socket stream. /// public event System.EventHandler DirectUDPSocketChunkSent { add { _client.AddEventHandler("Network.directUDPSocketChunkSent", value); } remove { _client.RemoveEventHandler("Network.directUDPSocketChunkSent", value); } } /// /// Fired when message is received from udp direct socket stream. /// public event System.EventHandler DirectUDPSocketChunkReceived { add { _client.AddEventHandler("Network.directUDPSocketChunkReceived", value); } remove { _client.RemoveEventHandler("Network.directUDPSocketChunkReceived", value); } } /// /// Fired when additional information about a requestWillBeSent event is available from the /// network stack. Not every requestWillBeSent event will have an additional /// requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent /// or requestWillBeSentExtraInfo will be fired first for the same request. /// public event System.EventHandler RequestWillBeSentExtraInfo { add { _client.AddEventHandler("Network.requestWillBeSentExtraInfo", value); } remove { _client.RemoveEventHandler("Network.requestWillBeSentExtraInfo", value); } } /// /// Fired when additional information about a responseReceived event is available from the network /// stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for /// it, and responseReceivedExtraInfo may be fired before or after responseReceived. /// public event System.EventHandler ResponseReceivedExtraInfo { add { _client.AddEventHandler("Network.responseReceivedExtraInfo", value); } remove { _client.RemoveEventHandler("Network.responseReceivedExtraInfo", value); } } /// /// Fired when 103 Early Hints headers is received in addition to the common response. /// Not every responseReceived event will have an responseReceivedEarlyHints fired. /// Only one responseReceivedEarlyHints may be fired for eached responseReceived event. /// public event System.EventHandler ResponseReceivedEarlyHints { add { _client.AddEventHandler("Network.responseReceivedEarlyHints", value); } remove { _client.RemoveEventHandler("Network.responseReceivedEarlyHints", value); } } /// /// Fired exactly once for each Trust Token operation. Depending on /// the type of the operation and whether the operation succeeded or /// failed, the event is fired before the corresponding request was sent /// or after the response was received. /// public event System.EventHandler TrustTokenOperationDone { add { _client.AddEventHandler("Network.trustTokenOperationDone", value); } remove { _client.RemoveEventHandler("Network.trustTokenOperationDone", value); } } /// /// Fired once security policy has been updated. /// public event System.EventHandler PolicyUpdated { add { _client.AddEventHandler("Network.policyUpdated", value); } remove { _client.RemoveEventHandler("Network.policyUpdated", value); } } /// /// Is sent whenever a new report is added. /// And after 'enableReportingApi' for all existing reports. /// public event System.EventHandler ReportingApiReportAdded { add { _client.AddEventHandler("Network.reportingApiReportAdded", value); } remove { _client.RemoveEventHandler("Network.reportingApiReportAdded", value); } } /// /// ReportingApiReportUpdated /// public event System.EventHandler ReportingApiReportUpdated { add { _client.AddEventHandler("Network.reportingApiReportUpdated", value); } remove { _client.RemoveEventHandler("Network.reportingApiReportUpdated", value); } } /// /// ReportingApiEndpointsChangedForOrigin /// public event System.EventHandler ReportingApiEndpointsChangedForOrigin { add { _client.AddEventHandler("Network.reportingApiEndpointsChangedForOrigin", value); } remove { _client.RemoveEventHandler("Network.reportingApiEndpointsChangedForOrigin", value); } } /// /// Triggered when the initial set of device bound sessions is added. /// public event System.EventHandler DeviceBoundSessionsAdded { add { _client.AddEventHandler("Network.deviceBoundSessionsAdded", value); } remove { _client.RemoveEventHandler("Network.deviceBoundSessionsAdded", value); } } /// /// Triggered when a device bound session event occurs. /// public event System.EventHandler DeviceBoundSessionEventOccurred { add { _client.AddEventHandler("Network.deviceBoundSessionEventOccurred", value); } remove { _client.RemoveEventHandler("Network.deviceBoundSessionEventOccurred", value); } } partial void ValidateSetAcceptedEncodings(CefSharp.DevTools.Network.ContentEncoding[] encodings); /// /// Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted. /// /// List of accepted content encodings. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetAcceptedEncodingsAsync(CefSharp.DevTools.Network.ContentEncoding[] encodings) { ValidateSetAcceptedEncodings(encodings); var dict = new System.Collections.Generic.Dictionary(); dict.Add("encodings", EnumToString(encodings)); return _client.ExecuteDevToolsMethodAsync("Network.setAcceptedEncodings", dict); } /// /// Clears accepted encodings set by setAcceptedEncodings /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearAcceptedEncodingsOverrideAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Network.clearAcceptedEncodingsOverride", dict); } /// /// Clears browser cache. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearBrowserCacheAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Network.clearBrowserCache", dict); } /// /// Clears browser cookies. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearBrowserCookiesAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Network.clearBrowserCookies", dict); } partial void ValidateDeleteCookies(string name, string url = null, string domain = null, string path = null, CefSharp.DevTools.Network.CookiePartitionKey partitionKey = null); /// /// Deletes browser cookies with matching name and url or domain/path/partitionKey pair. /// /// Name of the cookies to remove. /// If specified, deletes all the cookies with the given name where domain and path matchprovided URL. /// If specified, deletes only cookies with the exact domain. /// If specified, deletes only cookies with the exact path. /// If specified, deletes only cookies with the the given name and partitionKey whereall partition key attributes match the cookie partition key attribute. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DeleteCookiesAsync(string name, string url = null, string domain = null, string path = null, CefSharp.DevTools.Network.CookiePartitionKey partitionKey = null) { ValidateDeleteCookies(name, url, domain, path, partitionKey); 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); } if ((partitionKey) != (null)) { dict.Add("partitionKey", partitionKey.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("Network.deleteCookies", dict); } /// /// Disables network tracking, prevents network events from being sent to the client. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Network.disable", dict); } partial void ValidateEmulateNetworkConditionsByRule(bool offline, System.Collections.Generic.IList matchedNetworkConditions); /// /// Activates emulation of network conditions for individual requests using URL match patterns. Unlike the deprecated /// Network.emulateNetworkConditions this method does not affect `navigator` state. Use Network.overrideNetworkState to /// explicitly modify `navigator` behavior. /// /// True to emulate internet disconnection. /// Configure conditions for matching requests. If multiple entries match a request, the first entry wins. Globalconditions can be configured by leaving the urlPattern for the conditions empty. These global conditions arealso applied for throttling of p2p connections. /// returns System.Threading.Tasks.Task<EmulateNetworkConditionsByRuleResponse> public System.Threading.Tasks.Task EmulateNetworkConditionsByRuleAsync(bool offline, System.Collections.Generic.IList matchedNetworkConditions) { ValidateEmulateNetworkConditionsByRule(offline, matchedNetworkConditions); var dict = new System.Collections.Generic.Dictionary(); dict.Add("offline", offline); dict.Add("matchedNetworkConditions", matchedNetworkConditions.Select(x => x.ToDictionary())); return _client.ExecuteDevToolsMethodAsync("Network.emulateNetworkConditionsByRule", dict); } partial void ValidateOverrideNetworkState(bool offline, double latency, double downloadThroughput, double uploadThroughput, CefSharp.DevTools.Network.ConnectionType? connectionType = null); /// /// Override the state of navigator.onLine and navigator.connection. /// /// 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 System.Threading.Tasks.Task OverrideNetworkStateAsync(bool offline, double latency, double downloadThroughput, double uploadThroughput, CefSharp.DevTools.Network.ConnectionType? connectionType = null) { ValidateOverrideNetworkState(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", EnumToString(connectionType)); } return _client.ExecuteDevToolsMethodAsync("Network.overrideNetworkState", dict); } partial void ValidateEnable(int? maxTotalBufferSize = null, int? maxResourceBufferSize = null, int? maxPostDataSize = null, bool? reportDirectSocketTraffic = null, bool? enableDurableMessages = 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 /// Whether DirectSocket chunk send/receive events should be reported. /// Enable storing response bodies outside of renderer, so that these survivea cross-process navigation. Requires maxTotalBufferSize to be set.Currently defaults to false. This field is being deprecated in favor of the dedicatedconfigureDurableMessages command, due to the possibility of deadlocks when awaitingNetwork.enable before issuing Runtime.runIfWaitingForDebugger. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync(int? maxTotalBufferSize = null, int? maxResourceBufferSize = null, int? maxPostDataSize = null, bool? reportDirectSocketTraffic = null, bool? enableDurableMessages = null) { ValidateEnable(maxTotalBufferSize, maxResourceBufferSize, maxPostDataSize, reportDirectSocketTraffic, enableDurableMessages); 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); } if (reportDirectSocketTraffic.HasValue) { dict.Add("reportDirectSocketTraffic", reportDirectSocketTraffic.Value); } if (enableDurableMessages.HasValue) { dict.Add("enableDurableMessages", enableDurableMessages.Value); } return _client.ExecuteDevToolsMethodAsync("Network.enable", dict); } partial void ValidateConfigureDurableMessages(int? maxTotalBufferSize = null, int? maxResourceBufferSize = null); /// /// Configures storing response bodies outside of renderer, so that these survive /// a cross-process navigation. /// If maxTotalBufferSize is not set, durable messages are disabled. /// /// 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). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ConfigureDurableMessagesAsync(int? maxTotalBufferSize = null, int? maxResourceBufferSize = null) { ValidateConfigureDurableMessages(maxTotalBufferSize, maxResourceBufferSize); var dict = new System.Collections.Generic.Dictionary(); if (maxTotalBufferSize.HasValue) { dict.Add("maxTotalBufferSize", maxTotalBufferSize.Value); } if (maxResourceBufferSize.HasValue) { dict.Add("maxResourceBufferSize", maxResourceBufferSize.Value); } return _client.ExecuteDevToolsMethodAsync("Network.configureDurableMessages", dict); } partial void ValidateGetCertificate(string origin); /// /// Returns the DER-encoded certificate. /// /// Origin to get certificate for. /// returns System.Threading.Tasks.Task<GetCertificateResponse> public System.Threading.Tasks.Task GetCertificateAsync(string origin) { ValidateGetCertificate(origin); var dict = new System.Collections.Generic.Dictionary(); dict.Add("origin", origin); return _client.ExecuteDevToolsMethodAsync("Network.getCertificate", dict); } 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.If not specified, it's assumed to be set to the list containingthe URLs of the page and all of its subframes. /// returns System.Threading.Tasks.Task<GetCookiesResponse> public System.Threading.Tasks.Task GetCookiesAsync(string[] urls = null) { ValidateGetCookies(urls); var dict = new System.Collections.Generic.Dictionary(); if ((urls) != (null)) { dict.Add("urls", urls); } return _client.ExecuteDevToolsMethodAsync("Network.getCookies", dict); } 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 System.Threading.Tasks.Task GetResponseBodyAsync(string requestId) { ValidateGetResponseBody(requestId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("requestId", requestId); return _client.ExecuteDevToolsMethodAsync("Network.getResponseBody", dict); } 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 System.Threading.Tasks.Task GetRequestPostDataAsync(string requestId) { ValidateGetRequestPostData(requestId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("requestId", requestId); return _client.ExecuteDevToolsMethodAsync("Network.getRequestPostData", dict); } 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 System.Threading.Tasks.Task GetResponseBodyForInterceptionAsync(string interceptionId) { ValidateGetResponseBodyForInterception(interceptionId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("interceptionId", interceptionId); return _client.ExecuteDevToolsMethodAsync("Network.getResponseBodyForInterception", dict); } 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 System.Threading.Tasks.Task TakeResponseBodyForInterceptionAsStreamAsync(string interceptionId) { ValidateTakeResponseBodyForInterceptionAsStream(interceptionId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("interceptionId", interceptionId); return _client.ExecuteDevToolsMethodAsync("Network.takeResponseBodyForInterceptionAsStream", dict); } 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 System.Threading.Tasks.Task ReplayXHRAsync(string requestId) { ValidateReplayXHR(requestId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("requestId", requestId); return _client.ExecuteDevToolsMethodAsync("Network.replayXHR", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Network.searchInResponseBody", dict); } partial void ValidateSetBlockedURLs(System.Collections.Generic.IList urlPatterns = null, string[] urls = null); /// /// Blocks URLs from loading. /// /// Patterns to match in the order in which they are given. These patternsalso take precedence over any wildcard patterns defined in `urls`. /// URL patterns to block. Wildcards ('*') are allowed. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetBlockedURLsAsync(System.Collections.Generic.IList urlPatterns = null, string[] urls = null) { ValidateSetBlockedURLs(urlPatterns, urls); var dict = new System.Collections.Generic.Dictionary(); if ((urlPatterns) != (null)) { dict.Add("urlPatterns", urlPatterns.Select(x => x.ToDictionary())); } if ((urls) != (null)) { dict.Add("urls", urls); } return _client.ExecuteDevToolsMethodAsync("Network.setBlockedURLs", dict); } 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 System.Threading.Tasks.Task SetBypassServiceWorkerAsync(bool bypass) { ValidateSetBypassServiceWorker(bypass); var dict = new System.Collections.Generic.Dictionary(); dict.Add("bypass", bypass); return _client.ExecuteDevToolsMethodAsync("Network.setBypassServiceWorker", dict); } 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 System.Threading.Tasks.Task SetCacheDisabledAsync(bool cacheDisabled) { ValidateSetCacheDisabled(cacheDisabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("cacheDisabled", cacheDisabled); return _client.ExecuteDevToolsMethodAsync("Network.setCacheDisabled", dict); } 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, double? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, bool? sameParty = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null, CefSharp.DevTools.Network.CookiePartitionKey partitionKey = 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 thedefault domain, path, source port, and source scheme values of the created cookie. /// Cookie domain. /// Cookie path. /// True if cookie is secure. /// True if cookie is http-only. /// Cookie SameSite type. /// Cookie expiration date, session cookie if not set /// Cookie Priority type. /// True if cookie is SameParty. /// Cookie source scheme type. /// Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.An unspecified port value allows protocol clients to emulate legacy cookie scope for the port.This is a temporary ability and it will be removed in the future. /// Cookie partition key. If not set, the cookie will be set as not partitioned. /// returns System.Threading.Tasks.Task<SetCookieResponse> public 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, double? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, bool? sameParty = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null, CefSharp.DevTools.Network.CookiePartitionKey partitionKey = null) { ValidateSetCookie(name, value, url, domain, path, secure, httpOnly, sameSite, expires, priority, sameParty, sourceScheme, sourcePort, partitionKey); 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", EnumToString(sameSite)); } if (expires.HasValue) { dict.Add("expires", expires.Value); } if (priority.HasValue) { dict.Add("priority", EnumToString(priority)); } if (sameParty.HasValue) { dict.Add("sameParty", sameParty.Value); } if (sourceScheme.HasValue) { dict.Add("sourceScheme", EnumToString(sourceScheme)); } if (sourcePort.HasValue) { dict.Add("sourcePort", sourcePort.Value); } if ((partitionKey) != (null)) { dict.Add("partitionKey", partitionKey.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("Network.setCookie", dict); } partial void ValidateSetCookies(System.Collections.Generic.IList cookies); /// /// Sets given cookies. /// /// Cookies to be set. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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())); return _client.ExecuteDevToolsMethodAsync("Network.setCookies", dict); } 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 System.Threading.Tasks.Task SetExtraHTTPHeadersAsync(CefSharp.DevTools.Network.Headers headers) { ValidateSetExtraHTTPHeaders(headers); var dict = new System.Collections.Generic.Dictionary(); dict.Add("headers", headers.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("Network.setExtraHTTPHeaders", dict); } partial void ValidateSetAttachDebugStack(bool enabled); /// /// Specifies whether to attach a page script stack id in requests /// /// Whether to attach a page script stack for debugging purpose. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetAttachDebugStackAsync(bool enabled) { ValidateSetAttachDebugStack(enabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Network.setAttachDebugStack", dict); } 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 language 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 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()); } return _client.ExecuteDevToolsMethodAsync("Network.setUserAgentOverride", dict); } partial void ValidateStreamResourceContent(string requestId); /// /// Enables streaming of the response for the given requestId. /// If enabled, the dataReceived event contains the data that was received during streaming. /// /// Identifier of the request to stream. /// returns System.Threading.Tasks.Task<StreamResourceContentResponse> public System.Threading.Tasks.Task StreamResourceContentAsync(string requestId) { ValidateStreamResourceContent(requestId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("requestId", requestId); return _client.ExecuteDevToolsMethodAsync("Network.streamResourceContent", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Network.getSecurityIsolationStatus", dict); } partial void ValidateEnableReportingApi(bool enable); /// /// Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client. /// Enabling triggers 'reportingApiReportAdded' for all existing reports. /// /// Whether to enable or disable events for the Reporting API /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableReportingApiAsync(bool enable) { ValidateEnableReportingApi(enable); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("Network.enableReportingApi", dict); } partial void ValidateEnableDeviceBoundSessions(bool enable); /// /// Sets up tracking device bound sessions and fetching of initial set of sessions. /// /// Whether to enable or disable events. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableDeviceBoundSessionsAsync(bool enable) { ValidateEnableDeviceBoundSessions(enable); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("Network.enableDeviceBoundSessions", dict); } partial void ValidateFetchSchemefulSite(string origin); /// /// Fetches the schemeful site for a specific origin. /// /// The URL origin. /// returns System.Threading.Tasks.Task<FetchSchemefulSiteResponse> public System.Threading.Tasks.Task FetchSchemefulSiteAsync(string origin) { ValidateFetchSchemefulSite(origin); var dict = new System.Collections.Generic.Dictionary(); dict.Add("origin", origin); return _client.ExecuteDevToolsMethodAsync("Network.fetchSchemefulSite", dict); } partial void ValidateLoadNetworkResource(string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options, string frameId = null); /// /// Fetches the resource and returns the content. /// /// URL of the resource to get content for. /// Options for the request. /// Frame id to get the resource for. Mandatory for frame targets, andshould be omitted for worker targets. /// returns System.Threading.Tasks.Task<LoadNetworkResourceResponse> public System.Threading.Tasks.Task LoadNetworkResourceAsync(string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options, string frameId = null) { ValidateLoadNetworkResource(url, options, frameId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("url", url); dict.Add("options", options.ToDictionary()); if (!(string.IsNullOrEmpty(frameId))) { dict.Add("frameId", frameId); } return _client.ExecuteDevToolsMethodAsync("Network.loadNetworkResource", dict); } partial void ValidateSetCookieControls(bool enableThirdPartyCookieRestriction, bool disableThirdPartyCookieMetadata, bool disableThirdPartyCookieHeuristics); /// /// Sets Controls for third-party cookie access /// Page reload is required before the new cookie behavior will be observed /// /// Whether 3pc restriction is enabled. /// Whether 3pc grace period exception should be enabled; false by default. /// Whether 3pc heuristics exceptions should be enabled; false by default. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetCookieControlsAsync(bool enableThirdPartyCookieRestriction, bool disableThirdPartyCookieMetadata, bool disableThirdPartyCookieHeuristics) { ValidateSetCookieControls(enableThirdPartyCookieRestriction, disableThirdPartyCookieMetadata, disableThirdPartyCookieHeuristics); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enableThirdPartyCookieRestriction", enableThirdPartyCookieRestriction); dict.Add("disableThirdPartyCookieMetadata", disableThirdPartyCookieMetadata); dict.Add("disableThirdPartyCookieHeuristics", disableThirdPartyCookieHeuristics); return _client.ExecuteDevToolsMethodAsync("Network.setCookieControls", dict); } } } namespace CefSharp.DevTools.Overlay { /// /// GetHighlightObjectForTestResponse /// public class GetHighlightObjectForTestResponse : DevToolsDomainResponseBase { /// /// highlight /// [JsonInclude] [JsonPropertyName("highlight")] public object Highlight { get; private set; } } } namespace CefSharp.DevTools.Overlay { /// /// GetGridHighlightObjectsForTestResponse /// public class GetGridHighlightObjectsForTestResponse : DevToolsDomainResponseBase { /// /// highlights /// [JsonInclude] [JsonPropertyName("highlights")] public object Highlights { get; private set; } } } namespace CefSharp.DevTools.Overlay { /// /// GetSourceOrderHighlightObjectForTestResponse /// public class GetSourceOrderHighlightObjectForTestResponse : DevToolsDomainResponseBase { /// /// highlight /// [JsonInclude] [JsonPropertyName("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; /// /// Overlay /// /// DevToolsClient public OverlayClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Fired when the node should be inspected. This happens after call to `setInspectMode` or when /// user manually inspects an element. /// public event System.EventHandler InspectNodeRequested { add { _client.AddEventHandler("Overlay.inspectNodeRequested", value); } remove { _client.RemoveEventHandler("Overlay.inspectNodeRequested", value); } } /// /// Fired when the node should be highlighted. This happens after call to `setInspectMode`. /// public event System.EventHandler NodeHighlightRequested { add { _client.AddEventHandler("Overlay.nodeHighlightRequested", value); } remove { _client.RemoveEventHandler("Overlay.nodeHighlightRequested", value); } } /// /// Fired when user asks to capture screenshot of some area on the page. /// public event System.EventHandler ScreenshotRequested { add { _client.AddEventHandler("Overlay.screenshotRequested", value); } remove { _client.RemoveEventHandler("Overlay.screenshotRequested", value); } } /// /// Fired when user cancels the inspect mode. /// public event System.EventHandler InspectModeCanceled { add { _client.AddEventHandler("Overlay.inspectModeCanceled", value); } remove { _client.RemoveEventHandler("Overlay.inspectModeCanceled", value); } } /// /// Disables domain notifications. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Overlay.disable", dict); } /// /// Enables domain notifications. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Overlay.enable", dict); } 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 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", EnumToString(colorFormat)); } if (showAccessibilityInfo.HasValue) { dict.Add("showAccessibilityInfo", showAccessibilityInfo.Value); } return _client.ExecuteDevToolsMethodAsync("Overlay.getHighlightObjectForTest", dict); } 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 System.Threading.Tasks.Task GetGridHighlightObjectsForTestAsync(int[] nodeIds) { ValidateGetGridHighlightObjectsForTest(nodeIds); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeIds", nodeIds); return _client.ExecuteDevToolsMethodAsync("Overlay.getGridHighlightObjectsForTest", dict); } partial void ValidateGetSourceOrderHighlightObjectForTest(int nodeId); /// /// For Source Order Viewer testing. /// /// Id of the node to highlight. /// returns System.Threading.Tasks.Task<GetSourceOrderHighlightObjectForTestResponse> public System.Threading.Tasks.Task GetSourceOrderHighlightObjectForTestAsync(int nodeId) { ValidateGetSourceOrderHighlightObjectForTest(nodeId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); return _client.ExecuteDevToolsMethodAsync("Overlay.getSourceOrderHighlightObjectForTest", dict); } /// /// Hides any highlight. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task HideHighlightAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Overlay.hideHighlight", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Overlay.highlightNode", dict); } partial void ValidateHighlightQuad(double[] 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 System.Threading.Tasks.Task HighlightQuadAsync(double[] 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()); } return _client.ExecuteDevToolsMethodAsync("Overlay.highlightQuad", dict); } 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. /// Issue: the method does not handle device pixel ratio (DPR) correctly. /// The coordinates currently have to be adjusted by the client /// if DPR is not 1 (see crbug.com/437807128). /// /// 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 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()); } return _client.ExecuteDevToolsMethodAsync("Overlay.highlightRect", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Overlay.highlightSourceOrder", dict); } 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== false`. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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", EnumToString(mode)); if ((highlightConfig) != (null)) { dict.Add("highlightConfig", highlightConfig.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("Overlay.setInspectMode", dict); } 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 System.Threading.Tasks.Task SetShowAdHighlightsAsync(bool show) { ValidateSetShowAdHighlights(show); var dict = new System.Collections.Generic.Dictionary(); dict.Add("show", show); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowAdHighlights", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Overlay.setPausedInDebuggerMessage", dict); } 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 System.Threading.Tasks.Task SetShowDebugBordersAsync(bool show) { ValidateSetShowDebugBorders(show); var dict = new System.Collections.Generic.Dictionary(); dict.Add("show", show); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowDebugBorders", dict); } 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 System.Threading.Tasks.Task SetShowFPSCounterAsync(bool show) { ValidateSetShowFPSCounter(show); var dict = new System.Collections.Generic.Dictionary(); dict.Add("show", show); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowFPSCounter", dict); } 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 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())); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowGridOverlays", dict); } partial void ValidateSetShowFlexOverlays(System.Collections.Generic.IList flexNodeHighlightConfigs); /// /// SetShowFlexOverlays /// /// An array of node identifiers and descriptors for the highlight appearance. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetShowFlexOverlaysAsync(System.Collections.Generic.IList flexNodeHighlightConfigs) { ValidateSetShowFlexOverlays(flexNodeHighlightConfigs); var dict = new System.Collections.Generic.Dictionary(); dict.Add("flexNodeHighlightConfigs", flexNodeHighlightConfigs.Select(x => x.ToDictionary())); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowFlexOverlays", dict); } partial void ValidateSetShowScrollSnapOverlays(System.Collections.Generic.IList scrollSnapHighlightConfigs); /// /// SetShowScrollSnapOverlays /// /// An array of node identifiers and descriptors for the highlight appearance. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetShowScrollSnapOverlaysAsync(System.Collections.Generic.IList scrollSnapHighlightConfigs) { ValidateSetShowScrollSnapOverlays(scrollSnapHighlightConfigs); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scrollSnapHighlightConfigs", scrollSnapHighlightConfigs.Select(x => x.ToDictionary())); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowScrollSnapOverlays", dict); } partial void ValidateSetShowContainerQueryOverlays(System.Collections.Generic.IList containerQueryHighlightConfigs); /// /// SetShowContainerQueryOverlays /// /// An array of node identifiers and descriptors for the highlight appearance. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetShowContainerQueryOverlaysAsync(System.Collections.Generic.IList containerQueryHighlightConfigs) { ValidateSetShowContainerQueryOverlays(containerQueryHighlightConfigs); var dict = new System.Collections.Generic.Dictionary(); dict.Add("containerQueryHighlightConfigs", containerQueryHighlightConfigs.Select(x => x.ToDictionary())); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowContainerQueryOverlays", dict); } partial void ValidateSetShowPaintRects(bool result); /// /// Requests that backend shows paint rectangles /// /// True for showing paint rectangles /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetShowPaintRectsAsync(bool result) { ValidateSetShowPaintRects(result); var dict = new System.Collections.Generic.Dictionary(); dict.Add("result", result); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowPaintRects", dict); } 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 System.Threading.Tasks.Task SetShowLayoutShiftRegionsAsync(bool result) { ValidateSetShowLayoutShiftRegions(result); var dict = new System.Collections.Generic.Dictionary(); dict.Add("result", result); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowLayoutShiftRegions", dict); } 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 System.Threading.Tasks.Task SetShowScrollBottleneckRectsAsync(bool show) { ValidateSetShowScrollBottleneckRects(show); var dict = new System.Collections.Generic.Dictionary(); dict.Add("show", show); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowScrollBottleneckRects", dict); } 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 System.Threading.Tasks.Task SetShowViewportSizeOnResizeAsync(bool show) { ValidateSetShowViewportSizeOnResize(show); var dict = new System.Collections.Generic.Dictionary(); dict.Add("show", show); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowViewportSizeOnResize", dict); } 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 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()); } return _client.ExecuteDevToolsMethodAsync("Overlay.setShowHinge", dict); } partial void ValidateSetShowIsolatedElements(System.Collections.Generic.IList isolatedElementHighlightConfigs); /// /// Show elements in isolation mode with overlays. /// /// An array of node identifiers and descriptors for the highlight appearance. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetShowIsolatedElementsAsync(System.Collections.Generic.IList isolatedElementHighlightConfigs) { ValidateSetShowIsolatedElements(isolatedElementHighlightConfigs); var dict = new System.Collections.Generic.Dictionary(); dict.Add("isolatedElementHighlightConfigs", isolatedElementHighlightConfigs.Select(x => x.ToDictionary())); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowIsolatedElements", dict); } partial void ValidateSetShowWindowControlsOverlay(CefSharp.DevTools.Overlay.WindowControlsOverlayConfig windowControlsOverlayConfig = null); /// /// Show Window Controls Overlay for PWA /// /// Window Controls Overlay data, null means hide Window Controls Overlay /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetShowWindowControlsOverlayAsync(CefSharp.DevTools.Overlay.WindowControlsOverlayConfig windowControlsOverlayConfig = null) { ValidateSetShowWindowControlsOverlay(windowControlsOverlayConfig); var dict = new System.Collections.Generic.Dictionary(); if ((windowControlsOverlayConfig) != (null)) { dict.Add("windowControlsOverlayConfig", windowControlsOverlayConfig.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("Overlay.setShowWindowControlsOverlay", dict); } } } namespace CefSharp.DevTools.PWA { /// /// GetOsAppStateResponse /// public class GetOsAppStateResponse : DevToolsDomainResponseBase { /// /// badgeCount /// [JsonInclude] [JsonPropertyName("badgeCount")] public int BadgeCount { get; private set; } /// /// fileHandlers /// [JsonInclude] [JsonPropertyName("fileHandlers")] public System.Collections.Generic.IList FileHandlers { get; private set; } } } namespace CefSharp.DevTools.PWA { /// /// LaunchResponse /// public class LaunchResponse : DevToolsDomainResponseBase { /// /// targetId /// [JsonInclude] [JsonPropertyName("targetId")] public string TargetId { get; private set; } } } namespace CefSharp.DevTools.PWA { /// /// LaunchFilesInAppResponse /// public class LaunchFilesInAppResponse : DevToolsDomainResponseBase { /// /// targetIds /// [JsonInclude] [JsonPropertyName("targetIds")] public string[] TargetIds { get; private set; } } } namespace CefSharp.DevTools.PWA { using System.Linq; /// /// This domain allows interacting with the browser to control PWAs. /// public partial class PWAClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// PWA /// /// DevToolsClient public PWAClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } partial void ValidateGetOsAppState(string manifestId); /// /// Returns the following OS state for the given manifest id. /// /// The id from the webapp's manifest file, commonly it's the url of thesite installing the webapp. Seehttps://web.dev/learn/pwa/web-app-manifest. /// returns System.Threading.Tasks.Task<GetOsAppStateResponse> public System.Threading.Tasks.Task GetOsAppStateAsync(string manifestId) { ValidateGetOsAppState(manifestId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("manifestId", manifestId); return _client.ExecuteDevToolsMethodAsync("PWA.getOsAppState", dict); } partial void ValidateInstall(string manifestId, string installUrlOrBundleUrl = null); /// /// Installs the given manifest identity, optionally using the given installUrlOrBundleUrl /// /// IWA-specific install description: /// manifestId corresponds to isolated-app:// + web_package::SignedWebBundleId /// /// File installation mode: /// The installUrlOrBundleUrl can be either file:// or http(s):// pointing /// to a signed web bundle (.swbn). In this case SignedWebBundleId must correspond to /// The .swbn file's signing key. /// /// Dev proxy installation mode: /// installUrlOrBundleUrl must be http(s):// that serves dev mode IWA. /// web_package::SignedWebBundleId must be of type dev proxy. /// /// The advantage of dev proxy mode is that all changes to IWA /// automatically will be reflected in the running app without /// reinstallation. /// /// To generate bundle id for proxy mode: /// 1. Generate 32 random bytes. /// 2. Add a specific suffix at the end following the documentation /// https://github.com/WICG/isolated-web-apps/blob/main/Scheme.md#suffix /// 3. Encode the entire sequence using Base32 without padding. /// /// If Chrome is not in IWA dev /// mode, the installation will fail, regardless of the state of the allowlist. /// /// manifestId /// The location of the app or bundle overriding the one derived from themanifestId. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task InstallAsync(string manifestId, string installUrlOrBundleUrl = null) { ValidateInstall(manifestId, installUrlOrBundleUrl); var dict = new System.Collections.Generic.Dictionary(); dict.Add("manifestId", manifestId); if (!(string.IsNullOrEmpty(installUrlOrBundleUrl))) { dict.Add("installUrlOrBundleUrl", installUrlOrBundleUrl); } return _client.ExecuteDevToolsMethodAsync("PWA.install", dict); } partial void ValidateUninstall(string manifestId); /// /// Uninstalls the given manifest_id and closes any opened app windows. /// /// manifestId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task UninstallAsync(string manifestId) { ValidateUninstall(manifestId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("manifestId", manifestId); return _client.ExecuteDevToolsMethodAsync("PWA.uninstall", dict); } partial void ValidateLaunch(string manifestId, string url = null); /// /// Launches the installed web app, or an url in the same web app instead of the /// default start url if it is provided. Returns a page Target.TargetID which /// can be used to attach to via Target.attachToTarget or similar APIs. /// /// manifestId /// url /// returns System.Threading.Tasks.Task<LaunchResponse> public System.Threading.Tasks.Task LaunchAsync(string manifestId, string url = null) { ValidateLaunch(manifestId, url); var dict = new System.Collections.Generic.Dictionary(); dict.Add("manifestId", manifestId); if (!(string.IsNullOrEmpty(url))) { dict.Add("url", url); } return _client.ExecuteDevToolsMethodAsync("PWA.launch", dict); } partial void ValidateLaunchFilesInApp(string manifestId, string[] files); /// /// Opens one or more local files from an installed web app identified by its /// manifestId. The web app needs to have file handlers registered to process /// the files. The API returns one or more page Target.TargetIDs which can be /// used to attach to via Target.attachToTarget or similar APIs. /// If some files in the parameters cannot be handled by the web app, they will /// be ignored. If none of the files can be handled, this API returns an error. /// If no files are provided as the parameter, this API also returns an error. /// /// According to the definition of the file handlers in the manifest file, one /// Target.TargetID may represent a page handling one or more files. The order /// of the returned Target.TargetIDs is not guaranteed. /// /// TODO(crbug.com/339454034): Check the existences of the input files. /// /// manifestId /// files /// returns System.Threading.Tasks.Task<LaunchFilesInAppResponse> public System.Threading.Tasks.Task LaunchFilesInAppAsync(string manifestId, string[] files) { ValidateLaunchFilesInApp(manifestId, files); var dict = new System.Collections.Generic.Dictionary(); dict.Add("manifestId", manifestId); dict.Add("files", files); return _client.ExecuteDevToolsMethodAsync("PWA.launchFilesInApp", dict); } partial void ValidateOpenCurrentPageInApp(string manifestId); /// /// Opens the current page in its web app identified by the manifest id, needs /// to be called on a page target. This function returns immediately without /// waiting for the app to finish loading. /// /// manifestId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task OpenCurrentPageInAppAsync(string manifestId) { ValidateOpenCurrentPageInApp(manifestId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("manifestId", manifestId); return _client.ExecuteDevToolsMethodAsync("PWA.openCurrentPageInApp", dict); } partial void ValidateChangeAppUserSettings(string manifestId, bool? linkCapturing = null, CefSharp.DevTools.PWA.DisplayMode? displayMode = null); /// /// Changes user settings of the web app identified by its manifestId. If the /// app was not installed, this command returns an error. Unset parameters will /// be ignored; unrecognized values will cause an error. /// /// Unlike the ones defined in the manifest files of the web apps, these /// settings are provided by the browser and controlled by the users, they /// impact the way the browser handling the web apps. /// /// See the comment of each parameter. /// /// manifestId /// If user allows the links clicked on by the user in the app's scope, orextended scope if the manifest has scope extensions and the flags`DesktopPWAsLinkCapturingWithScopeExtensions` and`WebAppEnableScopeExtensions` are enabled.Note, the API does not support resetting the linkCapturing to theinitial value, uninstalling and installing the web app again will resetit.TODO(crbug.com/339453269): Setting this value on ChromeOS is notsupported yet. /// displayMode /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ChangeAppUserSettingsAsync(string manifestId, bool? linkCapturing = null, CefSharp.DevTools.PWA.DisplayMode? displayMode = null) { ValidateChangeAppUserSettings(manifestId, linkCapturing, displayMode); var dict = new System.Collections.Generic.Dictionary(); dict.Add("manifestId", manifestId); if (linkCapturing.HasValue) { dict.Add("linkCapturing", linkCapturing.Value); } if (displayMode.HasValue) { dict.Add("displayMode", EnumToString(displayMode)); } return _client.ExecuteDevToolsMethodAsync("PWA.changeAppUserSettings", dict); } } } namespace CefSharp.DevTools.Page { /// /// AddScriptToEvaluateOnNewDocumentResponse /// public class AddScriptToEvaluateOnNewDocumentResponse : DevToolsDomainResponseBase { /// /// identifier /// [JsonInclude] [JsonPropertyName("identifier")] public string Identifier { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// CaptureScreenshotResponse /// public class CaptureScreenshotResponse : DevToolsDomainResponseBase { /// /// data /// [JsonInclude] [JsonPropertyName("data")] public byte[] Data { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// CaptureSnapshotResponse /// public class CaptureSnapshotResponse : DevToolsDomainResponseBase { /// /// data /// [JsonInclude] [JsonPropertyName("data")] public string Data { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// CreateIsolatedWorldResponse /// public class CreateIsolatedWorldResponse : DevToolsDomainResponseBase { /// /// executionContextId /// [JsonInclude] [JsonPropertyName("executionContextId")] public int ExecutionContextId { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// GetAppManifestResponse /// public class GetAppManifestResponse : DevToolsDomainResponseBase { /// /// url /// [JsonInclude] [JsonPropertyName("url")] public string Url { get; private set; } /// /// errors /// [JsonInclude] [JsonPropertyName("errors")] public System.Collections.Generic.IList Errors { get; private set; } /// /// data /// [JsonInclude] [JsonPropertyName("data")] public string Data { get; private set; } /// /// parsed /// [JsonInclude] [JsonPropertyName("parsed")] public CefSharp.DevTools.Page.AppManifestParsedProperties Parsed { get; private set; } /// /// manifest /// [JsonInclude] [JsonPropertyName("manifest")] public CefSharp.DevTools.Page.WebAppManifest Manifest { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// GetInstallabilityErrorsResponse /// public class GetInstallabilityErrorsResponse : DevToolsDomainResponseBase { /// /// installabilityErrors /// [JsonInclude] [JsonPropertyName("installabilityErrors")] public System.Collections.Generic.IList InstallabilityErrors { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// GetAppIdResponse /// public class GetAppIdResponse : DevToolsDomainResponseBase { /// /// appId /// [JsonInclude] [JsonPropertyName("appId")] public string AppId { get; private set; } /// /// recommendedId /// [JsonInclude] [JsonPropertyName("recommendedId")] public string RecommendedId { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// GetAdScriptAncestryResponse /// public class GetAdScriptAncestryResponse : DevToolsDomainResponseBase { /// /// adScriptAncestry /// [JsonInclude] [JsonPropertyName("adScriptAncestry")] public CefSharp.DevTools.Page.AdScriptAncestry AdScriptAncestry { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// GetFrameTreeResponse /// public class GetFrameTreeResponse : DevToolsDomainResponseBase { /// /// frameTree /// [JsonInclude] [JsonPropertyName("frameTree")] public CefSharp.DevTools.Page.FrameTree FrameTree { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// GetLayoutMetricsResponse /// public class GetLayoutMetricsResponse : DevToolsDomainResponseBase { /// /// layoutViewport /// [JsonInclude] [JsonPropertyName("layoutViewport")] public CefSharp.DevTools.Page.LayoutViewport LayoutViewport { get; private set; } /// /// visualViewport /// [JsonInclude] [JsonPropertyName("visualViewport")] public CefSharp.DevTools.Page.VisualViewport VisualViewport { get; private set; } /// /// contentSize /// [JsonInclude] [JsonPropertyName("contentSize")] public CefSharp.DevTools.DOM.Rect ContentSize { get; private set; } /// /// cssLayoutViewport /// [JsonInclude] [JsonPropertyName("cssLayoutViewport")] public CefSharp.DevTools.Page.LayoutViewport CssLayoutViewport { get; private set; } /// /// cssVisualViewport /// [JsonInclude] [JsonPropertyName("cssVisualViewport")] public CefSharp.DevTools.Page.VisualViewport CssVisualViewport { get; private set; } /// /// cssContentSize /// [JsonInclude] [JsonPropertyName("cssContentSize")] public CefSharp.DevTools.DOM.Rect CssContentSize { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// GetNavigationHistoryResponse /// public class GetNavigationHistoryResponse : DevToolsDomainResponseBase { /// /// currentIndex /// [JsonInclude] [JsonPropertyName("currentIndex")] public int CurrentIndex { get; private set; } /// /// entries /// [JsonInclude] [JsonPropertyName("entries")] public System.Collections.Generic.IList Entries { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// GetResourceContentResponse /// public class GetResourceContentResponse : DevToolsDomainResponseBase { /// /// content /// [JsonInclude] [JsonPropertyName("content")] public string Content { get; private set; } /// /// base64Encoded /// [JsonInclude] [JsonPropertyName("base64Encoded")] public bool Base64Encoded { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// GetResourceTreeResponse /// public class GetResourceTreeResponse : DevToolsDomainResponseBase { /// /// frameTree /// [JsonInclude] [JsonPropertyName("frameTree")] public CefSharp.DevTools.Page.FrameResourceTree FrameTree { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// NavigateResponse /// public class NavigateResponse : DevToolsDomainResponseBase { /// /// frameId /// [JsonInclude] [JsonPropertyName("frameId")] public string FrameId { get; private set; } /// /// loaderId /// [JsonInclude] [JsonPropertyName("loaderId")] public string LoaderId { get; private set; } /// /// errorText /// [JsonInclude] [JsonPropertyName("errorText")] public string ErrorText { get; private set; } /// /// isDownload /// [JsonInclude] [JsonPropertyName("isDownload")] public bool? IsDownload { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// PrintToPDFResponse /// public class PrintToPDFResponse : DevToolsDomainResponseBase { /// /// data /// [JsonInclude] [JsonPropertyName("data")] public byte[] Data { get; private set; } /// /// stream /// [JsonInclude] [JsonPropertyName("stream")] public string Stream { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// SearchInResourceResponse /// public class SearchInResourceResponse : DevToolsDomainResponseBase { /// /// result /// [JsonInclude] [JsonPropertyName("result")] public System.Collections.Generic.IList Result { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// GetPermissionsPolicyStateResponse /// public class GetPermissionsPolicyStateResponse : DevToolsDomainResponseBase { /// /// states /// [JsonInclude] [JsonPropertyName("states")] public System.Collections.Generic.IList States { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// GetOriginTrialsResponse /// public class GetOriginTrialsResponse : DevToolsDomainResponseBase { /// /// originTrials /// [JsonInclude] [JsonPropertyName("originTrials")] public System.Collections.Generic.IList OriginTrials { get; private set; } } } namespace CefSharp.DevTools.Page { /// /// GetAnnotatedPageContentResponse /// public class GetAnnotatedPageContentResponse : DevToolsDomainResponseBase { /// /// content /// [JsonInclude] [JsonPropertyName("content")] public byte[] Content { get; private set; } } } namespace CefSharp.DevTools.Page { using System.Linq; /// /// Image compression format (defaults to png). /// public enum CaptureScreenshotFormat { /// /// jpeg /// [JsonPropertyName("jpeg")] Jpeg, /// /// png /// [JsonPropertyName("png")] Png, /// /// webp /// [JsonPropertyName("webp")] Webp } /// /// Format (defaults to mhtml). /// public enum CaptureSnapshotFormat { /// /// mhtml /// [JsonPropertyName("mhtml")] Mhtml } /// /// return as stream /// public enum PrintToPDFTransferMode { /// /// ReturnAsBase64 /// [JsonPropertyName("ReturnAsBase64")] ReturnAsBase64, /// /// ReturnAsStream /// [JsonPropertyName("ReturnAsStream")] ReturnAsStream } /// /// Image compression format. /// public enum StartScreencastFormat { /// /// jpeg /// [JsonPropertyName("jpeg")] Jpeg, /// /// png /// [JsonPropertyName("png")] Png } /// /// Target lifecycle state /// public enum SetWebLifecycleStateState { /// /// frozen /// [JsonPropertyName("frozen")] Frozen, /// /// active /// [JsonPropertyName("active")] Active } /// /// SetSPCTransactionModeMode /// public enum SetSPCTransactionModeMode { /// /// none /// [JsonPropertyName("none")] None, /// /// autoAccept /// [JsonPropertyName("autoAccept")] AutoAccept, /// /// autoChooseToAuthAnotherWay /// [JsonPropertyName("autoChooseToAuthAnotherWay")] AutoChooseToAuthAnotherWay, /// /// autoReject /// [JsonPropertyName("autoReject")] AutoReject, /// /// autoOptOut /// [JsonPropertyName("autoOptOut")] AutoOptOut } /// /// SetRPHRegistrationModeMode /// public enum SetRPHRegistrationModeMode { /// /// none /// [JsonPropertyName("none")] None, /// /// autoAccept /// [JsonPropertyName("autoAccept")] AutoAccept, /// /// autoReject /// [JsonPropertyName("autoReject")] AutoReject } /// /// Actions and events related to the inspected page belong to the page domain. /// public partial class PageClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Page /// /// DevToolsClient public PageClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// DomContentEventFired /// public event System.EventHandler DomContentEventFired { add { _client.AddEventHandler("Page.domContentEventFired", value); } remove { _client.RemoveEventHandler("Page.domContentEventFired", value); } } /// /// Emitted only when `page.interceptFileChooser` is enabled. /// public event System.EventHandler FileChooserOpened { add { _client.AddEventHandler("Page.fileChooserOpened", value); } remove { _client.RemoveEventHandler("Page.fileChooserOpened", value); } } /// /// Fired when frame has been attached to its parent. /// public event System.EventHandler FrameAttached { add { _client.AddEventHandler("Page.frameAttached", value); } remove { _client.RemoveEventHandler("Page.frameAttached", value); } } /// /// Fired when frame has been detached from its parent. /// public event System.EventHandler FrameDetached { add { _client.AddEventHandler("Page.frameDetached", value); } remove { _client.RemoveEventHandler("Page.frameDetached", value); } } /// /// Fired before frame subtree is detached. Emitted before any frame of the /// subtree is actually detached. /// public event System.EventHandler FrameSubtreeWillBeDetached { add { _client.AddEventHandler("Page.frameSubtreeWillBeDetached", value); } remove { _client.RemoveEventHandler("Page.frameSubtreeWillBeDetached", value); } } /// /// Fired once navigation of the frame has completed. Frame is now associated with the new loader. /// public event System.EventHandler FrameNavigated { add { _client.AddEventHandler("Page.frameNavigated", value); } remove { _client.RemoveEventHandler("Page.frameNavigated", value); } } /// /// Fired when opening document to write to. /// public event System.EventHandler DocumentOpened { add { _client.AddEventHandler("Page.documentOpened", value); } remove { _client.RemoveEventHandler("Page.documentOpened", value); } } /// /// FrameResized /// public event System.EventHandler FrameResized { add { _client.AddEventHandler("Page.frameResized", value); } remove { _client.RemoveEventHandler("Page.frameResized", value); } } /// /// Fired when a navigation starts. This event is fired for both /// renderer-initiated and browser-initiated navigations. For renderer-initiated /// navigations, the event is fired after `frameRequestedNavigation`. /// Navigation may still be cancelled after the event is issued. Multiple events /// can be fired for a single navigation, for example, when a same-document /// navigation becomes a cross-document navigation (such as in the case of a /// frameset). /// public event System.EventHandler FrameStartedNavigating { add { _client.AddEventHandler("Page.frameStartedNavigating", value); } remove { _client.RemoveEventHandler("Page.frameStartedNavigating", value); } } /// /// Fired when a renderer-initiated navigation is requested. /// Navigation may still be cancelled after the event is issued. /// public event System.EventHandler FrameRequestedNavigation { add { _client.AddEventHandler("Page.frameRequestedNavigation", value); } remove { _client.RemoveEventHandler("Page.frameRequestedNavigation", value); } } /// /// Fired when frame has started loading. /// public event System.EventHandler FrameStartedLoading { add { _client.AddEventHandler("Page.frameStartedLoading", value); } remove { _client.RemoveEventHandler("Page.frameStartedLoading", value); } } /// /// Fired when frame has stopped loading. /// public event System.EventHandler FrameStoppedLoading { add { _client.AddEventHandler("Page.frameStoppedLoading", value); } remove { _client.RemoveEventHandler("Page.frameStoppedLoading", value); } } /// /// Fired when interstitial page was hidden /// public event System.EventHandler InterstitialHidden { add { _client.AddEventHandler("Page.interstitialHidden", value); } remove { _client.RemoveEventHandler("Page.interstitialHidden", value); } } /// /// Fired when interstitial page was shown /// public event System.EventHandler InterstitialShown { add { _client.AddEventHandler("Page.interstitialShown", value); } remove { _client.RemoveEventHandler("Page.interstitialShown", value); } } /// /// Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been /// closed. /// public event System.EventHandler JavascriptDialogClosed { add { _client.AddEventHandler("Page.javascriptDialogClosed", value); } remove { _client.RemoveEventHandler("Page.javascriptDialogClosed", value); } } /// /// Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to /// open. /// public event System.EventHandler JavascriptDialogOpening { add { _client.AddEventHandler("Page.javascriptDialogOpening", value); } remove { _client.RemoveEventHandler("Page.javascriptDialogOpening", value); } } /// /// Fired for lifecycle events (navigation, load, paint, etc) in the current /// target (including local frames). /// public event System.EventHandler LifecycleEvent { add { _client.AddEventHandler("Page.lifecycleEvent", value); } remove { _client.RemoveEventHandler("Page.lifecycleEvent", value); } } /// /// Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do /// not assume any ordering with the Page.frameNavigated event. This event is fired only for /// main-frame history navigation where the document changes (non-same-document navigations), /// when bfcache navigation fails. /// public event System.EventHandler BackForwardCacheNotUsed { add { _client.AddEventHandler("Page.backForwardCacheNotUsed", value); } remove { _client.RemoveEventHandler("Page.backForwardCacheNotUsed", value); } } /// /// LoadEventFired /// public event System.EventHandler LoadEventFired { add { _client.AddEventHandler("Page.loadEventFired", value); } remove { _client.RemoveEventHandler("Page.loadEventFired", value); } } /// /// Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation. /// public event System.EventHandler NavigatedWithinDocument { add { _client.AddEventHandler("Page.navigatedWithinDocument", value); } remove { _client.RemoveEventHandler("Page.navigatedWithinDocument", value); } } /// /// Compressed image data requested by the `startScreencast`. /// public event System.EventHandler ScreencastFrame { add { _client.AddEventHandler("Page.screencastFrame", value); } remove { _client.RemoveEventHandler("Page.screencastFrame", value); } } /// /// Fired when the page with currently enabled screencast was shown or hidden `. /// public event System.EventHandler ScreencastVisibilityChanged { add { _client.AddEventHandler("Page.screencastVisibilityChanged", value); } remove { _client.RemoveEventHandler("Page.screencastVisibilityChanged", value); } } /// /// Fired when a new window is going to be opened, via window.open(), link click, form submission, /// etc. /// public event System.EventHandler WindowOpen { add { _client.AddEventHandler("Page.windowOpen", value); } remove { _client.RemoveEventHandler("Page.windowOpen", value); } } /// /// Issued for every compilation cache generated. /// public event System.EventHandler CompilationCacheProduced { add { _client.AddEventHandler("Page.compilationCacheProduced", value); } remove { _client.RemoveEventHandler("Page.compilationCacheProduced", value); } } partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null, bool? includeCommandLineAPI = null, bool? runImmediately = 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.This world name will be used as the ExecutionContextDescription::name when the correspondingevent is emitted. /// Specifies whether command line API should be available to the script, defaultsto false. /// If true, runs the script immediately on existing execution contexts or worlds.Default: false. /// returns System.Threading.Tasks.Task<AddScriptToEvaluateOnNewDocumentResponse> public System.Threading.Tasks.Task AddScriptToEvaluateOnNewDocumentAsync(string source, string worldName = null, bool? includeCommandLineAPI = null, bool? runImmediately = null) { ValidateAddScriptToEvaluateOnNewDocument(source, worldName, includeCommandLineAPI, runImmediately); var dict = new System.Collections.Generic.Dictionary(); dict.Add("source", source); if (!(string.IsNullOrEmpty(worldName))) { dict.Add("worldName", worldName); } if (includeCommandLineAPI.HasValue) { dict.Add("includeCommandLineAPI", includeCommandLineAPI.Value); } if (runImmediately.HasValue) { dict.Add("runImmediately", runImmediately.Value); } return _client.ExecuteDevToolsMethodAsync("Page.addScriptToEvaluateOnNewDocument", dict); } /// /// Brings page to front (activates tab). /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task BringToFrontAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.bringToFront", dict); } partial void ValidateCaptureScreenshot(CefSharp.DevTools.Page.CaptureScreenshotFormat? format = null, int? quality = null, CefSharp.DevTools.Page.Viewport clip = null, bool? fromSurface = null, bool? captureBeyondViewport = null, bool? optimizeForSpeed = 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. /// Capture the screenshot beyond the viewport. Defaults to false. /// Optimize image encoding for speed, not for resulting size (defaults to false) /// returns System.Threading.Tasks.Task<CaptureScreenshotResponse> public System.Threading.Tasks.Task CaptureScreenshotAsync(CefSharp.DevTools.Page.CaptureScreenshotFormat? format = null, int? quality = null, CefSharp.DevTools.Page.Viewport clip = null, bool? fromSurface = null, bool? captureBeyondViewport = null, bool? optimizeForSpeed = null) { ValidateCaptureScreenshot(format, quality, clip, fromSurface, captureBeyondViewport, optimizeForSpeed); var dict = new System.Collections.Generic.Dictionary(); if (format.HasValue) { dict.Add("format", EnumToString(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); } if (captureBeyondViewport.HasValue) { dict.Add("captureBeyondViewport", captureBeyondViewport.Value); } if (optimizeForSpeed.HasValue) { dict.Add("optimizeForSpeed", optimizeForSpeed.Value); } return _client.ExecuteDevToolsMethodAsync("Page.captureScreenshot", dict); } partial void ValidateCaptureSnapshot(CefSharp.DevTools.Page.CaptureSnapshotFormat? 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 System.Threading.Tasks.Task CaptureSnapshotAsync(CefSharp.DevTools.Page.CaptureSnapshotFormat? format = null) { ValidateCaptureSnapshot(format); var dict = new System.Collections.Generic.Dictionary(); if (format.HasValue) { dict.Add("format", EnumToString(format)); } return _client.ExecuteDevToolsMethodAsync("Page.captureSnapshot", dict); } 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 powerfuloption, use with caution. /// returns System.Threading.Tasks.Task<CreateIsolatedWorldResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Page.createIsolatedWorld", dict); } /// /// Disables page domain notifications. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.disable", dict); } partial void ValidateEnable(bool? enableFileChooserOpenedEvent = null); /// /// Enables page domain notifications. /// /// If true, the `Page.fileChooserOpened` event will be emitted regardless of the state set by`Page.setInterceptFileChooserDialog` command (default: false). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync(bool? enableFileChooserOpenedEvent = null) { ValidateEnable(enableFileChooserOpenedEvent); var dict = new System.Collections.Generic.Dictionary(); if (enableFileChooserOpenedEvent.HasValue) { dict.Add("enableFileChooserOpenedEvent", enableFileChooserOpenedEvent.Value); } return _client.ExecuteDevToolsMethodAsync("Page.enable", dict); } partial void ValidateGetAppManifest(string manifestId = null); /// /// Gets the processed manifest for this current document. /// This API always waits for the manifest to be loaded. /// If manifestId is provided, and it does not match the manifest of the /// current document, this API errors out. /// If there is not a loaded page, this API errors out immediately. /// /// manifestId /// returns System.Threading.Tasks.Task<GetAppManifestResponse> public System.Threading.Tasks.Task GetAppManifestAsync(string manifestId = null) { ValidateGetAppManifest(manifestId); var dict = new System.Collections.Generic.Dictionary(); if (!(string.IsNullOrEmpty(manifestId))) { dict.Add("manifestId", manifestId); } return _client.ExecuteDevToolsMethodAsync("Page.getAppManifest", dict); } /// /// GetInstallabilityErrors /// /// returns System.Threading.Tasks.Task<GetInstallabilityErrorsResponse> public System.Threading.Tasks.Task GetInstallabilityErrorsAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.getInstallabilityErrors", dict); } /// /// Returns the unique (PWA) app id. /// Only returns values if the feature flag 'WebAppEnableManifestId' is enabled /// /// returns System.Threading.Tasks.Task<GetAppIdResponse> public System.Threading.Tasks.Task GetAppIdAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.getAppId", dict); } partial void ValidateGetAdScriptAncestry(string frameId); /// /// GetAdScriptAncestry /// /// frameId /// returns System.Threading.Tasks.Task<GetAdScriptAncestryResponse> public System.Threading.Tasks.Task GetAdScriptAncestryAsync(string frameId) { ValidateGetAdScriptAncestry(frameId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("frameId", frameId); return _client.ExecuteDevToolsMethodAsync("Page.getAdScriptAncestry", dict); } /// /// Returns present frame tree structure. /// /// returns System.Threading.Tasks.Task<GetFrameTreeResponse> public System.Threading.Tasks.Task GetFrameTreeAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.getFrameTree", dict); } /// /// Returns metrics relating to the layouting of the page, such as viewport bounds/scale. /// /// returns System.Threading.Tasks.Task<GetLayoutMetricsResponse> public System.Threading.Tasks.Task GetLayoutMetricsAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.getLayoutMetrics", dict); } /// /// Returns navigation history for the current page. /// /// returns System.Threading.Tasks.Task<GetNavigationHistoryResponse> public System.Threading.Tasks.Task GetNavigationHistoryAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.getNavigationHistory", dict); } /// /// Resets navigation history for the current page. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ResetNavigationHistoryAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.resetNavigationHistory", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("Page.getResourceContent", dict); } /// /// Returns present frame / resource tree structure. /// /// returns System.Threading.Tasks.Task<GetResourceTreeResponse> public System.Threading.Tasks.Task GetResourceTreeAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.getResourceTree", dict); } 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 promptdialog. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Page.handleJavaScriptDialog", dict); } 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 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", EnumToString(transitionType)); } if (!(string.IsNullOrEmpty(frameId))) { dict.Add("frameId", frameId); } if (referrerPolicy.HasValue) { dict.Add("referrerPolicy", EnumToString(referrerPolicy)); } return _client.ExecuteDevToolsMethodAsync("Page.navigate", dict); } 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 System.Threading.Tasks.Task NavigateToHistoryEntryAsync(int entryId) { ValidateNavigateToHistoryEntry(entryId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("entryId", entryId); return _client.ExecuteDevToolsMethodAsync("Page.navigateToHistoryEntry", dict); } partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null, bool? generateDocumentOutline = 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, one based, e.g., '1-5, 8, 11-13'. Pages areprinted in the document order, not in the order specified, and nomore than once.Defaults to empty string, which implies the entire document is printed.The page numbers are quietly capped to actual page count of thedocument, and ranges beyond the end of the document are ignored.If this results in no pages to print, an error is reported.It is an error to specify a range with start greater than end. /// HTML template for the print header. Should be valid HTML markup with followingclasses used to inject printing values into them:- `date`: formatted print date- `title`: document title- `url`: document location- `pageNumber`: current page number- `totalPages`: total pages in the documentFor example, `<span class=title> </span>` would generate span containing the title. /// HTML template for the print footer. Should use the same format as the `headerTemplate`. /// Whether or not to prefer page size as defined by css. Defaults to false,in which case the content will be scaled to fit the paper size. /// return as stream /// Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice. /// Whether or not to embed the document outline into the PDF. /// returns System.Threading.Tasks.Task<PrintToPDFResponse> public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null, bool? generateDocumentOutline = null) { ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF, generateDocumentOutline); 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 (!(string.IsNullOrEmpty(headerTemplate))) { dict.Add("headerTemplate", headerTemplate); } if (!(string.IsNullOrEmpty(footerTemplate))) { dict.Add("footerTemplate", footerTemplate); } if (preferCSSPageSize.HasValue) { dict.Add("preferCSSPageSize", preferCSSPageSize.Value); } if (transferMode.HasValue) { dict.Add("transferMode", EnumToString(transferMode)); } if (generateTaggedPDF.HasValue) { dict.Add("generateTaggedPDF", generateTaggedPDF.Value); } if (generateDocumentOutline.HasValue) { dict.Add("generateDocumentOutline", generateDocumentOutline.Value); } return _client.ExecuteDevToolsMethodAsync("Page.printToPDF", dict); } partial void ValidateReload(bool? ignoreCache = null, string scriptToEvaluateOnLoad = null, string loaderId = 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.Argument will be ignored if reloading dataURL origin. /// If set, an error will be thrown if the target page's main frame'sloader id does not match the provided id. This prevents accidentallyreloading an unintended target in case there's a racing navigation. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ReloadAsync(bool? ignoreCache = null, string scriptToEvaluateOnLoad = null, string loaderId = null) { ValidateReload(ignoreCache, scriptToEvaluateOnLoad, loaderId); var dict = new System.Collections.Generic.Dictionary(); if (ignoreCache.HasValue) { dict.Add("ignoreCache", ignoreCache.Value); } if (!(string.IsNullOrEmpty(scriptToEvaluateOnLoad))) { dict.Add("scriptToEvaluateOnLoad", scriptToEvaluateOnLoad); } if (!(string.IsNullOrEmpty(loaderId))) { dict.Add("loaderId", loaderId); } return _client.ExecuteDevToolsMethodAsync("Page.reload", dict); } partial void ValidateRemoveScriptToEvaluateOnNewDocument(string identifier); /// /// Removes given script from the list. /// /// identifier /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RemoveScriptToEvaluateOnNewDocumentAsync(string identifier) { ValidateRemoveScriptToEvaluateOnNewDocument(identifier); var dict = new System.Collections.Generic.Dictionary(); dict.Add("identifier", identifier); return _client.ExecuteDevToolsMethodAsync("Page.removeScriptToEvaluateOnNewDocument", dict); } 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 System.Threading.Tasks.Task ScreencastFrameAckAsync(int sessionId) { ValidateScreencastFrameAck(sessionId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("sessionId", sessionId); return _client.ExecuteDevToolsMethodAsync("Page.screencastFrameAck", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Page.searchInResource", dict); } 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 System.Threading.Tasks.Task SetAdBlockingEnabledAsync(bool enabled) { ValidateSetAdBlockingEnabled(enabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Page.setAdBlockingEnabled", dict); } partial void ValidateSetBypassCSP(bool enabled); /// /// Enable page Content Security Policy by-passing. /// /// Whether to bypass page CSP. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetBypassCSPAsync(bool enabled) { ValidateSetBypassCSP(enabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Page.setBypassCSP", dict); } partial void ValidateGetPermissionsPolicyState(string frameId); /// /// Get Permissions Policy state on given frame. /// /// frameId /// returns System.Threading.Tasks.Task<GetPermissionsPolicyStateResponse> public System.Threading.Tasks.Task GetPermissionsPolicyStateAsync(string frameId) { ValidateGetPermissionsPolicyState(frameId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("frameId", frameId); return _client.ExecuteDevToolsMethodAsync("Page.getPermissionsPolicyState", dict); } partial void ValidateGetOriginTrials(string frameId); /// /// Get Origin Trials on given frame. /// /// frameId /// returns System.Threading.Tasks.Task<GetOriginTrialsResponse> public System.Threading.Tasks.Task GetOriginTrialsAsync(string frameId) { ValidateGetOriginTrials(frameId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("frameId", frameId); return _client.ExecuteDevToolsMethodAsync("Page.getOriginTrials", dict); } partial void ValidateSetFontFamilies(CefSharp.DevTools.Page.FontFamilies fontFamilies, System.Collections.Generic.IList forScripts = null); /// /// Set generic font families. /// /// Specifies font families to set. If a font family is not specified, it won't be changed. /// Specifies font families to set for individual scripts. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetFontFamiliesAsync(CefSharp.DevTools.Page.FontFamilies fontFamilies, System.Collections.Generic.IList forScripts = null) { ValidateSetFontFamilies(fontFamilies, forScripts); var dict = new System.Collections.Generic.Dictionary(); dict.Add("fontFamilies", fontFamilies.ToDictionary()); if ((forScripts) != (null)) { dict.Add("forScripts", forScripts.Select(x => x.ToDictionary())); } return _client.ExecuteDevToolsMethodAsync("Page.setFontFamilies", dict); } 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 System.Threading.Tasks.Task SetFontSizesAsync(CefSharp.DevTools.Page.FontSizes fontSizes) { ValidateSetFontSizes(fontSizes); var dict = new System.Collections.Generic.Dictionary(); dict.Add("fontSizes", fontSizes.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("Page.setFontSizes", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("Page.setDocumentContent", dict); } 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 System.Threading.Tasks.Task SetLifecycleEventsEnabledAsync(bool enabled) { ValidateSetLifecycleEventsEnabled(enabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Page.setLifecycleEventsEnabled", dict); } partial void ValidateStartScreencast(CefSharp.DevTools.Page.StartScreencastFormat? 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 System.Threading.Tasks.Task StartScreencastAsync(CefSharp.DevTools.Page.StartScreencastFormat? 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 (format.HasValue) { dict.Add("format", EnumToString(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); } return _client.ExecuteDevToolsMethodAsync("Page.startScreencast", dict); } /// /// Force the page stop all navigations and pending resource fetches. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StopLoadingAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.stopLoading", dict); } /// /// Crashes renderer on the IO thread, generates minidumps. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task CrashAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.crash", dict); } /// /// Tries to close page, running its beforeunload hooks, if any. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task CloseAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.close", dict); } partial void ValidateSetWebLifecycleState(CefSharp.DevTools.Page.SetWebLifecycleStateState 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 System.Threading.Tasks.Task SetWebLifecycleStateAsync(CefSharp.DevTools.Page.SetWebLifecycleStateState state) { ValidateSetWebLifecycleState(state); var dict = new System.Collections.Generic.Dictionary(); dict.Add("state", EnumToString(state)); return _client.ExecuteDevToolsMethodAsync("Page.setWebLifecycleState", dict); } /// /// Stops sending each frame in the `screencastFrame`. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StopScreencastAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.stopScreencast", dict); } partial void ValidateProduceCompilationCache(System.Collections.Generic.IList scripts); /// /// Requests backend to produce compilation cache for the specified scripts. /// `scripts` are appended to the list of scripts for which the cache /// would be produced. The list may be reset during page navigation. /// When script with a matching URL is encountered, the cache is optionally /// produced upon backend discretion, based on internal heuristics. /// See also: `Page.compilationCacheProduced`. /// /// scripts /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ProduceCompilationCacheAsync(System.Collections.Generic.IList scripts) { ValidateProduceCompilationCache(scripts); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scripts", scripts.Select(x => x.ToDictionary())); return _client.ExecuteDevToolsMethodAsync("Page.produceCompilationCache", dict); } 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 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)); return _client.ExecuteDevToolsMethodAsync("Page.addCompilationCache", dict); } /// /// Clears seeded compilation cache. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearCompilationCacheAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.clearCompilationCache", dict); } partial void ValidateSetSPCTransactionMode(CefSharp.DevTools.Page.SetSPCTransactionModeMode mode); /// /// Sets the Secure Payment Confirmation transaction mode. /// https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode /// /// mode /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetSPCTransactionModeAsync(CefSharp.DevTools.Page.SetSPCTransactionModeMode mode) { ValidateSetSPCTransactionMode(mode); var dict = new System.Collections.Generic.Dictionary(); dict.Add("mode", EnumToString(mode)); return _client.ExecuteDevToolsMethodAsync("Page.setSPCTransactionMode", dict); } partial void ValidateSetRPHRegistrationMode(CefSharp.DevTools.Page.SetRPHRegistrationModeMode mode); /// /// Extensions for Custom Handlers API: /// https://html.spec.whatwg.org/multipage/system-state.html#rph-automation /// /// mode /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetRPHRegistrationModeAsync(CefSharp.DevTools.Page.SetRPHRegistrationModeMode mode) { ValidateSetRPHRegistrationMode(mode); var dict = new System.Collections.Generic.Dictionary(); dict.Add("mode", EnumToString(mode)); return _client.ExecuteDevToolsMethodAsync("Page.setRPHRegistrationMode", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Page.generateTestReport", dict); } /// /// Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task WaitForDebuggerAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Page.waitForDebugger", dict); } partial void ValidateSetInterceptFileChooserDialog(bool enabled, bool? cancel = null); /// /// 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 /// If true, cancels the dialog by emitting relevant events (if any)in addition to not showing it if the interception is enabled(default: false). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetInterceptFileChooserDialogAsync(bool enabled, bool? cancel = null) { ValidateSetInterceptFileChooserDialog(enabled, cancel); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); if (cancel.HasValue) { dict.Add("cancel", cancel.Value); } return _client.ExecuteDevToolsMethodAsync("Page.setInterceptFileChooserDialog", dict); } partial void ValidateSetPrerenderingAllowed(bool isAllowed); /// /// Enable/disable prerendering manually. /// /// This command is a short-term solution for https://crbug.com/1440085. /// See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA /// for more details. /// /// TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets. /// /// isAllowed /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetPrerenderingAllowedAsync(bool isAllowed) { ValidateSetPrerenderingAllowed(isAllowed); var dict = new System.Collections.Generic.Dictionary(); dict.Add("isAllowed", isAllowed); return _client.ExecuteDevToolsMethodAsync("Page.setPrerenderingAllowed", dict); } partial void ValidateGetAnnotatedPageContent(bool? includeActionableInformation = null); /// /// Get the annotated page content for the main frame. /// This is an experimental command that is subject to change. /// /// Whether to include actionable information. Defaults to true. /// returns System.Threading.Tasks.Task<GetAnnotatedPageContentResponse> public System.Threading.Tasks.Task GetAnnotatedPageContentAsync(bool? includeActionableInformation = null) { ValidateGetAnnotatedPageContent(includeActionableInformation); var dict = new System.Collections.Generic.Dictionary(); if (includeActionableInformation.HasValue) { dict.Add("includeActionableInformation", includeActionableInformation.Value); } return _client.ExecuteDevToolsMethodAsync("Page.getAnnotatedPageContent", dict); } } } namespace CefSharp.DevTools.Performance { /// /// GetMetricsResponse /// public class GetMetricsResponse : DevToolsDomainResponseBase { /// /// metrics /// [JsonInclude] [JsonPropertyName("metrics")] public System.Collections.Generic.IList Metrics { get; private set; } } } namespace CefSharp.DevTools.Performance { using System.Linq; /// /// Time domain to use for collecting and reporting duration metrics. /// public enum EnableTimeDomain { /// /// timeTicks /// [JsonPropertyName("timeTicks")] TimeTicks, /// /// threadTicks /// [JsonPropertyName("threadTicks")] ThreadTicks } /// /// Performance /// public partial class PerformanceClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Performance /// /// DevToolsClient public PerformanceClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Current values of the metrics. /// public event System.EventHandler Metrics { add { _client.AddEventHandler("Performance.metrics", value); } remove { _client.RemoveEventHandler("Performance.metrics", value); } } /// /// Disable collecting and reporting metrics. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Performance.disable", dict); } partial void ValidateEnable(CefSharp.DevTools.Performance.EnableTimeDomain? timeDomain = null); /// /// Enable collecting and reporting metrics. /// /// Time domain to use for collecting and reporting duration metrics. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync(CefSharp.DevTools.Performance.EnableTimeDomain? timeDomain = null) { ValidateEnable(timeDomain); var dict = new System.Collections.Generic.Dictionary(); if (timeDomain.HasValue) { dict.Add("timeDomain", EnumToString(timeDomain)); } return _client.ExecuteDevToolsMethodAsync("Performance.enable", dict); } /// /// Retrieve current values of run-time metrics. /// /// returns System.Threading.Tasks.Task<GetMetricsResponse> public System.Threading.Tasks.Task GetMetricsAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Performance.getMetrics", dict); } } } namespace CefSharp.DevTools.PerformanceTimeline { using System.Linq; /// /// Reporting of performance timeline events, as specified in /// https://w3c.github.io/performance-timeline/#dom-performanceobserver. /// public partial class PerformanceTimelineClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// PerformanceTimeline /// /// DevToolsClient public PerformanceTimelineClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Sent when a performance timeline event is added. See reportPerformanceTimeline method. /// public event System.EventHandler TimelineEventAdded { add { _client.AddEventHandler("PerformanceTimeline.timelineEventAdded", value); } remove { _client.RemoveEventHandler("PerformanceTimeline.timelineEventAdded", value); } } partial void ValidateEnable(string[] eventTypes); /// /// Previously buffered events would be reported before method returns. /// See also: timelineEventAdded /// /// The types of event to report, as specified inhttps://w3c.github.io/performance-timeline/#dom-performanceentry-entrytypeThe specified filter overrides any previous filters, passing emptyfilter disables recording.Note that not all types exposed to the web platform are currently supported. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync(string[] eventTypes) { ValidateEnable(eventTypes); var dict = new System.Collections.Generic.Dictionary(); dict.Add("eventTypes", eventTypes); return _client.ExecuteDevToolsMethodAsync("PerformanceTimeline.enable", dict); } } } namespace CefSharp.DevTools.Preload { using System.Linq; /// /// Preload /// public partial class PreloadClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Preload /// /// DevToolsClient public PreloadClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Upsert. Currently, it is only emitted when a rule set added. /// public event System.EventHandler RuleSetUpdated { add { _client.AddEventHandler("Preload.ruleSetUpdated", value); } remove { _client.RemoveEventHandler("Preload.ruleSetUpdated", value); } } /// /// RuleSetRemoved /// public event System.EventHandler RuleSetRemoved { add { _client.AddEventHandler("Preload.ruleSetRemoved", value); } remove { _client.RemoveEventHandler("Preload.ruleSetRemoved", value); } } /// /// Fired when a preload enabled state is updated. /// public event System.EventHandler PreloadEnabledStateUpdated { add { _client.AddEventHandler("Preload.preloadEnabledStateUpdated", value); } remove { _client.RemoveEventHandler("Preload.preloadEnabledStateUpdated", value); } } /// /// Fired when a prefetch attempt is updated. /// public event System.EventHandler PrefetchStatusUpdated { add { _client.AddEventHandler("Preload.prefetchStatusUpdated", value); } remove { _client.RemoveEventHandler("Preload.prefetchStatusUpdated", value); } } /// /// Fired when a prerender attempt is updated. /// public event System.EventHandler PrerenderStatusUpdated { add { _client.AddEventHandler("Preload.prerenderStatusUpdated", value); } remove { _client.RemoveEventHandler("Preload.prerenderStatusUpdated", value); } } /// /// Send a list of sources for all preloading attempts in a document. /// public event System.EventHandler PreloadingAttemptSourcesUpdated { add { _client.AddEventHandler("Preload.preloadingAttemptSourcesUpdated", value); } remove { _client.RemoveEventHandler("Preload.preloadingAttemptSourcesUpdated", value); } } /// /// Enable /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Preload.enable", dict); } /// /// Disable /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Preload.disable", dict); } } } namespace CefSharp.DevTools.Security { using System.Linq; /// /// Security /// public partial class SecurityClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Security /// /// DevToolsClient public SecurityClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// The security state of the page changed. /// public event System.EventHandler VisibleSecurityStateChanged { add { _client.AddEventHandler("Security.visibleSecurityStateChanged", value); } remove { _client.RemoveEventHandler("Security.visibleSecurityStateChanged", value); } } /// /// Disables tracking security state changes. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Security.disable", dict); } /// /// Enables tracking security state changes. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Security.enable", dict); } 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 System.Threading.Tasks.Task SetIgnoreCertificateErrorsAsync(bool ignore) { ValidateSetIgnoreCertificateErrors(ignore); var dict = new System.Collections.Generic.Dictionary(); dict.Add("ignore", ignore); return _client.ExecuteDevToolsMethodAsync("Security.setIgnoreCertificateErrors", dict); } } } namespace CefSharp.DevTools.ServiceWorker { using System.Linq; /// /// ServiceWorker /// public partial class ServiceWorkerClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// ServiceWorker /// /// DevToolsClient public ServiceWorkerClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// WorkerErrorReported /// public event System.EventHandler WorkerErrorReported { add { _client.AddEventHandler("ServiceWorker.workerErrorReported", value); } remove { _client.RemoveEventHandler("ServiceWorker.workerErrorReported", value); } } /// /// WorkerRegistrationUpdated /// public event System.EventHandler WorkerRegistrationUpdated { add { _client.AddEventHandler("ServiceWorker.workerRegistrationUpdated", value); } remove { _client.RemoveEventHandler("ServiceWorker.workerRegistrationUpdated", value); } } /// /// WorkerVersionUpdated /// public event System.EventHandler WorkerVersionUpdated { add { _client.AddEventHandler("ServiceWorker.workerVersionUpdated", value); } remove { _client.RemoveEventHandler("ServiceWorker.workerVersionUpdated", value); } } partial void ValidateDeliverPushMessage(string origin, string registrationId, string data); /// /// DeliverPushMessage /// /// origin /// registrationId /// data /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); return _client.ExecuteDevToolsMethodAsync("ServiceWorker.deliverPushMessage", dict); } /// /// Disable /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("ServiceWorker.disable", dict); } partial void ValidateDispatchSyncEvent(string origin, string registrationId, string tag, bool lastChance); /// /// DispatchSyncEvent /// /// origin /// registrationId /// tag /// lastChance /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); return _client.ExecuteDevToolsMethodAsync("ServiceWorker.dispatchSyncEvent", dict); } partial void ValidateDispatchPeriodicSyncEvent(string origin, string registrationId, string tag); /// /// DispatchPeriodicSyncEvent /// /// origin /// registrationId /// tag /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); return _client.ExecuteDevToolsMethodAsync("ServiceWorker.dispatchPeriodicSyncEvent", dict); } /// /// Enable /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("ServiceWorker.enable", dict); } partial void ValidateSetForceUpdateOnPageLoad(bool forceUpdateOnPageLoad); /// /// SetForceUpdateOnPageLoad /// /// forceUpdateOnPageLoad /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetForceUpdateOnPageLoadAsync(bool forceUpdateOnPageLoad) { ValidateSetForceUpdateOnPageLoad(forceUpdateOnPageLoad); var dict = new System.Collections.Generic.Dictionary(); dict.Add("forceUpdateOnPageLoad", forceUpdateOnPageLoad); return _client.ExecuteDevToolsMethodAsync("ServiceWorker.setForceUpdateOnPageLoad", dict); } partial void ValidateSkipWaiting(string scopeURL); /// /// SkipWaiting /// /// scopeURL /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SkipWaitingAsync(string scopeURL) { ValidateSkipWaiting(scopeURL); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scopeURL", scopeURL); return _client.ExecuteDevToolsMethodAsync("ServiceWorker.skipWaiting", dict); } partial void ValidateStartWorker(string scopeURL); /// /// StartWorker /// /// scopeURL /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StartWorkerAsync(string scopeURL) { ValidateStartWorker(scopeURL); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scopeURL", scopeURL); return _client.ExecuteDevToolsMethodAsync("ServiceWorker.startWorker", dict); } /// /// StopAllWorkers /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StopAllWorkersAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("ServiceWorker.stopAllWorkers", dict); } partial void ValidateStopWorker(string versionId); /// /// StopWorker /// /// versionId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StopWorkerAsync(string versionId) { ValidateStopWorker(versionId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("versionId", versionId); return _client.ExecuteDevToolsMethodAsync("ServiceWorker.stopWorker", dict); } partial void ValidateUnregister(string scopeURL); /// /// Unregister /// /// scopeURL /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task UnregisterAsync(string scopeURL) { ValidateUnregister(scopeURL); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scopeURL", scopeURL); return _client.ExecuteDevToolsMethodAsync("ServiceWorker.unregister", dict); } partial void ValidateUpdateRegistration(string scopeURL); /// /// UpdateRegistration /// /// scopeURL /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task UpdateRegistrationAsync(string scopeURL) { ValidateUpdateRegistration(scopeURL); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scopeURL", scopeURL); return _client.ExecuteDevToolsMethodAsync("ServiceWorker.updateRegistration", dict); } } } namespace CefSharp.DevTools.Storage { /// /// GetStorageKeyResponse /// public class GetStorageKeyResponse : DevToolsDomainResponseBase { /// /// storageKey /// [JsonInclude] [JsonPropertyName("storageKey")] public string StorageKey { get; private set; } } } namespace CefSharp.DevTools.Storage { /// /// GetCookiesResponse /// public class GetCookiesResponse : DevToolsDomainResponseBase { /// /// cookies /// [JsonInclude] [JsonPropertyName("cookies")] public System.Collections.Generic.IList Cookies { get; private set; } } } namespace CefSharp.DevTools.Storage { /// /// GetUsageAndQuotaResponse /// public class GetUsageAndQuotaResponse : DevToolsDomainResponseBase { /// /// usage /// [JsonInclude] [JsonPropertyName("usage")] public double Usage { get; private set; } /// /// quota /// [JsonInclude] [JsonPropertyName("quota")] public double Quota { get; private set; } /// /// overrideActive /// [JsonInclude] [JsonPropertyName("overrideActive")] public bool OverrideActive { get; private set; } /// /// usageBreakdown /// [JsonInclude] [JsonPropertyName("usageBreakdown")] public System.Collections.Generic.IList UsageBreakdown { get; private set; } } } namespace CefSharp.DevTools.Storage { /// /// GetTrustTokensResponse /// public class GetTrustTokensResponse : DevToolsDomainResponseBase { /// /// tokens /// [JsonInclude] [JsonPropertyName("tokens")] public System.Collections.Generic.IList Tokens { get; private set; } } } namespace CefSharp.DevTools.Storage { /// /// ClearTrustTokensResponse /// public class ClearTrustTokensResponse : DevToolsDomainResponseBase { /// /// didDeleteTokens /// [JsonInclude] [JsonPropertyName("didDeleteTokens")] public bool DidDeleteTokens { get; private set; } } } namespace CefSharp.DevTools.Storage { /// /// GetInterestGroupDetailsResponse /// public class GetInterestGroupDetailsResponse : DevToolsDomainResponseBase { /// /// details /// [JsonInclude] [JsonPropertyName("details")] public object Details { get; private set; } } } namespace CefSharp.DevTools.Storage { /// /// GetSharedStorageMetadataResponse /// public class GetSharedStorageMetadataResponse : DevToolsDomainResponseBase { /// /// metadata /// [JsonInclude] [JsonPropertyName("metadata")] public CefSharp.DevTools.Storage.SharedStorageMetadata Metadata { get; private set; } } } namespace CefSharp.DevTools.Storage { /// /// GetSharedStorageEntriesResponse /// public class GetSharedStorageEntriesResponse : DevToolsDomainResponseBase { /// /// entries /// [JsonInclude] [JsonPropertyName("entries")] public System.Collections.Generic.IList Entries { get; private set; } } } namespace CefSharp.DevTools.Storage { /// /// RunBounceTrackingMitigationsResponse /// public class RunBounceTrackingMitigationsResponse : DevToolsDomainResponseBase { /// /// deletedSites /// [JsonInclude] [JsonPropertyName("deletedSites")] public string[] DeletedSites { get; private set; } } } namespace CefSharp.DevTools.Storage { /// /// SendPendingAttributionReportsResponse /// public class SendPendingAttributionReportsResponse : DevToolsDomainResponseBase { /// /// numSent /// [JsonInclude] [JsonPropertyName("numSent")] public int NumSent { get; private set; } } } namespace CefSharp.DevTools.Storage { /// /// GetRelatedWebsiteSetsResponse /// public class GetRelatedWebsiteSetsResponse : DevToolsDomainResponseBase { /// /// sets /// [JsonInclude] [JsonPropertyName("sets")] public System.Collections.Generic.IList Sets { get; private set; } } } namespace CefSharp.DevTools.Storage { /// /// GetAffectedUrlsForThirdPartyCookieMetadataResponse /// public class GetAffectedUrlsForThirdPartyCookieMetadataResponse : DevToolsDomainResponseBase { /// /// matchedUrls /// [JsonInclude] [JsonPropertyName("matchedUrls")] public string[] MatchedUrls { get; private set; } } } namespace CefSharp.DevTools.Storage { using System.Linq; /// /// Storage /// public partial class StorageClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Storage /// /// DevToolsClient public StorageClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// A cache's contents have been modified. /// public event System.EventHandler CacheStorageContentUpdated { add { _client.AddEventHandler("Storage.cacheStorageContentUpdated", value); } remove { _client.RemoveEventHandler("Storage.cacheStorageContentUpdated", value); } } /// /// A cache has been added/deleted. /// public event System.EventHandler CacheStorageListUpdated { add { _client.AddEventHandler("Storage.cacheStorageListUpdated", value); } remove { _client.RemoveEventHandler("Storage.cacheStorageListUpdated", value); } } /// /// The origin's IndexedDB object store has been modified. /// public event System.EventHandler IndexedDBContentUpdated { add { _client.AddEventHandler("Storage.indexedDBContentUpdated", value); } remove { _client.RemoveEventHandler("Storage.indexedDBContentUpdated", value); } } /// /// The origin's IndexedDB database list has been modified. /// public event System.EventHandler IndexedDBListUpdated { add { _client.AddEventHandler("Storage.indexedDBListUpdated", value); } remove { _client.RemoveEventHandler("Storage.indexedDBListUpdated", value); } } /// /// One of the interest groups was accessed. Note that these events are global /// to all targets sharing an interest group store. /// public event System.EventHandler InterestGroupAccessed { add { _client.AddEventHandler("Storage.interestGroupAccessed", value); } remove { _client.RemoveEventHandler("Storage.interestGroupAccessed", value); } } /// /// An auction involving interest groups is taking place. These events are /// target-specific. /// public event System.EventHandler InterestGroupAuctionEventOccurred { add { _client.AddEventHandler("Storage.interestGroupAuctionEventOccurred", value); } remove { _client.RemoveEventHandler("Storage.interestGroupAuctionEventOccurred", value); } } /// /// Specifies which auctions a particular network fetch may be related to, and /// in what role. Note that it is not ordered with respect to /// Network.requestWillBeSent (but will happen before loadingFinished /// loadingFailed). /// public event System.EventHandler InterestGroupAuctionNetworkRequestCreated { add { _client.AddEventHandler("Storage.interestGroupAuctionNetworkRequestCreated", value); } remove { _client.RemoveEventHandler("Storage.interestGroupAuctionNetworkRequestCreated", value); } } /// /// Shared storage was accessed by the associated page. /// The following parameters are included in all events. /// public event System.EventHandler SharedStorageAccessed { add { _client.AddEventHandler("Storage.sharedStorageAccessed", value); } remove { _client.RemoveEventHandler("Storage.sharedStorageAccessed", value); } } /// /// A shared storage run or selectURL operation finished its execution. /// The following parameters are included in all events. /// public event System.EventHandler SharedStorageWorkletOperationExecutionFinished { add { _client.AddEventHandler("Storage.sharedStorageWorkletOperationExecutionFinished", value); } remove { _client.RemoveEventHandler("Storage.sharedStorageWorkletOperationExecutionFinished", value); } } /// /// StorageBucketCreatedOrUpdated /// public event System.EventHandler StorageBucketCreatedOrUpdated { add { _client.AddEventHandler("Storage.storageBucketCreatedOrUpdated", value); } remove { _client.RemoveEventHandler("Storage.storageBucketCreatedOrUpdated", value); } } /// /// StorageBucketDeleted /// public event System.EventHandler StorageBucketDeleted { add { _client.AddEventHandler("Storage.storageBucketDeleted", value); } remove { _client.RemoveEventHandler("Storage.storageBucketDeleted", value); } } /// /// AttributionReportingSourceRegistered /// public event System.EventHandler AttributionReportingSourceRegistered { add { _client.AddEventHandler("Storage.attributionReportingSourceRegistered", value); } remove { _client.RemoveEventHandler("Storage.attributionReportingSourceRegistered", value); } } /// /// AttributionReportingTriggerRegistered /// public event System.EventHandler AttributionReportingTriggerRegistered { add { _client.AddEventHandler("Storage.attributionReportingTriggerRegistered", value); } remove { _client.RemoveEventHandler("Storage.attributionReportingTriggerRegistered", value); } } /// /// AttributionReportingReportSent /// public event System.EventHandler AttributionReportingReportSent { add { _client.AddEventHandler("Storage.attributionReportingReportSent", value); } remove { _client.RemoveEventHandler("Storage.attributionReportingReportSent", value); } } /// /// AttributionReportingVerboseDebugReportSent /// public event System.EventHandler AttributionReportingVerboseDebugReportSent { add { _client.AddEventHandler("Storage.attributionReportingVerboseDebugReportSent", value); } remove { _client.RemoveEventHandler("Storage.attributionReportingVerboseDebugReportSent", value); } } partial void ValidateGetStorageKey(string frameId = null); /// /// Returns storage key for the given frame. If no frame ID is provided, /// the storage key of the target executing this command is returned. /// /// frameId /// returns System.Threading.Tasks.Task<GetStorageKeyResponse> public System.Threading.Tasks.Task GetStorageKeyAsync(string frameId = null) { ValidateGetStorageKey(frameId); var dict = new System.Collections.Generic.Dictionary(); if (!(string.IsNullOrEmpty(frameId))) { dict.Add("frameId", frameId); } return _client.ExecuteDevToolsMethodAsync("Storage.getStorageKey", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("Storage.clearDataForOrigin", dict); } partial void ValidateClearDataForStorageKey(string storageKey, string storageTypes); /// /// Clears storage for storage key. /// /// Storage key. /// Comma separated list of StorageType to clear. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearDataForStorageKeyAsync(string storageKey, string storageTypes) { ValidateClearDataForStorageKey(storageKey, storageTypes); var dict = new System.Collections.Generic.Dictionary(); dict.Add("storageKey", storageKey); dict.Add("storageTypes", storageTypes); return _client.ExecuteDevToolsMethodAsync("Storage.clearDataForStorageKey", dict); } partial void ValidateGetCookies(string browserContextId = null); /// /// Returns all browser cookies. /// /// Browser context to use when called on the browser endpoint. /// returns System.Threading.Tasks.Task<GetCookiesResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Storage.getCookies", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Storage.setCookies", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Storage.clearCookies", dict); } partial void ValidateGetUsageAndQuota(string origin); /// /// Returns usage and quota in bytes. /// /// Security origin. /// returns System.Threading.Tasks.Task<GetUsageAndQuotaResponse> public System.Threading.Tasks.Task GetUsageAndQuotaAsync(string origin) { ValidateGetUsageAndQuota(origin); var dict = new System.Collections.Generic.Dictionary(); dict.Add("origin", origin); return _client.ExecuteDevToolsMethodAsync("Storage.getUsageAndQuota", dict); } partial void ValidateOverrideQuotaForOrigin(string origin, double? quotaSize = null); /// /// Override quota for the specified origin /// /// Security origin. /// The quota size (in bytes) to override the original quota with.If this is called multiple times, the overridden quota will be equal tothe quotaSize provided in the final call. If this is called withoutspecifying a quotaSize, the quota will be reset to the default value forthe specified origin. If this is called multiple times with differentorigins, the override will be maintained for each origin until it isdisabled (called without a quotaSize). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task OverrideQuotaForOriginAsync(string origin, double? quotaSize = null) { ValidateOverrideQuotaForOrigin(origin, quotaSize); var dict = new System.Collections.Generic.Dictionary(); dict.Add("origin", origin); if (quotaSize.HasValue) { dict.Add("quotaSize", quotaSize.Value); } return _client.ExecuteDevToolsMethodAsync("Storage.overrideQuotaForOrigin", dict); } 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 System.Threading.Tasks.Task TrackCacheStorageForOriginAsync(string origin) { ValidateTrackCacheStorageForOrigin(origin); var dict = new System.Collections.Generic.Dictionary(); dict.Add("origin", origin); return _client.ExecuteDevToolsMethodAsync("Storage.trackCacheStorageForOrigin", dict); } partial void ValidateTrackCacheStorageForStorageKey(string storageKey); /// /// Registers storage key to be notified when an update occurs to its cache storage list. /// /// Storage key. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task TrackCacheStorageForStorageKeyAsync(string storageKey) { ValidateTrackCacheStorageForStorageKey(storageKey); var dict = new System.Collections.Generic.Dictionary(); dict.Add("storageKey", storageKey); return _client.ExecuteDevToolsMethodAsync("Storage.trackCacheStorageForStorageKey", dict); } 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 System.Threading.Tasks.Task TrackIndexedDBForOriginAsync(string origin) { ValidateTrackIndexedDBForOrigin(origin); var dict = new System.Collections.Generic.Dictionary(); dict.Add("origin", origin); return _client.ExecuteDevToolsMethodAsync("Storage.trackIndexedDBForOrigin", dict); } partial void ValidateTrackIndexedDBForStorageKey(string storageKey); /// /// Registers storage key to be notified when an update occurs to its IndexedDB. /// /// Storage key. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task TrackIndexedDBForStorageKeyAsync(string storageKey) { ValidateTrackIndexedDBForStorageKey(storageKey); var dict = new System.Collections.Generic.Dictionary(); dict.Add("storageKey", storageKey); return _client.ExecuteDevToolsMethodAsync("Storage.trackIndexedDBForStorageKey", dict); } partial void ValidateUntrackCacheStorageForOrigin(string origin); /// /// Unregisters origin from receiving notifications for cache storage. /// /// Security origin. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task UntrackCacheStorageForOriginAsync(string origin) { ValidateUntrackCacheStorageForOrigin(origin); var dict = new System.Collections.Generic.Dictionary(); dict.Add("origin", origin); return _client.ExecuteDevToolsMethodAsync("Storage.untrackCacheStorageForOrigin", dict); } partial void ValidateUntrackCacheStorageForStorageKey(string storageKey); /// /// Unregisters storage key from receiving notifications for cache storage. /// /// Storage key. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task UntrackCacheStorageForStorageKeyAsync(string storageKey) { ValidateUntrackCacheStorageForStorageKey(storageKey); var dict = new System.Collections.Generic.Dictionary(); dict.Add("storageKey", storageKey); return _client.ExecuteDevToolsMethodAsync("Storage.untrackCacheStorageForStorageKey", dict); } partial void ValidateUntrackIndexedDBForOrigin(string origin); /// /// Unregisters origin from receiving notifications for IndexedDB. /// /// Security origin. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task UntrackIndexedDBForOriginAsync(string origin) { ValidateUntrackIndexedDBForOrigin(origin); var dict = new System.Collections.Generic.Dictionary(); dict.Add("origin", origin); return _client.ExecuteDevToolsMethodAsync("Storage.untrackIndexedDBForOrigin", dict); } partial void ValidateUntrackIndexedDBForStorageKey(string storageKey); /// /// Unregisters storage key from receiving notifications for IndexedDB. /// /// Storage key. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task UntrackIndexedDBForStorageKeyAsync(string storageKey) { ValidateUntrackIndexedDBForStorageKey(storageKey); var dict = new System.Collections.Generic.Dictionary(); dict.Add("storageKey", storageKey); return _client.ExecuteDevToolsMethodAsync("Storage.untrackIndexedDBForStorageKey", dict); } /// /// Returns the number of stored Trust Tokens per issuer for the /// current browsing context. /// /// returns System.Threading.Tasks.Task<GetTrustTokensResponse> public System.Threading.Tasks.Task GetTrustTokensAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Storage.getTrustTokens", dict); } partial void ValidateClearTrustTokens(string issuerOrigin); /// /// Removes all Trust Tokens issued by the provided issuerOrigin. /// Leaves other stored data, including the issuer's Redemption Records, intact. /// /// issuerOrigin /// returns System.Threading.Tasks.Task<ClearTrustTokensResponse> public System.Threading.Tasks.Task ClearTrustTokensAsync(string issuerOrigin) { ValidateClearTrustTokens(issuerOrigin); var dict = new System.Collections.Generic.Dictionary(); dict.Add("issuerOrigin", issuerOrigin); return _client.ExecuteDevToolsMethodAsync("Storage.clearTrustTokens", dict); } partial void ValidateGetInterestGroupDetails(string ownerOrigin, string name); /// /// Gets details for a named interest group. /// /// ownerOrigin /// name /// returns System.Threading.Tasks.Task<GetInterestGroupDetailsResponse> public System.Threading.Tasks.Task GetInterestGroupDetailsAsync(string ownerOrigin, string name) { ValidateGetInterestGroupDetails(ownerOrigin, name); var dict = new System.Collections.Generic.Dictionary(); dict.Add("ownerOrigin", ownerOrigin); dict.Add("name", name); return _client.ExecuteDevToolsMethodAsync("Storage.getInterestGroupDetails", dict); } partial void ValidateSetInterestGroupTracking(bool enable); /// /// Enables/Disables issuing of interestGroupAccessed events. /// /// enable /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetInterestGroupTrackingAsync(bool enable) { ValidateSetInterestGroupTracking(enable); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("Storage.setInterestGroupTracking", dict); } partial void ValidateSetInterestGroupAuctionTracking(bool enable); /// /// Enables/Disables issuing of interestGroupAuctionEventOccurred and /// interestGroupAuctionNetworkRequestCreated. /// /// enable /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetInterestGroupAuctionTrackingAsync(bool enable) { ValidateSetInterestGroupAuctionTracking(enable); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("Storage.setInterestGroupAuctionTracking", dict); } partial void ValidateGetSharedStorageMetadata(string ownerOrigin); /// /// Gets metadata for an origin's shared storage. /// /// ownerOrigin /// returns System.Threading.Tasks.Task<GetSharedStorageMetadataResponse> public System.Threading.Tasks.Task GetSharedStorageMetadataAsync(string ownerOrigin) { ValidateGetSharedStorageMetadata(ownerOrigin); var dict = new System.Collections.Generic.Dictionary(); dict.Add("ownerOrigin", ownerOrigin); return _client.ExecuteDevToolsMethodAsync("Storage.getSharedStorageMetadata", dict); } partial void ValidateGetSharedStorageEntries(string ownerOrigin); /// /// Gets the entries in an given origin's shared storage. /// /// ownerOrigin /// returns System.Threading.Tasks.Task<GetSharedStorageEntriesResponse> public System.Threading.Tasks.Task GetSharedStorageEntriesAsync(string ownerOrigin) { ValidateGetSharedStorageEntries(ownerOrigin); var dict = new System.Collections.Generic.Dictionary(); dict.Add("ownerOrigin", ownerOrigin); return _client.ExecuteDevToolsMethodAsync("Storage.getSharedStorageEntries", dict); } partial void ValidateSetSharedStorageEntry(string ownerOrigin, string key, string value, bool? ignoreIfPresent = null); /// /// Sets entry with `key` and `value` for a given origin's shared storage. /// /// ownerOrigin /// key /// value /// If `ignoreIfPresent` is included and true, then only sets the entry if`key` doesn't already exist. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetSharedStorageEntryAsync(string ownerOrigin, string key, string value, bool? ignoreIfPresent = null) { ValidateSetSharedStorageEntry(ownerOrigin, key, value, ignoreIfPresent); var dict = new System.Collections.Generic.Dictionary(); dict.Add("ownerOrigin", ownerOrigin); dict.Add("key", key); dict.Add("value", value); if (ignoreIfPresent.HasValue) { dict.Add("ignoreIfPresent", ignoreIfPresent.Value); } return _client.ExecuteDevToolsMethodAsync("Storage.setSharedStorageEntry", dict); } partial void ValidateDeleteSharedStorageEntry(string ownerOrigin, string key); /// /// Deletes entry for `key` (if it exists) for a given origin's shared storage. /// /// ownerOrigin /// key /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DeleteSharedStorageEntryAsync(string ownerOrigin, string key) { ValidateDeleteSharedStorageEntry(ownerOrigin, key); var dict = new System.Collections.Generic.Dictionary(); dict.Add("ownerOrigin", ownerOrigin); dict.Add("key", key); return _client.ExecuteDevToolsMethodAsync("Storage.deleteSharedStorageEntry", dict); } partial void ValidateClearSharedStorageEntries(string ownerOrigin); /// /// Clears all entries for a given origin's shared storage. /// /// ownerOrigin /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearSharedStorageEntriesAsync(string ownerOrigin) { ValidateClearSharedStorageEntries(ownerOrigin); var dict = new System.Collections.Generic.Dictionary(); dict.Add("ownerOrigin", ownerOrigin); return _client.ExecuteDevToolsMethodAsync("Storage.clearSharedStorageEntries", dict); } partial void ValidateResetSharedStorageBudget(string ownerOrigin); /// /// Resets the budget for `ownerOrigin` by clearing all budget withdrawals. /// /// ownerOrigin /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ResetSharedStorageBudgetAsync(string ownerOrigin) { ValidateResetSharedStorageBudget(ownerOrigin); var dict = new System.Collections.Generic.Dictionary(); dict.Add("ownerOrigin", ownerOrigin); return _client.ExecuteDevToolsMethodAsync("Storage.resetSharedStorageBudget", dict); } partial void ValidateSetSharedStorageTracking(bool enable); /// /// Enables/disables issuing of sharedStorageAccessed events. /// /// enable /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetSharedStorageTrackingAsync(bool enable) { ValidateSetSharedStorageTracking(enable); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("Storage.setSharedStorageTracking", dict); } partial void ValidateSetStorageBucketTracking(string storageKey, bool enable); /// /// Set tracking for a storage key's buckets. /// /// storageKey /// enable /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetStorageBucketTrackingAsync(string storageKey, bool enable) { ValidateSetStorageBucketTracking(storageKey, enable); var dict = new System.Collections.Generic.Dictionary(); dict.Add("storageKey", storageKey); dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("Storage.setStorageBucketTracking", dict); } partial void ValidateDeleteStorageBucket(CefSharp.DevTools.Storage.StorageBucket bucket); /// /// Deletes the Storage Bucket with the given storage key and bucket name. /// /// bucket /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DeleteStorageBucketAsync(CefSharp.DevTools.Storage.StorageBucket bucket) { ValidateDeleteStorageBucket(bucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("bucket", bucket.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("Storage.deleteStorageBucket", dict); } /// /// Deletes state for sites identified as potential bounce trackers, immediately. /// /// returns System.Threading.Tasks.Task<RunBounceTrackingMitigationsResponse> public System.Threading.Tasks.Task RunBounceTrackingMitigationsAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Storage.runBounceTrackingMitigations", dict); } partial void ValidateSetAttributionReportingLocalTestingMode(bool enabled); /// /// https://wicg.github.io/attribution-reporting-api/ /// /// If enabled, noise is suppressed and reports are sent immediately. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetAttributionReportingLocalTestingModeAsync(bool enabled) { ValidateSetAttributionReportingLocalTestingMode(enabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Storage.setAttributionReportingLocalTestingMode", dict); } partial void ValidateSetAttributionReportingTracking(bool enable); /// /// Enables/disables issuing of Attribution Reporting events. /// /// enable /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetAttributionReportingTrackingAsync(bool enable) { ValidateSetAttributionReportingTracking(enable); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("Storage.setAttributionReportingTracking", dict); } /// /// Sends all pending Attribution Reports immediately, regardless of their /// scheduled report time. /// /// returns System.Threading.Tasks.Task<SendPendingAttributionReportsResponse> public System.Threading.Tasks.Task SendPendingAttributionReportsAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Storage.sendPendingAttributionReports", dict); } /// /// Returns the effective Related Website Sets in use by this profile for the browser /// session. The effective Related Website Sets will not change during a browser session. /// /// returns System.Threading.Tasks.Task<GetRelatedWebsiteSetsResponse> public System.Threading.Tasks.Task GetRelatedWebsiteSetsAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Storage.getRelatedWebsiteSets", dict); } partial void ValidateGetAffectedUrlsForThirdPartyCookieMetadata(string firstPartyUrl, string[] thirdPartyUrls); /// /// Returns the list of URLs from a page and its embedded resources that match /// existing grace period URL pattern rules. /// https://developers.google.com/privacy-sandbox/cookies/temporary-exceptions/grace-period /// /// The URL of the page currently being visited. /// The list of embedded resource URLs from the page. /// returns System.Threading.Tasks.Task<GetAffectedUrlsForThirdPartyCookieMetadataResponse> public System.Threading.Tasks.Task GetAffectedUrlsForThirdPartyCookieMetadataAsync(string firstPartyUrl, string[] thirdPartyUrls) { ValidateGetAffectedUrlsForThirdPartyCookieMetadata(firstPartyUrl, thirdPartyUrls); var dict = new System.Collections.Generic.Dictionary(); dict.Add("firstPartyUrl", firstPartyUrl); dict.Add("thirdPartyUrls", thirdPartyUrls); return _client.ExecuteDevToolsMethodAsync("Storage.getAffectedUrlsForThirdPartyCookieMetadata", dict); } partial void ValidateSetProtectedAudienceKAnonymity(string owner, string name, byte[][] hashes); /// /// SetProtectedAudienceKAnonymity /// /// owner /// name /// hashes /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetProtectedAudienceKAnonymityAsync(string owner, string name, byte[][] hashes) { ValidateSetProtectedAudienceKAnonymity(owner, name, hashes); var dict = new System.Collections.Generic.Dictionary(); dict.Add("owner", owner); dict.Add("name", name); dict.Add("hashes", ToBase64String(hashes)); return _client.ExecuteDevToolsMethodAsync("Storage.setProtectedAudienceKAnonymity", dict); } } } namespace CefSharp.DevTools.SystemInfo { /// /// GetInfoResponse /// public class GetInfoResponse : DevToolsDomainResponseBase { /// /// gpu /// [JsonInclude] [JsonPropertyName("gpu")] public CefSharp.DevTools.SystemInfo.GPUInfo Gpu { get; private set; } /// /// modelName /// [JsonInclude] [JsonPropertyName("modelName")] public string ModelName { get; private set; } /// /// modelVersion /// [JsonInclude] [JsonPropertyName("modelVersion")] public string ModelVersion { get; private set; } /// /// commandLine /// [JsonInclude] [JsonPropertyName("commandLine")] public string CommandLine { get; private set; } } } namespace CefSharp.DevTools.SystemInfo { /// /// GetFeatureStateResponse /// public class GetFeatureStateResponse : DevToolsDomainResponseBase { /// /// featureEnabled /// [JsonInclude] [JsonPropertyName("featureEnabled")] public bool FeatureEnabled { get; private set; } } } namespace CefSharp.DevTools.SystemInfo { /// /// GetProcessInfoResponse /// public class GetProcessInfoResponse : DevToolsDomainResponseBase { /// /// processInfo /// [JsonInclude] [JsonPropertyName("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; /// /// SystemInfo /// /// DevToolsClient public SystemInfoClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Returns information about the system. /// /// returns System.Threading.Tasks.Task<GetInfoResponse> public System.Threading.Tasks.Task GetInfoAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("SystemInfo.getInfo", dict); } partial void ValidateGetFeatureState(string featureState); /// /// Returns information about the feature state. /// /// featureState /// returns System.Threading.Tasks.Task<GetFeatureStateResponse> public System.Threading.Tasks.Task GetFeatureStateAsync(string featureState) { ValidateGetFeatureState(featureState); var dict = new System.Collections.Generic.Dictionary(); dict.Add("featureState", featureState); return _client.ExecuteDevToolsMethodAsync("SystemInfo.getFeatureState", dict); } /// /// Returns information about all running processes. /// /// returns System.Threading.Tasks.Task<GetProcessInfoResponse> public System.Threading.Tasks.Task GetProcessInfoAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("SystemInfo.getProcessInfo", dict); } } } namespace CefSharp.DevTools.Target { /// /// AttachToTargetResponse /// public class AttachToTargetResponse : DevToolsDomainResponseBase { /// /// sessionId /// [JsonInclude] [JsonPropertyName("sessionId")] public string SessionId { get; private set; } } } namespace CefSharp.DevTools.Target { /// /// AttachToBrowserTargetResponse /// public class AttachToBrowserTargetResponse : DevToolsDomainResponseBase { /// /// sessionId /// [JsonInclude] [JsonPropertyName("sessionId")] public string SessionId { get; private set; } } } namespace CefSharp.DevTools.Target { /// /// CloseTargetResponse /// public class CloseTargetResponse : DevToolsDomainResponseBase { /// /// success /// [JsonInclude] [JsonPropertyName("success")] public bool Success { get; private set; } } } namespace CefSharp.DevTools.Target { /// /// CreateBrowserContextResponse /// public class CreateBrowserContextResponse : DevToolsDomainResponseBase { /// /// browserContextId /// [JsonInclude] [JsonPropertyName("browserContextId")] public string BrowserContextId { get; private set; } } } namespace CefSharp.DevTools.Target { /// /// GetBrowserContextsResponse /// public class GetBrowserContextsResponse : DevToolsDomainResponseBase { /// /// browserContextIds /// [JsonInclude] [JsonPropertyName("browserContextIds")] public string[] BrowserContextIds { get; private set; } /// /// defaultBrowserContextId /// [JsonInclude] [JsonPropertyName("defaultBrowserContextId")] public string DefaultBrowserContextId { get; private set; } } } namespace CefSharp.DevTools.Target { /// /// CreateTargetResponse /// public class CreateTargetResponse : DevToolsDomainResponseBase { /// /// targetId /// [JsonInclude] [JsonPropertyName("targetId")] public string TargetId { get; private set; } } } namespace CefSharp.DevTools.Target { /// /// GetTargetInfoResponse /// public class GetTargetInfoResponse : DevToolsDomainResponseBase { /// /// targetInfo /// [JsonInclude] [JsonPropertyName("targetInfo")] public CefSharp.DevTools.Target.TargetInfo TargetInfo { get; private set; } } } namespace CefSharp.DevTools.Target { /// /// GetTargetsResponse /// public class GetTargetsResponse : DevToolsDomainResponseBase { /// /// targetInfos /// [JsonInclude] [JsonPropertyName("targetInfos")] public System.Collections.Generic.IList TargetInfos { get; private set; } } } namespace CefSharp.DevTools.Target { /// /// GetDevToolsTargetResponse /// public class GetDevToolsTargetResponse : DevToolsDomainResponseBase { /// /// targetId /// [JsonInclude] [JsonPropertyName("targetId")] public string TargetId { get; private set; } } } namespace CefSharp.DevTools.Target { /// /// OpenDevToolsResponse /// public class OpenDevToolsResponse : DevToolsDomainResponseBase { /// /// targetId /// [JsonInclude] [JsonPropertyName("targetId")] public string TargetId { 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; /// /// Target /// /// DevToolsClient public TargetClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Issued when attached to target because of auto-attach or `attachToTarget` command. /// public event System.EventHandler AttachedToTarget { add { _client.AddEventHandler("Target.attachedToTarget", value); } remove { _client.RemoveEventHandler("Target.attachedToTarget", value); } } /// /// Issued when detached from target for any reason (including `detachFromTarget` command). Can be /// issued multiple times per target if multiple sessions have been attached to it. /// public event System.EventHandler DetachedFromTarget { add { _client.AddEventHandler("Target.detachedFromTarget", value); } remove { _client.RemoveEventHandler("Target.detachedFromTarget", value); } } /// /// Notifies about a new protocol message received from the session (as reported in /// `attachedToTarget` event). /// public event System.EventHandler ReceivedMessageFromTarget { add { _client.AddEventHandler("Target.receivedMessageFromTarget", value); } remove { _client.RemoveEventHandler("Target.receivedMessageFromTarget", value); } } /// /// Issued when a possible inspection target is created. /// public event System.EventHandler TargetCreated { add { _client.AddEventHandler("Target.targetCreated", value); } remove { _client.RemoveEventHandler("Target.targetCreated", value); } } /// /// Issued when a target is destroyed. /// public event System.EventHandler TargetDestroyed { add { _client.AddEventHandler("Target.targetDestroyed", value); } remove { _client.RemoveEventHandler("Target.targetDestroyed", value); } } /// /// Issued when a target has crashed. /// public event System.EventHandler TargetCrashed { add { _client.AddEventHandler("Target.targetCrashed", value); } remove { _client.RemoveEventHandler("Target.targetCrashed", value); } } /// /// Issued when some information about a target has changed. This only happens between /// `targetCreated` and `targetDestroyed`. /// public event System.EventHandler TargetInfoChanged { add { _client.AddEventHandler("Target.targetInfoChanged", value); } remove { _client.RemoveEventHandler("Target.targetInfoChanged", value); } } partial void ValidateActivateTarget(string targetId); /// /// Activates (focuses) the target. /// /// targetId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ActivateTargetAsync(string targetId) { ValidateActivateTarget(targetId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("targetId", targetId); return _client.ExecuteDevToolsMethodAsync("Target.activateTarget", dict); } 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.We plan to make this the default, deprecate non-flattened mode,and eventually retire it. See crbug.com/991325. /// returns System.Threading.Tasks.Task<AttachToTargetResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Target.attachToTarget", dict); } /// /// Attaches to the browser target, only uses flat sessionId mode. /// /// returns System.Threading.Tasks.Task<AttachToBrowserTargetResponse> public System.Threading.Tasks.Task AttachToBrowserTargetAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Target.attachToBrowserTarget", dict); } 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 System.Threading.Tasks.Task CloseTargetAsync(string targetId) { ValidateCloseTarget(targetId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("targetId", targetId); return _client.ExecuteDevToolsMethodAsync("Target.closeTarget", dict); } partial void ValidateExposeDevToolsProtocol(string targetId, string bindingName = null, bool? inheritPermissions = 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 following 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. /// If true, inherits the current root session's permissions (default: false). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ExposeDevToolsProtocolAsync(string targetId, string bindingName = null, bool? inheritPermissions = null) { ValidateExposeDevToolsProtocol(targetId, bindingName, inheritPermissions); var dict = new System.Collections.Generic.Dictionary(); dict.Add("targetId", targetId); if (!(string.IsNullOrEmpty(bindingName))) { dict.Add("bindingName", bindingName); } if (inheritPermissions.HasValue) { dict.Add("inheritPermissions", inheritPermissions.Value); } return _client.ExecuteDevToolsMethodAsync("Target.exposeDevToolsProtocol", dict); } partial void ValidateCreateBrowserContext(bool? disposeOnDetach = null, string proxyServer = null, string proxyBypassList = null, string[] originsWithUniversalNetworkAccess = 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 /// An optional list of origins to grant unlimited cross-origin access to.Parts of the URL other than those constituting origin are ignored. /// returns System.Threading.Tasks.Task<CreateBrowserContextResponse> public System.Threading.Tasks.Task CreateBrowserContextAsync(bool? disposeOnDetach = null, string proxyServer = null, string proxyBypassList = null, string[] originsWithUniversalNetworkAccess = null) { ValidateCreateBrowserContext(disposeOnDetach, proxyServer, proxyBypassList, originsWithUniversalNetworkAccess); 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); } if ((originsWithUniversalNetworkAccess) != (null)) { dict.Add("originsWithUniversalNetworkAccess", originsWithUniversalNetworkAccess); } return _client.ExecuteDevToolsMethodAsync("Target.createBrowserContext", dict); } /// /// Returns all browser contexts created with `Target.createBrowserContext` method. /// /// returns System.Threading.Tasks.Task<GetBrowserContextsResponse> public System.Threading.Tasks.Task GetBrowserContextsAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Target.getBrowserContexts", dict); } partial void ValidateCreateTarget(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null); /// /// Creates a new page. /// /// The initial URL the page will be navigated to. An empty string indicates about:blank. /// Frame left origin in DIP (requires newWindow to be true or headless shell). /// Frame top origin in DIP (requires newWindow to be true or headless shell). /// Frame width in DIP (requires newWindow to be true or headless shell). /// Frame height in DIP (requires newWindow to be true or headless shell). /// Frame window state (requires newWindow to be true or headless shell).Default is normal. /// The browser context to create the page in. /// Whether BeginFrames for this target will be controlled via DevTools (headless shell only,not supported on MacOS yet, false by default). /// Whether to create a new Window or Tab (false by default, not supported by headless shell). /// Whether to create the target in background or foreground (false by default, not supportedby headless shell). /// Whether to create the target of type "tab". /// Whether to create a hidden target. The hidden target is observable via protocol, but notpresent in the tab UI strip. Cannot be created with `forTab: true`, `newWindow: true` or`background: false`. The life-time of the tab is limited to the life-time of the session. /// returns System.Threading.Tasks.Task<CreateTargetResponse> public System.Threading.Tasks.Task CreateTargetAsync(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null) { ValidateCreateTarget(url, left, top, width, height, windowState, browserContextId, enableBeginFrameControl, newWindow, background, forTab, hidden); var dict = new System.Collections.Generic.Dictionary(); dict.Add("url", url); if (left.HasValue) { dict.Add("left", left.Value); } if (top.HasValue) { dict.Add("top", top.Value); } if (width.HasValue) { dict.Add("width", width.Value); } if (height.HasValue) { dict.Add("height", height.Value); } if (windowState.HasValue) { dict.Add("windowState", EnumToString(windowState)); } 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); } if (forTab.HasValue) { dict.Add("forTab", forTab.Value); } if (hidden.HasValue) { dict.Add("hidden", hidden.Value); } return _client.ExecuteDevToolsMethodAsync("Target.createTarget", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Target.detachFromTarget", dict); } 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 System.Threading.Tasks.Task DisposeBrowserContextAsync(string browserContextId) { ValidateDisposeBrowserContext(browserContextId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("browserContextId", browserContextId); return _client.ExecuteDevToolsMethodAsync("Target.disposeBrowserContext", dict); } partial void ValidateGetTargetInfo(string targetId = null); /// /// Returns information about a target. /// /// targetId /// returns System.Threading.Tasks.Task<GetTargetInfoResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Target.getTargetInfo", dict); } partial void ValidateGetTargets(System.Collections.Generic.IList filter = null); /// /// Retrieves a list of available targets. /// /// Only targets matching filter will be reported. If filter is not specifiedand target discovery is currently enabled, a filter used for target discoveryis used for consistency. /// returns System.Threading.Tasks.Task<GetTargetsResponse> public System.Threading.Tasks.Task GetTargetsAsync(System.Collections.Generic.IList filter = null) { ValidateGetTargets(filter); var dict = new System.Collections.Generic.Dictionary(); if ((filter) != (null)) { dict.Add("filter", filter.Select(x => x.ToDictionary())); } return _client.ExecuteDevToolsMethodAsync("Target.getTargets", dict); } partial void ValidateSetAutoAttach(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null, System.Collections.Generic.IList filter = null); /// /// Controls whether to automatically attach to new targets which are considered /// to be directly related to this one (for example, iframes or workers). /// When turned on, attaches to all existing related targets as well. When turned off, /// automatically detaches from all currently attached targets. /// This also clears all targets added by `autoAttachRelated` from the list of targets to watch /// for creation of related targets. /// You might want to call this recursively for auto-attached targets to attach /// to all available targets. /// /// Whether to auto-attach to related targets. /// Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`to run paused targets. /// Enables "flat" access to the session via specifying sessionId attribute in the commands.We plan to make this the default, deprecate non-flattened mode,and eventually retire it. See crbug.com/991325. /// Only targets matching filter will be attached. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetAutoAttachAsync(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null, System.Collections.Generic.IList filter = null) { ValidateSetAutoAttach(autoAttach, waitForDebuggerOnStart, flatten, filter); var dict = new System.Collections.Generic.Dictionary(); dict.Add("autoAttach", autoAttach); dict.Add("waitForDebuggerOnStart", waitForDebuggerOnStart); if (flatten.HasValue) { dict.Add("flatten", flatten.Value); } if ((filter) != (null)) { dict.Add("filter", filter.Select(x => x.ToDictionary())); } return _client.ExecuteDevToolsMethodAsync("Target.setAutoAttach", dict); } partial void ValidateAutoAttachRelated(string targetId, bool waitForDebuggerOnStart, System.Collections.Generic.IList filter = null); /// /// Adds the specified target to the list of targets that will be monitored for any related target /// creation (such as child frames, child workers and new versions of service worker) and reported /// through `attachedToTarget`. The specified target is also auto-attached. /// This cancels the effect of any previous `setAutoAttach` and is also cancelled by subsequent /// `setAutoAttach`. Only available at the Browser target. /// /// targetId /// Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`to run paused targets. /// Only targets matching filter will be attached. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task AutoAttachRelatedAsync(string targetId, bool waitForDebuggerOnStart, System.Collections.Generic.IList filter = null) { ValidateAutoAttachRelated(targetId, waitForDebuggerOnStart, filter); var dict = new System.Collections.Generic.Dictionary(); dict.Add("targetId", targetId); dict.Add("waitForDebuggerOnStart", waitForDebuggerOnStart); if ((filter) != (null)) { dict.Add("filter", filter.Select(x => x.ToDictionary())); } return _client.ExecuteDevToolsMethodAsync("Target.autoAttachRelated", dict); } partial void ValidateSetDiscoverTargets(bool discover, System.Collections.Generic.IList filter = null); /// /// Controls whether to discover available targets and notify via /// `targetCreated/targetInfoChanged/targetDestroyed` events. /// /// Whether to discover available targets. /// Only targets matching filter will be attached. If `discover` is false,`filter` must be omitted or empty. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetDiscoverTargetsAsync(bool discover, System.Collections.Generic.IList filter = null) { ValidateSetDiscoverTargets(discover, filter); var dict = new System.Collections.Generic.Dictionary(); dict.Add("discover", discover); if ((filter) != (null)) { dict.Add("filter", filter.Select(x => x.ToDictionary())); } return _client.ExecuteDevToolsMethodAsync("Target.setDiscoverTargets", dict); } 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 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())); return _client.ExecuteDevToolsMethodAsync("Target.setRemoteLocations", dict); } partial void ValidateGetDevToolsTarget(string targetId); /// /// Gets the targetId of the DevTools page target opened for the given target /// (if any). /// /// Page or tab target ID. /// returns System.Threading.Tasks.Task<GetDevToolsTargetResponse> public System.Threading.Tasks.Task GetDevToolsTargetAsync(string targetId) { ValidateGetDevToolsTarget(targetId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("targetId", targetId); return _client.ExecuteDevToolsMethodAsync("Target.getDevToolsTarget", dict); } partial void ValidateOpenDevTools(string targetId, string panelId = null); /// /// Opens a DevTools window for the target. /// /// This can be the page or tab target ID. /// The id of the panel we want DevTools to open initially. Currentlysupported panels are elements, console, network, sources, resourcesand performance. /// returns System.Threading.Tasks.Task<OpenDevToolsResponse> public System.Threading.Tasks.Task OpenDevToolsAsync(string targetId, string panelId = null) { ValidateOpenDevTools(targetId, panelId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("targetId", targetId); if (!(string.IsNullOrEmpty(panelId))) { dict.Add("panelId", panelId); } return _client.ExecuteDevToolsMethodAsync("Target.openDevTools", dict); } } } 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; /// /// Tethering /// /// DevToolsClient public TetheringClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Informs that port was successfully bound and got a specified connection id. /// public event System.EventHandler Accepted { add { _client.AddEventHandler("Tethering.accepted", value); } remove { _client.RemoveEventHandler("Tethering.accepted", value); } } partial void ValidateBind(int port); /// /// Request browser port binding. /// /// Port number to bind. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task BindAsync(int port) { ValidateBind(port); var dict = new System.Collections.Generic.Dictionary(); dict.Add("port", port); return _client.ExecuteDevToolsMethodAsync("Tethering.bind", dict); } partial void ValidateUnbind(int port); /// /// Request browser port unbinding. /// /// Port number to unbind. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task UnbindAsync(int port) { ValidateUnbind(port); var dict = new System.Collections.Generic.Dictionary(); dict.Add("port", port); return _client.ExecuteDevToolsMethodAsync("Tethering.unbind", dict); } } } namespace CefSharp.DevTools.Tracing { /// /// GetCategoriesResponse /// public class GetCategoriesResponse : DevToolsDomainResponseBase { /// /// categories /// [JsonInclude] [JsonPropertyName("categories")] public string[] Categories { get; private set; } } } namespace CefSharp.DevTools.Tracing { /// /// GetTrackEventDescriptorResponse /// public class GetTrackEventDescriptorResponse : DevToolsDomainResponseBase { /// /// descriptor /// [JsonInclude] [JsonPropertyName("descriptor")] public byte[] Descriptor { get; private set; } } } namespace CefSharp.DevTools.Tracing { /// /// RequestMemoryDumpResponse /// public class RequestMemoryDumpResponse : DevToolsDomainResponseBase { /// /// dumpGuid /// [JsonInclude] [JsonPropertyName("dumpGuid")] public string DumpGuid { get; private set; } /// /// success /// [JsonInclude] [JsonPropertyName("success")] public bool Success { get; private set; } } } namespace CefSharp.DevTools.Tracing { using System.Linq; /// /// Whether to report trace events as series of dataCollected events or to save trace to a /// stream (defaults to `ReportEvents`). /// public enum StartTransferMode { /// /// ReportEvents /// [JsonPropertyName("ReportEvents")] ReportEvents, /// /// ReturnAsStream /// [JsonPropertyName("ReturnAsStream")] ReturnAsStream } /// /// Tracing /// public partial class TracingClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Tracing /// /// DevToolsClient public TracingClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// BufferUsage /// public event System.EventHandler BufferUsage { add { _client.AddEventHandler("Tracing.bufferUsage", value); } remove { _client.RemoveEventHandler("Tracing.bufferUsage", value); } } /// /// Contains a bucket of collected trace events. When tracing is stopped collected events will be /// sent as a sequence of dataCollected events followed by tracingComplete event. /// public event System.EventHandler DataCollected { add { _client.AddEventHandler("Tracing.dataCollected", value); } remove { _client.RemoveEventHandler("Tracing.dataCollected", value); } } /// /// Signals that tracing is stopped and there is no trace buffers pending flush, all data were /// delivered via dataCollected events. /// public event System.EventHandler TracingComplete { add { _client.AddEventHandler("Tracing.tracingComplete", value); } remove { _client.RemoveEventHandler("Tracing.tracingComplete", value); } } /// /// Stop trace events collection. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EndAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Tracing.end", dict); } /// /// Gets supported tracing categories. /// /// returns System.Threading.Tasks.Task<GetCategoriesResponse> public System.Threading.Tasks.Task GetCategoriesAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Tracing.getCategories", dict); } /// /// Return a descriptor for all available tracing categories. /// /// returns System.Threading.Tasks.Task<GetTrackEventDescriptorResponse> public System.Threading.Tasks.Task GetTrackEventDescriptorAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Tracing.getTrackEventDescriptor", dict); } 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 System.Threading.Tasks.Task RecordClockSyncMarkerAsync(string syncId) { ValidateRecordClockSyncMarker(syncId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("syncId", syncId); return _client.ExecuteDevToolsMethodAsync("Tracing.recordClockSyncMarker", dict); } partial void ValidateRequestMemoryDump(bool? deterministic = null, CefSharp.DevTools.Tracing.MemoryDumpLevelOfDetail? levelOfDetail = null); /// /// Request a global memory dump. /// /// Enables more deterministic results by forcing garbage collection /// Specifies level of details in memory dump. Defaults to "detailed". /// returns System.Threading.Tasks.Task<RequestMemoryDumpResponse> public System.Threading.Tasks.Task RequestMemoryDumpAsync(bool? deterministic = null, CefSharp.DevTools.Tracing.MemoryDumpLevelOfDetail? levelOfDetail = null) { ValidateRequestMemoryDump(deterministic, levelOfDetail); var dict = new System.Collections.Generic.Dictionary(); if (deterministic.HasValue) { dict.Add("deterministic", deterministic.Value); } if (levelOfDetail.HasValue) { dict.Add("levelOfDetail", EnumToString(levelOfDetail)); } return _client.ExecuteDevToolsMethodAsync("Tracing.requestMemoryDump", dict); } partial void ValidateStart(string categories = null, string options = null, double? bufferUsageReportingInterval = null, CefSharp.DevTools.Tracing.StartTransferMode? transferMode = null, CefSharp.DevTools.Tracing.StreamFormat? streamFormat = null, CefSharp.DevTools.Tracing.StreamCompression? streamCompression = null, CefSharp.DevTools.Tracing.TraceConfig traceConfig = null, byte[] perfettoConfig = null, CefSharp.DevTools.Tracing.TracingBackend? tracingBackend = 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 astream (defaults to `ReportEvents`). /// Trace data format to use. This only applies when using `ReturnAsStream`transfer mode (defaults to `json`). /// Compression format to use. This only applies when using `ReturnAsStream`transfer mode (defaults to `none`) /// traceConfig /// Base64-encoded serialized perfetto.protos.TraceConfig protobuf messageWhen specified, the parameters `categories`, `options`, `traceConfig`are ignored. /// Backend type (defaults to `auto`) /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StartAsync(string categories = null, string options = null, double? bufferUsageReportingInterval = null, CefSharp.DevTools.Tracing.StartTransferMode? transferMode = null, CefSharp.DevTools.Tracing.StreamFormat? streamFormat = null, CefSharp.DevTools.Tracing.StreamCompression? streamCompression = null, CefSharp.DevTools.Tracing.TraceConfig traceConfig = null, byte[] perfettoConfig = null, CefSharp.DevTools.Tracing.TracingBackend? tracingBackend = null) { ValidateStart(categories, options, bufferUsageReportingInterval, transferMode, streamFormat, streamCompression, traceConfig, perfettoConfig, tracingBackend); 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 (transferMode.HasValue) { dict.Add("transferMode", EnumToString(transferMode)); } if (streamFormat.HasValue) { dict.Add("streamFormat", EnumToString(streamFormat)); } if (streamCompression.HasValue) { dict.Add("streamCompression", EnumToString(streamCompression)); } if ((traceConfig) != (null)) { dict.Add("traceConfig", traceConfig.ToDictionary()); } if ((perfettoConfig) != (null)) { dict.Add("perfettoConfig", ToBase64String(perfettoConfig)); } if (tracingBackend.HasValue) { dict.Add("tracingBackend", EnumToString(tracingBackend)); } return _client.ExecuteDevToolsMethodAsync("Tracing.start", dict); } } } namespace CefSharp.DevTools.WebAudio { /// /// GetRealtimeDataResponse /// public class GetRealtimeDataResponse : DevToolsDomainResponseBase { /// /// realtimeData /// [JsonInclude] [JsonPropertyName("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; /// /// WebAudio /// /// DevToolsClient public WebAudioClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Notifies that a new BaseAudioContext has been created. /// public event System.EventHandler ContextCreated { add { _client.AddEventHandler("WebAudio.contextCreated", value); } remove { _client.RemoveEventHandler("WebAudio.contextCreated", value); } } /// /// Notifies that an existing BaseAudioContext will be destroyed. /// public event System.EventHandler ContextWillBeDestroyed { add { _client.AddEventHandler("WebAudio.contextWillBeDestroyed", value); } remove { _client.RemoveEventHandler("WebAudio.contextWillBeDestroyed", value); } } /// /// Notifies that existing BaseAudioContext has changed some properties (id stays the same).. /// public event System.EventHandler ContextChanged { add { _client.AddEventHandler("WebAudio.contextChanged", value); } remove { _client.RemoveEventHandler("WebAudio.contextChanged", value); } } /// /// Notifies that the construction of an AudioListener has finished. /// public event System.EventHandler AudioListenerCreated { add { _client.AddEventHandler("WebAudio.audioListenerCreated", value); } remove { _client.RemoveEventHandler("WebAudio.audioListenerCreated", value); } } /// /// Notifies that a new AudioListener has been created. /// public event System.EventHandler AudioListenerWillBeDestroyed { add { _client.AddEventHandler("WebAudio.audioListenerWillBeDestroyed", value); } remove { _client.RemoveEventHandler("WebAudio.audioListenerWillBeDestroyed", value); } } /// /// Notifies that a new AudioNode has been created. /// public event System.EventHandler AudioNodeCreated { add { _client.AddEventHandler("WebAudio.audioNodeCreated", value); } remove { _client.RemoveEventHandler("WebAudio.audioNodeCreated", value); } } /// /// Notifies that an existing AudioNode has been destroyed. /// public event System.EventHandler AudioNodeWillBeDestroyed { add { _client.AddEventHandler("WebAudio.audioNodeWillBeDestroyed", value); } remove { _client.RemoveEventHandler("WebAudio.audioNodeWillBeDestroyed", value); } } /// /// Notifies that a new AudioParam has been created. /// public event System.EventHandler AudioParamCreated { add { _client.AddEventHandler("WebAudio.audioParamCreated", value); } remove { _client.RemoveEventHandler("WebAudio.audioParamCreated", value); } } /// /// Notifies that an existing AudioParam has been destroyed. /// public event System.EventHandler AudioParamWillBeDestroyed { add { _client.AddEventHandler("WebAudio.audioParamWillBeDestroyed", value); } remove { _client.RemoveEventHandler("WebAudio.audioParamWillBeDestroyed", value); } } /// /// Notifies that two AudioNodes are connected. /// public event System.EventHandler NodesConnected { add { _client.AddEventHandler("WebAudio.nodesConnected", value); } remove { _client.RemoveEventHandler("WebAudio.nodesConnected", value); } } /// /// Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected. /// public event System.EventHandler NodesDisconnected { add { _client.AddEventHandler("WebAudio.nodesDisconnected", value); } remove { _client.RemoveEventHandler("WebAudio.nodesDisconnected", value); } } /// /// Notifies that an AudioNode is connected to an AudioParam. /// public event System.EventHandler NodeParamConnected { add { _client.AddEventHandler("WebAudio.nodeParamConnected", value); } remove { _client.RemoveEventHandler("WebAudio.nodeParamConnected", value); } } /// /// Notifies that an AudioNode is disconnected to an AudioParam. /// public event System.EventHandler NodeParamDisconnected { add { _client.AddEventHandler("WebAudio.nodeParamDisconnected", value); } remove { _client.RemoveEventHandler("WebAudio.nodeParamDisconnected", value); } } /// /// Enables the WebAudio domain and starts sending context lifetime events. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("WebAudio.enable", dict); } /// /// Disables the WebAudio domain. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("WebAudio.disable", dict); } partial void ValidateGetRealtimeData(string contextId); /// /// Fetch the realtime data from the registered contexts. /// /// contextId /// returns System.Threading.Tasks.Task<GetRealtimeDataResponse> public System.Threading.Tasks.Task GetRealtimeDataAsync(string contextId) { ValidateGetRealtimeData(contextId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("contextId", contextId); return _client.ExecuteDevToolsMethodAsync("WebAudio.getRealtimeData", dict); } } } namespace CefSharp.DevTools.WebAuthn { /// /// AddVirtualAuthenticatorResponse /// public class AddVirtualAuthenticatorResponse : DevToolsDomainResponseBase { /// /// authenticatorId /// [JsonInclude] [JsonPropertyName("authenticatorId")] public string AuthenticatorId { get; private set; } } } namespace CefSharp.DevTools.WebAuthn { /// /// GetCredentialResponse /// public class GetCredentialResponse : DevToolsDomainResponseBase { /// /// credential /// [JsonInclude] [JsonPropertyName("credential")] public CefSharp.DevTools.WebAuthn.Credential Credential { get; private set; } } } namespace CefSharp.DevTools.WebAuthn { /// /// GetCredentialsResponse /// public class GetCredentialsResponse : DevToolsDomainResponseBase { /// /// credentials /// [JsonInclude] [JsonPropertyName("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; /// /// WebAuthn /// /// DevToolsClient public WebAuthnClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Triggered when a credential is added to an authenticator. /// public event System.EventHandler CredentialAdded { add { _client.AddEventHandler("WebAuthn.credentialAdded", value); } remove { _client.RemoveEventHandler("WebAuthn.credentialAdded", value); } } /// /// Triggered when a credential is deleted, e.g. through /// PublicKeyCredential.signalUnknownCredential(). /// public event System.EventHandler CredentialDeleted { add { _client.AddEventHandler("WebAuthn.credentialDeleted", value); } remove { _client.RemoveEventHandler("WebAuthn.credentialDeleted", value); } } /// /// Triggered when a credential is updated, e.g. through /// PublicKeyCredential.signalCurrentUserDetails(). /// public event System.EventHandler CredentialUpdated { add { _client.AddEventHandler("WebAuthn.credentialUpdated", value); } remove { _client.RemoveEventHandler("WebAuthn.credentialUpdated", value); } } /// /// Triggered when a credential is used in a webauthn assertion. /// public event System.EventHandler CredentialAsserted { add { _client.AddEventHandler("WebAuthn.credentialAsserted", value); } remove { _client.RemoveEventHandler("WebAuthn.credentialAsserted", value); } } partial void ValidateEnable(bool? enableUI = null); /// /// Enable the WebAuthn domain and start intercepting credential storage and /// retrieval with a virtual authenticator. /// /// Whether to enable the WebAuthn user interface. Enabling the UI isrecommended for debugging and demo purposes, as it is closer to the realexperience. Disabling the UI is recommended for automated testing.Supported at the embedder's discretion if UI is available.Defaults to false. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync(bool? enableUI = null) { ValidateEnable(enableUI); var dict = new System.Collections.Generic.Dictionary(); if (enableUI.HasValue) { dict.Add("enableUI", enableUI.Value); } return _client.ExecuteDevToolsMethodAsync("WebAuthn.enable", dict); } /// /// Disable the WebAuthn domain. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("WebAuthn.disable", dict); } partial void ValidateAddVirtualAuthenticator(CefSharp.DevTools.WebAuthn.VirtualAuthenticatorOptions options); /// /// Creates and adds a virtual authenticator. /// /// options /// returns System.Threading.Tasks.Task<AddVirtualAuthenticatorResponse> public System.Threading.Tasks.Task AddVirtualAuthenticatorAsync(CefSharp.DevTools.WebAuthn.VirtualAuthenticatorOptions options) { ValidateAddVirtualAuthenticator(options); var dict = new System.Collections.Generic.Dictionary(); dict.Add("options", options.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("WebAuthn.addVirtualAuthenticator", dict); } partial void ValidateSetResponseOverrideBits(string authenticatorId, bool? isBogusSignature = null, bool? isBadUV = null, bool? isBadUP = null); /// /// Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present. /// /// authenticatorId /// If isBogusSignature is set, overrides the signature in the authenticator response to be zero.Defaults to false. /// If isBadUV is set, overrides the UV bit in the flags in the authenticator response tobe zero. Defaults to false. /// If isBadUP is set, overrides the UP bit in the flags in the authenticator response tobe zero. Defaults to false. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetResponseOverrideBitsAsync(string authenticatorId, bool? isBogusSignature = null, bool? isBadUV = null, bool? isBadUP = null) { ValidateSetResponseOverrideBits(authenticatorId, isBogusSignature, isBadUV, isBadUP); var dict = new System.Collections.Generic.Dictionary(); dict.Add("authenticatorId", authenticatorId); if (isBogusSignature.HasValue) { dict.Add("isBogusSignature", isBogusSignature.Value); } if (isBadUV.HasValue) { dict.Add("isBadUV", isBadUV.Value); } if (isBadUP.HasValue) { dict.Add("isBadUP", isBadUP.Value); } return _client.ExecuteDevToolsMethodAsync("WebAuthn.setResponseOverrideBits", dict); } partial void ValidateRemoveVirtualAuthenticator(string authenticatorId); /// /// Removes the given authenticator. /// /// authenticatorId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RemoveVirtualAuthenticatorAsync(string authenticatorId) { ValidateRemoveVirtualAuthenticator(authenticatorId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("authenticatorId", authenticatorId); return _client.ExecuteDevToolsMethodAsync("WebAuthn.removeVirtualAuthenticator", dict); } 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 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()); return _client.ExecuteDevToolsMethodAsync("WebAuthn.addCredential", dict); } 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 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)); return _client.ExecuteDevToolsMethodAsync("WebAuthn.getCredential", dict); } partial void ValidateGetCredentials(string authenticatorId); /// /// Returns all the credentials stored in the given virtual authenticator. /// /// authenticatorId /// returns System.Threading.Tasks.Task<GetCredentialsResponse> public System.Threading.Tasks.Task GetCredentialsAsync(string authenticatorId) { ValidateGetCredentials(authenticatorId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("authenticatorId", authenticatorId); return _client.ExecuteDevToolsMethodAsync("WebAuthn.getCredentials", dict); } partial void ValidateRemoveCredential(string authenticatorId, byte[] credentialId); /// /// Removes a credential from the authenticator. /// /// authenticatorId /// credentialId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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)); return _client.ExecuteDevToolsMethodAsync("WebAuthn.removeCredential", dict); } partial void ValidateClearCredentials(string authenticatorId); /// /// Clears all the credentials from the specified device. /// /// authenticatorId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ClearCredentialsAsync(string authenticatorId) { ValidateClearCredentials(authenticatorId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("authenticatorId", authenticatorId); return _client.ExecuteDevToolsMethodAsync("WebAuthn.clearCredentials", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("WebAuthn.setUserVerified", dict); } 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 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); return _client.ExecuteDevToolsMethodAsync("WebAuthn.setAutomaticPresenceSimulation", dict); } partial void ValidateSetCredentialProperties(string authenticatorId, byte[] credentialId, bool? backupEligibility = null, bool? backupState = null); /// /// Allows setting credential properties. /// https://w3c.github.io/webauthn/#sctn-automation-set-credential-properties /// /// authenticatorId /// credentialId /// backupEligibility /// backupState /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetCredentialPropertiesAsync(string authenticatorId, byte[] credentialId, bool? backupEligibility = null, bool? backupState = null) { ValidateSetCredentialProperties(authenticatorId, credentialId, backupEligibility, backupState); var dict = new System.Collections.Generic.Dictionary(); dict.Add("authenticatorId", authenticatorId); dict.Add("credentialId", ToBase64String(credentialId)); if (backupEligibility.HasValue) { dict.Add("backupEligibility", backupEligibility.Value); } if (backupState.HasValue) { dict.Add("backupState", backupState.Value); } return _client.ExecuteDevToolsMethodAsync("WebAuthn.setCredentialProperties", dict); } } } namespace CefSharp.DevTools.Debugger { /// /// EnableResponse /// public class EnableResponse : DevToolsDomainResponseBase { /// /// debuggerId /// [JsonInclude] [JsonPropertyName("debuggerId")] public string DebuggerId { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// EvaluateOnCallFrameResponse /// public class EvaluateOnCallFrameResponse : DevToolsDomainResponseBase { /// /// result /// [JsonInclude] [JsonPropertyName("result")] public CefSharp.DevTools.Runtime.RemoteObject Result { get; private set; } /// /// exceptionDetails /// [JsonInclude] [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// GetPossibleBreakpointsResponse /// public class GetPossibleBreakpointsResponse : DevToolsDomainResponseBase { /// /// locations /// [JsonInclude] [JsonPropertyName("locations")] public System.Collections.Generic.IList Locations { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// GetScriptSourceResponse /// public class GetScriptSourceResponse : DevToolsDomainResponseBase { /// /// scriptSource /// [JsonInclude] [JsonPropertyName("scriptSource")] public string ScriptSource { get; private set; } /// /// bytecode /// [JsonInclude] [JsonPropertyName("bytecode")] public byte[] Bytecode { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// DisassembleWasmModuleResponse /// public class DisassembleWasmModuleResponse : DevToolsDomainResponseBase { /// /// streamId /// [JsonInclude] [JsonPropertyName("streamId")] public string StreamId { get; private set; } /// /// totalNumberOfLines /// [JsonInclude] [JsonPropertyName("totalNumberOfLines")] public int TotalNumberOfLines { get; private set; } /// /// functionBodyOffsets /// [JsonInclude] [JsonPropertyName("functionBodyOffsets")] public int[] FunctionBodyOffsets { get; private set; } /// /// chunk /// [JsonInclude] [JsonPropertyName("chunk")] public CefSharp.DevTools.Debugger.WasmDisassemblyChunk Chunk { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// NextWasmDisassemblyChunkResponse /// public class NextWasmDisassemblyChunkResponse : DevToolsDomainResponseBase { /// /// chunk /// [JsonInclude] [JsonPropertyName("chunk")] public CefSharp.DevTools.Debugger.WasmDisassemblyChunk Chunk { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// GetStackTraceResponse /// public class GetStackTraceResponse : DevToolsDomainResponseBase { /// /// stackTrace /// [JsonInclude] [JsonPropertyName("stackTrace")] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// RestartFrameResponse /// public class RestartFrameResponse : DevToolsDomainResponseBase { /// /// callFrames /// [JsonInclude] [JsonPropertyName("callFrames")] public System.Collections.Generic.IList CallFrames { get; private set; } /// /// asyncStackTrace /// [JsonInclude] [JsonPropertyName("asyncStackTrace")] public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace { get; private set; } /// /// asyncStackTraceId /// [JsonInclude] [JsonPropertyName("asyncStackTraceId")] public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// SearchInContentResponse /// public class SearchInContentResponse : DevToolsDomainResponseBase { /// /// result /// [JsonInclude] [JsonPropertyName("result")] public System.Collections.Generic.IList Result { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// SetBreakpointResponse /// public class SetBreakpointResponse : DevToolsDomainResponseBase { /// /// breakpointId /// [JsonInclude] [JsonPropertyName("breakpointId")] public string BreakpointId { get; private set; } /// /// actualLocation /// [JsonInclude] [JsonPropertyName("actualLocation")] public CefSharp.DevTools.Debugger.Location ActualLocation { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// SetInstrumentationBreakpointResponse /// public class SetInstrumentationBreakpointResponse : DevToolsDomainResponseBase { /// /// breakpointId /// [JsonInclude] [JsonPropertyName("breakpointId")] public string BreakpointId { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// SetBreakpointByUrlResponse /// public class SetBreakpointByUrlResponse : DevToolsDomainResponseBase { /// /// breakpointId /// [JsonInclude] [JsonPropertyName("breakpointId")] public string BreakpointId { get; private set; } /// /// locations /// [JsonInclude] [JsonPropertyName("locations")] public System.Collections.Generic.IList Locations { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// SetBreakpointOnFunctionCallResponse /// public class SetBreakpointOnFunctionCallResponse : DevToolsDomainResponseBase { /// /// breakpointId /// [JsonInclude] [JsonPropertyName("breakpointId")] public string BreakpointId { get; private set; } } } namespace CefSharp.DevTools.Debugger { /// /// SetScriptSourceResponse /// public class SetScriptSourceResponse : DevToolsDomainResponseBase { /// /// callFrames /// [JsonInclude] [JsonPropertyName("callFrames")] public System.Collections.Generic.IList CallFrames { get; private set; } /// /// stackChanged /// [JsonInclude] [JsonPropertyName("stackChanged")] public bool? StackChanged { get; private set; } /// /// asyncStackTrace /// [JsonInclude] [JsonPropertyName("asyncStackTrace")] public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace { get; private set; } /// /// asyncStackTraceId /// [JsonInclude] [JsonPropertyName("asyncStackTraceId")] public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId { get; private set; } /// /// status /// [JsonInclude] [JsonPropertyName("status")] public string Status { get; private set; } /// /// exceptionDetails /// [JsonInclude] [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; private set; } } } namespace CefSharp.DevTools.Debugger { using System.Linq; /// /// ContinueToLocationTargetCallFrames /// public enum ContinueToLocationTargetCallFrames { /// /// any /// [JsonPropertyName("any")] Any, /// /// current /// [JsonPropertyName("current")] Current } /// /// The `mode` parameter must be present and set to 'StepInto', otherwise /// `restartFrame` will error out. /// public enum RestartFrameMode { /// /// StepInto /// [JsonPropertyName("StepInto")] StepInto } /// /// Instrumentation name. /// public enum SetInstrumentationBreakpointInstrumentation { /// /// beforeScriptExecution /// [JsonPropertyName("beforeScriptExecution")] BeforeScriptExecution, /// /// beforeScriptWithSourceMapExecution /// [JsonPropertyName("beforeScriptWithSourceMapExecution")] BeforeScriptWithSourceMapExecution } /// /// Pause on exceptions mode. /// public enum SetPauseOnExceptionsState { /// /// none /// [JsonPropertyName("none")] None, /// /// caught /// [JsonPropertyName("caught")] Caught, /// /// uncaught /// [JsonPropertyName("uncaught")] Uncaught, /// /// all /// [JsonPropertyName("all")] All } /// /// 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; /// /// Debugger /// /// DevToolsClient public DebuggerClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. /// public event System.EventHandler Paused { add { _client.AddEventHandler("Debugger.paused", value); } remove { _client.RemoveEventHandler("Debugger.paused", value); } } /// /// Fired when the virtual machine resumed execution. /// public event System.EventHandler Resumed { add { _client.AddEventHandler("Debugger.resumed", value); } remove { _client.RemoveEventHandler("Debugger.resumed", value); } } /// /// Fired when virtual machine fails to parse the script. /// public event System.EventHandler ScriptFailedToParse { add { _client.AddEventHandler("Debugger.scriptFailedToParse", value); } remove { _client.RemoveEventHandler("Debugger.scriptFailedToParse", value); } } /// /// Fired when virtual machine parses script. This event is also fired for all known and uncollected /// scripts upon enabling debugger. /// public event System.EventHandler ScriptParsed { add { _client.AddEventHandler("Debugger.scriptParsed", value); } remove { _client.RemoveEventHandler("Debugger.scriptParsed", value); } } partial void ValidateContinueToLocation(CefSharp.DevTools.Debugger.Location location, CefSharp.DevTools.Debugger.ContinueToLocationTargetCallFrames? targetCallFrames = null); /// /// Continues execution until specific location is reached. /// /// Location to continue to. /// targetCallFrames /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ContinueToLocationAsync(CefSharp.DevTools.Debugger.Location location, CefSharp.DevTools.Debugger.ContinueToLocationTargetCallFrames? targetCallFrames = null) { ValidateContinueToLocation(location, targetCallFrames); var dict = new System.Collections.Generic.Dictionary(); dict.Add("location", location.ToDictionary()); if (targetCallFrames.HasValue) { dict.Add("targetCallFrames", EnumToString(targetCallFrames)); } return _client.ExecuteDevToolsMethodAsync("Debugger.continueToLocation", dict); } /// /// Disables debugger for given page. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Debugger.disable", dict); } partial void ValidateEnable(double? 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)the debugger can hold. Puts no limit if parameter is omitted. /// returns System.Threading.Tasks.Task<EnableResponse> public System.Threading.Tasks.Task EnableAsync(double? maxScriptsCacheSize = null) { ValidateEnable(maxScriptsCacheSize); var dict = new System.Collections.Generic.Dictionary(); if (maxScriptsCacheSize.HasValue) { dict.Add("maxScriptsCacheSize", maxScriptsCacheSize.Value); } return _client.ExecuteDevToolsMethodAsync("Debugger.enable", dict); } 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, double? 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 handlesusing `releaseObjectGroup`). /// Specifies whether command line API should be available to the evaluated expression, defaultsto false. /// In silent mode exceptions thrown during evaluation are not reported and do not pauseexecution. Overrides `setPauseOnException` state. /// Whether the result is expected to be a JSON object that should be sent by value. /// Whether preview should be generated for the result. /// Whether to throw an exception if side effect cannot be ruled out during evaluation. /// Terminate execution after timing out (number of milliseconds). /// returns System.Threading.Tasks.Task<EvaluateOnCallFrameResponse> public 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, double? 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); } return _client.ExecuteDevToolsMethodAsync("Debugger.evaluateOnCallFrame", dict); } 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, endof scripts is used as end of range. /// Only consider locations which are in the same (non-nested) function as start. /// returns System.Threading.Tasks.Task<GetPossibleBreakpointsResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Debugger.getPossibleBreakpoints", dict); } 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 System.Threading.Tasks.Task GetScriptSourceAsync(string scriptId) { ValidateGetScriptSource(scriptId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scriptId", scriptId); return _client.ExecuteDevToolsMethodAsync("Debugger.getScriptSource", dict); } partial void ValidateDisassembleWasmModule(string scriptId); /// /// DisassembleWasmModule /// /// Id of the script to disassemble /// returns System.Threading.Tasks.Task<DisassembleWasmModuleResponse> public System.Threading.Tasks.Task DisassembleWasmModuleAsync(string scriptId) { ValidateDisassembleWasmModule(scriptId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scriptId", scriptId); return _client.ExecuteDevToolsMethodAsync("Debugger.disassembleWasmModule", dict); } partial void ValidateNextWasmDisassemblyChunk(string streamId); /// /// Disassemble the next chunk of lines for the module corresponding to the /// stream. If disassembly is complete, this API will invalidate the streamId /// and return an empty chunk. Any subsequent calls for the now invalid stream /// will return errors. /// /// streamId /// returns System.Threading.Tasks.Task<NextWasmDisassemblyChunkResponse> public System.Threading.Tasks.Task NextWasmDisassemblyChunkAsync(string streamId) { ValidateNextWasmDisassemblyChunk(streamId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("streamId", streamId); return _client.ExecuteDevToolsMethodAsync("Debugger.nextWasmDisassemblyChunk", dict); } partial void ValidateGetStackTrace(CefSharp.DevTools.Runtime.StackTraceId stackTraceId); /// /// Returns stack trace with given `stackTraceId`. /// /// stackTraceId /// returns System.Threading.Tasks.Task<GetStackTraceResponse> public System.Threading.Tasks.Task GetStackTraceAsync(CefSharp.DevTools.Runtime.StackTraceId stackTraceId) { ValidateGetStackTrace(stackTraceId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("stackTraceId", stackTraceId.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("Debugger.getStackTrace", dict); } /// /// Stops on the next JavaScript statement. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task PauseAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Debugger.pause", dict); } partial void ValidateRemoveBreakpoint(string breakpointId); /// /// Removes JavaScript breakpoint. /// /// breakpointId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RemoveBreakpointAsync(string breakpointId) { ValidateRemoveBreakpoint(breakpointId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("breakpointId", breakpointId); return _client.ExecuteDevToolsMethodAsync("Debugger.removeBreakpoint", dict); } partial void ValidateRestartFrame(string callFrameId, CefSharp.DevTools.Debugger.RestartFrameMode? mode = null); /// /// Restarts particular call frame from the beginning. The old, deprecated /// behavior of `restartFrame` is to stay paused and allow further CDP commands /// after a restart was scheduled. This can cause problems with restarting, so /// we now continue execution immediatly after it has been scheduled until we /// reach the beginning of the restarted frame. /// /// To stay back-wards compatible, `restartFrame` now expects a `mode` /// parameter to be present. If the `mode` parameter is missing, `restartFrame` /// errors out. /// /// The various return values are deprecated and `callFrames` is always empty. /// Use the call frames from the `Debugger#paused` events instead, that fires /// once V8 pauses at the beginning of the restarted function. /// /// Call frame identifier to evaluate on. /// The `mode` parameter must be present and set to 'StepInto', otherwise`restartFrame` will error out. /// returns System.Threading.Tasks.Task<RestartFrameResponse> public System.Threading.Tasks.Task RestartFrameAsync(string callFrameId, CefSharp.DevTools.Debugger.RestartFrameMode? mode = null) { ValidateRestartFrame(callFrameId, mode); var dict = new System.Collections.Generic.Dictionary(); dict.Add("callFrameId", callFrameId); if (mode.HasValue) { dict.Add("mode", EnumToString(mode)); } return _client.ExecuteDevToolsMethodAsync("Debugger.restartFrame", dict); } partial void ValidateResume(bool? terminateOnResume = null); /// /// Resumes JavaScript execution. /// /// Set to true to terminate execution upon resuming execution. In contrastto Runtime.terminateExecution, this will allows to execute furtherJavaScript (i.e. via evaluation) until execution of the paused codeis actually resumed, at which point termination is triggered.If execution is currently not paused, this parameter has no effect. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Debugger.resume", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Debugger.searchInContent", dict); } 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 asynccall stacks (default). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetAsyncCallStackDepthAsync(int maxDepth) { ValidateSetAsyncCallStackDepth(maxDepth); var dict = new System.Collections.Generic.Dictionary(); dict.Add("maxDepth", maxDepth); return _client.ExecuteDevToolsMethodAsync("Debugger.setAsyncCallStackDepth", dict); } partial void ValidateSetBlackboxExecutionContexts(string[] uniqueIds); /// /// Replace previous blackbox execution contexts with passed ones. Forces backend to skip /// stepping/pausing in scripts in these execution contexts. VM will try to leave blackboxed script by /// performing 'step in' several times, finally resorting to 'step out' if unsuccessful. /// /// Array of execution context unique ids for the debugger to ignore. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetBlackboxExecutionContextsAsync(string[] uniqueIds) { ValidateSetBlackboxExecutionContexts(uniqueIds); var dict = new System.Collections.Generic.Dictionary(); dict.Add("uniqueIds", uniqueIds); return _client.ExecuteDevToolsMethodAsync("Debugger.setBlackboxExecutionContexts", dict); } partial void ValidateSetBlackboxPatterns(string[] patterns, bool? skipAnonymous = null); /// /// 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. /// If true, also ignore scripts with no source url. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetBlackboxPatternsAsync(string[] patterns, bool? skipAnonymous = null) { ValidateSetBlackboxPatterns(patterns, skipAnonymous); var dict = new System.Collections.Generic.Dictionary(); dict.Add("patterns", patterns); if (skipAnonymous.HasValue) { dict.Add("skipAnonymous", skipAnonymous.Value); } return _client.ExecuteDevToolsMethodAsync("Debugger.setBlackboxPatterns", dict); } 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 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())); return _client.ExecuteDevToolsMethodAsync("Debugger.setBlackboxedRanges", dict); } 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 thebreakpoint if this expression evaluates to true. /// returns System.Threading.Tasks.Task<SetBreakpointResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Debugger.setBreakpoint", dict); } partial void ValidateSetInstrumentationBreakpoint(CefSharp.DevTools.Debugger.SetInstrumentationBreakpointInstrumentation instrumentation); /// /// Sets instrumentation breakpoint. /// /// Instrumentation name. /// returns System.Threading.Tasks.Task<SetInstrumentationBreakpointResponse> public System.Threading.Tasks.Task SetInstrumentationBreakpointAsync(CefSharp.DevTools.Debugger.SetInstrumentationBreakpointInstrumentation instrumentation) { ValidateSetInstrumentationBreakpoint(instrumentation); var dict = new System.Collections.Generic.Dictionary(); dict.Add("instrumentation", EnumToString(instrumentation)); return _client.ExecuteDevToolsMethodAsync("Debugger.setInstrumentationBreakpoint", dict); } 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`urlRegex` must be specified. /// Script hash of the resources to set breakpoint on. /// Offset in the line to set breakpoint at. /// Expression to use as a breakpoint condition. When specified, debugger will only stop on thebreakpoint if this expression evaluates to true. /// returns System.Threading.Tasks.Task<SetBreakpointByUrlResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Debugger.setBreakpointByUrl", dict); } 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 willstop on the breakpoint if this expression evaluates to true. /// returns System.Threading.Tasks.Task<SetBreakpointOnFunctionCallResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Debugger.setBreakpointOnFunctionCall", dict); } 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 System.Threading.Tasks.Task SetBreakpointsActiveAsync(bool active) { ValidateSetBreakpointsActive(active); var dict = new System.Collections.Generic.Dictionary(); dict.Add("active", active); return _client.ExecuteDevToolsMethodAsync("Debugger.setBreakpointsActive", dict); } partial void ValidateSetPauseOnExceptions(CefSharp.DevTools.Debugger.SetPauseOnExceptionsState state); /// /// Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions, /// or caught exceptions, no exceptions. Initial pause on exceptions state is `none`. /// /// Pause on exceptions mode. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetPauseOnExceptionsAsync(CefSharp.DevTools.Debugger.SetPauseOnExceptionsState state) { ValidateSetPauseOnExceptions(state); var dict = new System.Collections.Generic.Dictionary(); dict.Add("state", EnumToString(state)); return _client.ExecuteDevToolsMethodAsync("Debugger.setPauseOnExceptions", dict); } 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 System.Threading.Tasks.Task SetReturnValueAsync(CefSharp.DevTools.Runtime.CallArgument newValue) { ValidateSetReturnValue(newValue); var dict = new System.Collections.Generic.Dictionary(); dict.Add("newValue", newValue.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("Debugger.setReturnValue", dict); } partial void ValidateSetScriptSource(string scriptId, string scriptSource, bool? dryRun = null, bool? allowTopFrameEditing = null); /// /// Edits JavaScript source live. /// /// In general, functions that are currently on the stack can not be edited with /// a single exception: If the edited function is the top-most stack frame and /// that is the only activation of that function on the stack. In this case /// the live edit will be successful and a `Debugger.restartFrame` for the /// top-most function is automatically triggered. /// /// Id of the script to edit. /// New content of the script. /// If true the change will not actually be applied. Dry run may be used to get resultdescription without actually modifying the code. /// If true, then `scriptSource` is allowed to change the function on top of the stackas long as the top-most stack frame is the only activation of that function. /// returns System.Threading.Tasks.Task<SetScriptSourceResponse> public System.Threading.Tasks.Task SetScriptSourceAsync(string scriptId, string scriptSource, bool? dryRun = null, bool? allowTopFrameEditing = null) { ValidateSetScriptSource(scriptId, scriptSource, dryRun, allowTopFrameEditing); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scriptId", scriptId); dict.Add("scriptSource", scriptSource); if (dryRun.HasValue) { dict.Add("dryRun", dryRun.Value); } if (allowTopFrameEditing.HasValue) { dict.Add("allowTopFrameEditing", allowTopFrameEditing.Value); } return _client.ExecuteDevToolsMethodAsync("Debugger.setScriptSource", dict); } 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 System.Threading.Tasks.Task SetSkipAllPausesAsync(bool skip) { ValidateSetSkipAllPauses(skip); var dict = new System.Collections.Generic.Dictionary(); dict.Add("skip", skip); return _client.ExecuteDevToolsMethodAsync("Debugger.setSkipAllPauses", dict); } 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'scope types are allowed. Other scopes could be manipulated manually. /// Variable name. /// New variable value. /// Id of callframe that holds variable. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); return _client.ExecuteDevToolsMethodAsync("Debugger.setVariableValue", dict); } 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 scheduledbefore next pause. /// The skipList specifies location ranges that should be skipped on step into. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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())); } return _client.ExecuteDevToolsMethodAsync("Debugger.stepInto", dict); } /// /// Steps out of the function call. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StepOutAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Debugger.stepOut", dict); } 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 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())); } return _client.ExecuteDevToolsMethodAsync("Debugger.stepOver", dict); } } } namespace CefSharp.DevTools.HeapProfiler { /// /// GetHeapObjectIdResponse /// public class GetHeapObjectIdResponse : DevToolsDomainResponseBase { /// /// heapSnapshotObjectId /// [JsonInclude] [JsonPropertyName("heapSnapshotObjectId")] public string HeapSnapshotObjectId { get; private set; } } } namespace CefSharp.DevTools.HeapProfiler { /// /// GetObjectByHeapObjectIdResponse /// public class GetObjectByHeapObjectIdResponse : DevToolsDomainResponseBase { /// /// result /// [JsonInclude] [JsonPropertyName("result")] public CefSharp.DevTools.Runtime.RemoteObject Result { get; private set; } } } namespace CefSharp.DevTools.HeapProfiler { /// /// GetSamplingProfileResponse /// public class GetSamplingProfileResponse : DevToolsDomainResponseBase { /// /// profile /// [JsonInclude] [JsonPropertyName("profile")] public CefSharp.DevTools.HeapProfiler.SamplingHeapProfile Profile { get; private set; } } } namespace CefSharp.DevTools.HeapProfiler { /// /// StopSamplingResponse /// public class StopSamplingResponse : DevToolsDomainResponseBase { /// /// profile /// [JsonInclude] [JsonPropertyName("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; /// /// HeapProfiler /// /// DevToolsClient public HeapProfilerClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// AddHeapSnapshotChunk /// public event System.EventHandler AddHeapSnapshotChunk { add { _client.AddEventHandler("HeapProfiler.addHeapSnapshotChunk", value); } remove { _client.RemoveEventHandler("HeapProfiler.addHeapSnapshotChunk", value); } } /// /// If heap objects tracking has been started then backend may send update for one or more fragments /// public event System.EventHandler HeapStatsUpdate { add { _client.AddEventHandler("HeapProfiler.heapStatsUpdate", value); } remove { _client.RemoveEventHandler("HeapProfiler.heapStatsUpdate", value); } } /// /// If heap objects tracking has been started then backend regularly sends a current value for last /// seen object id and corresponding timestamp. If the were changes in the heap since last event /// then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. /// public event System.EventHandler LastSeenObjectId { add { _client.AddEventHandler("HeapProfiler.lastSeenObjectId", value); } remove { _client.RemoveEventHandler("HeapProfiler.lastSeenObjectId", value); } } /// /// ReportHeapSnapshotProgress /// public event System.EventHandler ReportHeapSnapshotProgress { add { _client.AddEventHandler("HeapProfiler.reportHeapSnapshotProgress", value); } remove { _client.RemoveEventHandler("HeapProfiler.reportHeapSnapshotProgress", value); } } /// /// ResetProfiles /// public event System.EventHandler ResetProfiles { add { _client.AddEventHandler("HeapProfiler.resetProfiles", value); } remove { _client.RemoveEventHandler("HeapProfiler.resetProfiles", value); } } 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 System.Threading.Tasks.Task AddInspectedHeapObjectAsync(string heapObjectId) { ValidateAddInspectedHeapObject(heapObjectId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("heapObjectId", heapObjectId); return _client.ExecuteDevToolsMethodAsync("HeapProfiler.addInspectedHeapObject", dict); } /// /// CollectGarbage /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task CollectGarbageAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("HeapProfiler.collectGarbage", dict); } /// /// Disable /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("HeapProfiler.disable", dict); } /// /// Enable /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("HeapProfiler.enable", dict); } partial void ValidateGetHeapObjectId(string objectId); /// /// GetHeapObjectId /// /// Identifier of the object to get heap object id for. /// returns System.Threading.Tasks.Task<GetHeapObjectIdResponse> public System.Threading.Tasks.Task GetHeapObjectIdAsync(string objectId) { ValidateGetHeapObjectId(objectId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("objectId", objectId); return _client.ExecuteDevToolsMethodAsync("HeapProfiler.getHeapObjectId", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("HeapProfiler.getObjectByHeapObjectId", dict); } /// /// GetSamplingProfile /// /// returns System.Threading.Tasks.Task<GetSamplingProfileResponse> public System.Threading.Tasks.Task GetSamplingProfileAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("HeapProfiler.getSamplingProfile", dict); } partial void ValidateStartSampling(double? samplingInterval = null, double? stackDepth = null, bool? includeObjectsCollectedByMajorGC = null, bool? includeObjectsCollectedByMinorGC = null); /// /// StartSampling /// /// Average sample interval in bytes. Poisson distribution is used for the intervals. Thedefault value is 32768 bytes. /// Maximum stack depth. The default value is 128. /// By default, the sampling heap profiler reports only objects which arestill alive when the profile is returned via getSamplingProfile orstopSampling, which is useful for determining what functions contributethe most to steady-state memory usage. This flag instructs the samplingheap profiler to also include information about objects discarded bymajor GC, which will show which functions cause large temporary memoryusage or long GC pauses. /// By default, the sampling heap profiler reports only objects which arestill alive when the profile is returned via getSamplingProfile orstopSampling, which is useful for determining what functions contributethe most to steady-state memory usage. This flag instructs the samplingheap profiler to also include information about objects discarded byminor GC, which is useful when tuning a latency-sensitive applicationfor minimal GC activity. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StartSamplingAsync(double? samplingInterval = null, double? stackDepth = null, bool? includeObjectsCollectedByMajorGC = null, bool? includeObjectsCollectedByMinorGC = null) { ValidateStartSampling(samplingInterval, stackDepth, includeObjectsCollectedByMajorGC, includeObjectsCollectedByMinorGC); var dict = new System.Collections.Generic.Dictionary(); if (samplingInterval.HasValue) { dict.Add("samplingInterval", samplingInterval.Value); } if (stackDepth.HasValue) { dict.Add("stackDepth", stackDepth.Value); } if (includeObjectsCollectedByMajorGC.HasValue) { dict.Add("includeObjectsCollectedByMajorGC", includeObjectsCollectedByMajorGC.Value); } if (includeObjectsCollectedByMinorGC.HasValue) { dict.Add("includeObjectsCollectedByMinorGC", includeObjectsCollectedByMinorGC.Value); } return _client.ExecuteDevToolsMethodAsync("HeapProfiler.startSampling", dict); } partial void ValidateStartTrackingHeapObjects(bool? trackAllocations = null); /// /// StartTrackingHeapObjects /// /// trackAllocations /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("HeapProfiler.startTrackingHeapObjects", dict); } /// /// StopSampling /// /// returns System.Threading.Tasks.Task<StopSamplingResponse> public System.Threading.Tasks.Task StopSamplingAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("HeapProfiler.stopSampling", dict); } partial void ValidateStopTrackingHeapObjects(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null, bool? exposeInternals = null); /// /// StopTrackingHeapObjects /// /// If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being takenwhen the tracking is stopped. /// Deprecated in favor of `exposeInternals`. /// If true, numerical values are included in the snapshot /// If true, exposes internals of the snapshot. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StopTrackingHeapObjectsAsync(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null, bool? exposeInternals = null) { ValidateStopTrackingHeapObjects(reportProgress, treatGlobalObjectsAsRoots, captureNumericValue, exposeInternals); var dict = new System.Collections.Generic.Dictionary(); if (reportProgress.HasValue) { dict.Add("reportProgress", reportProgress.Value); } if (treatGlobalObjectsAsRoots.HasValue) { dict.Add("treatGlobalObjectsAsRoots", treatGlobalObjectsAsRoots.Value); } if (captureNumericValue.HasValue) { dict.Add("captureNumericValue", captureNumericValue.Value); } if (exposeInternals.HasValue) { dict.Add("exposeInternals", exposeInternals.Value); } return _client.ExecuteDevToolsMethodAsync("HeapProfiler.stopTrackingHeapObjects", dict); } partial void ValidateTakeHeapSnapshot(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null, bool? exposeInternals = null); /// /// TakeHeapSnapshot /// /// If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. /// If true, a raw snapshot without artificial roots will be generated.Deprecated in favor of `exposeInternals`. /// If true, numerical values are included in the snapshot /// If true, exposes internals of the snapshot. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task TakeHeapSnapshotAsync(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null, bool? exposeInternals = null) { ValidateTakeHeapSnapshot(reportProgress, treatGlobalObjectsAsRoots, captureNumericValue, exposeInternals); var dict = new System.Collections.Generic.Dictionary(); if (reportProgress.HasValue) { dict.Add("reportProgress", reportProgress.Value); } if (treatGlobalObjectsAsRoots.HasValue) { dict.Add("treatGlobalObjectsAsRoots", treatGlobalObjectsAsRoots.Value); } if (captureNumericValue.HasValue) { dict.Add("captureNumericValue", captureNumericValue.Value); } if (exposeInternals.HasValue) { dict.Add("exposeInternals", exposeInternals.Value); } return _client.ExecuteDevToolsMethodAsync("HeapProfiler.takeHeapSnapshot", dict); } } } namespace CefSharp.DevTools.Profiler { /// /// GetBestEffortCoverageResponse /// public class GetBestEffortCoverageResponse : DevToolsDomainResponseBase { /// /// result /// [JsonInclude] [JsonPropertyName("result")] public System.Collections.Generic.IList Result { get; private set; } } } namespace CefSharp.DevTools.Profiler { /// /// StartPreciseCoverageResponse /// public class StartPreciseCoverageResponse : DevToolsDomainResponseBase { /// /// timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } } namespace CefSharp.DevTools.Profiler { /// /// StopResponse /// public class StopResponse : DevToolsDomainResponseBase { /// /// profile /// [JsonInclude] [JsonPropertyName("profile")] public CefSharp.DevTools.Profiler.Profile Profile { get; private set; } } } namespace CefSharp.DevTools.Profiler { /// /// TakePreciseCoverageResponse /// public class TakePreciseCoverageResponse : DevToolsDomainResponseBase { /// /// result /// [JsonInclude] [JsonPropertyName("result")] public System.Collections.Generic.IList Result { get; private set; } /// /// timestamp /// [JsonInclude] [JsonPropertyName("timestamp")] public double Timestamp { get; private set; } } } namespace CefSharp.DevTools.Profiler { using System.Linq; /// /// Profiler /// public partial class ProfilerClient : DevToolsDomainBase { private CefSharp.DevTools.IDevToolsClient _client; /// /// Profiler /// /// DevToolsClient public ProfilerClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// ConsoleProfileFinished /// public event System.EventHandler ConsoleProfileFinished { add { _client.AddEventHandler("Profiler.consoleProfileFinished", value); } remove { _client.RemoveEventHandler("Profiler.consoleProfileFinished", value); } } /// /// Sent when new profile recording is started using console.profile() call. /// public event System.EventHandler ConsoleProfileStarted { add { _client.AddEventHandler("Profiler.consoleProfileStarted", value); } remove { _client.RemoveEventHandler("Profiler.consoleProfileStarted", value); } } /// /// Reports coverage delta since the last poll (either from an event like this, or from /// `takePreciseCoverage` for the current isolate. May only be sent if precise code /// coverage has been started. This event can be trigged by the embedder to, for example, /// trigger collection of coverage data immediately at a certain point in time. /// public event System.EventHandler PreciseCoverageDeltaUpdate { add { _client.AddEventHandler("Profiler.preciseCoverageDeltaUpdate", value); } remove { _client.RemoveEventHandler("Profiler.preciseCoverageDeltaUpdate", value); } } /// /// Disable /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Profiler.disable", dict); } /// /// Enable /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Profiler.enable", dict); } /// /// Collect coverage data for the current isolate. The coverage data may be incomplete due to /// garbage collection. /// /// returns System.Threading.Tasks.Task<GetBestEffortCoverageResponse> public System.Threading.Tasks.Task GetBestEffortCoverageAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Profiler.getBestEffortCoverage", dict); } 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 System.Threading.Tasks.Task SetSamplingIntervalAsync(int interval) { ValidateSetSamplingInterval(interval); var dict = new System.Collections.Generic.Dictionary(); dict.Add("interval", interval); return _client.ExecuteDevToolsMethodAsync("Profiler.setSamplingInterval", dict); } /// /// Start /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StartAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Profiler.start", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Profiler.startPreciseCoverage", dict); } /// /// Stop /// /// returns System.Threading.Tasks.Task<StopResponse> public System.Threading.Tasks.Task StopAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Profiler.stop", dict); } /// /// Disable precise code coverage. Disabling releases unnecessary execution count records and allows /// executing optimized code. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task StopPreciseCoverageAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Profiler.stopPreciseCoverage", dict); } /// /// 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 System.Threading.Tasks.Task TakePreciseCoverageAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Profiler.takePreciseCoverage", dict); } } } namespace CefSharp.DevTools.Runtime { /// /// AwaitPromiseResponse /// public class AwaitPromiseResponse : DevToolsDomainResponseBase { /// /// result /// [JsonInclude] [JsonPropertyName("result")] public CefSharp.DevTools.Runtime.RemoteObject Result { get; private set; } /// /// exceptionDetails /// [JsonInclude] [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; private set; } } } namespace CefSharp.DevTools.Runtime { /// /// CallFunctionOnResponse /// public class CallFunctionOnResponse : DevToolsDomainResponseBase { /// /// result /// [JsonInclude] [JsonPropertyName("result")] public CefSharp.DevTools.Runtime.RemoteObject Result { get; private set; } /// /// exceptionDetails /// [JsonInclude] [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; private set; } } } namespace CefSharp.DevTools.Runtime { /// /// CompileScriptResponse /// public class CompileScriptResponse : DevToolsDomainResponseBase { /// /// scriptId /// [JsonInclude] [JsonPropertyName("scriptId")] public string ScriptId { get; private set; } /// /// exceptionDetails /// [JsonInclude] [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; private set; } } } namespace CefSharp.DevTools.Runtime { /// /// EvaluateResponse /// public class EvaluateResponse : DevToolsDomainResponseBase { /// /// result /// [JsonInclude] [JsonPropertyName("result")] public CefSharp.DevTools.Runtime.RemoteObject Result { get; private set; } /// /// exceptionDetails /// [JsonInclude] [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; private set; } } } namespace CefSharp.DevTools.Runtime { /// /// GetIsolateIdResponse /// public class GetIsolateIdResponse : DevToolsDomainResponseBase { /// /// id /// [JsonInclude] [JsonPropertyName("id")] public string Id { get; private set; } } } namespace CefSharp.DevTools.Runtime { /// /// GetHeapUsageResponse /// public class GetHeapUsageResponse : DevToolsDomainResponseBase { /// /// usedSize /// [JsonInclude] [JsonPropertyName("usedSize")] public double UsedSize { get; private set; } /// /// totalSize /// [JsonInclude] [JsonPropertyName("totalSize")] public double TotalSize { get; private set; } /// /// embedderHeapUsedSize /// [JsonInclude] [JsonPropertyName("embedderHeapUsedSize")] public double EmbedderHeapUsedSize { get; private set; } /// /// backingStorageSize /// [JsonInclude] [JsonPropertyName("backingStorageSize")] public double BackingStorageSize { get; private set; } } } namespace CefSharp.DevTools.Runtime { /// /// GetPropertiesResponse /// public class GetPropertiesResponse : DevToolsDomainResponseBase { /// /// result /// [JsonInclude] [JsonPropertyName("result")] public System.Collections.Generic.IList Result { get; private set; } /// /// internalProperties /// [JsonInclude] [JsonPropertyName("internalProperties")] public System.Collections.Generic.IList InternalProperties { get; private set; } /// /// privateProperties /// [JsonInclude] [JsonPropertyName("privateProperties")] public System.Collections.Generic.IList PrivateProperties { get; private set; } /// /// exceptionDetails /// [JsonInclude] [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; private set; } } } namespace CefSharp.DevTools.Runtime { /// /// GlobalLexicalScopeNamesResponse /// public class GlobalLexicalScopeNamesResponse : DevToolsDomainResponseBase { /// /// names /// [JsonInclude] [JsonPropertyName("names")] public string[] Names { get; private set; } } } namespace CefSharp.DevTools.Runtime { /// /// QueryObjectsResponse /// public class QueryObjectsResponse : DevToolsDomainResponseBase { /// /// objects /// [JsonInclude] [JsonPropertyName("objects")] public CefSharp.DevTools.Runtime.RemoteObject Objects { get; private set; } } } namespace CefSharp.DevTools.Runtime { /// /// RunScriptResponse /// public class RunScriptResponse : DevToolsDomainResponseBase { /// /// result /// [JsonInclude] [JsonPropertyName("result")] public CefSharp.DevTools.Runtime.RemoteObject Result { get; private set; } /// /// exceptionDetails /// [JsonInclude] [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; private set; } } } namespace CefSharp.DevTools.Runtime { /// /// GetExceptionDetailsResponse /// public class GetExceptionDetailsResponse : DevToolsDomainResponseBase { /// /// exceptionDetails /// [JsonInclude] [JsonPropertyName("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; /// /// Runtime /// /// DevToolsClient public RuntimeClient(CefSharp.DevTools.IDevToolsClient client) { _client = (client); } /// /// Notification is issued every time when binding is called. /// public event System.EventHandler BindingCalled { add { _client.AddEventHandler("Runtime.bindingCalled", value); } remove { _client.RemoveEventHandler("Runtime.bindingCalled", value); } } /// /// Issued when console API was called. /// public event System.EventHandler ConsoleAPICalled { add { _client.AddEventHandler("Runtime.consoleAPICalled", value); } remove { _client.RemoveEventHandler("Runtime.consoleAPICalled", value); } } /// /// Issued when unhandled exception was revoked. /// public event System.EventHandler ExceptionRevoked { add { _client.AddEventHandler("Runtime.exceptionRevoked", value); } remove { _client.RemoveEventHandler("Runtime.exceptionRevoked", value); } } /// /// Issued when exception was thrown and unhandled. /// public event System.EventHandler ExceptionThrown { add { _client.AddEventHandler("Runtime.exceptionThrown", value); } remove { _client.RemoveEventHandler("Runtime.exceptionThrown", value); } } /// /// Issued when new execution context is created. /// public event System.EventHandler ExecutionContextCreated { add { _client.AddEventHandler("Runtime.executionContextCreated", value); } remove { _client.RemoveEventHandler("Runtime.executionContextCreated", value); } } /// /// Issued when execution context is destroyed. /// public event System.EventHandler ExecutionContextDestroyed { add { _client.AddEventHandler("Runtime.executionContextDestroyed", value); } remove { _client.RemoveEventHandler("Runtime.executionContextDestroyed", value); } } /// /// Issued when all executionContexts were cleared in browser /// public event System.EventHandler ExecutionContextsCleared { add { _client.AddEventHandler("Runtime.executionContextsCleared", value); } remove { _client.RemoveEventHandler("Runtime.executionContextsCleared", value); } } /// /// Issued when object should be inspected (for example, as a result of inspect() command line API /// call). /// public event System.EventHandler InspectRequested { add { _client.AddEventHandler("Runtime.inspectRequested", value); } remove { _client.RemoveEventHandler("Runtime.inspectRequested", value); } } 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 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); } return _client.ExecuteDevToolsMethodAsync("Runtime.awaitPromise", dict); } 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, bool? throwOnSideEffect = null, string uniqueContextId = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = 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 shouldbe specified. /// Call arguments. All call arguments must belong to the same JavaScript world as the targetobject. /// In silent mode exceptions thrown during evaluation are not reported and do not pauseexecution. Overrides `setPauseOnException` state. /// Whether the result is expected to be a JSON object which should be sent by value.Can be overriden by `serializationOptions`. /// Whether preview should be generated for the result. /// Whether execution should be treated as initiated by user in the UI. /// Whether execution should `await` for resulting value and return once awaited promise isresolved. /// Specifies execution context which global object will be used to call function on. EitherexecutionContextId or objectId should be specified. /// Symbolic group name that can be used to release multiple objects. If objectGroup is notspecified and objectId is, objectGroup will be inherited from object. /// Whether to throw an exception if side effect cannot be ruled out during evaluation. /// An alternative way to specify the execution context to call function on.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental function callin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `executionContextId`. /// Specifies the result serialization. If provided, overrides`generatePreview` and `returnByValue`. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> public 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, bool? throwOnSideEffect = null, string uniqueContextId = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, uniqueContextId, serializationOptions); 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); } if (throwOnSideEffect.HasValue) { dict.Add("throwOnSideEffect", throwOnSideEffect.Value); } if (!(string.IsNullOrEmpty(uniqueContextId))) { dict.Add("uniqueContextId", uniqueContextId); } if ((serializationOptions) != (null)) { dict.Add("serializationOptions", serializationOptions.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("Runtime.callFunctionOn", dict); } 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 theevaluation will be performed in the context of the inspected page. /// returns System.Threading.Tasks.Task<CompileScriptResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Runtime.compileScript", dict); } /// /// Disables reporting of execution contexts creation. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DisableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Runtime.disable", dict); } /// /// Discards collected exceptions and console API calls. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DiscardConsoleEntriesAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Runtime.discardConsoleEntries", dict); } /// /// 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 System.Threading.Tasks.Task EnableAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Runtime.enable", dict); } 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, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = 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 pauseexecution. Overrides `setPauseOnException` state. /// Specifies in which execution context to perform evaluation. If the parameter is omitted theevaluation will be performed in the context of the inspected page.This is mutually exclusive with `uniqueContextId`, which offers analternative way to identify the execution context that is more reliablein a multi-process environment. /// Whether the result is expected to be a JSON object that should be sent by value. /// Whether preview should be generated for the result. /// Whether execution should be treated as initiated by user in the UI. /// Whether execution should `await` for resulting value and return once awaited promise isresolved. /// Whether to throw an exception if side effect cannot be ruled out during evaluation.This implies `disableBreaks` below. /// Terminate execution after timing out (number of milliseconds). /// Disable breakpoints during execution. /// Setting this flag to true enables `let` re-declaration and top-level `await`.Note that `let` variables can only be re-declared if they originate from`replMode` themselves. /// The Content Security Policy (CSP) for the target might block 'unsafe-eval'which includes eval(), Function(), setTimeout() and setInterval()when called with non-callable arguments. This flag bypasses CSP for thisevaluation and allows unsafe-eval. Defaults to true. /// An alternative way to specify the execution context to evaluate in.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental evaluation of the expressionin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `contextId`. /// Specifies the result serialization. If provided, overrides`generatePreview` and `returnByValue`. /// returns System.Threading.Tasks.Task<EvaluateResponse> public 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, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId, serializationOptions); 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); } if (!(string.IsNullOrEmpty(uniqueContextId))) { dict.Add("uniqueContextId", uniqueContextId); } if ((serializationOptions) != (null)) { dict.Add("serializationOptions", serializationOptions.ToDictionary()); } return _client.ExecuteDevToolsMethodAsync("Runtime.evaluate", dict); } /// /// Returns the isolate id. /// /// returns System.Threading.Tasks.Task<GetIsolateIdResponse> public System.Threading.Tasks.Task GetIsolateIdAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Runtime.getIsolateId", dict); } /// /// 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 System.Threading.Tasks.Task GetHeapUsageAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Runtime.getHeapUsage", dict); } partial void ValidateGetProperties(string objectId, bool? ownProperties = null, bool? accessorPropertiesOnly = null, bool? generatePreview = null, bool? nonIndexedPropertiesOnly = 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 prototypechain. /// If true, returns accessor properties (with getter/setter) only; internal properties are notreturned either. /// Whether preview should be generated for the results. /// If true, returns non-indexed properties only. /// returns System.Threading.Tasks.Task<GetPropertiesResponse> public System.Threading.Tasks.Task GetPropertiesAsync(string objectId, bool? ownProperties = null, bool? accessorPropertiesOnly = null, bool? generatePreview = null, bool? nonIndexedPropertiesOnly = null) { ValidateGetProperties(objectId, ownProperties, accessorPropertiesOnly, generatePreview, nonIndexedPropertiesOnly); 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); } if (nonIndexedPropertiesOnly.HasValue) { dict.Add("nonIndexedPropertiesOnly", nonIndexedPropertiesOnly.Value); } return _client.ExecuteDevToolsMethodAsync("Runtime.getProperties", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Runtime.globalLexicalScopeNames", dict); } 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 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); } return _client.ExecuteDevToolsMethodAsync("Runtime.queryObjects", dict); } partial void ValidateReleaseObject(string objectId); /// /// Releases remote object with given id. /// /// Identifier of the object to release. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ReleaseObjectAsync(string objectId) { ValidateReleaseObject(objectId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("objectId", objectId); return _client.ExecuteDevToolsMethodAsync("Runtime.releaseObject", dict); } 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 System.Threading.Tasks.Task ReleaseObjectGroupAsync(string objectGroup) { ValidateReleaseObjectGroup(objectGroup); var dict = new System.Collections.Generic.Dictionary(); dict.Add("objectGroup", objectGroup); return _client.ExecuteDevToolsMethodAsync("Runtime.releaseObjectGroup", dict); } /// /// Tells inspected instance to run if it was waiting for debugger to attach. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task RunIfWaitingForDebuggerAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Runtime.runIfWaitingForDebugger", dict); } 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 theevaluation will be performed in the context of the inspected page. /// Symbolic group name that can be used to release multiple objects. /// In silent mode exceptions thrown during evaluation are not reported and do not pauseexecution. Overrides `setPauseOnException` state. /// Determines whether Command Line API should be available during the evaluation. /// Whether the result is expected to be a JSON object which should be sent by value. /// Whether preview should be generated for the result. /// Whether execution should `await` for resulting value and return once awaited promise isresolved. /// returns System.Threading.Tasks.Task<RunScriptResponse> public 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); } return _client.ExecuteDevToolsMethodAsync("Runtime.runScript", dict); } 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 asynccall stacks (default). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetAsyncCallStackDepthAsync(int maxDepth) { ValidateSetAsyncCallStackDepth(maxDepth); var dict = new System.Collections.Generic.Dictionary(); dict.Add("maxDepth", maxDepth); return _client.ExecuteDevToolsMethodAsync("Runtime.setAsyncCallStackDepth", dict); } partial void ValidateSetCustomObjectFormatterEnabled(bool enabled); /// /// SetCustomObjectFormatterEnabled /// /// enabled /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetCustomObjectFormatterEnabledAsync(bool enabled) { ValidateSetCustomObjectFormatterEnabled(enabled); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Runtime.setCustomObjectFormatterEnabled", dict); } partial void ValidateSetMaxCallStackSizeToCapture(int size); /// /// SetMaxCallStackSizeToCapture /// /// size /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetMaxCallStackSizeToCaptureAsync(int size) { ValidateSetMaxCallStackSizeToCapture(size); var dict = new System.Collections.Generic.Dictionary(); dict.Add("size", size); return _client.ExecuteDevToolsMethodAsync("Runtime.setMaxCallStackSizeToCapture", dict); } /// /// Terminate current or next JavaScript execution. /// Will cancel the termination when the outer-most script execution ends. /// /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task TerminateExecutionAsync() { System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Runtime.terminateExecution", dict); } partial void ValidateAddBinding(string name, int? executionContextId = null, string executionContextName = 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. /// 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 /// If specified, the binding would only be exposed to the specifiedexecution context. If omitted and `executionContextName` is not set,the binding is exposed to all execution contexts of the target.This parameter is mutually exclusive with `executionContextName`.Deprecated in favor of `executionContextName` due to an unclear use caseand bugs in implementation (crbug.com/1169639). `executionContextId` will beremoved in the future. /// If specified, the binding is exposed to the executionContext withmatching name, even for contexts created after the binding is added.See also `ExecutionContext.name` and `worldName` parameter to`Page.addScriptToEvaluateOnNewDocument`.This parameter is mutually exclusive with `executionContextId`. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task AddBindingAsync(string name, int? executionContextId = null, string executionContextName = null) { ValidateAddBinding(name, executionContextId, executionContextName); var dict = new System.Collections.Generic.Dictionary(); dict.Add("name", name); if (executionContextId.HasValue) { dict.Add("executionContextId", executionContextId.Value); } if (!(string.IsNullOrEmpty(executionContextName))) { dict.Add("executionContextName", executionContextName); } return _client.ExecuteDevToolsMethodAsync("Runtime.addBinding", dict); } 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 System.Threading.Tasks.Task RemoveBindingAsync(string name) { ValidateRemoveBinding(name); var dict = new System.Collections.Generic.Dictionary(); dict.Add("name", name); return _client.ExecuteDevToolsMethodAsync("Runtime.removeBinding", dict); } partial void ValidateGetExceptionDetails(string errorObjectId); /// /// This method tries to lookup and populate exception details for a /// JavaScript Error object. /// Note that the stackTrace portion of the resulting exceptionDetails will /// only be populated if the Runtime domain was enabled at the time when the /// Error was thrown. /// /// The error object for which to resolve the exception details. /// returns System.Threading.Tasks.Task<GetExceptionDetailsResponse> public System.Threading.Tasks.Task GetExceptionDetailsAsync(string errorObjectId) { ValidateGetExceptionDetails(errorObjectId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("errorObjectId", errorObjectId); return _client.ExecuteDevToolsMethodAsync("Runtime.getExceptionDetails", dict); } } } namespace CefSharp.DevTools { /// /// Generated DevToolsClient methods /// public partial class DevToolsClient { private CefSharp.DevTools.Accessibility.AccessibilityClient _Accessibility; /// /// 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; /// /// Animation /// public CefSharp.DevTools.Animation.AnimationClient Animation { get { if ((_Animation) == (null)) { _Animation = (new CefSharp.DevTools.Animation.AnimationClient(this)); } return _Animation; } } private CefSharp.DevTools.Audits.AuditsClient _Audits; /// /// Audits domain allows investigation of page violations and possible improvements. /// public CefSharp.DevTools.Audits.AuditsClient Audits { get { if ((_Audits) == (null)) { _Audits = (new CefSharp.DevTools.Audits.AuditsClient(this)); } return _Audits; } } private CefSharp.DevTools.Autofill.AutofillClient _Autofill; /// /// Defines commands and events for Autofill. /// public CefSharp.DevTools.Autofill.AutofillClient Autofill { get { if ((_Autofill) == (null)) { _Autofill = (new CefSharp.DevTools.Autofill.AutofillClient(this)); } return _Autofill; } } private CefSharp.DevTools.BackgroundService.BackgroundServiceClient _BackgroundService; /// /// Defines events for background web platform features. /// public CefSharp.DevTools.BackgroundService.BackgroundServiceClient BackgroundService { get { if ((_BackgroundService) == (null)) { _BackgroundService = (new CefSharp.DevTools.BackgroundService.BackgroundServiceClient(this)); } return _BackgroundService; } } private CefSharp.DevTools.BluetoothEmulation.BluetoothEmulationClient _BluetoothEmulation; /// /// This domain allows configuring virtual Bluetooth devices to test /// the web-bluetooth API. /// public CefSharp.DevTools.BluetoothEmulation.BluetoothEmulationClient BluetoothEmulation { get { if ((_BluetoothEmulation) == (null)) { _BluetoothEmulation = (new CefSharp.DevTools.BluetoothEmulation.BluetoothEmulationClient(this)); } return _BluetoothEmulation; } } private CefSharp.DevTools.Browser.BrowserClient _Browser; /// /// The Browser domain defines methods and events for browser managing. /// 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; /// /// 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 CefSharp.DevTools.CSS.CSSClient CSS { get { if ((_CSS) == (null)) { _CSS = (new CefSharp.DevTools.CSS.CSSClient(this)); } return _CSS; } } private CefSharp.DevTools.CacheStorage.CacheStorageClient _CacheStorage; /// /// 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; /// /// A domain for interacting with Cast, Presentation API, and Remote Playback API /// functionalities. /// 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; /// /// 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. Note that `iframe` owner elements will return /// corresponding document elements as their child nodes. /// 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; /// /// 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 CefSharp.DevTools.DOMDebugger.DOMDebuggerClient DOMDebugger { get { if ((_DOMDebugger) == (null)) { _DOMDebugger = (new CefSharp.DevTools.DOMDebugger.DOMDebuggerClient(this)); } return _DOMDebugger; } } private CefSharp.DevTools.DOMSnapshot.DOMSnapshotClient _DOMSnapshot; /// /// This domain facilitates obtaining document snapshots with DOM, layout, and style information. /// 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; /// /// Query and modify DOM storage. /// public CefSharp.DevTools.DOMStorage.DOMStorageClient DOMStorage { get { if ((_DOMStorage) == (null)) { _DOMStorage = (new CefSharp.DevTools.DOMStorage.DOMStorageClient(this)); } return _DOMStorage; } } private CefSharp.DevTools.DeviceAccess.DeviceAccessClient _DeviceAccess; /// /// DeviceAccess /// public CefSharp.DevTools.DeviceAccess.DeviceAccessClient DeviceAccess { get { if ((_DeviceAccess) == (null)) { _DeviceAccess = (new CefSharp.DevTools.DeviceAccess.DeviceAccessClient(this)); } return _DeviceAccess; } } private CefSharp.DevTools.DeviceOrientation.DeviceOrientationClient _DeviceOrientation; /// /// 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; /// /// This domain emulates different environments for the page. /// public CefSharp.DevTools.Emulation.EmulationClient Emulation { get { if ((_Emulation) == (null)) { _Emulation = (new CefSharp.DevTools.Emulation.EmulationClient(this)); } return _Emulation; } } private CefSharp.DevTools.EventBreakpoints.EventBreakpointsClient _EventBreakpoints; /// /// EventBreakpoints permits setting JavaScript breakpoints on operations and events /// occurring in native code invoked from JavaScript. Once breakpoint is hit, it is /// reported through Debugger domain, similarly to regular breakpoints being hit. /// public CefSharp.DevTools.EventBreakpoints.EventBreakpointsClient EventBreakpoints { get { if ((_EventBreakpoints) == (null)) { _EventBreakpoints = (new CefSharp.DevTools.EventBreakpoints.EventBreakpointsClient(this)); } return _EventBreakpoints; } } private CefSharp.DevTools.Extensions.ExtensionsClient _Extensions; /// /// Defines commands and events for browser extensions. /// public CefSharp.DevTools.Extensions.ExtensionsClient Extensions { get { if ((_Extensions) == (null)) { _Extensions = (new CefSharp.DevTools.Extensions.ExtensionsClient(this)); } return _Extensions; } } private CefSharp.DevTools.FedCm.FedCmClient _FedCm; /// /// This domain allows interacting with the FedCM dialog. /// public CefSharp.DevTools.FedCm.FedCmClient FedCm { get { if ((_FedCm) == (null)) { _FedCm = (new CefSharp.DevTools.FedCm.FedCmClient(this)); } return _FedCm; } } private CefSharp.DevTools.Fetch.FetchClient _Fetch; /// /// A domain for letting clients substitute browser's network layer with client code. /// public CefSharp.DevTools.Fetch.FetchClient Fetch { get { if ((_Fetch) == (null)) { _Fetch = (new CefSharp.DevTools.Fetch.FetchClient(this)); } return _Fetch; } } private CefSharp.DevTools.FileSystem.FileSystemClient _FileSystem; /// /// FileSystem /// public CefSharp.DevTools.FileSystem.FileSystemClient FileSystem { get { if ((_FileSystem) == (null)) { _FileSystem = (new CefSharp.DevTools.FileSystem.FileSystemClient(this)); } return _FileSystem; } } private CefSharp.DevTools.HeadlessExperimental.HeadlessExperimentalClient _HeadlessExperimental; /// /// This domain provides experimental commands only supported in headless mode. /// 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; /// /// Input/Output operations for streams produced by DevTools. /// 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; /// /// 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; /// /// 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; /// /// 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; /// /// 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; /// /// Provides access to log entries. /// public CefSharp.DevTools.Log.LogClient Log { get { if ((_Log) == (null)) { _Log = (new CefSharp.DevTools.Log.LogClient(this)); } return _Log; } } private CefSharp.DevTools.Media.MediaClient _Media; /// /// This domain allows detailed inspection of media elements. /// public CefSharp.DevTools.Media.MediaClient Media { get { if ((_Media) == (null)) { _Media = (new CefSharp.DevTools.Media.MediaClient(this)); } return _Media; } } private CefSharp.DevTools.Memory.MemoryClient _Memory; /// /// 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; /// /// 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 CefSharp.DevTools.Network.NetworkClient Network { get { if ((_Network) == (null)) { _Network = (new CefSharp.DevTools.Network.NetworkClient(this)); } return _Network; } } private CefSharp.DevTools.Overlay.OverlayClient _Overlay; /// /// This domain provides various functionality related to drawing atop the inspected page. /// public CefSharp.DevTools.Overlay.OverlayClient Overlay { get { if ((_Overlay) == (null)) { _Overlay = (new CefSharp.DevTools.Overlay.OverlayClient(this)); } return _Overlay; } } private CefSharp.DevTools.PWA.PWAClient _PWA; /// /// This domain allows interacting with the browser to control PWAs. /// public CefSharp.DevTools.PWA.PWAClient PWA { get { if ((_PWA) == (null)) { _PWA = (new CefSharp.DevTools.PWA.PWAClient(this)); } return _PWA; } } private CefSharp.DevTools.Page.PageClient _Page; /// /// Actions and events related to the inspected page belong to the page domain. /// 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; /// /// Performance /// public CefSharp.DevTools.Performance.PerformanceClient Performance { get { if ((_Performance) == (null)) { _Performance = (new CefSharp.DevTools.Performance.PerformanceClient(this)); } return _Performance; } } private CefSharp.DevTools.PerformanceTimeline.PerformanceTimelineClient _PerformanceTimeline; /// /// Reporting of performance timeline events, as specified in /// https://w3c.github.io/performance-timeline/#dom-performanceobserver. /// public CefSharp.DevTools.PerformanceTimeline.PerformanceTimelineClient PerformanceTimeline { get { if ((_PerformanceTimeline) == (null)) { _PerformanceTimeline = (new CefSharp.DevTools.PerformanceTimeline.PerformanceTimelineClient(this)); } return _PerformanceTimeline; } } private CefSharp.DevTools.Preload.PreloadClient _Preload; /// /// Preload /// public CefSharp.DevTools.Preload.PreloadClient Preload { get { if ((_Preload) == (null)) { _Preload = (new CefSharp.DevTools.Preload.PreloadClient(this)); } return _Preload; } } private CefSharp.DevTools.Security.SecurityClient _Security; /// /// 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; /// /// 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; /// /// 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; /// /// The SystemInfo domain defines methods and events for querying low-level system information. /// 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; /// /// Supports additional targets discovery and allows to attach to them. /// 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; /// /// The Tethering domain defines methods and events for browser port binding. /// 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; /// /// Tracing /// public CefSharp.DevTools.Tracing.TracingClient Tracing { get { if ((_Tracing) == (null)) { _Tracing = (new CefSharp.DevTools.Tracing.TracingClient(this)); } return _Tracing; } } private CefSharp.DevTools.WebAudio.WebAudioClient _WebAudio; /// /// This domain allows inspection of Web Audio API. /// https://webaudio.github.io/web-audio-api/ /// 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; /// /// This domain allows configuring virtual authenticators to test the WebAuthn /// API. /// public CefSharp.DevTools.WebAuthn.WebAuthnClient WebAuthn { get { if ((_WebAuthn) == (null)) { _WebAuthn = (new CefSharp.DevTools.WebAuthn.WebAuthnClient(this)); } return _WebAuthn; } } private CefSharp.DevTools.Debugger.DebuggerClient _Debugger; /// /// Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing /// breakpoints, stepping through execution, exploring stack traces, etc. /// 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; /// /// 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; /// /// 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; /// /// 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 CefSharp.DevTools.Runtime.RuntimeClient Runtime { get { if ((_Runtime) == (null)) { _Runtime = (new CefSharp.DevTools.Runtime.RuntimeClient(this)); } return _Runtime; } } } }