From b8896da54ddaee97387989ffca3cf26b2e156bf7 Mon Sep 17 00:00:00 2001 From: campersau Date: Mon, 5 Jul 2021 02:32:22 +0200 Subject: [PATCH] DevTools - Support strongly typed events (#3669) Includes various other DevTools fixes: - JavaScript "number"s are represented as doubles instead of longs - Headers are now correctly serialized / deserialized - DevToolsDomainErrorResponse is now correctly deserialized --- CefSharp.Test/CefSharp.Test.csproj | 1 + CefSharp.Test/DevTools/DevToolsClientFacts.cs | 66 + CefSharp.Test/DevTools/HeadersFacts.cs | 111 + CefSharp/CefSharp.csproj | 1 + CefSharp/DevTools/DevToolsClient.Generated.cs | 12148 +++++++++++++-- .../DevToolsClient.Generated.netcore.cs | 12313 ++++++++++++++-- CefSharp/DevTools/DevToolsClient.cs | 4 +- .../DevTools/DevToolsDomainErrorResponse.cs | 1 + .../DevTools/DevToolsDomainEventArgsBase.cs | 25 + CefSharp/DevTools/DevToolsEventArgs.cs | 32 +- CefSharp/DevTools/DevToolsMethodResponse.cs | 9 +- CefSharp/DevTools/Headers.cs | 152 +- CefSharp/DevTools/IDevToolsClient.cs | 6 + 13 files changed, 22582 insertions(+), 2287 deletions(-) create mode 100644 CefSharp.Test/DevTools/HeadersFacts.cs create mode 100644 CefSharp/DevTools/DevToolsDomainEventArgsBase.cs diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index ea9295387..9d04f03ad 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -151,6 +151,7 @@ + diff --git a/CefSharp.Test/DevTools/DevToolsClientFacts.cs b/CefSharp.Test/DevTools/DevToolsClientFacts.cs index 3f3e6d86c..e6f9d95a3 100644 --- a/CefSharp.Test/DevTools/DevToolsClientFacts.cs +++ b/CefSharp.Test/DevTools/DevToolsClientFacts.cs @@ -248,5 +248,71 @@ namespace CefSharp.Test.DevTools Assert.Equal("89.0.4389.114", highEntropyValuesResult.uaFullVersion); } } + + [Fact] + public async Task CanSetExtraHTTPHeaders() + { + using (var browser = new ChromiumWebBrowser("about:blank", automaticallyCreateBrowser: false)) + { + await browser.CreateBrowserAsync(); + + RequestWillBeSentEventArgs requestWillBeSentEventArgs = null; + using (var devToolsClient = browser.GetDevToolsClient()) + { + var extraHeaders = new Headers(); + extraHeaders.SetCommaSeparatedValues("TEST", "0"); + extraHeaders.AppendCommaSeparatedValues("test", " 1 ", "\" 2 \""); + extraHeaders.AppendCommaSeparatedValues("Test", " 2,5 "); + + await devToolsClient.Network.SetExtraHTTPHeadersAsync(extraHeaders); + + devToolsClient.Network.RequestWillBeSent += (sender, args) => + { + if (requestWillBeSentEventArgs == null) + { + requestWillBeSentEventArgs = args; + } + }; + + // enable events + await devToolsClient.Network.EnableAsync(); + + await browser.LoadUrlAsync("www.google.com"); + } + + Assert.NotNull(requestWillBeSentEventArgs); + Assert.NotEmpty(requestWillBeSentEventArgs.RequestId); + Assert.NotEqual(0, requestWillBeSentEventArgs.Timestamp); + Assert.NotEqual(0, requestWillBeSentEventArgs.WallTime); + Assert.NotNull(requestWillBeSentEventArgs.Request); + Assert.True(requestWillBeSentEventArgs.Request.Headers.TryGetValues("TeSt", out var values)); + Assert.Collection(values, + v => Assert.Equal("0", v), + v => Assert.Equal("1", v), + v => Assert.Equal(" 2 ", v), + v => Assert.Equal(" 2,5 ", v) + ); + } + } + + [Fact] + public async Task ExecuteDevToolsMethodThrowsExceptionWithInvalidMethod() + { + using (var browser = new ChromiumWebBrowser("www.google.com")) + { + await browser.LoadUrlAsync(); + + using (var devToolsClient = browser.GetDevToolsClient()) + { + var ex = await Assert.ThrowsAsync( + () => devToolsClient.ExecuteDevToolsMethodAsync("methoddoesnotexist")); + + Assert.NotNull(ex.Response); + Assert.NotEqual(0, ex.Response.MessageId); + Assert.NotEqual(0, ex.Response.Code); + Assert.NotNull(ex.Response.Message); + } + } + } } } diff --git a/CefSharp.Test/DevTools/HeadersFacts.cs b/CefSharp.Test/DevTools/HeadersFacts.cs new file mode 100644 index 000000000..75fb30a0c --- /dev/null +++ b/CefSharp.Test/DevTools/HeadersFacts.cs @@ -0,0 +1,111 @@ +// Copyright © 2021 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using CefSharp.DevTools.Network; +using Xunit; + +namespace CefSharp.Test.DevTools +{ + public class HeadersFacts + { + [Fact] + public void HeadersTryGetValues() + { + var headers = new Headers(); + headers["EMPTY"] = " "; + headers["SIMPLE"] = " 1 "; + headers["MULTIPLE"] = " 1 , \" 1,5 \",2, \" 2 , 5 \" , 3 , ,"; + + string[] values; + + Assert.False(headers.TryGetValues("doesnotexist", out values)); + Assert.Null(values); + + Assert.True(headers.TryGetValues("EMPTY", out values)); + Assert.Collection(values, + v => Assert.Equal("", v) + ); + + Assert.True(headers.TryGetValues("SIMPLE", out values)); + Assert.Collection(values, + v => Assert.Equal("1", v) + ); + + Assert.True(headers.TryGetValues("MULTIPLE", out values)); + Assert.Collection(values, + v => Assert.Equal("1", v), + v => Assert.Equal(" 1,5 ", v), + v => Assert.Equal("2", v), + v => Assert.Equal(" 2 , 5 ", v), + v => Assert.Equal("3", v), + v => Assert.Equal("", v), + v => Assert.Equal("", v) + ); + } + + [Fact] + public void HeadersGetCommaSeparatedValues() + { + var headers = new Headers(); + headers["EMPTY"] = " "; + headers["SIMPLE"] = " 1 "; + headers["MULTIPLE"] = " 1 , \" 1,5 \",2, \" 2 , 5 \" , 3 , ,"; + + Assert.Null(headers.GetCommaSeparatedValues("doesnotexist")); + Assert.Collection(headers.GetCommaSeparatedValues("EMPTY"), + v => Assert.Equal("", v) + ); + Assert.Collection(headers.GetCommaSeparatedValues("SIMPLE"), + v => Assert.Equal("1", v) + ); + Assert.Collection(headers.GetCommaSeparatedValues("MULTIPLE"), + v => Assert.Equal("1", v), + v => Assert.Equal(" 1,5 ", v), + v => Assert.Equal("2", v), + v => Assert.Equal(" 2 , 5 ", v), + v => Assert.Equal("3", v), + v => Assert.Equal("", v), + v => Assert.Equal("", v) + ); + } + + [Fact] + public void HeadersAppendCommaSeparatedValues() + { + var headers = new Headers(); + headers.AppendCommaSeparatedValues("TEST", " 1 "); + + headers.AppendCommaSeparatedValues("test", "\" 1,5 \"", "2", " 2 , 5 ", "3", " ", ""); + + Assert.Collection(headers.GetCommaSeparatedValues("Test"), + v => Assert.Equal("1", v), + v => Assert.Equal(" 1,5 ", v), + v => Assert.Equal("2", v), + v => Assert.Equal(" 2 , 5 ", v), + v => Assert.Equal("3", v), + v => Assert.Equal("", v), + v => Assert.Equal("", v) + ); + } + + [Fact] + public void HeadersSetCommaSeparatedValues() + { + var headers = new Headers(); + headers["TEST"] = " 1 "; + + headers.SetCommaSeparatedValues("test", "\" 1,5 \"", "2", " 2 , 5 ", "3", " ", ""); + + Assert.Collection(headers.GetCommaSeparatedValues("Test"), + v => Assert.Equal(" 1,5 ", v), + v => Assert.Equal("2", v), + v => Assert.Equal(" 2 , 5 ", v), + v => Assert.Equal("3", v), + v => Assert.Equal("", v), + v => Assert.Equal("", v) + ); + } + + } +} diff --git a/CefSharp/CefSharp.csproj b/CefSharp/CefSharp.csproj index 28282e22e..138c24cbf 100644 --- a/CefSharp/CefSharp.csproj +++ b/CefSharp/CefSharp.csproj @@ -95,6 +95,7 @@ + diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index e6437e124..f191adca5 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 91.0.4472.77 +// CHROMIUM VERSION 91.0.4472.114 namespace CefSharp.DevTools.Accessibility { /// @@ -97,10 +97,7 @@ namespace CefSharp.DevTools.Accessibility [System.Runtime.Serialization.EnumMemberAttribute(Value = ("valueUndefined"))] ValueUndefined } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// Enum of possible property sources. /// @@ -137,10 +134,7 @@ namespace CefSharp.DevTools.Accessibility [System.Runtime.Serialization.EnumMemberAttribute(Value = ("relatedElement"))] RelatedElement } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// Enum of possible native property sources (as a subtype of a particular AXValueSourceType). /// @@ -192,10 +186,7 @@ namespace CefSharp.DevTools.Accessibility [System.Runtime.Serialization.EnumMemberAttribute(Value = ("other"))] Other } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// A single source for a computed AX property. /// @@ -318,10 +309,7 @@ namespace CefSharp.DevTools.Accessibility set; } } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// AXRelatedNode /// @@ -358,10 +346,7 @@ namespace CefSharp.DevTools.Accessibility set; } } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// AXProperty /// @@ -401,10 +386,7 @@ namespace CefSharp.DevTools.Accessibility set; } } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// A single computed AX property. /// @@ -464,10 +446,7 @@ namespace CefSharp.DevTools.Accessibility set; } } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// Values of AXProperty name: /// - from 'busy' to 'roledescription': states which apply to every AX node @@ -674,10 +653,7 @@ namespace CefSharp.DevTools.Accessibility [System.Runtime.Serialization.EnumMemberAttribute(Value = ("owns"))] Owns } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// A node in the accessibility tree. /// @@ -838,7 +814,7 @@ namespace CefSharp.DevTools.Animation /// `Animation`'s playback rate. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("playbackRate"), IsRequired = (true))] - public long PlaybackRate + public double PlaybackRate { get; set; @@ -848,7 +824,7 @@ namespace CefSharp.DevTools.Animation /// `Animation`'s start time. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("startTime"), IsRequired = (true))] - public long StartTime + public double StartTime { get; set; @@ -858,7 +834,7 @@ namespace CefSharp.DevTools.Animation /// `Animation`'s current time. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("currentTime"), IsRequired = (true))] - public long CurrentTime + public double CurrentTime { get; set; @@ -895,10 +871,7 @@ namespace CefSharp.DevTools.Animation set; } } -} -namespace CefSharp.DevTools.Animation -{ /// /// AnimationEffect instance /// @@ -909,7 +882,7 @@ namespace CefSharp.DevTools.Animation /// `AnimationEffect`'s delay. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("delay"), IsRequired = (true))] - public long Delay + public double Delay { get; set; @@ -919,7 +892,7 @@ namespace CefSharp.DevTools.Animation /// `AnimationEffect`'s end delay. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("endDelay"), IsRequired = (true))] - public long EndDelay + public double EndDelay { get; set; @@ -929,7 +902,7 @@ namespace CefSharp.DevTools.Animation /// `AnimationEffect`'s iteration start. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("iterationStart"), IsRequired = (true))] - public long IterationStart + public double IterationStart { get; set; @@ -939,7 +912,7 @@ namespace CefSharp.DevTools.Animation /// `AnimationEffect`'s iterations. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("iterations"), IsRequired = (true))] - public long Iterations + public double Iterations { get; set; @@ -949,7 +922,7 @@ namespace CefSharp.DevTools.Animation /// `AnimationEffect`'s iteration duration. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("duration"), IsRequired = (true))] - public long Duration + public double Duration { get; set; @@ -1005,10 +978,7 @@ namespace CefSharp.DevTools.Animation set; } } -} -namespace CefSharp.DevTools.Animation -{ /// /// Keyframes Rule /// @@ -1035,10 +1005,7 @@ namespace CefSharp.DevTools.Animation set; } } -} -namespace CefSharp.DevTools.Animation -{ /// /// Keyframe Style /// @@ -1065,6 +1032,57 @@ namespace CefSharp.DevTools.Animation set; } } + + /// + /// Event for when an animation has been cancelled. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AnimationCanceledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the animation that was cancelled. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + public string Id + { + get; + private set; + } + } + + /// + /// Event for each animation that has been created. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AnimationCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the animation that was created. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + public string Id + { + get; + private set; + } + } + + /// + /// Event for animation that has been started. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AnimationStartedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Animation that was started. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("animation"), IsRequired = (true))] + public CefSharp.DevTools.Animation.Animation Animation + { + get; + private set; + } + } } namespace CefSharp.DevTools.ApplicationCache @@ -1105,10 +1123,7 @@ namespace CefSharp.DevTools.ApplicationCache set; } } -} -namespace CefSharp.DevTools.ApplicationCache -{ /// /// Detailed application cache information. /// @@ -1129,7 +1144,7 @@ namespace CefSharp.DevTools.ApplicationCache /// Application cache size. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("size"), IsRequired = (true))] - public long Size + public double Size { get; set; @@ -1139,7 +1154,7 @@ namespace CefSharp.DevTools.ApplicationCache /// Application cache creation time. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("creationTime"), IsRequired = (true))] - public long CreationTime + public double CreationTime { get; set; @@ -1149,7 +1164,7 @@ namespace CefSharp.DevTools.ApplicationCache /// Application cache update time. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("updateTime"), IsRequired = (true))] - public long UpdateTime + public double UpdateTime { get; set; @@ -1165,10 +1180,7 @@ namespace CefSharp.DevTools.ApplicationCache set; } } -} -namespace CefSharp.DevTools.ApplicationCache -{ /// /// Frame identifier - manifest URL pair. /// @@ -1205,6 +1217,60 @@ namespace CefSharp.DevTools.ApplicationCache set; } } + + /// + /// applicationCacheStatusUpdated + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ApplicationCacheStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier of the frame containing document whose application cache updated status. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + /// + /// Manifest URL. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("manifestURL"), IsRequired = (true))] + public string ManifestURL + { + get; + private set; + } + + /// + /// Updated application cache status. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("status"), IsRequired = (true))] + public int Status + { + get; + private set; + } + } + + /// + /// networkStateUpdated + /// + [System.Runtime.Serialization.DataContractAttribute] + public class NetworkStateUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// IsNowOnline + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("isNowOnline"), IsRequired = (true))] + public bool IsNowOnline + { + get; + private set; + } + } } namespace CefSharp.DevTools.Audits @@ -1245,10 +1311,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// Information about a request that is affected by an inspector issue. /// @@ -1275,10 +1338,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// Information about the frame affected by an inspector issue. /// @@ -1295,10 +1355,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// SameSiteCookieExclusionReason /// @@ -1325,10 +1382,7 @@ namespace CefSharp.DevTools.Audits [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeSameSiteStrict"))] ExcludeSameSiteStrict } -} -namespace CefSharp.DevTools.Audits -{ /// /// SameSiteCookieWarningReason /// @@ -1375,10 +1429,7 @@ namespace CefSharp.DevTools.Audits [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnSameSiteLaxCrossDowngradeLax"))] WarnSameSiteLaxCrossDowngradeLax } -} -namespace CefSharp.DevTools.Audits -{ /// /// SameSiteCookieOperation /// @@ -1395,10 +1446,7 @@ namespace CefSharp.DevTools.Audits [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ReadCookie"))] ReadCookie } -} -namespace CefSharp.DevTools.Audits -{ /// /// This information is currently necessary, as the front-end has a difficult /// time finding a specific cookie. With this, we can convey specific error @@ -1517,10 +1565,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// MixedContentResolutionStatus /// @@ -1542,10 +1587,7 @@ namespace CefSharp.DevTools.Audits [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MixedContentWarning"))] MixedContentWarning } -} -namespace CefSharp.DevTools.Audits -{ /// /// MixedContentResourceType /// @@ -1682,10 +1724,7 @@ namespace CefSharp.DevTools.Audits [System.Runtime.Serialization.EnumMemberAttribute(Value = ("XSLT"))] XSLT } -} -namespace CefSharp.DevTools.Audits -{ /// /// MixedContentIssueDetails /// @@ -1782,10 +1821,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// Enum indicating the reason a response has been blocked. These reasons are /// refinements of the net error BLOCKED_BY_RESPONSE. @@ -1818,10 +1854,7 @@ namespace CefSharp.DevTools.Audits [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CorpNotSameSite"))] CorpNotSameSite } -} -namespace CefSharp.DevTools.Audits -{ /// /// Details for a request that has been blocked with the BLOCKED_BY_RESPONSE /// code. Currently only used for COEP/COOP, but may be extended to include @@ -1883,10 +1916,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// HeavyAdResolutionStatus /// @@ -1903,10 +1933,7 @@ namespace CefSharp.DevTools.Audits [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HeavyAdWarning"))] HeavyAdWarning } -} -namespace CefSharp.DevTools.Audits -{ /// /// HeavyAdReason /// @@ -1928,10 +1955,7 @@ namespace CefSharp.DevTools.Audits [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CpuPeakLimit"))] CpuPeakLimit } -} -namespace CefSharp.DevTools.Audits -{ /// /// HeavyAdIssueDetails /// @@ -1994,10 +2018,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// ContentSecurityPolicyViolationType /// @@ -2029,10 +2050,7 @@ namespace CefSharp.DevTools.Audits [System.Runtime.Serialization.EnumMemberAttribute(Value = ("kTrustedTypesPolicyViolation"))] KTrustedTypesPolicyViolation } -} -namespace CefSharp.DevTools.Audits -{ /// /// SourceCodeLocation /// @@ -2079,10 +2097,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// ContentSecurityPolicyIssueDetails /// @@ -2172,10 +2187,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// SharedArrayBufferIssueType /// @@ -2192,10 +2204,7 @@ namespace CefSharp.DevTools.Audits [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CreationIssue"))] CreationIssue } -} -namespace CefSharp.DevTools.Audits -{ /// /// Details for a issue arising from an SAB being instantiated in, or /// transfered to a context that is not cross-origin isolated. @@ -2246,10 +2255,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// TwaQualityEnforcementViolationType /// @@ -2271,10 +2277,7 @@ namespace CefSharp.DevTools.Audits [System.Runtime.Serialization.EnumMemberAttribute(Value = ("kDigitalAssetLinks"))] KDigitalAssetLinks } -} -namespace CefSharp.DevTools.Audits -{ /// /// TrustedWebActivityIssueDetails /// @@ -2346,10 +2349,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// LowTextContrastIssueDetails /// @@ -2380,7 +2380,7 @@ namespace CefSharp.DevTools.Audits /// ContrastRatio /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("contrastRatio"), IsRequired = (true))] - public long ContrastRatio + public double ContrastRatio { get; set; @@ -2390,7 +2390,7 @@ namespace CefSharp.DevTools.Audits /// ThresholdAA /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("thresholdAA"), IsRequired = (true))] - public long ThresholdAA + public double ThresholdAA { get; set; @@ -2400,7 +2400,7 @@ namespace CefSharp.DevTools.Audits /// ThresholdAAA /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("thresholdAAA"), IsRequired = (true))] - public long ThresholdAAA + public double ThresholdAAA { get; set; @@ -2426,10 +2426,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// Details for a CORS related issue, e.g. a warning or error related to /// CORS RFC1918 enforcement. @@ -2510,10 +2507,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// A unique identifier for the type of issue. Each type may use one of the /// optional fields in InspectorIssueDetails to convey more specific @@ -2567,10 +2561,7 @@ namespace CefSharp.DevTools.Audits [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CorsIssue"))] CorsIssue } -} -namespace CefSharp.DevTools.Audits -{ /// /// This struct holds a list of optional fields with additional information /// specific to the kind of issue. When adding a new issue code, please also @@ -2669,10 +2660,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// An inspector issue reported from the back-end. /// @@ -2712,6 +2700,23 @@ namespace CefSharp.DevTools.Audits set; } } + + /// + /// issueAdded + /// + [System.Runtime.Serialization.DataContractAttribute] + public class IssueAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Issue + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("issue"), IsRequired = (true))] + public CefSharp.DevTools.Audits.InspectorIssue Issue + { + get; + private set; + } + } } namespace CefSharp.DevTools.BackgroundService @@ -2754,10 +2759,7 @@ namespace CefSharp.DevTools.BackgroundService [System.Runtime.Serialization.EnumMemberAttribute(Value = ("periodicBackgroundSync"))] PeriodicBackgroundSync } -} -namespace CefSharp.DevTools.BackgroundService -{ /// /// A key-value pair for additional event information to pass along. /// @@ -2784,10 +2786,7 @@ namespace CefSharp.DevTools.BackgroundService set; } } -} -namespace CefSharp.DevTools.BackgroundService -{ /// /// BackgroundServiceEvent /// @@ -2798,7 +2797,7 @@ namespace CefSharp.DevTools.BackgroundService /// Timestamp of the event (in seconds). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] - public long Timestamp + public double Timestamp { get; set; @@ -2877,6 +2876,64 @@ namespace CefSharp.DevTools.BackgroundService set; } } + + /// + /// Called when the recording state for the service has been updated. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class RecordingStateChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// IsRecording + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("isRecording"), IsRequired = (true))] + public bool IsRecording + { + get; + private set; + } + + public CefSharp.DevTools.BackgroundService.ServiceName Service + { + get + { + return (CefSharp.DevTools.BackgroundService.ServiceName)(StringToEnum(typeof(CefSharp.DevTools.BackgroundService.ServiceName), service)); + } + + set + { + this.service = (EnumToString(value)); + } + } + + /// + /// Service + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("service"), IsRequired = (true))] + internal string service + { + get; + private set; + } + } + + /// + /// Called with all existing backgroundServiceEvents when enabled, and all new + /// events afterwards if enabled and recording. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class BackgroundServiceEventReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// BackgroundServiceEvent + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("backgroundServiceEvent"), IsRequired = (true))] + public CefSharp.DevTools.BackgroundService.BackgroundServiceEvent BackgroundServiceEvent + { + get; + private set; + } + } } namespace CefSharp.DevTools.Browser @@ -2907,10 +2964,7 @@ namespace CefSharp.DevTools.Browser [System.Runtime.Serialization.EnumMemberAttribute(Value = ("fullscreen"))] Fullscreen } -} -namespace CefSharp.DevTools.Browser -{ /// /// Browser window bounds information /// @@ -2980,10 +3034,7 @@ namespace CefSharp.DevTools.Browser set; } } -} -namespace CefSharp.DevTools.Browser -{ /// /// PermissionType /// @@ -3105,10 +3156,7 @@ namespace CefSharp.DevTools.Browser [System.Runtime.Serialization.EnumMemberAttribute(Value = ("wakeLockSystem"))] WakeLockSystem } -} -namespace CefSharp.DevTools.Browser -{ /// /// PermissionSetting /// @@ -3130,10 +3178,7 @@ namespace CefSharp.DevTools.Browser [System.Runtime.Serialization.EnumMemberAttribute(Value = ("prompt"))] Prompt } -} -namespace CefSharp.DevTools.Browser -{ /// /// Definition of PermissionDescriptor defined in the Permissions API: /// https://w3c.github.io/permissions/#dictdef-permissiondescriptor. @@ -3193,10 +3238,7 @@ namespace CefSharp.DevTools.Browser set; } } -} -namespace CefSharp.DevTools.Browser -{ /// /// Browser command ids used by executeBrowserCommand. /// @@ -3213,10 +3255,7 @@ namespace CefSharp.DevTools.Browser [System.Runtime.Serialization.EnumMemberAttribute(Value = ("closeTabSearch"))] CloseTabSearch } -} -namespace CefSharp.DevTools.Browser -{ /// /// Chrome histogram bucket. /// @@ -3253,10 +3292,7 @@ namespace CefSharp.DevTools.Browser set; } } -} -namespace CefSharp.DevTools.Browser -{ /// /// Chrome histogram. /// @@ -3303,6 +3339,100 @@ namespace CefSharp.DevTools.Browser set; } } + + /// + /// Fired when page is about to start a download. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DownloadWillBeginEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame that caused the download to begin. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + /// + /// Global unique identifier of the download. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("guid"), IsRequired = (true))] + public string Guid + { + get; + private set; + } + + /// + /// URL of the resource being downloaded. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + private set; + } + + /// + /// Suggested file name of the resource (the actual name of the file saved on disk may differ). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("suggestedFilename"), IsRequired = (true))] + public string SuggestedFilename + { + get; + private set; + } + } + + /// + /// Fired when download makes progress. Last call has |done| == true. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DownloadProgressEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Global unique identifier of the download. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("guid"), IsRequired = (true))] + public string Guid + { + get; + private set; + } + + /// + /// Total expected bytes to download. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("totalBytes"), IsRequired = (true))] + public double TotalBytes + { + get; + private set; + } + + /// + /// Total bytes received. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("receivedBytes"), IsRequired = (true))] + public double ReceivedBytes + { + get; + private set; + } + + /// + /// Download status. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("state"), IsRequired = (true))] + public string State + { + get; + private set; + } + } } namespace CefSharp.DevTools.CSS @@ -3335,10 +3465,7 @@ namespace CefSharp.DevTools.CSS [System.Runtime.Serialization.EnumMemberAttribute(Value = ("regular"))] Regular } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS rule collection for a single pseudo style. /// @@ -3378,10 +3505,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Inherited CSS rule collection from ancestor node. /// @@ -3408,10 +3532,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Match data for a CSS rule. /// @@ -3438,10 +3559,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Data for a simple selector (these are delimited by commas in a selector list). /// @@ -3468,10 +3586,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Selector list data. /// @@ -3498,10 +3613,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS stylesheet metainformation. /// @@ -3649,7 +3761,7 @@ namespace CefSharp.DevTools.CSS /// Line offset of the stylesheet within the resource (zero based). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("startLine"), IsRequired = (true))] - public long StartLine + public double StartLine { get; set; @@ -3659,7 +3771,7 @@ namespace CefSharp.DevTools.CSS /// Column offset of the stylesheet within the resource (zero based). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("startColumn"), IsRequired = (true))] - public long StartColumn + public double StartColumn { get; set; @@ -3669,7 +3781,7 @@ namespace CefSharp.DevTools.CSS /// Size of the content (in characters). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("length"), IsRequired = (true))] - public long Length + public double Length { get; set; @@ -3679,7 +3791,7 @@ namespace CefSharp.DevTools.CSS /// Line offset of the end of the stylesheet within the resource (zero based). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("endLine"), IsRequired = (true))] - public long EndLine + public double EndLine { get; set; @@ -3689,16 +3801,13 @@ namespace CefSharp.DevTools.CSS /// Column offset of the end of the stylesheet within the resource (zero based). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("endColumn"), IsRequired = (true))] - public long EndColumn + public double EndColumn { get; set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS rule representation. /// @@ -3770,10 +3879,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS coverage information. /// @@ -3795,7 +3901,7 @@ namespace CefSharp.DevTools.CSS /// Offset of the start of the rule (including selector) from the beginning of the stylesheet. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("startOffset"), IsRequired = (true))] - public long StartOffset + public double StartOffset { get; set; @@ -3805,7 +3911,7 @@ namespace CefSharp.DevTools.CSS /// Offset of the end of the rule body from the beginning of the stylesheet. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("endOffset"), IsRequired = (true))] - public long EndOffset + public double EndOffset { get; set; @@ -3821,10 +3927,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Text range within a resource. All numbers are zero-based. /// @@ -3871,10 +3974,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// ShorthandEntry /// @@ -3911,10 +4011,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSSComputedStyleProperty /// @@ -3941,10 +4038,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS style representation. /// @@ -4002,10 +4096,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS property declaration data. /// @@ -4092,10 +4183,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS media rule descriptor. /// @@ -4166,10 +4254,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Media query descriptor. /// @@ -4196,10 +4281,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Media query expression descriptor. /// @@ -4210,7 +4292,7 @@ namespace CefSharp.DevTools.CSS /// Media query expression value. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] - public long Value + public double Value { get; set; @@ -4250,16 +4332,13 @@ namespace CefSharp.DevTools.CSS /// Computed length of media query expression (if applicable). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("computedLength"), IsRequired = (false))] - public long? ComputedLength + public double? ComputedLength { get; set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Information about amount of glyphs that were rendered with given font. /// @@ -4290,16 +4369,13 @@ namespace CefSharp.DevTools.CSS /// Amount of glyphs that were rendered with this font. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("glyphCount"), IsRequired = (true))] - public long GlyphCount + public double GlyphCount { get; set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Information about font variation axes for variable fonts /// @@ -4330,7 +4406,7 @@ namespace CefSharp.DevTools.CSS /// The minimum value (inclusive) the font supports for this tag. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("minValue"), IsRequired = (true))] - public long MinValue + public double MinValue { get; set; @@ -4340,7 +4416,7 @@ namespace CefSharp.DevTools.CSS /// The maximum value (inclusive) the font supports for this tag. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxValue"), IsRequired = (true))] - public long MaxValue + public double MaxValue { get; set; @@ -4350,16 +4426,13 @@ namespace CefSharp.DevTools.CSS /// The default value. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("defaultValue"), IsRequired = (true))] - public long DefaultValue + public double DefaultValue { get; set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions /// and additional information such as platformFontFamily and fontVariationAxes. @@ -4457,10 +4530,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS keyframes rule representation. /// @@ -4487,10 +4557,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS keyframe rule representation. /// @@ -4551,10 +4618,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// A descriptor of operation to mutate style declaration text. /// @@ -4591,6 +4655,75 @@ namespace CefSharp.DevTools.CSS set; } } + + /// + /// Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded + /// web font + /// + [System.Runtime.Serialization.DataContractAttribute] + public class FontsUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The web font that has loaded. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("font"), IsRequired = (false))] + public CefSharp.DevTools.CSS.FontFace Font + { + get; + private set; + } + } + + /// + /// Fired whenever an active document stylesheet is added. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class StyleSheetAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Added stylesheet metainfo. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("header"), IsRequired = (true))] + public CefSharp.DevTools.CSS.CSSStyleSheetHeader Header + { + get; + private set; + } + } + + /// + /// Fired whenever a stylesheet is changed as a result of the client operation. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class StyleSheetChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// StyleSheetId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (true))] + public string StyleSheetId + { + get; + private set; + } + } + + /// + /// Fired whenever an active document stylesheet is removed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class StyleSheetRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier of the removed stylesheet. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (true))] + public string StyleSheetId + { + get; + private set; + } + } } namespace CefSharp.DevTools.CacheStorage @@ -4631,10 +4764,7 @@ namespace CefSharp.DevTools.CacheStorage [System.Runtime.Serialization.EnumMemberAttribute(Value = ("opaqueRedirect"))] OpaqueRedirect } -} -namespace CefSharp.DevTools.CacheStorage -{ /// /// Data entry. /// @@ -4675,7 +4805,7 @@ namespace CefSharp.DevTools.CacheStorage /// Number of seconds since epoch. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseTime"), IsRequired = (true))] - public long ResponseTime + public double ResponseTime { get; set; @@ -4734,10 +4864,7 @@ namespace CefSharp.DevTools.CacheStorage set; } } -} -namespace CefSharp.DevTools.CacheStorage -{ /// /// Cache identifier. /// @@ -4774,10 +4901,7 @@ namespace CefSharp.DevTools.CacheStorage set; } } -} -namespace CefSharp.DevTools.CacheStorage -{ /// /// Header /// @@ -4804,10 +4928,7 @@ namespace CefSharp.DevTools.CacheStorage set; } } -} -namespace CefSharp.DevTools.CacheStorage -{ /// /// Cached response /// @@ -4865,6 +4986,42 @@ namespace CefSharp.DevTools.Cast 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class SinksUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Sinks + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sinks"), IsRequired = (true))] + 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class IssueUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// IssueMessage + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("issueMessage"), IsRequired = (true))] + public string IssueMessage + { + get; + private set; + } + } } namespace CefSharp.DevTools.DOM @@ -4905,10 +5062,7 @@ namespace CefSharp.DevTools.DOM set; } } -} -namespace CefSharp.DevTools.DOM -{ /// /// Pseudo element type. /// @@ -5010,10 +5164,7 @@ namespace CefSharp.DevTools.DOM [System.Runtime.Serialization.EnumMemberAttribute(Value = ("input-list-button"))] InputListButton } -} -namespace CefSharp.DevTools.DOM -{ /// /// Shadow root type. /// @@ -5035,10 +5186,7 @@ namespace CefSharp.DevTools.DOM [System.Runtime.Serialization.EnumMemberAttribute(Value = ("closed"))] Closed } -} -namespace CefSharp.DevTools.DOM -{ /// /// DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. /// DOMNode is a base node mirror type. @@ -5354,10 +5502,7 @@ namespace CefSharp.DevTools.DOM set; } } -} -namespace CefSharp.DevTools.DOM -{ /// /// A structure holding an RGBA color. /// @@ -5398,16 +5543,13 @@ namespace CefSharp.DevTools.DOM /// The alpha component, in the [0-1] range (default: 1). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("a"), IsRequired = (false))] - public long? A + public double? A { get; set; } } -} -namespace CefSharp.DevTools.DOM -{ /// /// Box model. /// @@ -5418,7 +5560,7 @@ namespace CefSharp.DevTools.DOM /// Content box /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("content"), IsRequired = (true))] - public long[] Content + public double[] Content { get; set; @@ -5428,7 +5570,7 @@ namespace CefSharp.DevTools.DOM /// Padding box /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("padding"), IsRequired = (true))] - public long[] Padding + public double[] Padding { get; set; @@ -5438,7 +5580,7 @@ namespace CefSharp.DevTools.DOM /// Border box /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("border"), IsRequired = (true))] - public long[] Border + public double[] Border { get; set; @@ -5448,7 +5590,7 @@ namespace CefSharp.DevTools.DOM /// Margin box /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("margin"), IsRequired = (true))] - public long[] Margin + public double[] Margin { get; set; @@ -5484,10 +5626,7 @@ namespace CefSharp.DevTools.DOM set; } } -} -namespace CefSharp.DevTools.DOM -{ /// /// CSS Shape Outside details. /// @@ -5498,7 +5637,7 @@ namespace CefSharp.DevTools.DOM /// Shape bounds /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("bounds"), IsRequired = (true))] - public long[] Bounds + public double[] Bounds { get; set; @@ -5524,10 +5663,7 @@ namespace CefSharp.DevTools.DOM set; } } -} -namespace CefSharp.DevTools.DOM -{ /// /// Rectangle. /// @@ -5538,7 +5674,7 @@ namespace CefSharp.DevTools.DOM /// X coordinate /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("x"), IsRequired = (true))] - public long X + public double X { get; set; @@ -5548,7 +5684,7 @@ namespace CefSharp.DevTools.DOM /// Y coordinate /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("y"), IsRequired = (true))] - public long Y + public double Y { get; set; @@ -5558,7 +5694,7 @@ namespace CefSharp.DevTools.DOM /// Rectangle width /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("width"), IsRequired = (true))] - public long Width + public double Width { get; set; @@ -5568,16 +5704,13 @@ namespace CefSharp.DevTools.DOM /// Rectangle height /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("height"), IsRequired = (true))] - public long Height + public double Height { get; set; } } -} -namespace CefSharp.DevTools.DOM -{ /// /// CSSComputedStyleProperty /// @@ -5604,6 +5737,368 @@ namespace CefSharp.DevTools.DOM set; } } + + /// + /// Fired when `Element`'s attribute is modified. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AttributeModifiedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node that has changed. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + public int NodeId + { + get; + private set; + } + + /// + /// Attribute name. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + private set; + } + + /// + /// Attribute value. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + public string Value + { + get; + private set; + } + } + + /// + /// Fired when `Element`'s attribute is removed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AttributeRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node that has changed. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + public int NodeId + { + get; + private set; + } + + /// + /// A ttribute name. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + private set; + } + } + + /// + /// Mirrors `DOMCharacterDataModified` event. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class CharacterDataModifiedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node that has changed. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + public int NodeId + { + get; + private set; + } + + /// + /// New text value. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("characterData"), IsRequired = (true))] + public string CharacterData + { + get; + private set; + } + } + + /// + /// Fired when `Container`'s child node count has changed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ChildNodeCountUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node that has changed. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + public int NodeId + { + get; + private set; + } + + /// + /// New node count. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("childNodeCount"), IsRequired = (true))] + public int ChildNodeCount + { + get; + private set; + } + } + + /// + /// Mirrors `DOMNodeInserted` event. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ChildNodeInsertedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node that has changed. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentNodeId"), IsRequired = (true))] + public int ParentNodeId + { + get; + private set; + } + + /// + /// If of the previous siblint. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("previousNodeId"), IsRequired = (true))] + public int PreviousNodeId + { + get; + private set; + } + + /// + /// Inserted node data. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("node"), IsRequired = (true))] + public CefSharp.DevTools.DOM.Node Node + { + get; + private set; + } + } + + /// + /// Mirrors `DOMNodeRemoved` event. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ChildNodeRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Parent id. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentNodeId"), IsRequired = (true))] + public int ParentNodeId + { + get; + private set; + } + + /// + /// Id of the node that has been removed. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + public int NodeId + { + get; + private set; + } + } + + /// + /// Called when distrubution is changed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DistributedNodesUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Insertion point where distrubuted nodes were updated. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("insertionPointId"), IsRequired = (true))] + public int InsertionPointId + { + get; + private set; + } + + /// + /// Distributed nodes for given insertion point. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("distributedNodes"), IsRequired = (true))] + public System.Collections.Generic.IList DistributedNodes + { + get; + private set; + } + } + + /// + /// Fired when `Element`'s inline style is modified via a CSS property modification. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class InlineStyleInvalidatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Ids of the nodes for which the inline styles have been invalidated. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeIds"), IsRequired = (true))] + public int[] NodeIds + { + get; + private set; + } + } + + /// + /// Called when a pseudo element is added to an element. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PseudoElementAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Pseudo element's parent element id. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentId"), IsRequired = (true))] + public int ParentId + { + get; + private set; + } + + /// + /// The added pseudo element. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoElement"), IsRequired = (true))] + public CefSharp.DevTools.DOM.Node PseudoElement + { + get; + private set; + } + } + + /// + /// Called when a pseudo element is removed from an element. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PseudoElementRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Pseudo element's parent element id. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentId"), IsRequired = (true))] + public int ParentId + { + get; + private set; + } + + /// + /// The removed pseudo element id. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoElementId"), IsRequired = (true))] + 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class SetChildNodesEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Parent node id to populate with children. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentId"), IsRequired = (true))] + public int ParentId + { + get; + private set; + } + + /// + /// Child nodes array. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodes"), IsRequired = (true))] + public System.Collections.Generic.IList Nodes + { + get; + private set; + } + } + + /// + /// Called when shadow root is popped from the element. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ShadowRootPoppedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Host element id. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("hostId"), IsRequired = (true))] + public int HostId + { + get; + private set; + } + + /// + /// Shadow root id. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("rootId"), IsRequired = (true))] + public int RootId + { + get; + private set; + } + } + + /// + /// Called when shadow root is pushed into the element. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ShadowRootPushedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Host element id. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("hostId"), IsRequired = (true))] + public int HostId + { + get; + private set; + } + + /// + /// Shadow root. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("root"), IsRequired = (true))] + public CefSharp.DevTools.DOM.Node Root + { + get; + private set; + } + } } namespace CefSharp.DevTools.DOMDebugger @@ -5629,10 +6124,7 @@ namespace CefSharp.DevTools.DOMDebugger [System.Runtime.Serialization.EnumMemberAttribute(Value = ("node-removed"))] NodeRemoved } -} -namespace CefSharp.DevTools.DOMDebugger -{ /// /// CSP Violation type. /// @@ -5649,10 +6141,7 @@ namespace CefSharp.DevTools.DOMDebugger [System.Runtime.Serialization.EnumMemberAttribute(Value = ("trustedtype-policy-violation"))] TrustedtypePolicyViolation } -} -namespace CefSharp.DevTools.DOMDebugger -{ /// /// Object event listener. /// @@ -6065,7 +6554,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// Scroll offsets, set when this node is a Document. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollOffsetX"), IsRequired = (false))] - public long? ScrollOffsetX + public double? ScrollOffsetX { get; set; @@ -6075,16 +6564,13 @@ namespace CefSharp.DevTools.DOMSnapshot /// ScrollOffsetY /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollOffsetY"), IsRequired = (false))] - public long? ScrollOffsetY + public double? ScrollOffsetY { get; set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Details of post layout rendered text positions. The exact layout should not be regarded as /// stable and may change between versions. @@ -6124,10 +6610,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Details of an element in the DOM tree with a LayoutObject. /// @@ -6206,10 +6689,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// A subset of the full ComputedStyle as defined by the request whitelist. /// @@ -6226,10 +6706,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// A name/value pair. /// @@ -6256,10 +6733,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Data that is only present on rare nodes. /// @@ -6286,10 +6760,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// RareBooleanData /// @@ -6306,10 +6777,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// RareIntegerData /// @@ -6336,10 +6804,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Document snapshot. /// @@ -6460,7 +6925,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// Horizontal scroll offset. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollOffsetX"), IsRequired = (false))] - public long? ScrollOffsetX + public double? ScrollOffsetX { get; set; @@ -6470,7 +6935,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// Vertical scroll offset. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollOffsetY"), IsRequired = (false))] - public long? ScrollOffsetY + public double? ScrollOffsetY { get; set; @@ -6480,7 +6945,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// Document content width. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentWidth"), IsRequired = (false))] - public long? ContentWidth + public double? ContentWidth { get; set; @@ -6490,16 +6955,13 @@ namespace CefSharp.DevTools.DOMSnapshot /// Document content height. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentHeight"), IsRequired = (false))] - public long? ContentHeight + public double? ContentHeight { get; set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Table containing nodes. /// @@ -6658,10 +7120,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Table of details of an element in the DOM tree with a LayoutObject. /// @@ -6692,7 +7151,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// The absolute position bounding box. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("bounds"), IsRequired = (true))] - public long[] Bounds + public double[] Bounds { get; set; @@ -6734,7 +7193,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// The offset rect of nodes. Only available when includeDOMRects is set to true /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetRects"), IsRequired = (false))] - public long[] OffsetRects + public double[] OffsetRects { get; set; @@ -6744,7 +7203,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// The scroll rect of nodes. Only available when includeDOMRects is set to true /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollRects"), IsRequired = (false))] - public long[] ScrollRects + public double[] ScrollRects { get; set; @@ -6754,16 +7213,13 @@ namespace CefSharp.DevTools.DOMSnapshot /// The client rect of nodes. Only available when includeDOMRects is set to true /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientRects"), IsRequired = (false))] - public long[] ClientRects + public double[] ClientRects { get; set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Table of details of the post layout rendered text positions. The exact layout should not be regarded as /// stable and may change between versions. @@ -6785,7 +7241,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// The absolute position bounding box. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("bounds"), IsRequired = (true))] - public long[] Bounds + public double[] Bounds { get; set; @@ -6843,6 +7299,134 @@ namespace CefSharp.DevTools.DOMStorage set; } } + + /// + /// domStorageItemAdded + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DomStorageItemAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// StorageId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageId"), IsRequired = (true))] + public CefSharp.DevTools.DOMStorage.StorageId StorageId + { + get; + private set; + } + + /// + /// Key + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (true))] + public string Key + { + get; + private set; + } + + /// + /// NewValue + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("newValue"), IsRequired = (true))] + public string NewValue + { + get; + private set; + } + } + + /// + /// domStorageItemRemoved + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DomStorageItemRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// StorageId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageId"), IsRequired = (true))] + public CefSharp.DevTools.DOMStorage.StorageId StorageId + { + get; + private set; + } + + /// + /// Key + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (true))] + public string Key + { + get; + private set; + } + } + + /// + /// domStorageItemUpdated + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DomStorageItemUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// StorageId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageId"), IsRequired = (true))] + public CefSharp.DevTools.DOMStorage.StorageId StorageId + { + get; + private set; + } + + /// + /// Key + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (true))] + public string Key + { + get; + private set; + } + + /// + /// OldValue + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("oldValue"), IsRequired = (true))] + public string OldValue + { + get; + private set; + } + + /// + /// NewValue + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("newValue"), IsRequired = (true))] + public string NewValue + { + get; + private set; + } + } + + /// + /// domStorageItemsCleared + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DomStorageItemsClearedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// StorageId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageId"), IsRequired = (true))] + public CefSharp.DevTools.DOMStorage.StorageId StorageId + { + get; + private set; + } + } } namespace CefSharp.DevTools.Database @@ -6893,10 +7477,7 @@ namespace CefSharp.DevTools.Database set; } } -} -namespace CefSharp.DevTools.Database -{ /// /// Database error. /// @@ -6923,6 +7504,23 @@ namespace CefSharp.DevTools.Database set; } } + + /// + /// addDatabase + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AddDatabaseEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Database + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("database"), IsRequired = (true))] + public CefSharp.DevTools.Database.Database Database + { + get; + private set; + } + } } namespace CefSharp.DevTools.Emulation @@ -6953,10 +7551,7 @@ namespace CefSharp.DevTools.Emulation set; } } -} -namespace CefSharp.DevTools.Emulation -{ /// /// DisplayFeature /// @@ -6996,10 +7591,7 @@ namespace CefSharp.DevTools.Emulation set; } } -} -namespace CefSharp.DevTools.Emulation -{ /// /// MediaFeature /// @@ -7026,10 +7618,7 @@ namespace CefSharp.DevTools.Emulation set; } } -} -namespace CefSharp.DevTools.Emulation -{ /// /// advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to /// allow the next delayed task (if any) to run; pause: The virtual time base may not advance; @@ -7054,10 +7643,7 @@ namespace CefSharp.DevTools.Emulation [System.Runtime.Serialization.EnumMemberAttribute(Value = ("pauseIfNetworkFetchesPending"))] PauseIfNetworkFetchesPending } -} -namespace CefSharp.DevTools.Emulation -{ /// /// Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints /// @@ -7084,10 +7670,7 @@ namespace CefSharp.DevTools.Emulation set; } } -} -namespace CefSharp.DevTools.Emulation -{ /// /// Used to specify User Agent Cient 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. @@ -7165,10 +7748,7 @@ namespace CefSharp.DevTools.Emulation set; } } -} -namespace CefSharp.DevTools.Emulation -{ /// /// Enum of image types that can be disabled. /// @@ -7215,6 +7795,25 @@ namespace CefSharp.DevTools.HeadlessExperimental set; } } + + /// + /// Issued when the target starts or stops needing BeginFrames. + /// Deprecated. Issue beginFrame unconditionally instead and use result from + /// beginFrame to detect whether the frames were suppressed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class NeedsBeginFramesChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// True if BeginFrames are needed, false otherwise. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("needsBeginFrames"), IsRequired = (true))] + public bool NeedsBeginFrames + { + get; + private set; + } + } } namespace CefSharp.DevTools.IndexedDB @@ -7240,7 +7839,7 @@ namespace CefSharp.DevTools.IndexedDB /// requires the version number to be 'unsigned long long') /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("version"), IsRequired = (true))] - public long Version + public double Version { get; set; @@ -7256,10 +7855,7 @@ namespace CefSharp.DevTools.IndexedDB set; } } -} -namespace CefSharp.DevTools.IndexedDB -{ /// /// Object store. /// @@ -7306,10 +7902,7 @@ namespace CefSharp.DevTools.IndexedDB set; } } -} -namespace CefSharp.DevTools.IndexedDB -{ /// /// Object store index. /// @@ -7356,10 +7949,7 @@ namespace CefSharp.DevTools.IndexedDB set; } } -} -namespace CefSharp.DevTools.IndexedDB -{ /// /// Key. /// @@ -7380,7 +7970,7 @@ namespace CefSharp.DevTools.IndexedDB /// Number value. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("number"), IsRequired = (false))] - public long? Number + public double? Number { get; set; @@ -7400,7 +7990,7 @@ namespace CefSharp.DevTools.IndexedDB /// Date value. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("date"), IsRequired = (false))] - public long? Date + public double? Date { get; set; @@ -7416,10 +8006,7 @@ namespace CefSharp.DevTools.IndexedDB set; } } -} -namespace CefSharp.DevTools.IndexedDB -{ /// /// Key range. /// @@ -7466,10 +8053,7 @@ namespace CefSharp.DevTools.IndexedDB set; } } -} -namespace CefSharp.DevTools.IndexedDB -{ /// /// Data entry. /// @@ -7506,10 +8090,7 @@ namespace CefSharp.DevTools.IndexedDB set; } } -} -namespace CefSharp.DevTools.IndexedDB -{ /// /// Key path. /// @@ -7560,7 +8141,7 @@ namespace CefSharp.DevTools.Input /// X coordinate of the event relative to the main frame's viewport in CSS pixels. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("x"), IsRequired = (true))] - public long X + public double X { get; set; @@ -7571,7 +8152,7 @@ namespace CefSharp.DevTools.Input /// the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("y"), IsRequired = (true))] - public long Y + public double Y { get; set; @@ -7581,7 +8162,7 @@ namespace CefSharp.DevTools.Input /// X radius of the touch area (default: 1.0). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("radiusX"), IsRequired = (false))] - public long? RadiusX + public double? RadiusX { get; set; @@ -7591,7 +8172,7 @@ namespace CefSharp.DevTools.Input /// Y radius of the touch area (default: 1.0). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("radiusY"), IsRequired = (false))] - public long? RadiusY + public double? RadiusY { get; set; @@ -7601,7 +8182,7 @@ namespace CefSharp.DevTools.Input /// Rotation angle (default: 0.0). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("rotationAngle"), IsRequired = (false))] - public long? RotationAngle + public double? RotationAngle { get; set; @@ -7611,7 +8192,7 @@ namespace CefSharp.DevTools.Input /// Force (default: 1.0). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("force"), IsRequired = (false))] - public long? Force + public double? Force { get; set; @@ -7621,7 +8202,7 @@ namespace CefSharp.DevTools.Input /// The normalized tangential pressure, which has a range of [-1,1] (default: 0). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("tangentialPressure"), IsRequired = (false))] - public long? TangentialPressure + public double? TangentialPressure { get; set; @@ -7661,16 +8242,13 @@ namespace CefSharp.DevTools.Input /// Identifier used to track touch sources between events, must be unique within an event. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (false))] - public long? Id + public double? Id { get; set; } } -} -namespace CefSharp.DevTools.Input -{ /// /// GestureSourceType /// @@ -7692,10 +8270,7 @@ namespace CefSharp.DevTools.Input [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mouse"))] Mouse } -} -namespace CefSharp.DevTools.Input -{ /// /// MouseButton /// @@ -7732,10 +8307,7 @@ namespace CefSharp.DevTools.Input [System.Runtime.Serialization.EnumMemberAttribute(Value = ("forward"))] Forward } -} -namespace CefSharp.DevTools.Input -{ /// /// DragDataItem /// @@ -7784,10 +8356,7 @@ namespace CefSharp.DevTools.Input set; } } -} -namespace CefSharp.DevTools.Input -{ /// /// DragData /// @@ -7814,6 +8383,44 @@ namespace CefSharp.DevTools.Input set; } } + + /// + /// Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to + /// restore normal drag and drop behavior. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DragInterceptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Data + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (true))] + 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DetachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The reason why connection has been terminated. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + public string Reason + { + get; + private set; + } + } } namespace CefSharp.DevTools.LayerTree @@ -7844,10 +8451,7 @@ namespace CefSharp.DevTools.LayerTree set; } } -} -namespace CefSharp.DevTools.LayerTree -{ /// /// Sticky position constraints. /// @@ -7894,10 +8498,7 @@ namespace CefSharp.DevTools.LayerTree set; } } -} -namespace CefSharp.DevTools.LayerTree -{ /// /// Serialized fragment of layer picture along with its offset within the layer. /// @@ -7908,7 +8509,7 @@ namespace CefSharp.DevTools.LayerTree /// Offset from owning layer left boundary /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("x"), IsRequired = (true))] - public long X + public double X { get; set; @@ -7918,7 +8519,7 @@ namespace CefSharp.DevTools.LayerTree /// Offset from owning layer top boundary /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("y"), IsRequired = (true))] - public long Y + public double Y { get; set; @@ -7934,10 +8535,7 @@ namespace CefSharp.DevTools.LayerTree set; } } -} -namespace CefSharp.DevTools.LayerTree -{ /// /// Information about a compositing layer. /// @@ -7978,7 +8576,7 @@ namespace CefSharp.DevTools.LayerTree /// Offset from parent layer, X coordinate. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetX"), IsRequired = (true))] - public long OffsetX + public double OffsetX { get; set; @@ -7988,7 +8586,7 @@ namespace CefSharp.DevTools.LayerTree /// Offset from parent layer, Y coordinate. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetY"), IsRequired = (true))] - public long OffsetY + public double OffsetY { get; set; @@ -7998,7 +8596,7 @@ namespace CefSharp.DevTools.LayerTree /// Layer width. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("width"), IsRequired = (true))] - public long Width + public double Width { get; set; @@ -8008,7 +8606,7 @@ namespace CefSharp.DevTools.LayerTree /// Layer height. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("height"), IsRequired = (true))] - public long Height + public double Height { get; set; @@ -8018,7 +8616,7 @@ namespace CefSharp.DevTools.LayerTree /// Transformation matrix for layer, default is identity matrix /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("transform"), IsRequired = (false))] - public long[] Transform + public double[] Transform { get; set; @@ -8028,7 +8626,7 @@ namespace CefSharp.DevTools.LayerTree /// Transform anchor point X, absent if no transform specified /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("anchorX"), IsRequired = (false))] - public long? AnchorX + public double? AnchorX { get; set; @@ -8038,7 +8636,7 @@ namespace CefSharp.DevTools.LayerTree /// Transform anchor point Y, absent if no transform specified /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("anchorY"), IsRequired = (false))] - public long? AnchorY + public double? AnchorY { get; set; @@ -8048,7 +8646,7 @@ namespace CefSharp.DevTools.LayerTree /// Transform anchor point Z, absent if no transform specified /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("anchorZ"), IsRequired = (false))] - public long? AnchorZ + public double? AnchorZ { get; set; @@ -8105,6 +8703,50 @@ namespace CefSharp.DevTools.LayerTree set; } } + + /// + /// layerPainted + /// + [System.Runtime.Serialization.DataContractAttribute] + public class LayerPaintedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The id of the painted layer. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("layerId"), IsRequired = (true))] + public string LayerId + { + get; + private set; + } + + /// + /// Clip rectangle. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("clip"), IsRequired = (true))] + public CefSharp.DevTools.DOM.Rect Clip + { + get; + private set; + } + } + + /// + /// layerTreeDidChange + /// + [System.Runtime.Serialization.DataContractAttribute] + public class LayerTreeDidChangeEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Layer tree, absent if not in the comspositing mode. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("layers"), IsRequired = (false))] + public System.Collections.Generic.IList Layers + { + get; + private set; + } + } } namespace CefSharp.DevTools.Log @@ -8149,7 +8791,7 @@ namespace CefSharp.DevTools.Log /// Timestamp when this entry was added. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] - public long Timestamp + public double Timestamp { get; set; @@ -8215,10 +8857,7 @@ namespace CefSharp.DevTools.Log set; } } -} -namespace CefSharp.DevTools.Log -{ /// /// Violation configuration setting. /// @@ -8239,12 +8878,29 @@ namespace CefSharp.DevTools.Log /// Time threshold to trigger upon. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("threshold"), IsRequired = (true))] - public long Threshold + public double Threshold { get; set; } } + + /// + /// Issued when new message was logged. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class EntryAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The entry. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("entry"), IsRequired = (true))] + public CefSharp.DevTools.Log.LogEntry Entry + { + get; + private set; + } + } } namespace CefSharp.DevTools.Memory @@ -8265,10 +8921,7 @@ namespace CefSharp.DevTools.Memory [System.Runtime.Serialization.EnumMemberAttribute(Value = ("critical"))] Critical } -} -namespace CefSharp.DevTools.Memory -{ /// /// Heap profile sample. /// @@ -8279,7 +8932,7 @@ namespace CefSharp.DevTools.Memory /// Size of the sampled allocation. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("size"), IsRequired = (true))] - public long Size + public double Size { get; set; @@ -8289,7 +8942,7 @@ namespace CefSharp.DevTools.Memory /// Total bytes attributed to this sample. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("total"), IsRequired = (true))] - public long Total + public double Total { get; set; @@ -8305,10 +8958,7 @@ namespace CefSharp.DevTools.Memory set; } } -} -namespace CefSharp.DevTools.Memory -{ /// /// Array of heap profile samples. /// @@ -8335,10 +8985,7 @@ namespace CefSharp.DevTools.Memory set; } } -} -namespace CefSharp.DevTools.Memory -{ /// /// Executable module information /// @@ -8380,7 +9027,7 @@ namespace CefSharp.DevTools.Memory /// Size of the module in bytes. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("size"), IsRequired = (true))] - public long Size + public double Size { get; set; @@ -8481,10 +9128,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Other"))] Other } -} -namespace CefSharp.DevTools.Network -{ /// /// Network level fetch failure reason. /// @@ -8561,10 +9205,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BlockedByResponse"))] BlockedByResponse } -} -namespace CefSharp.DevTools.Network -{ /// /// The underlying connection technology that the browser is supposedly using. /// @@ -8616,10 +9257,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("other"))] Other } -} -namespace CefSharp.DevTools.Network -{ /// /// Represents the cookie's 'SameSite' status: /// https://tools.ietf.org/html/draft-west-first-party-cookies @@ -8642,10 +9280,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("None"))] None } -} -namespace CefSharp.DevTools.Network -{ /// /// Represents the cookie's 'Priority' status: /// https://tools.ietf.org/html/draft-west-cookie-priority-00 @@ -8668,10 +9303,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("High"))] High } -} -namespace CefSharp.DevTools.Network -{ /// /// 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. @@ -8695,10 +9327,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Secure"))] Secure } -} -namespace CefSharp.DevTools.Network -{ /// /// Timing information for the request. /// @@ -8710,7 +9339,7 @@ namespace CefSharp.DevTools.Network /// milliseconds relatively to this requestTime. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestTime"), IsRequired = (true))] - public long RequestTime + public double RequestTime { get; set; @@ -8720,7 +9349,7 @@ namespace CefSharp.DevTools.Network /// Started resolving proxy. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("proxyStart"), IsRequired = (true))] - public long ProxyStart + public double ProxyStart { get; set; @@ -8730,7 +9359,7 @@ namespace CefSharp.DevTools.Network /// Finished resolving proxy. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("proxyEnd"), IsRequired = (true))] - public long ProxyEnd + public double ProxyEnd { get; set; @@ -8740,7 +9369,7 @@ namespace CefSharp.DevTools.Network /// Started DNS address resolve. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("dnsStart"), IsRequired = (true))] - public long DnsStart + public double DnsStart { get; set; @@ -8750,7 +9379,7 @@ namespace CefSharp.DevTools.Network /// Finished DNS address resolve. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("dnsEnd"), IsRequired = (true))] - public long DnsEnd + public double DnsEnd { get; set; @@ -8760,7 +9389,7 @@ namespace CefSharp.DevTools.Network /// Started connecting to the remote host. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("connectStart"), IsRequired = (true))] - public long ConnectStart + public double ConnectStart { get; set; @@ -8770,7 +9399,7 @@ namespace CefSharp.DevTools.Network /// Connected to the remote host. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("connectEnd"), IsRequired = (true))] - public long ConnectEnd + public double ConnectEnd { get; set; @@ -8780,7 +9409,7 @@ namespace CefSharp.DevTools.Network /// Started SSL handshake. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("sslStart"), IsRequired = (true))] - public long SslStart + public double SslStart { get; set; @@ -8790,7 +9419,7 @@ namespace CefSharp.DevTools.Network /// Finished SSL handshake. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("sslEnd"), IsRequired = (true))] - public long SslEnd + public double SslEnd { get; set; @@ -8800,7 +9429,7 @@ namespace CefSharp.DevTools.Network /// Started running ServiceWorker. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("workerStart"), IsRequired = (true))] - public long WorkerStart + public double WorkerStart { get; set; @@ -8810,7 +9439,7 @@ namespace CefSharp.DevTools.Network /// Finished Starting ServiceWorker. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("workerReady"), IsRequired = (true))] - public long WorkerReady + public double WorkerReady { get; set; @@ -8820,7 +9449,7 @@ namespace CefSharp.DevTools.Network /// Started fetch event. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("workerFetchStart"), IsRequired = (true))] - public long WorkerFetchStart + public double WorkerFetchStart { get; set; @@ -8830,7 +9459,7 @@ namespace CefSharp.DevTools.Network /// Settled fetch event respondWith promise. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("workerRespondWithSettled"), IsRequired = (true))] - public long WorkerRespondWithSettled + public double WorkerRespondWithSettled { get; set; @@ -8840,7 +9469,7 @@ namespace CefSharp.DevTools.Network /// Started sending request. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("sendStart"), IsRequired = (true))] - public long SendStart + public double SendStart { get; set; @@ -8850,7 +9479,7 @@ namespace CefSharp.DevTools.Network /// Finished sending request. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("sendEnd"), IsRequired = (true))] - public long SendEnd + public double SendEnd { get; set; @@ -8860,7 +9489,7 @@ namespace CefSharp.DevTools.Network /// Time the server started pushing request. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("pushStart"), IsRequired = (true))] - public long PushStart + public double PushStart { get; set; @@ -8870,7 +9499,7 @@ namespace CefSharp.DevTools.Network /// Time the server finished pushing request. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("pushEnd"), IsRequired = (true))] - public long PushEnd + public double PushEnd { get; set; @@ -8880,16 +9509,13 @@ namespace CefSharp.DevTools.Network /// Finished receiving response headers. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("receiveHeadersEnd"), IsRequired = (true))] - public long ReceiveHeadersEnd + public double ReceiveHeadersEnd { get; set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Loading priority of a resource request. /// @@ -8921,10 +9547,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("VeryHigh"))] VeryHigh } -} -namespace CefSharp.DevTools.Network -{ /// /// Post data entry for HTTP request /// @@ -8941,10 +9564,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// HTTP request data. /// @@ -9098,10 +9718,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Details of a signed certificate timestamp (SCT). /// @@ -9152,7 +9769,7 @@ namespace CefSharp.DevTools.Network /// Issuance date. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] - public long Timestamp + public double Timestamp { get; set; @@ -9188,10 +9805,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Security details about a request. /// @@ -9292,7 +9906,7 @@ namespace CefSharp.DevTools.Network /// Certificate valid from date. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("validFrom"), IsRequired = (true))] - public long ValidFrom + public double ValidFrom { get; set; @@ -9302,7 +9916,7 @@ namespace CefSharp.DevTools.Network /// Certificate valid to (expiration) date /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("validTo"), IsRequired = (true))] - public long ValidTo + public double ValidTo { get; set; @@ -9341,10 +9955,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Whether the request complied with Certificate Transparency policy. /// @@ -9366,10 +9977,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("compliant"))] Compliant } -} -namespace CefSharp.DevTools.Network -{ /// /// The reason why request was blocked. /// @@ -9436,10 +10044,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("corp-not-same-site"))] CorpNotSameSite } -} -namespace CefSharp.DevTools.Network -{ /// /// The reason why request was blocked. /// @@ -9571,10 +10176,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InsecurePrivateNetwork"))] InsecurePrivateNetwork } -} -namespace CefSharp.DevTools.Network -{ /// /// CorsErrorStatus /// @@ -9614,10 +10216,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Source of serviceworker response. /// @@ -9644,10 +10243,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("network"))] Network } -} -namespace CefSharp.DevTools.Network -{ /// /// Determines what type of Trust Token operation is executed and /// depending on the type, some additional parameters. The values @@ -9701,10 +10297,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// TrustTokenOperationType /// @@ -9726,10 +10319,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Signing"))] Signing } -} -namespace CefSharp.DevTools.Network -{ /// /// HTTP response data. /// @@ -9830,7 +10420,7 @@ namespace CefSharp.DevTools.Network /// Physical connection id that was actually used for this request. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("connectionId"), IsRequired = (true))] - public long ConnectionId + public double ConnectionId { get; set; @@ -9890,7 +10480,7 @@ namespace CefSharp.DevTools.Network /// Total number of bytes received for this request so far. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("encodedDataLength"), IsRequired = (true))] - public long EncodedDataLength + public double EncodedDataLength { get; set; @@ -9933,7 +10523,7 @@ namespace CefSharp.DevTools.Network /// The time at which the returned response was generated. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseTime"), IsRequired = (false))] - public long? ResponseTime + public double? ResponseTime { get; set; @@ -9992,10 +10582,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// WebSocket request data. /// @@ -10012,10 +10599,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// WebSocket response data. /// @@ -10082,10 +10666,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests. /// @@ -10096,7 +10677,7 @@ namespace CefSharp.DevTools.Network /// WebSocket message opcode. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("opcode"), IsRequired = (true))] - public long Opcode + public double Opcode { get; set; @@ -10124,10 +10705,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Information about the cached resource. /// @@ -10181,16 +10759,13 @@ namespace CefSharp.DevTools.Network /// Cached response body size. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("bodySize"), IsRequired = (true))] - public long BodySize + public double BodySize { get; set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Information about the request initiator. /// @@ -10232,7 +10807,7 @@ namespace CefSharp.DevTools.Network /// module) (0-based). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (false))] - public long? LineNumber + public double? LineNumber { get; set; @@ -10243,7 +10818,7 @@ namespace CefSharp.DevTools.Network /// module) (0-based). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnNumber"), IsRequired = (false))] - public long? ColumnNumber + public double? ColumnNumber { get; set; @@ -10259,10 +10834,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Cookie object /// @@ -10313,7 +10885,7 @@ namespace CefSharp.DevTools.Network /// Cookie expiration date as the number of seconds since the UNIX epoch. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("expires"), IsRequired = (true))] - public long Expires + public double Expires { get; set; @@ -10450,10 +11022,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Types of reasons why a cookie may not be stored from a response. /// @@ -10545,10 +11114,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SamePartyConflictsWithOtherAttributes"))] SamePartyConflictsWithOtherAttributes } -} -namespace CefSharp.DevTools.Network -{ /// /// Types of reasons why a cookie may not be sent with a request. /// @@ -10620,10 +11186,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SamePartyFromCrossPartyContext"))] SamePartyFromCrossPartyContext } -} -namespace CefSharp.DevTools.Network -{ /// /// A cookie which was not stored from a response with the corresponding reason. /// @@ -10676,10 +11239,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// A cookie with was not sent with a request with the corresponding reason. /// @@ -10719,10 +11279,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Cookie parameter object /// @@ -10827,7 +11384,7 @@ namespace CefSharp.DevTools.Network /// Cookie expiration date, session cookie if not set /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("expires"), IsRequired = (false))] - public long? Expires + public double? Expires { get; set; @@ -10901,10 +11458,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Authorization challenge for HTTP status code 401 or 407. /// @@ -10951,10 +11505,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Response to an AuthChallenge. /// @@ -10995,10 +11546,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Stages of the interception to begin intercepting. Request will intercept before the request is /// sent. Response will intercept after the response is received. @@ -11016,10 +11564,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HeadersReceived"))] HeadersReceived } -} -namespace CefSharp.DevTools.Network -{ /// /// Request pattern for interception. /// @@ -11083,10 +11628,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Information about a signed exchange signature. /// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1 @@ -11184,10 +11726,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Information about a signed exchange header. /// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation @@ -11245,10 +11784,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Field type for a signed exchange related error. /// @@ -11285,10 +11821,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("signatureTimestamps"))] SignatureTimestamps } -} -namespace CefSharp.DevTools.Network -{ /// /// Information about a signed exchange response. /// @@ -11338,10 +11871,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Information about a signed exchange response. /// @@ -11388,10 +11918,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// List of content encodings supported by the backend. /// @@ -11413,10 +11940,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("br"))] Br } -} -namespace CefSharp.DevTools.Network -{ /// /// PrivateNetworkRequestPolicy /// @@ -11438,10 +11962,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnFromInsecureToMorePrivate"))] WarnFromInsecureToMorePrivate } -} -namespace CefSharp.DevTools.Network -{ /// /// IPAddressSpace /// @@ -11468,10 +11989,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Unknown"))] Unknown } -} -namespace CefSharp.DevTools.Network -{ /// /// ClientSecurityState /// @@ -11534,10 +12052,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// CrossOriginOpenerPolicyValue /// @@ -11564,10 +12079,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameOriginPlusCoep"))] SameOriginPlusCoep } -} -namespace CefSharp.DevTools.Network -{ /// /// CrossOriginOpenerPolicyStatus /// @@ -11640,10 +12152,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// CrossOriginEmbedderPolicyValue /// @@ -11665,10 +12174,7 @@ namespace CefSharp.DevTools.Network [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RequireCorp"))] RequireCorp } -} -namespace CefSharp.DevTools.Network -{ /// /// CrossOriginEmbedderPolicyStatus /// @@ -11741,10 +12247,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// SecurityIsolationStatus /// @@ -11771,10 +12274,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// An object providing the result of a network resource load. /// @@ -11795,7 +12295,7 @@ namespace CefSharp.DevTools.Network /// Optional values used for error reporting. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("netError"), IsRequired = (false))] - public long? NetError + public double? NetError { get; set; @@ -11815,7 +12315,7 @@ namespace CefSharp.DevTools.Network /// HttpStatusCode /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("httpStatusCode"), IsRequired = (false))] - public long? HttpStatusCode + public double? HttpStatusCode { get; set; @@ -11841,10 +12341,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// An options object that may be extended later to better support CORS, /// CORB and streaming. @@ -11872,6 +12369,1301 @@ namespace CefSharp.DevTools.Network set; } } + + /// + /// Fired when data chunk was received over the network. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DataReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// Data chunk length. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("dataLength"), IsRequired = (true))] + public int DataLength + { + get; + private set; + } + + /// + /// Actual bytes received (might be less than dataLength for compressed encodings). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("encodedDataLength"), IsRequired = (true))] + public int EncodedDataLength + { + get; + private set; + } + } + + /// + /// Fired when EventSource message is received. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class EventSourceMessageReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// Message type. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventName"), IsRequired = (true))] + public string EventName + { + get; + private set; + } + + /// + /// Message identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventId"), IsRequired = (true))] + public string EventId + { + get; + private set; + } + + /// + /// Message content. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (true))] + public string Data + { + get; + private set; + } + } + + /// + /// Fired when HTTP request has failed to load. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class LoadingFailedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + public CefSharp.DevTools.Network.ResourceType Type + { + get + { + return (CefSharp.DevTools.Network.ResourceType)(StringToEnum(typeof(CefSharp.DevTools.Network.ResourceType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Resource type. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + internal string type + { + get; + private set; + } + + /// + /// User friendly error message. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorText"), IsRequired = (true))] + public string ErrorText + { + get; + private set; + } + + /// + /// True if loading was canceled. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("canceled"), IsRequired = (false))] + public bool? Canceled + { + get; + private set; + } + + public CefSharp.DevTools.Network.BlockedReason? BlockedReason + { + get + { + return (CefSharp.DevTools.Network.BlockedReason? )(StringToEnum(typeof(CefSharp.DevTools.Network.BlockedReason? ), blockedReason)); + } + + set + { + this.blockedReason = (EnumToString(value)); + } + } + + /// + /// The reason why loading was blocked, if any. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("blockedReason"), IsRequired = (false))] + internal string blockedReason + { + get; + private set; + } + + /// + /// The reason why loading was blocked by CORS, if any. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("corsErrorStatus"), IsRequired = (false))] + public CefSharp.DevTools.Network.CorsErrorStatus CorsErrorStatus + { + get; + private set; + } + } + + /// + /// Fired when HTTP request has finished loading. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class LoadingFinishedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// Total number of bytes received for this request. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("encodedDataLength"), IsRequired = (true))] + public double EncodedDataLength + { + get; + private set; + } + + /// + /// Set when 1) response was blocked by Cross-Origin Read Blocking and also + /// 2) this needs to be reported to the DevTools console. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("shouldReportCorbBlocking"), IsRequired = (false))] + public bool? ShouldReportCorbBlocking + { + get; + private set; + } + } + + /// + /// Details of an intercepted HTTP request, which must be either allowed, blocked, modified or + /// mocked. + /// Deprecated, use Fetch.requestPaused instead. + /// + [System.Runtime.Serialization.DataContractAttribute] + 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("interceptionId"), IsRequired = (true))] + public string InterceptionId + { + get; + private set; + } + + /// + /// Request + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (true))] + public CefSharp.DevTools.Network.Request Request + { + get; + private set; + } + + /// + /// The id of the frame that initiated the request. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + public CefSharp.DevTools.Network.ResourceType ResourceType + { + get + { + return (CefSharp.DevTools.Network.ResourceType)(StringToEnum(typeof(CefSharp.DevTools.Network.ResourceType), resourceType)); + } + + set + { + this.resourceType = (EnumToString(value)); + } + } + + /// + /// How the requested resource will be used. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceType"), IsRequired = (true))] + internal string resourceType + { + get; + private set; + } + + /// + /// Whether this is a navigation request, which can abort the navigation completely. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("isNavigationRequest"), IsRequired = (true))] + 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). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("isDownload"), IsRequired = (false))] + public bool? IsDownload + { + get; + private set; + } + + /// + /// Redirect location, only sent if a redirect was intercepted. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("redirectUrl"), IsRequired = (false))] + public string RedirectUrl + { + get; + private set; + } + + /// + /// Details of the Authorization Challenge encountered. If this is set then + /// continueInterceptedRequest must contain an authChallengeResponse. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("authChallenge"), IsRequired = (false))] + public CefSharp.DevTools.Network.AuthChallenge AuthChallenge + { + get; + private set; + } + + public CefSharp.DevTools.Network.ErrorReason? ResponseErrorReason + { + get + { + return (CefSharp.DevTools.Network.ErrorReason? )(StringToEnum(typeof(CefSharp.DevTools.Network.ErrorReason? ), responseErrorReason)); + } + + set + { + this.responseErrorReason = (EnumToString(value)); + } + } + + /// + /// Response error if intercepted at response stage or if redirect occurred while intercepting + /// request. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseErrorReason"), IsRequired = (false))] + internal string responseErrorReason + { + get; + private set; + } + + /// + /// Response code if intercepted at response stage or if redirect occurred while intercepting + /// request or auth retry occurred. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseStatusCode"), IsRequired = (false))] + 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseHeaders"), IsRequired = (false))] + 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (false))] + public string RequestId + { + get; + private set; + } + } + + /// + /// Fired if request ended up loading from cache. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class RequestServedFromCacheEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + } + + /// + /// Fired when page is about to send HTTP request. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class RequestWillBeSentEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Loader identifier. Empty string if the request is fetched from worker. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("loaderId"), IsRequired = (true))] + public string LoaderId + { + get; + private set; + } + + /// + /// URL of the document this request is loaded for. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("documentURL"), IsRequired = (true))] + public string DocumentURL + { + get; + private set; + } + + /// + /// Request data. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (true))] + public CefSharp.DevTools.Network.Request Request + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("wallTime"), IsRequired = (true))] + public double WallTime + { + get; + private set; + } + + /// + /// Request initiator. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("initiator"), IsRequired = (true))] + public CefSharp.DevTools.Network.Initiator Initiator + { + get; + private set; + } + + /// + /// Redirect response data. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("redirectResponse"), IsRequired = (false))] + public CefSharp.DevTools.Network.Response RedirectResponse + { + get; + private set; + } + + public CefSharp.DevTools.Network.ResourceType? Type + { + get + { + return (CefSharp.DevTools.Network.ResourceType? )(StringToEnum(typeof(CefSharp.DevTools.Network.ResourceType? ), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Type of this resource. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (false))] + internal string type + { + get; + private set; + } + + /// + /// Frame identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (false))] + public string FrameId + { + get; + private set; + } + + /// + /// Whether the request is initiated by a user gesture. Defaults to false. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasUserGesture"), IsRequired = (false))] + public bool? HasUserGesture + { + get; + private set; + } + } + + /// + /// Fired when resource loading priority is changed + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ResourceChangedPriorityEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + public CefSharp.DevTools.Network.ResourcePriority NewPriority + { + get + { + return (CefSharp.DevTools.Network.ResourcePriority)(StringToEnum(typeof(CefSharp.DevTools.Network.ResourcePriority), newPriority)); + } + + set + { + this.newPriority = (EnumToString(value)); + } + } + + /// + /// New priority + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("newPriority"), IsRequired = (true))] + internal string newPriority + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + } + + /// + /// Fired when a signed exchange was received over the network + /// + [System.Runtime.Serialization.DataContractAttribute] + public class SignedExchangeReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Information about the signed exchange response. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("info"), IsRequired = (true))] + public CefSharp.DevTools.Network.SignedExchangeInfo Info + { + get; + private set; + } + } + + /// + /// Fired when HTTP response is available. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ResponseReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Loader identifier. Empty string if the request is fetched from worker. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("loaderId"), IsRequired = (true))] + public string LoaderId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + public CefSharp.DevTools.Network.ResourceType Type + { + get + { + return (CefSharp.DevTools.Network.ResourceType)(StringToEnum(typeof(CefSharp.DevTools.Network.ResourceType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Resource type. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + internal string type + { + get; + private set; + } + + /// + /// Response data. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("response"), IsRequired = (true))] + public CefSharp.DevTools.Network.Response Response + { + get; + private set; + } + + /// + /// Frame identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (false))] + public string FrameId + { + get; + private set; + } + } + + /// + /// Fired when WebSocket is closed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WebSocketClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + } + + /// + /// Fired upon WebSocket creation. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WebSocketCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// WebSocket request URL. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + private set; + } + + /// + /// Request initiator. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("initiator"), IsRequired = (false))] + public CefSharp.DevTools.Network.Initiator Initiator + { + get; + private set; + } + } + + /// + /// Fired when WebSocket message error occurs. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WebSocketFrameErrorEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// WebSocket error message. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorMessage"), IsRequired = (true))] + public string ErrorMessage + { + get; + private set; + } + } + + /// + /// Fired when WebSocket message is received. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WebSocketFrameReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// WebSocket response data. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("response"), IsRequired = (true))] + public CefSharp.DevTools.Network.WebSocketFrame Response + { + get; + private set; + } + } + + /// + /// Fired when WebSocket message is sent. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WebSocketFrameSentEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// WebSocket response data. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("response"), IsRequired = (true))] + public CefSharp.DevTools.Network.WebSocketFrame Response + { + get; + private set; + } + } + + /// + /// Fired when WebSocket handshake response becomes available. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WebSocketHandshakeResponseReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// WebSocket response data. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("response"), IsRequired = (true))] + public CefSharp.DevTools.Network.WebSocketResponse Response + { + get; + private set; + } + } + + /// + /// Fired when WebSocket is about to initiate handshake. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WebSocketWillSendHandshakeRequestEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// UTC Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("wallTime"), IsRequired = (true))] + public double WallTime + { + get; + private set; + } + + /// + /// WebSocket request data. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (true))] + public CefSharp.DevTools.Network.WebSocketRequest Request + { + get; + private set; + } + } + + /// + /// Fired upon WebTransport creation. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WebTransportCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// WebTransport identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("transportId"), IsRequired = (true))] + public string TransportId + { + get; + private set; + } + + /// + /// WebTransport request URL. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// Request initiator. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("initiator"), IsRequired = (false))] + public CefSharp.DevTools.Network.Initiator Initiator + { + get; + private set; + } + } + + /// + /// Fired when WebTransport handshake is finished. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WebTransportConnectionEstablishedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// WebTransport identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("transportId"), IsRequired = (true))] + public string TransportId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + } + + /// + /// Fired when WebTransport is disposed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WebTransportClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// WebTransport identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("transportId"), IsRequired = (true))] + public string TransportId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class RequestWillBeSentExtraInfoEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. Used to match this information to an existing requestWillBeSent event. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + 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 blockedReason field set. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("associatedCookies"), IsRequired = (true))] + public System.Collections.Generic.IList AssociatedCookies + { + get; + private set; + } + + /// + /// Raw request headers as they will be sent over the wire. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("headers"), IsRequired = (true))] + public CefSharp.DevTools.Network.Headers Headers + { + get; + private set; + } + + /// + /// The client security state set for the request. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientSecurityState"), IsRequired = (false))] + public CefSharp.DevTools.Network.ClientSecurityState ClientSecurityState + { + 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ResponseReceivedExtraInfoEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. Used to match this information to another responseReceived event. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("blockedCookies"), IsRequired = (true))] + public System.Collections.Generic.IList BlockedCookies + { + get; + private set; + } + + /// + /// Raw response headers as they were received over the wire. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("headers"), IsRequired = (true))] + public CefSharp.DevTools.Network.Headers Headers + { + get; + private set; + } + + public CefSharp.DevTools.Network.IPAddressSpace ResourceIPAddressSpace + { + get + { + return (CefSharp.DevTools.Network.IPAddressSpace)(StringToEnum(typeof(CefSharp.DevTools.Network.IPAddressSpace), resourceIPAddressSpace)); + } + + set + { + this.resourceIPAddressSpace = (EnumToString(value)); + } + } + + /// + /// 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`. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceIPAddressSpace"), IsRequired = (true))] + internal string resourceIPAddressSpace + { + 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("headersText"), IsRequired = (false))] + public string HeadersText + { + get; + private set; + } + } + + /// + /// 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + 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). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("status"), IsRequired = (true))] + public string Status + { + get; + private set; + } + + public CefSharp.DevTools.Network.TrustTokenOperationType Type + { + get + { + return (CefSharp.DevTools.Network.TrustTokenOperationType)(StringToEnum(typeof(CefSharp.DevTools.Network.TrustTokenOperationType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Type + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + internal string type + { + get; + private set; + } + + /// + /// RequestId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// Top level origin. The context in which the operation was attempted. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("topLevelOrigin"), IsRequired = (false))] + public string TopLevelOrigin + { + get; + private set; + } + + /// + /// Origin of the issuer in case of a "Issuance" or "Redemption" operation. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("issuerOrigin"), IsRequired = (false))] + public string IssuerOrigin + { + get; + private set; + } + + /// + /// The number of obtained Trust Tokens on a successful "Issuance" operation. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("issuedTokenCount"), IsRequired = (false))] + public int? IssuedTokenCount + { + get; + private set; + } + } } namespace CefSharp.DevTools.Overlay @@ -11902,10 +13694,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Configuration data for the highlighting of Grid elements. /// @@ -12112,10 +13901,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Configuration data for the highlighting of Flex container elements. /// @@ -12202,10 +13988,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Configuration data for the highlighting of Flex item elements. /// @@ -12242,10 +14025,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Style information for drawing a line. /// @@ -12272,10 +14052,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Style information for drawing a box. /// @@ -12302,10 +14079,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// ContrastAlgorithm /// @@ -12327,10 +14101,7 @@ namespace CefSharp.DevTools.Overlay [System.Runtime.Serialization.EnumMemberAttribute(Value = ("apca"))] Apca } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Configuration data for the highlighting of page elements. /// @@ -12543,10 +14314,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// ColorFormat /// @@ -12568,10 +14336,7 @@ namespace CefSharp.DevTools.Overlay [System.Runtime.Serialization.EnumMemberAttribute(Value = ("hex"))] Hex } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Configurations for Persistent Grid Highlight /// @@ -12598,10 +14363,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// FlexNodeHighlightConfig /// @@ -12628,10 +14390,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// ScrollSnapContainerHighlightConfig /// @@ -12678,10 +14437,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// ScrollSnapHighlightConfig /// @@ -12708,10 +14464,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Configuration for dual screen hinge /// @@ -12748,10 +14501,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// InspectMode /// @@ -12783,6 +14533,58 @@ namespace CefSharp.DevTools.Overlay [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] None } + + /// + /// Fired when the node should be inspected. This happens after call to `setInspectMode` or when + /// user manually inspects an element. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class InspectNodeRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node to inspect. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (true))] + public int BackendNodeId + { + get; + private set; + } + } + + /// + /// Fired when the node should be highlighted. This happens after call to `setInspectMode`. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class NodeHighlightRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// NodeId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + public int NodeId + { + get; + private set; + } + } + + /// + /// Fired when user asks to capture screenshot of some area on the page. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ScreenshotRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Viewport to capture, in device independent pixels (dip). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("viewport"), IsRequired = (true))] + public CefSharp.DevTools.Page.Viewport Viewport + { + get; + private set; + } + } } namespace CefSharp.DevTools.Page @@ -12808,10 +14610,7 @@ namespace CefSharp.DevTools.Page [System.Runtime.Serialization.EnumMemberAttribute(Value = ("root"))] Root } -} -namespace CefSharp.DevTools.Page -{ /// /// Indicates whether the frame is a secure context and why it is the case. /// @@ -12838,10 +14637,7 @@ namespace CefSharp.DevTools.Page [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InsecureAncestor"))] InsecureAncestor } -} -namespace CefSharp.DevTools.Page -{ /// /// Indicates whether the frame is cross-origin isolated and why it is the case. /// @@ -12863,10 +14659,7 @@ namespace CefSharp.DevTools.Page [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotIsolatedFeatureDisabled"))] NotIsolatedFeatureDisabled } -} -namespace CefSharp.DevTools.Page -{ /// /// GatedAPIFeatures /// @@ -12893,10 +14686,7 @@ namespace CefSharp.DevTools.Page [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PerformanceProfile"))] PerformanceProfile } -} -namespace CefSharp.DevTools.Page -{ /// /// All Permissions Policy features. This enum should match the one defined /// in renderer/core/feature_policy/feature_policy_features.json5. @@ -13169,10 +14959,7 @@ namespace CefSharp.DevTools.Page [System.Runtime.Serialization.EnumMemberAttribute(Value = ("xr-spatial-tracking"))] XrSpatialTracking } -} -namespace CefSharp.DevTools.Page -{ /// /// Reason for a permissions policy feature to be disabled. /// @@ -13189,10 +14976,7 @@ namespace CefSharp.DevTools.Page [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IframeAttribute"))] IframeAttribute } -} -namespace CefSharp.DevTools.Page -{ /// /// PermissionsPolicyBlockLocator /// @@ -13232,10 +15016,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// PermissionsPolicyFeatureState /// @@ -13285,10 +15066,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Information about the Frame on the page. /// @@ -13490,10 +15268,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Information about the Resource on the page. /// @@ -13547,7 +15322,7 @@ namespace CefSharp.DevTools.Page /// last-modified timestamp as reported by server. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("lastModified"), IsRequired = (false))] - public long? LastModified + public double? LastModified { get; set; @@ -13557,7 +15332,7 @@ namespace CefSharp.DevTools.Page /// Resource content size. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentSize"), IsRequired = (false))] - public long? ContentSize + public double? ContentSize { get; set; @@ -13583,10 +15358,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Information about the Frame hierarchy along with their cached resources. /// @@ -13623,10 +15395,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Information about the Frame hierarchy. /// @@ -13653,10 +15422,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Transition type. /// @@ -13728,10 +15494,7 @@ namespace CefSharp.DevTools.Page [System.Runtime.Serialization.EnumMemberAttribute(Value = ("other"))] Other } -} -namespace CefSharp.DevTools.Page -{ /// /// Navigation history entry. /// @@ -13801,10 +15564,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Screencast frame metadata. /// @@ -13815,7 +15575,7 @@ namespace CefSharp.DevTools.Page /// Top offset in DIP. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetTop"), IsRequired = (true))] - public long OffsetTop + public double OffsetTop { get; set; @@ -13825,7 +15585,7 @@ namespace CefSharp.DevTools.Page /// Page scale factor. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("pageScaleFactor"), IsRequired = (true))] - public long PageScaleFactor + public double PageScaleFactor { get; set; @@ -13835,7 +15595,7 @@ namespace CefSharp.DevTools.Page /// Device screen width in DIP. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("deviceWidth"), IsRequired = (true))] - public long DeviceWidth + public double DeviceWidth { get; set; @@ -13845,7 +15605,7 @@ namespace CefSharp.DevTools.Page /// Device screen height in DIP. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("deviceHeight"), IsRequired = (true))] - public long DeviceHeight + public double DeviceHeight { get; set; @@ -13855,7 +15615,7 @@ namespace CefSharp.DevTools.Page /// Position of horizontal scroll in CSS pixels. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollOffsetX"), IsRequired = (true))] - public long ScrollOffsetX + public double ScrollOffsetX { get; set; @@ -13865,7 +15625,7 @@ namespace CefSharp.DevTools.Page /// Position of vertical scroll in CSS pixels. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollOffsetY"), IsRequired = (true))] - public long ScrollOffsetY + public double ScrollOffsetY { get; set; @@ -13875,16 +15635,13 @@ namespace CefSharp.DevTools.Page /// Frame swap timestamp. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (false))] - public long? Timestamp + public double? Timestamp { get; set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Javascript dialog type. /// @@ -13911,10 +15668,7 @@ namespace CefSharp.DevTools.Page [System.Runtime.Serialization.EnumMemberAttribute(Value = ("beforeunload"))] Beforeunload } -} -namespace CefSharp.DevTools.Page -{ /// /// Error while paring app manifest. /// @@ -13961,10 +15715,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Parsed app manifest properties. /// @@ -13981,10 +15732,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Layout viewport position and dimensions. /// @@ -14031,10 +15779,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Visual viewport position, dimensions, and scale. /// @@ -14045,7 +15790,7 @@ namespace CefSharp.DevTools.Page /// Horizontal offset relative to the layout viewport (CSS pixels). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetX"), IsRequired = (true))] - public long OffsetX + public double OffsetX { get; set; @@ -14055,7 +15800,7 @@ namespace CefSharp.DevTools.Page /// Vertical offset relative to the layout viewport (CSS pixels). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetY"), IsRequired = (true))] - public long OffsetY + public double OffsetY { get; set; @@ -14065,7 +15810,7 @@ namespace CefSharp.DevTools.Page /// Horizontal offset relative to the document (CSS pixels). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("pageX"), IsRequired = (true))] - public long PageX + public double PageX { get; set; @@ -14075,7 +15820,7 @@ namespace CefSharp.DevTools.Page /// Vertical offset relative to the document (CSS pixels). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("pageY"), IsRequired = (true))] - public long PageY + public double PageY { get; set; @@ -14085,7 +15830,7 @@ namespace CefSharp.DevTools.Page /// Width (CSS pixels), excludes scrollbar if present. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientWidth"), IsRequired = (true))] - public long ClientWidth + public double ClientWidth { get; set; @@ -14095,7 +15840,7 @@ namespace CefSharp.DevTools.Page /// Height (CSS pixels), excludes scrollbar if present. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientHeight"), IsRequired = (true))] - public long ClientHeight + public double ClientHeight { get; set; @@ -14105,7 +15850,7 @@ namespace CefSharp.DevTools.Page /// Scale relative to the ideal viewport (size at width=device-width). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("scale"), IsRequired = (true))] - public long Scale + public double Scale { get; set; @@ -14115,16 +15860,13 @@ namespace CefSharp.DevTools.Page /// Page zoom factor (CSS to device independent pixels ratio). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("zoom"), IsRequired = (false))] - public long? Zoom + public double? Zoom { get; set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Viewport for capturing screenshot. /// @@ -14135,7 +15877,7 @@ namespace CefSharp.DevTools.Page /// X offset in device independent pixels (dip). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("x"), IsRequired = (true))] - public long X + public double X { get; set; @@ -14145,7 +15887,7 @@ namespace CefSharp.DevTools.Page /// Y offset in device independent pixels (dip). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("y"), IsRequired = (true))] - public long Y + public double Y { get; set; @@ -14155,7 +15897,7 @@ namespace CefSharp.DevTools.Page /// Rectangle width in device independent pixels (dip). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("width"), IsRequired = (true))] - public long Width + public double Width { get; set; @@ -14165,7 +15907,7 @@ namespace CefSharp.DevTools.Page /// Rectangle height in device independent pixels (dip). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("height"), IsRequired = (true))] - public long Height + public double Height { get; set; @@ -14175,16 +15917,13 @@ namespace CefSharp.DevTools.Page /// Page scale factor. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("scale"), IsRequired = (true))] - public long Scale + public double Scale { get; set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Generic font families collection. /// @@ -14261,10 +16000,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Default font sizes. /// @@ -14291,10 +16027,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// ClientNavigationReason /// @@ -14341,10 +16074,7 @@ namespace CefSharp.DevTools.Page [System.Runtime.Serialization.EnumMemberAttribute(Value = ("anchorClick"))] AnchorClick } -} -namespace CefSharp.DevTools.Page -{ /// /// ClientNavigationDisposition /// @@ -14371,10 +16101,7 @@ namespace CefSharp.DevTools.Page [System.Runtime.Serialization.EnumMemberAttribute(Value = ("download"))] Download } -} -namespace CefSharp.DevTools.Page -{ /// /// InstallabilityErrorArgument /// @@ -14401,10 +16128,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// The installability error /// @@ -14431,10 +16155,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// The referring-policy used for the navigation. /// @@ -14481,10 +16202,7 @@ namespace CefSharp.DevTools.Page [System.Runtime.Serialization.EnumMemberAttribute(Value = ("unsafeUrl"))] UnsafeUrl } -} -namespace CefSharp.DevTools.Page -{ /// /// Per-script compilation cache parameters for `Page.produceCompilationCache` /// @@ -14512,6 +16230,762 @@ namespace CefSharp.DevTools.Page set; } } + + /// + /// domContentEventFired + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DomContentEventFiredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Timestamp + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + } + + /// + /// Emitted only when `page.interceptFileChooser` is enabled. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class FileChooserOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame containing input node. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + /// + /// Input node id. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (true))] + public int BackendNodeId + { + get; + private set; + } + + /// + /// Input mode. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("mode"), IsRequired = (true))] + public string Mode + { + get; + private set; + } + } + + /// + /// Fired when frame has been attached to its parent. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class FrameAttachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame that has been attached. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + /// + /// Parent frame identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentFrameId"), IsRequired = (true))] + public string ParentFrameId + { + get; + private set; + } + + /// + /// JavaScript stack trace of when frame was attached, only set if frame initiated from script. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("stack"), IsRequired = (false))] + public CefSharp.DevTools.Runtime.StackTrace Stack + { + get; + private set; + } + } + + /// + /// Fired when frame no longer has a scheduled navigation. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class FrameClearedScheduledNavigationEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame that has cleared its scheduled navigation. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + } + + /// + /// Fired when frame has been detached from its parent. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class FrameDetachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame that has been detached. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + /// + /// Reason + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + public string Reason + { + get; + private set; + } + } + + /// + /// Fired once navigation of the frame has completed. Frame is now associated with the new loader. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class FrameNavigatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Frame object. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frame"), IsRequired = (true))] + public CefSharp.DevTools.Page.Frame Frame + { + get; + private set; + } + } + + /// + /// Fired when opening document to write to. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DocumentOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Frame object. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frame"), IsRequired = (true))] + public CefSharp.DevTools.Page.Frame Frame + { + get; + private set; + } + } + + /// + /// Fired when a renderer-initiated navigation is requested. + /// Navigation may still be cancelled after the event is issued. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class FrameRequestedNavigationEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame that is being navigated. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + public CefSharp.DevTools.Page.ClientNavigationReason Reason + { + get + { + return (CefSharp.DevTools.Page.ClientNavigationReason)(StringToEnum(typeof(CefSharp.DevTools.Page.ClientNavigationReason), reason)); + } + + set + { + this.reason = (EnumToString(value)); + } + } + + /// + /// The reason for the navigation. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + internal string reason + { + get; + private set; + } + + /// + /// The destination URL for the requested navigation. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + private set; + } + + public CefSharp.DevTools.Page.ClientNavigationDisposition Disposition + { + get + { + return (CefSharp.DevTools.Page.ClientNavigationDisposition)(StringToEnum(typeof(CefSharp.DevTools.Page.ClientNavigationDisposition), disposition)); + } + + set + { + this.disposition = (EnumToString(value)); + } + } + + /// + /// The disposition for the navigation. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("disposition"), IsRequired = (true))] + internal string disposition + { + get; + private set; + } + } + + /// + /// Fired when frame schedules a potential navigation. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class FrameScheduledNavigationEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame that has scheduled a navigation. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + /// + /// Delay (in seconds) until the navigation is scheduled to begin. The navigation is not + /// guaranteed to start. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("delay"), IsRequired = (true))] + public double Delay + { + get; + private set; + } + + public CefSharp.DevTools.Page.ClientNavigationReason Reason + { + get + { + return (CefSharp.DevTools.Page.ClientNavigationReason)(StringToEnum(typeof(CefSharp.DevTools.Page.ClientNavigationReason), reason)); + } + + set + { + this.reason = (EnumToString(value)); + } + } + + /// + /// The reason for the navigation. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + internal string reason + { + get; + private set; + } + + /// + /// The destination URL for the scheduled navigation. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + private set; + } + } + + /// + /// Fired when frame has started loading. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class FrameStartedLoadingEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame that has started loading. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + } + + /// + /// Fired when frame has stopped loading. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class FrameStoppedLoadingEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame that has stopped loading. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + } + + /// + /// Fired when page is about to start a download. + /// Deprecated. Use Browser.downloadWillBegin instead. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DownloadWillBeginEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame that caused download to begin. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + /// + /// Global unique identifier of the download. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("guid"), IsRequired = (true))] + public string Guid + { + get; + private set; + } + + /// + /// URL of the resource being downloaded. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + private set; + } + + /// + /// Suggested file name of the resource (the actual name of the file saved on disk may differ). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("suggestedFilename"), IsRequired = (true))] + public string SuggestedFilename + { + get; + private set; + } + } + + /// + /// Fired when download makes progress. Last call has |done| == true. + /// Deprecated. Use Browser.downloadProgress instead. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DownloadProgressEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Global unique identifier of the download. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("guid"), IsRequired = (true))] + public string Guid + { + get; + private set; + } + + /// + /// Total expected bytes to download. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("totalBytes"), IsRequired = (true))] + public double TotalBytes + { + get; + private set; + } + + /// + /// Total bytes received. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("receivedBytes"), IsRequired = (true))] + public double ReceivedBytes + { + get; + private set; + } + + /// + /// Download status. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("state"), IsRequired = (true))] + public string State + { + get; + private set; + } + } + + /// + /// Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been + /// closed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class JavascriptDialogClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Whether dialog was confirmed. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("result"), IsRequired = (true))] + public bool Result + { + get; + private set; + } + + /// + /// User input in case of prompt. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("userInput"), IsRequired = (true))] + public string UserInput + { + get; + private set; + } + } + + /// + /// Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to + /// open. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class JavascriptDialogOpeningEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Frame url. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + private set; + } + + /// + /// Message that will be displayed by the dialog. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("message"), IsRequired = (true))] + public string Message + { + get; + private set; + } + + public CefSharp.DevTools.Page.DialogType Type + { + get + { + return (CefSharp.DevTools.Page.DialogType)(StringToEnum(typeof(CefSharp.DevTools.Page.DialogType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Dialog type. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + internal string 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasBrowserHandler"), IsRequired = (true))] + public bool HasBrowserHandler + { + get; + private set; + } + + /// + /// Default dialog prompt. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("defaultPrompt"), IsRequired = (false))] + public string DefaultPrompt + { + get; + private set; + } + } + + /// + /// Fired for top level page lifecycle events such as navigation, load, paint, etc. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class LifecycleEventEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + /// + /// Loader identifier. Empty string if the request is fetched from worker. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("loaderId"), IsRequired = (true))] + public string LoaderId + { + get; + private set; + } + + /// + /// Name + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + private set; + } + + /// + /// Timestamp + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + } + + /// + /// loadEventFired + /// + [System.Runtime.Serialization.DataContractAttribute] + public class LoadEventFiredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Timestamp + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + } + + /// + /// Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class NavigatedWithinDocumentEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + /// + /// Frame's new url. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + private set; + } + } + + /// + /// Compressed image data requested by the `startScreencast`. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ScreencastFrameEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Base64-encoded compressed image. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (true))] + public byte[] Data + { + get; + private set; + } + + /// + /// Screencast frame metadata. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("metadata"), IsRequired = (true))] + public CefSharp.DevTools.Page.ScreencastFrameMetadata Metadata + { + get; + private set; + } + + /// + /// Frame number. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sessionId"), IsRequired = (true))] + public int SessionId + { + get; + private set; + } + } + + /// + /// Fired when the page with currently enabled screencast was shown or hidden `. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ScreencastVisibilityChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// True if the page is visible. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("visible"), IsRequired = (true))] + public bool Visible + { + get; + private set; + } + } + + /// + /// Fired when a new window is going to be opened, via window.open(), link click, form submission, + /// etc. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WindowOpenEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The URL for the new window. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + private set; + } + + /// + /// Window name. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("windowName"), IsRequired = (true))] + public string WindowName + { + get; + private set; + } + + /// + /// An array of enabled window features. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("windowFeatures"), IsRequired = (true))] + public string[] WindowFeatures + { + get; + private set; + } + + /// + /// Whether or not it was triggered by user gesture. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("userGesture"), IsRequired = (true))] + public bool UserGesture + { + get; + private set; + } + } + + /// + /// Issued for every compilation cache generated. Is only available + /// if Page.setGenerateCompilationCache is enabled. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class CompilationCacheProducedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Url + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + private set; + } + + /// + /// Base64-encoded data + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (true))] + public byte[] Data + { + get; + private set; + } + } } namespace CefSharp.DevTools.Performance @@ -14536,12 +17010,39 @@ namespace CefSharp.DevTools.Performance /// Metric value. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] - public long Value + public double Value { get; set; } } + + /// + /// Current values of the metrics. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class MetricsEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Current values of the metrics. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("metrics"), IsRequired = (true))] + public System.Collections.Generic.IList Metrics + { + get; + private set; + } + + /// + /// Timestamp title. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (true))] + public string Title + { + get; + private set; + } + } } namespace CefSharp.DevTools.PerformanceTimeline @@ -14556,7 +17057,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// RenderTime /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("renderTime"), IsRequired = (true))] - public long RenderTime + public double RenderTime { get; set; @@ -14566,7 +17067,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// LoadTime /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("loadTime"), IsRequired = (true))] - public long LoadTime + public double LoadTime { get; set; @@ -14576,7 +17077,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// The number of pixels being painted. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("size"), IsRequired = (true))] - public long Size + public double Size { get; set; @@ -14612,10 +17113,7 @@ namespace CefSharp.DevTools.PerformanceTimeline set; } } -} -namespace CefSharp.DevTools.PerformanceTimeline -{ /// /// LayoutShiftAttribution /// @@ -14652,10 +17150,7 @@ namespace CefSharp.DevTools.PerformanceTimeline set; } } -} -namespace CefSharp.DevTools.PerformanceTimeline -{ /// /// See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl /// @@ -14666,7 +17161,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// Score increment produced by this event. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] - public long Value + public double Value { get; set; @@ -14686,7 +17181,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// LastInputTime /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("lastInputTime"), IsRequired = (true))] - public long LastInputTime + public double LastInputTime { get; set; @@ -14702,10 +17197,7 @@ namespace CefSharp.DevTools.PerformanceTimeline set; } } -} -namespace CefSharp.DevTools.PerformanceTimeline -{ /// /// TimelineEvent /// @@ -14747,7 +17239,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// Time in seconds since Epoch, monotonically increasing within document lifetime. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("time"), IsRequired = (true))] - public long Time + public double Time { get; set; @@ -14757,7 +17249,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// Event duration, if applicable. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("duration"), IsRequired = (false))] - public long? Duration + public double? Duration { get; set; @@ -14783,6 +17275,23 @@ namespace CefSharp.DevTools.PerformanceTimeline set; } } + + /// + /// Sent when a performance timeline event is added. See reportPerformanceTimeline method. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class TimelineEventAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Event + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("event"), IsRequired = (true))] + public CefSharp.DevTools.PerformanceTimeline.TimelineEvent Event + { + get; + private set; + } + } } namespace CefSharp.DevTools.Security @@ -14809,10 +17318,7 @@ namespace CefSharp.DevTools.Security [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] None } -} -namespace CefSharp.DevTools.Security -{ /// /// The security level of a page or resource. /// @@ -14849,10 +17355,7 @@ namespace CefSharp.DevTools.Security [System.Runtime.Serialization.EnumMemberAttribute(Value = ("insecure-broken"))] InsecureBroken } -} -namespace CefSharp.DevTools.Security -{ /// /// Details about the security state of the page certificate. /// @@ -14943,7 +17446,7 @@ namespace CefSharp.DevTools.Security /// Certificate valid from date. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("validFrom"), IsRequired = (true))] - public long ValidFrom + public double ValidFrom { get; set; @@ -14953,7 +17456,7 @@ namespace CefSharp.DevTools.Security /// Certificate valid to (expiration) date /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("validTo"), IsRequired = (true))] - public long ValidTo + public double ValidTo { get; set; @@ -15039,10 +17542,7 @@ namespace CefSharp.DevTools.Security set; } } -} -namespace CefSharp.DevTools.Security -{ /// /// SafetyTipStatus /// @@ -15059,10 +17559,7 @@ namespace CefSharp.DevTools.Security [System.Runtime.Serialization.EnumMemberAttribute(Value = ("lookalike"))] Lookalike } -} -namespace CefSharp.DevTools.Security -{ /// /// SafetyTipInfo /// @@ -15102,10 +17599,7 @@ namespace CefSharp.DevTools.Security set; } } -} -namespace CefSharp.DevTools.Security -{ /// /// Security state information about the page. /// @@ -15165,10 +17659,7 @@ namespace CefSharp.DevTools.Security set; } } -} -namespace CefSharp.DevTools.Security -{ /// /// An explanation of an factor contributing to the security state. /// @@ -15271,10 +17762,7 @@ namespace CefSharp.DevTools.Security set; } } -} -namespace CefSharp.DevTools.Security -{ /// /// Information about insecure content on the page. /// @@ -15377,10 +17865,7 @@ namespace CefSharp.DevTools.Security set; } } -} -namespace CefSharp.DevTools.Security -{ /// /// The action to take when a certificate error occurs. continue will continue processing the /// request and cancel will cancel the request. @@ -15398,6 +17883,134 @@ namespace CefSharp.DevTools.Security [System.Runtime.Serialization.EnumMemberAttribute(Value = ("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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class CertificateErrorEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The ID of the event. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventId"), IsRequired = (true))] + public int EventId + { + get; + private set; + } + + /// + /// The type of the error. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorType"), IsRequired = (true))] + public string ErrorType + { + get; + private set; + } + + /// + /// The url that was requested. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestURL"), IsRequired = (true))] + public string RequestURL + { + get; + private set; + } + } + + /// + /// The security state of the page changed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class VisibleSecurityStateChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Security state information about the page. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("visibleSecurityState"), IsRequired = (true))] + public CefSharp.DevTools.Security.VisibleSecurityState VisibleSecurityState + { + get; + private set; + } + } + + /// + /// The security state of the page changed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class SecurityStateChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + public CefSharp.DevTools.Security.SecurityState SecurityState + { + get + { + return (CefSharp.DevTools.Security.SecurityState)(StringToEnum(typeof(CefSharp.DevTools.Security.SecurityState), securityState)); + } + + set + { + this.securityState = (EnumToString(value)); + } + } + + /// + /// Security state. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityState"), IsRequired = (true))] + internal string securityState + { + get; + private set; + } + + /// + /// True if the page was loaded over cryptographic transport such as HTTPS. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("schemeIsCryptographic"), IsRequired = (true))] + public bool SchemeIsCryptographic + { + get; + private set; + } + + /// + /// List of explanations for the security state. If the overall security state is `insecure` or + /// `warning`, at least one corresponding explanation should be included. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("explanations"), IsRequired = (true))] + public System.Collections.Generic.IList Explanations + { + get; + private set; + } + + /// + /// Information about insecure content on the page. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("insecureContentStatus"), IsRequired = (true))] + public CefSharp.DevTools.Security.InsecureContentStatus InsecureContentStatus + { + get; + private set; + } + + /// + /// Overrides user-visible description of the state. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("summary"), IsRequired = (false))] + public string Summary + { + get; + private set; + } + } } namespace CefSharp.DevTools.ServiceWorker @@ -15438,10 +18051,7 @@ namespace CefSharp.DevTools.ServiceWorker set; } } -} -namespace CefSharp.DevTools.ServiceWorker -{ /// /// ServiceWorkerVersionRunningStatus /// @@ -15468,10 +18078,7 @@ namespace CefSharp.DevTools.ServiceWorker [System.Runtime.Serialization.EnumMemberAttribute(Value = ("stopping"))] Stopping } -} -namespace CefSharp.DevTools.ServiceWorker -{ /// /// ServiceWorkerVersionStatus /// @@ -15508,10 +18115,7 @@ namespace CefSharp.DevTools.ServiceWorker [System.Runtime.Serialization.EnumMemberAttribute(Value = ("redundant"))] Redundant } -} -namespace CefSharp.DevTools.ServiceWorker -{ /// /// ServiceWorker version. /// @@ -15598,7 +18202,7 @@ namespace CefSharp.DevTools.ServiceWorker /// The Last-Modified header value of the main script. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptLastModified"), IsRequired = (false))] - public long? ScriptLastModified + public double? ScriptLastModified { get; set; @@ -15609,7 +18213,7 @@ namespace CefSharp.DevTools.ServiceWorker /// For cached script it is the last time the cache entry was validated. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptResponseTime"), IsRequired = (false))] - public long? ScriptResponseTime + public double? ScriptResponseTime { get; set; @@ -15635,10 +18239,7 @@ namespace CefSharp.DevTools.ServiceWorker set; } } -} -namespace CefSharp.DevTools.ServiceWorker -{ /// /// ServiceWorker error message. /// @@ -15705,6 +18306,57 @@ namespace CefSharp.DevTools.ServiceWorker set; } } + + /// + /// workerErrorReported + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WorkerErrorReportedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ErrorMessage + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorMessage"), IsRequired = (true))] + public CefSharp.DevTools.ServiceWorker.ServiceWorkerErrorMessage ErrorMessage + { + get; + private set; + } + } + + /// + /// workerRegistrationUpdated + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WorkerRegistrationUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Registrations + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("registrations"), IsRequired = (true))] + public System.Collections.Generic.IList Registrations + { + get; + private set; + } + } + + /// + /// workerVersionUpdated + /// + [System.Runtime.Serialization.DataContractAttribute] + public class WorkerVersionUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Versions + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("versions"), IsRequired = (true))] + public System.Collections.Generic.IList Versions + { + get; + private set; + } + } } namespace CefSharp.DevTools.Storage @@ -15770,10 +18422,7 @@ namespace CefSharp.DevTools.Storage [System.Runtime.Serialization.EnumMemberAttribute(Value = ("other"))] Other } -} -namespace CefSharp.DevTools.Storage -{ /// /// Usage for a storage type. /// @@ -15807,16 +18456,13 @@ namespace CefSharp.DevTools.Storage /// Storage usage (bytes). /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("usage"), IsRequired = (true))] - public long Usage + public double Usage { get; set; } } -} -namespace CefSharp.DevTools.Storage -{ /// /// Pair of issuer origin and number of available (signed, but not used) Trust /// Tokens from that issuer. @@ -15838,12 +18484,110 @@ namespace CefSharp.DevTools.Storage /// Count /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("count"), IsRequired = (true))] - public long Count + public double Count { get; set; } } + + /// + /// A cache's contents have been modified. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class CacheStorageContentUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Origin to update. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + public string Origin + { + get; + private set; + } + + /// + /// Name of cache in origin. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("cacheName"), IsRequired = (true))] + public string CacheName + { + get; + private set; + } + } + + /// + /// A cache has been added/deleted. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class CacheStorageListUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Origin to update. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + public string Origin + { + get; + private set; + } + } + + /// + /// The origin's IndexedDB object store has been modified. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class IndexedDBContentUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Origin to update. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + public string Origin + { + get; + private set; + } + + /// + /// Database to update. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("databaseName"), IsRequired = (true))] + public string DatabaseName + { + get; + private set; + } + + /// + /// ObjectStore to update. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("objectStoreName"), IsRequired = (true))] + public string ObjectStoreName + { + get; + private set; + } + } + + /// + /// The origin's IndexedDB database list has been modified. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class IndexedDBListUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Origin to update. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + public string Origin + { + get; + private set; + } + } } namespace CefSharp.DevTools.SystemInfo @@ -15858,7 +18602,7 @@ namespace CefSharp.DevTools.SystemInfo /// PCI ID of the GPU vendor, if available; 0 otherwise. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("vendorId"), IsRequired = (true))] - public long VendorId + public double VendorId { get; set; @@ -15868,7 +18612,7 @@ namespace CefSharp.DevTools.SystemInfo /// PCI ID of the GPU device, if available; 0 otherwise. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("deviceId"), IsRequired = (true))] - public long DeviceId + public double DeviceId { get; set; @@ -15878,7 +18622,7 @@ namespace CefSharp.DevTools.SystemInfo /// Sub sys ID of the GPU, only available on Windows. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("subSysId"), IsRequired = (false))] - public long? SubSysId + public double? SubSysId { get; set; @@ -15888,7 +18632,7 @@ namespace CefSharp.DevTools.SystemInfo /// Revision of the GPU, only available on Windows. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("revision"), IsRequired = (false))] - public long? Revision + public double? Revision { get; set; @@ -15934,10 +18678,7 @@ namespace CefSharp.DevTools.SystemInfo set; } } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Describes the width and height dimensions of an entity. /// @@ -15964,10 +18705,7 @@ namespace CefSharp.DevTools.SystemInfo set; } } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Describes a supported video decoding profile with its associated minimum and /// maximum resolutions. @@ -16005,10 +18743,7 @@ namespace CefSharp.DevTools.SystemInfo set; } } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Describes a supported video encoding profile with its associated maximum /// resolution and maximum framerate. @@ -16058,10 +18793,7 @@ namespace CefSharp.DevTools.SystemInfo set; } } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// YUV subsampling type of the pixels of a given image. /// @@ -16083,10 +18815,7 @@ namespace CefSharp.DevTools.SystemInfo [System.Runtime.Serialization.EnumMemberAttribute(Value = ("yuv444"))] Yuv444 } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Image format of a given image. /// @@ -16108,10 +18837,7 @@ namespace CefSharp.DevTools.SystemInfo [System.Runtime.Serialization.EnumMemberAttribute(Value = ("unknown"))] Unknown } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Describes a supported image decoding profile with its associated minimum and /// maximum resolutions and subsampling. @@ -16185,10 +18911,7 @@ namespace CefSharp.DevTools.SystemInfo set; } } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Provides information about the GPU(s) on the system. /// @@ -16265,10 +18988,7 @@ namespace CefSharp.DevTools.SystemInfo set; } } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Represents process info. /// @@ -16300,7 +19020,7 @@ namespace CefSharp.DevTools.SystemInfo /// process since the process start. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("cpuTime"), IsRequired = (true))] - public long CpuTime + public double CpuTime { get; set; @@ -16406,10 +19126,7 @@ namespace CefSharp.DevTools.Target set; } } -} -namespace CefSharp.DevTools.Target -{ /// /// RemoteLocation /// @@ -16436,6 +19153,228 @@ namespace CefSharp.DevTools.Target set; } } + + /// + /// Issued when attached to target because of auto-attach or `attachToTarget` command. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AttachedToTargetEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier assigned to the session used to send/receive messages. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sessionId"), IsRequired = (true))] + public string SessionId + { + get; + private set; + } + + /// + /// TargetInfo + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetInfo"), IsRequired = (true))] + public CefSharp.DevTools.Target.TargetInfo TargetInfo + { + get; + private set; + } + + /// + /// WaitingForDebugger + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("waitingForDebugger"), IsRequired = (true))] + 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DetachedFromTargetEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Detached session identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sessionId"), IsRequired = (true))] + public string SessionId + { + get; + private set; + } + + /// + /// Deprecated. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetId"), IsRequired = (false))] + public string TargetId + { + get; + private set; + } + } + + /// + /// Notifies about a new protocol message received from the session (as reported in + /// `attachedToTarget` event). + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ReceivedMessageFromTargetEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier of a session which sends a message. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sessionId"), IsRequired = (true))] + public string SessionId + { + get; + private set; + } + + /// + /// Message + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("message"), IsRequired = (true))] + public string Message + { + get; + private set; + } + + /// + /// Deprecated. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetId"), IsRequired = (false))] + public string TargetId + { + get; + private set; + } + } + + /// + /// Issued when a possible inspection target is created. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class TargetCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// TargetInfo + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetInfo"), IsRequired = (true))] + public CefSharp.DevTools.Target.TargetInfo TargetInfo + { + get; + private set; + } + } + + /// + /// Issued when a target is destroyed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class TargetDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// TargetId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetId"), IsRequired = (true))] + public string TargetId + { + get; + private set; + } + } + + /// + /// Issued when a target has crashed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class TargetCrashedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// TargetId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetId"), IsRequired = (true))] + public string TargetId + { + get; + private set; + } + + /// + /// Termination status type. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("status"), IsRequired = (true))] + public string Status + { + get; + private set; + } + + /// + /// Termination error code. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorCode"), IsRequired = (true))] + public int ErrorCode + { + get; + private set; + } + } + + /// + /// Issued when some information about a target has changed. This only happens between + /// `targetCreated` and `targetDestroyed`. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class TargetInfoChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// TargetInfo + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetInfo"), IsRequired = (true))] + 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AcceptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Port number that was successfully bound. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("port"), IsRequired = (true))] + public int Port + { + get; + private set; + } + + /// + /// Connection id to be used. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("connectionId"), IsRequired = (true))] + public string ConnectionId + { + get; + private set; + } + } } namespace CefSharp.DevTools.Tracing @@ -16526,10 +19465,7 @@ namespace CefSharp.DevTools.Tracing set; } } -} -namespace CefSharp.DevTools.Tracing -{ /// /// Data format of a trace. Can be either the legacy JSON format or the /// protocol buffer format. Note that the JSON format will be deprecated soon. @@ -16547,10 +19483,7 @@ namespace CefSharp.DevTools.Tracing [System.Runtime.Serialization.EnumMemberAttribute(Value = ("proto"))] Proto } -} -namespace CefSharp.DevTools.Tracing -{ /// /// Compression type to use for traces returned via streams. /// @@ -16567,10 +19500,7 @@ namespace CefSharp.DevTools.Tracing [System.Runtime.Serialization.EnumMemberAttribute(Value = ("gzip"))] Gzip } -} -namespace CefSharp.DevTools.Tracing -{ /// /// Details exposed when memory request explicitly declared. /// Keep consistent with memory_dump_request_args.h and @@ -16594,10 +19524,7 @@ namespace CefSharp.DevTools.Tracing [System.Runtime.Serialization.EnumMemberAttribute(Value = ("detailed"))] Detailed } -} -namespace CefSharp.DevTools.Tracing -{ /// /// Backend type to use for tracing. `chrome` uses the Chrome-integrated /// tracing service and is supported on all platforms. `system` is only @@ -16623,6 +19550,138 @@ namespace CefSharp.DevTools.Tracing [System.Runtime.Serialization.EnumMemberAttribute(Value = ("system"))] System } + + /// + /// bufferUsage + /// + [System.Runtime.Serialization.DataContractAttribute] + 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("percentFull"), IsRequired = (false))] + public double? PercentFull + { + get; + private set; + } + + /// + /// An approximate number of events in the trace log. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventCount"), IsRequired = (false))] + 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + public double? Value + { + get; + private set; + } + } + + /// + /// Contains an bucket of collected trace events. When tracing is stopped collected events will be + /// send as a sequence of dataCollected events followed by tracingComplete event. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DataCollectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Value + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("dataLossOccurred"), IsRequired = (true))] + public bool DataLossOccurred + { + get; + private set; + } + + /// + /// A handle of the stream that holds resulting trace data. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("stream"), IsRequired = (false))] + public string Stream + { + get; + private set; + } + + public CefSharp.DevTools.Tracing.StreamFormat? TraceFormat + { + get + { + return (CefSharp.DevTools.Tracing.StreamFormat? )(StringToEnum(typeof(CefSharp.DevTools.Tracing.StreamFormat? ), traceFormat)); + } + + set + { + this.traceFormat = (EnumToString(value)); + } + } + + /// + /// Trace data format of returned stream. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("traceFormat"), IsRequired = (false))] + internal string traceFormat + { + get; + private set; + } + + public CefSharp.DevTools.Tracing.StreamCompression? StreamCompression + { + get + { + return (CefSharp.DevTools.Tracing.StreamCompression? )(StringToEnum(typeof(CefSharp.DevTools.Tracing.StreamCompression? ), streamCompression)); + } + + set + { + this.streamCompression = (EnumToString(value)); + } + } + + /// + /// Compression format of returned stream. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("streamCompression"), IsRequired = (false))] + internal string streamCompression + { + get; + private set; + } + } } namespace CefSharp.DevTools.Fetch @@ -16645,10 +19704,7 @@ namespace CefSharp.DevTools.Fetch [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Response"))] Response } -} -namespace CefSharp.DevTools.Fetch -{ /// /// RequestPattern /// @@ -16712,10 +19768,7 @@ namespace CefSharp.DevTools.Fetch set; } } -} -namespace CefSharp.DevTools.Fetch -{ /// /// Response HTTP header entry /// @@ -16742,10 +19795,7 @@ namespace CefSharp.DevTools.Fetch set; } } -} -namespace CefSharp.DevTools.Fetch -{ /// /// Authorization challenge for HTTP status code 401 or 407. /// @@ -16792,10 +19842,7 @@ namespace CefSharp.DevTools.Fetch set; } } -} -namespace CefSharp.DevTools.Fetch -{ /// /// Response to an AuthChallenge. /// @@ -16836,6 +19883,198 @@ namespace CefSharp.DevTools.Fetch 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class RequestPausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Each request the page makes will have a unique id. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// The details of the request. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (true))] + public CefSharp.DevTools.Network.Request Request + { + get; + private set; + } + + /// + /// The id of the frame that initiated the request. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + public CefSharp.DevTools.Network.ResourceType ResourceType + { + get + { + return (CefSharp.DevTools.Network.ResourceType)(StringToEnum(typeof(CefSharp.DevTools.Network.ResourceType), resourceType)); + } + + set + { + this.resourceType = (EnumToString(value)); + } + } + + /// + /// How the requested resource will be used. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceType"), IsRequired = (true))] + internal string resourceType + { + get; + private set; + } + + public CefSharp.DevTools.Network.ErrorReason? ResponseErrorReason + { + get + { + return (CefSharp.DevTools.Network.ErrorReason? )(StringToEnum(typeof(CefSharp.DevTools.Network.ErrorReason? ), responseErrorReason)); + } + + set + { + this.responseErrorReason = (EnumToString(value)); + } + } + + /// + /// Response error if intercepted at response stage. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseErrorReason"), IsRequired = (false))] + internal string responseErrorReason + { + get; + private set; + } + + /// + /// Response code if intercepted at response stage. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseStatusCode"), IsRequired = (false))] + public int? ResponseStatusCode + { + get; + private set; + } + + /// + /// Response headers if intercepted at the response stage. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseHeaders"), IsRequired = (false))] + 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("networkId"), IsRequired = (false))] + public string NetworkId + { + get; + private set; + } + } + + /// + /// Issued when the domain is enabled with handleAuthRequests set to true. + /// The request is paused until client responds with continueWithAuth. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AuthRequiredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Each request the page makes will have a unique id. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } + + /// + /// The details of the request. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (true))] + public CefSharp.DevTools.Network.Request Request + { + get; + private set; + } + + /// + /// The id of the frame that initiated the request. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + public string FrameId + { + get; + private set; + } + + public CefSharp.DevTools.Network.ResourceType ResourceType + { + get + { + return (CefSharp.DevTools.Network.ResourceType)(StringToEnum(typeof(CefSharp.DevTools.Network.ResourceType), resourceType)); + } + + set + { + this.resourceType = (EnumToString(value)); + } + } + + /// + /// How the requested resource will be used. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceType"), IsRequired = (true))] + internal string resourceType + { + get; + private set; + } + + /// + /// Details of the Authorization Challenge encountered. + /// If this is set, client should respond with continueRequest that + /// contains AuthChallengeResponse. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("authChallenge"), IsRequired = (true))] + public CefSharp.DevTools.Fetch.AuthChallenge AuthChallenge + { + get; + private set; + } + } } namespace CefSharp.DevTools.WebAudio @@ -16856,10 +20095,7 @@ namespace CefSharp.DevTools.WebAudio [System.Runtime.Serialization.EnumMemberAttribute(Value = ("offline"))] Offline } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Enum of AudioContextState from the spec /// @@ -16881,10 +20117,7 @@ namespace CefSharp.DevTools.WebAudio [System.Runtime.Serialization.EnumMemberAttribute(Value = ("closed"))] Closed } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Enum of AudioNode::ChannelCountMode from the spec /// @@ -16906,10 +20139,7 @@ namespace CefSharp.DevTools.WebAudio [System.Runtime.Serialization.EnumMemberAttribute(Value = ("max"))] Max } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Enum of AudioNode::ChannelInterpretation from the spec /// @@ -16926,10 +20156,7 @@ namespace CefSharp.DevTools.WebAudio [System.Runtime.Serialization.EnumMemberAttribute(Value = ("speakers"))] Speakers } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Enum of AudioParam::AutomationRate from the spec /// @@ -16946,10 +20173,7 @@ namespace CefSharp.DevTools.WebAudio [System.Runtime.Serialization.EnumMemberAttribute(Value = ("k-rate"))] KRate } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Fields in AudioContext that change in real-time. /// @@ -16960,7 +20184,7 @@ namespace CefSharp.DevTools.WebAudio /// The current context time in second in BaseAudioContext. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("currentTime"), IsRequired = (true))] - public long CurrentTime + public double CurrentTime { get; set; @@ -16972,7 +20196,7 @@ namespace CefSharp.DevTools.WebAudio /// capacity and glitch may occur. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("renderCapacity"), IsRequired = (true))] - public long RenderCapacity + public double RenderCapacity { get; set; @@ -16982,7 +20206,7 @@ namespace CefSharp.DevTools.WebAudio /// A running mean of callback interval. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("callbackIntervalMean"), IsRequired = (true))] - public long CallbackIntervalMean + public double CallbackIntervalMean { get; set; @@ -16992,16 +20216,13 @@ namespace CefSharp.DevTools.WebAudio /// A running variance of callback interval. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("callbackIntervalVariance"), IsRequired = (true))] - public long CallbackIntervalVariance + public double CallbackIntervalVariance { get; set; } } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Protocol object for BaseAudioContext /// @@ -17078,7 +20299,7 @@ namespace CefSharp.DevTools.WebAudio /// Platform-dependent callback buffer size. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("callbackBufferSize"), IsRequired = (true))] - public long CallbackBufferSize + public double CallbackBufferSize { get; set; @@ -17088,7 +20309,7 @@ namespace CefSharp.DevTools.WebAudio /// Number of output channels supported by audio hardware in use. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxOutputChannelCount"), IsRequired = (true))] - public long MaxOutputChannelCount + public double MaxOutputChannelCount { get; set; @@ -17098,16 +20319,13 @@ namespace CefSharp.DevTools.WebAudio /// Context sample rate. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("sampleRate"), IsRequired = (true))] - public long SampleRate + public double SampleRate { get; set; } } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Protocol object for AudioListener /// @@ -17134,10 +20352,7 @@ namespace CefSharp.DevTools.WebAudio set; } } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Protocol object for AudioNode /// @@ -17178,7 +20393,7 @@ namespace CefSharp.DevTools.WebAudio /// NumberOfInputs /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("numberOfInputs"), IsRequired = (true))] - public long NumberOfInputs + public double NumberOfInputs { get; set; @@ -17188,7 +20403,7 @@ namespace CefSharp.DevTools.WebAudio /// NumberOfOutputs /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("numberOfOutputs"), IsRequired = (true))] - public long NumberOfOutputs + public double NumberOfOutputs { get; set; @@ -17198,7 +20413,7 @@ namespace CefSharp.DevTools.WebAudio /// ChannelCount /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("channelCount"), IsRequired = (true))] - public long ChannelCount + public double ChannelCount { get; set; @@ -17250,10 +20465,7 @@ namespace CefSharp.DevTools.WebAudio set; } } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Protocol object for AudioParam /// @@ -17327,7 +20539,7 @@ namespace CefSharp.DevTools.WebAudio /// DefaultValue /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("defaultValue"), IsRequired = (true))] - public long DefaultValue + public double DefaultValue { get; set; @@ -17337,7 +20549,7 @@ namespace CefSharp.DevTools.WebAudio /// MinValue /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("minValue"), IsRequired = (true))] - public long MinValue + public double MinValue { get; set; @@ -17347,12 +20559,413 @@ namespace CefSharp.DevTools.WebAudio /// MaxValue /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxValue"), IsRequired = (true))] - public long MaxValue + public double MaxValue { get; set; } } + + /// + /// Notifies that a new BaseAudioContext has been created. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ContextCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Context + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("context"), IsRequired = (true))] + public CefSharp.DevTools.WebAudio.BaseAudioContext Context + { + get; + private set; + } + } + + /// + /// Notifies that an existing BaseAudioContext will be destroyed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ContextWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ContextId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + public string ContextId + { + get; + private set; + } + } + + /// + /// Notifies that existing BaseAudioContext has changed some properties (id stays the same).. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ContextChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Context + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("context"), IsRequired = (true))] + public CefSharp.DevTools.WebAudio.BaseAudioContext Context + { + get; + private set; + } + } + + /// + /// Notifies that the construction of an AudioListener has finished. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AudioListenerCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Listener + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("listener"), IsRequired = (true))] + public CefSharp.DevTools.WebAudio.AudioListener Listener + { + get; + private set; + } + } + + /// + /// Notifies that a new AudioListener has been created. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AudioListenerWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ContextId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + public string ContextId + { + get; + private set; + } + + /// + /// ListenerId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("listenerId"), IsRequired = (true))] + public string ListenerId + { + get; + private set; + } + } + + /// + /// Notifies that a new AudioNode has been created. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AudioNodeCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Node + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("node"), IsRequired = (true))] + public CefSharp.DevTools.WebAudio.AudioNode Node + { + get; + private set; + } + } + + /// + /// Notifies that an existing AudioNode has been destroyed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AudioNodeWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ContextId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + public string ContextId + { + get; + private set; + } + + /// + /// NodeId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + public string NodeId + { + get; + private set; + } + } + + /// + /// Notifies that a new AudioParam has been created. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AudioParamCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Param + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("param"), IsRequired = (true))] + public CefSharp.DevTools.WebAudio.AudioParam Param + { + get; + private set; + } + } + + /// + /// Notifies that an existing AudioParam has been destroyed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AudioParamWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ContextId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + public string ContextId + { + get; + private set; + } + + /// + /// NodeId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + public string NodeId + { + get; + private set; + } + + /// + /// ParamId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("paramId"), IsRequired = (true))] + public string ParamId + { + get; + private set; + } + } + + /// + /// Notifies that two AudioNodes are connected. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class NodesConnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ContextId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + public string ContextId + { + get; + private set; + } + + /// + /// SourceId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceId"), IsRequired = (true))] + public string SourceId + { + get; + private set; + } + + /// + /// DestinationId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("destinationId"), IsRequired = (true))] + public string DestinationId + { + get; + private set; + } + + /// + /// SourceOutputIndex + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceOutputIndex"), IsRequired = (false))] + public double? SourceOutputIndex + { + get; + private set; + } + + /// + /// DestinationInputIndex + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("destinationInputIndex"), IsRequired = (false))] + 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class NodesDisconnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ContextId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + public string ContextId + { + get; + private set; + } + + /// + /// SourceId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceId"), IsRequired = (true))] + public string SourceId + { + get; + private set; + } + + /// + /// DestinationId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("destinationId"), IsRequired = (true))] + public string DestinationId + { + get; + private set; + } + + /// + /// SourceOutputIndex + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceOutputIndex"), IsRequired = (false))] + public double? SourceOutputIndex + { + get; + private set; + } + + /// + /// DestinationInputIndex + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("destinationInputIndex"), IsRequired = (false))] + public double? DestinationInputIndex + { + get; + private set; + } + } + + /// + /// Notifies that an AudioNode is connected to an AudioParam. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class NodeParamConnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ContextId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + public string ContextId + { + get; + private set; + } + + /// + /// SourceId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceId"), IsRequired = (true))] + public string SourceId + { + get; + private set; + } + + /// + /// DestinationId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("destinationId"), IsRequired = (true))] + public string DestinationId + { + get; + private set; + } + + /// + /// SourceOutputIndex + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceOutputIndex"), IsRequired = (false))] + public double? SourceOutputIndex + { + get; + private set; + } + } + + /// + /// Notifies that an AudioNode is disconnected to an AudioParam. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class NodeParamDisconnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ContextId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + public string ContextId + { + get; + private set; + } + + /// + /// SourceId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceId"), IsRequired = (true))] + public string SourceId + { + get; + private set; + } + + /// + /// DestinationId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("destinationId"), IsRequired = (true))] + public string DestinationId + { + get; + private set; + } + + /// + /// SourceOutputIndex + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceOutputIndex"), IsRequired = (false))] + public double? SourceOutputIndex + { + get; + private set; + } + } } namespace CefSharp.DevTools.WebAuthn @@ -17373,10 +20986,7 @@ namespace CefSharp.DevTools.WebAuthn [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ctap2"))] Ctap2 } -} -namespace CefSharp.DevTools.WebAuthn -{ /// /// Ctap2Version /// @@ -17393,10 +21003,7 @@ namespace CefSharp.DevTools.WebAuthn [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ctap2_1"))] Ctap21 } -} -namespace CefSharp.DevTools.WebAuthn -{ /// /// AuthenticatorTransport /// @@ -17428,10 +21035,7 @@ namespace CefSharp.DevTools.WebAuthn [System.Runtime.Serialization.EnumMemberAttribute(Value = ("internal"))] Internal } -} -namespace CefSharp.DevTools.WebAuthn -{ /// /// VirtualAuthenticatorOptions /// @@ -17561,10 +21165,7 @@ namespace CefSharp.DevTools.WebAuthn set; } } -} -namespace CefSharp.DevTools.WebAuthn -{ /// /// Credential /// @@ -17685,10 +21286,7 @@ namespace CefSharp.DevTools.Media set; } } -} -namespace CefSharp.DevTools.Media -{ /// /// Corresponds to kMediaPropertyChange /// @@ -17715,10 +21313,7 @@ namespace CefSharp.DevTools.Media set; } } -} -namespace CefSharp.DevTools.Media -{ /// /// Corresponds to kMediaEventTriggered /// @@ -17729,7 +21324,7 @@ namespace CefSharp.DevTools.Media /// Timestamp /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] - public long Timestamp + public double Timestamp { get; set; @@ -17745,10 +21340,7 @@ namespace CefSharp.DevTools.Media set; } } -} -namespace CefSharp.DevTools.Media -{ /// /// Corresponds to kMediaError /// @@ -17779,6 +21371,135 @@ namespace CefSharp.DevTools.Media set; } } + + /// + /// This can be called multiple times, and can be used to set / override / + /// remove player properties. A null propValue indicates removal. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PlayerPropertiesChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// PlayerId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("playerId"), IsRequired = (true))] + public string PlayerId + { + get; + private set; + } + + /// + /// Properties + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("properties"), IsRequired = (true))] + 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PlayerEventsAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// PlayerId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("playerId"), IsRequired = (true))] + public string PlayerId + { + get; + private set; + } + + /// + /// Events + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("events"), IsRequired = (true))] + public System.Collections.Generic.IList Events + { + get; + private set; + } + } + + /// + /// Send a list of any messages that need to be delivered. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PlayerMessagesLoggedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// PlayerId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("playerId"), IsRequired = (true))] + public string PlayerId + { + get; + private set; + } + + /// + /// Messages + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("messages"), IsRequired = (true))] + public System.Collections.Generic.IList Messages + { + get; + private set; + } + } + + /// + /// Send a list of any errors that need to be delivered. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PlayerErrorsRaisedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// PlayerId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("playerId"), IsRequired = (true))] + public string PlayerId + { + get; + private set; + } + + /// + /// Errors + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("errors"), IsRequired = (true))] + public System.Collections.Generic.IList Errors + { + get; + private set; + } + } + + /// + /// Called whenever a player is created, or when a new agent joins and recieves + /// a list of active players. If an agent is restored, it will recieve the full + /// list of player ids and all events again. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PlayersCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Players + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("players"), IsRequired = (true))] + public string[] Players + { + get; + private set; + } + } } namespace CefSharp.DevTools.Debugger @@ -17819,10 +21540,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// Location in the source code. /// @@ -17849,10 +21567,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// Location range within one script. /// @@ -17889,10 +21604,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// JavaScript call frame. Array of call frames form the call stack. /// @@ -17979,10 +21691,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// Scope description. /// @@ -18041,10 +21750,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// Search match for resource. /// @@ -18055,7 +21761,7 @@ namespace CefSharp.DevTools.Debugger /// Line number in resource content. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (true))] - public long LineNumber + public double LineNumber { get; set; @@ -18071,10 +21777,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// BreakLocation /// @@ -18121,10 +21824,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// Enum of possible script languages. /// @@ -18141,10 +21841,7 @@ namespace CefSharp.DevTools.Debugger [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebAssembly"))] WebAssembly } -} -namespace CefSharp.DevTools.Debugger -{ /// /// Debug symbols available for a wasm script. /// @@ -18171,6 +21868,511 @@ namespace CefSharp.DevTools.Debugger set; } } + + /// + /// Fired when breakpoint is resolved to an actual script and location. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class BreakpointResolvedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Breakpoint unique identifier. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("breakpointId"), IsRequired = (true))] + public string BreakpointId + { + get; + private set; + } + + /// + /// Actual breakpoint location. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("location"), IsRequired = (true))] + public CefSharp.DevTools.Debugger.Location Location + { + get; + private set; + } + } + + /// + /// Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Call stack the virtual machine stopped on. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("callFrames"), IsRequired = (true))] + public System.Collections.Generic.IList CallFrames + { + get; + private set; + } + + /// + /// Pause reason. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + public string Reason + { + get; + private set; + } + + /// + /// Object containing break-specific auxiliary properties. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (false))] + public object Data + { + get; + private set; + } + + /// + /// Hit breakpoints IDs + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("hitBreakpoints"), IsRequired = (false))] + public string[] HitBreakpoints + { + get; + private set; + } + + /// + /// Async stack trace, if any. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("asyncStackTrace"), IsRequired = (false))] + public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace + { + get; + private set; + } + + /// + /// Async stack trace, if any. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("asyncStackTraceId"), IsRequired = (false))] + public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId + { + get; + private set; + } + + /// + /// Never present, will be removed. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("asyncCallStackTraceId"), IsRequired = (false))] + public CefSharp.DevTools.Runtime.StackTraceId AsyncCallStackTraceId + { + get; + private set; + } + } + + /// + /// Fired when virtual machine fails to parse the script. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ScriptFailedToParseEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier of the script parsed. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (true))] + public string ScriptId + { + get; + private set; + } + + /// + /// URL or name of the script parsed (if any). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + private set; + } + + /// + /// Line offset of the script within the resource with given URL (for script tags). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("startLine"), IsRequired = (true))] + public int StartLine + { + get; + private set; + } + + /// + /// Column offset of the script within the resource with given URL. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("startColumn"), IsRequired = (true))] + public int StartColumn + { + get; + private set; + } + + /// + /// Last line of the script. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("endLine"), IsRequired = (true))] + public int EndLine + { + get; + private set; + } + + /// + /// Length of the last line of the script. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("endColumn"), IsRequired = (true))] + public int EndColumn + { + get; + private set; + } + + /// + /// Specifies script creation context. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextId"), IsRequired = (true))] + public int ExecutionContextId + { + get; + private set; + } + + /// + /// Content hash of the script. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("hash"), IsRequired = (true))] + public string Hash + { + get; + private set; + } + + /// + /// Embedder-specific auxiliary data. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextAuxData"), IsRequired = (false))] + public object ExecutionContextAuxData + { + get; + private set; + } + + /// + /// URL of source map associated with script (if any). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceMapURL"), IsRequired = (false))] + public string SourceMapURL + { + get; + private set; + } + + /// + /// True, if this script has sourceURL. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasSourceURL"), IsRequired = (false))] + public bool? HasSourceURL + { + get; + private set; + } + + /// + /// True, if this script is ES6 module. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("isModule"), IsRequired = (false))] + public bool? IsModule + { + get; + private set; + } + + /// + /// This script length. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("length"), IsRequired = (false))] + public int? Length + { + get; + private set; + } + + /// + /// JavaScript top stack frame of where the script parsed event was triggered if available. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("stackTrace"), IsRequired = (false))] + public CefSharp.DevTools.Runtime.StackTrace StackTrace + { + get; + private set; + } + + /// + /// If the scriptLanguage is WebAssembly, the code section offset in the module. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("codeOffset"), IsRequired = (false))] + public int? CodeOffset + { + get; + private set; + } + + public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage + { + get + { + return (CefSharp.DevTools.Debugger.ScriptLanguage? )(StringToEnum(typeof(CefSharp.DevTools.Debugger.ScriptLanguage? ), scriptLanguage)); + } + + set + { + this.scriptLanguage = (EnumToString(value)); + } + } + + /// + /// The language of the script. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptLanguage"), IsRequired = (false))] + internal string scriptLanguage + { + get; + private set; + } + + /// + /// The name the embedder supplied for this script. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("embedderName"), IsRequired = (false))] + 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ScriptParsedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier of the script parsed. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (true))] + public string ScriptId + { + get; + private set; + } + + /// + /// URL or name of the script parsed (if any). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + private set; + } + + /// + /// Line offset of the script within the resource with given URL (for script tags). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("startLine"), IsRequired = (true))] + public int StartLine + { + get; + private set; + } + + /// + /// Column offset of the script within the resource with given URL. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("startColumn"), IsRequired = (true))] + public int StartColumn + { + get; + private set; + } + + /// + /// Last line of the script. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("endLine"), IsRequired = (true))] + public int EndLine + { + get; + private set; + } + + /// + /// Length of the last line of the script. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("endColumn"), IsRequired = (true))] + public int EndColumn + { + get; + private set; + } + + /// + /// Specifies script creation context. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextId"), IsRequired = (true))] + public int ExecutionContextId + { + get; + private set; + } + + /// + /// Content hash of the script. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("hash"), IsRequired = (true))] + public string Hash + { + get; + private set; + } + + /// + /// Embedder-specific auxiliary data. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextAuxData"), IsRequired = (false))] + public object ExecutionContextAuxData + { + get; + private set; + } + + /// + /// True, if this script is generated as a result of the live edit operation. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("isLiveEdit"), IsRequired = (false))] + public bool? IsLiveEdit + { + get; + private set; + } + + /// + /// URL of source map associated with script (if any). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceMapURL"), IsRequired = (false))] + public string SourceMapURL + { + get; + private set; + } + + /// + /// True, if this script has sourceURL. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasSourceURL"), IsRequired = (false))] + public bool? HasSourceURL + { + get; + private set; + } + + /// + /// True, if this script is ES6 module. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("isModule"), IsRequired = (false))] + public bool? IsModule + { + get; + private set; + } + + /// + /// This script length. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("length"), IsRequired = (false))] + public int? Length + { + get; + private set; + } + + /// + /// JavaScript top stack frame of where the script parsed event was triggered if available. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("stackTrace"), IsRequired = (false))] + public CefSharp.DevTools.Runtime.StackTrace StackTrace + { + get; + private set; + } + + /// + /// If the scriptLanguage is WebAssembly, the code section offset in the module. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("codeOffset"), IsRequired = (false))] + public int? CodeOffset + { + get; + private set; + } + + public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage + { + get + { + return (CefSharp.DevTools.Debugger.ScriptLanguage? )(StringToEnum(typeof(CefSharp.DevTools.Debugger.ScriptLanguage? ), scriptLanguage)); + } + + set + { + this.scriptLanguage = (EnumToString(value)); + } + } + + /// + /// The language of the script. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptLanguage"), IsRequired = (false))] + internal string scriptLanguage + { + get; + private set; + } + + /// + /// If the scriptLanguage is WebASsembly, the source of debug symbols for the module. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("debugSymbols"), IsRequired = (false))] + public CefSharp.DevTools.Debugger.DebugSymbols DebugSymbols + { + get; + private set; + } + + /// + /// The name the embedder supplied for this script. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("embedderName"), IsRequired = (false))] + public string EmbedderName + { + get; + private set; + } + } } namespace CefSharp.DevTools.HeapProfiler @@ -18195,7 +22397,7 @@ namespace CefSharp.DevTools.HeapProfiler /// Allocations size in bytes for the node excluding children. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("selfSize"), IsRequired = (true))] - public long SelfSize + public double SelfSize { get; set; @@ -18221,10 +22423,7 @@ namespace CefSharp.DevTools.HeapProfiler set; } } -} -namespace CefSharp.DevTools.HeapProfiler -{ /// /// A single sample from a sampling profile. /// @@ -18235,7 +22434,7 @@ namespace CefSharp.DevTools.HeapProfiler /// Allocation size in bytes attributed to the sample. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("size"), IsRequired = (true))] - public long Size + public double Size { get; set; @@ -18256,16 +22455,13 @@ namespace CefSharp.DevTools.HeapProfiler /// between startSampling and stopSampling. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("ordinal"), IsRequired = (true))] - public long Ordinal + public double Ordinal { get; set; } } -} -namespace CefSharp.DevTools.HeapProfiler -{ /// /// Sampling profile. /// @@ -18292,6 +22488,108 @@ namespace CefSharp.DevTools.HeapProfiler set; } } + + /// + /// addHeapSnapshotChunk + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AddHeapSnapshotChunkEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Chunk + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("chunk"), IsRequired = (true))] + public string Chunk + { + get; + private set; + } + } + + /// + /// If heap objects tracking has been started then backend may send update for one or more fragments + /// + [System.Runtime.Serialization.DataContractAttribute] + 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("statsUpdate"), IsRequired = (true))] + 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. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class LastSeenObjectIdEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// LastSeenObjectId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("lastSeenObjectId"), IsRequired = (true))] + public int LastSeenObjectId + { + get; + private set; + } + + /// + /// Timestamp + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + } + + /// + /// reportHeapSnapshotProgress + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ReportHeapSnapshotProgressEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Done + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("done"), IsRequired = (true))] + public int Done + { + get; + private set; + } + + /// + /// Total + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("total"), IsRequired = (true))] + public int Total + { + get; + private set; + } + + /// + /// Finished + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("finished"), IsRequired = (false))] + public bool? Finished + { + get; + private set; + } + } } namespace CefSharp.DevTools.Profiler @@ -18363,10 +22661,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Profile. /// @@ -18387,7 +22682,7 @@ namespace CefSharp.DevTools.Profiler /// Profiling start timestamp in microseconds. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("startTime"), IsRequired = (true))] - public long StartTime + public double StartTime { get; set; @@ -18397,7 +22692,7 @@ namespace CefSharp.DevTools.Profiler /// Profiling end timestamp in microseconds. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("endTime"), IsRequired = (true))] - public long EndTime + public double EndTime { get; set; @@ -18424,10 +22719,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Specifies a number of samples attributed to a certain source position. /// @@ -18454,10 +22746,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Coverage data for a source range. /// @@ -18494,10 +22783,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Coverage data for a JavaScript function. /// @@ -18534,10 +22820,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Coverage data for a JavaScript script. /// @@ -18574,10 +22857,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Describes a type collected during runtime. /// @@ -18594,10 +22874,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Source offset and types for a parameter or return value. /// @@ -18624,10 +22901,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Type profile data collected during runtime for a JavaScript script. /// @@ -18664,10 +22938,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Collected counter information. /// @@ -18694,10 +22965,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Runtime call counter information. /// @@ -18718,7 +22986,7 @@ namespace CefSharp.DevTools.Profiler /// Counter value. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] - public long Value + public double Value { get; set; @@ -18728,12 +22996,136 @@ namespace CefSharp.DevTools.Profiler /// Counter time in seconds. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("time"), IsRequired = (true))] - public long Time + public double Time { get; set; } } + + /// + /// consoleProfileFinished + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ConsoleProfileFinishedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + public string Id + { + get; + private set; + } + + /// + /// Location of console.profileEnd(). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("location"), IsRequired = (true))] + public CefSharp.DevTools.Debugger.Location Location + { + get; + private set; + } + + /// + /// Profile + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("profile"), IsRequired = (true))] + public CefSharp.DevTools.Profiler.Profile Profile + { + get; + private set; + } + + /// + /// Profile title passed as an argument to console.profile(). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (false))] + public string Title + { + get; + private set; + } + } + + /// + /// Sent when new profile recording is started using console.profile() call. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ConsoleProfileStartedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + public string Id + { + get; + private set; + } + + /// + /// Location of console.profile(). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("location"), IsRequired = (true))] + public CefSharp.DevTools.Debugger.Location Location + { + get; + private set; + } + + /// + /// Profile title passed as an argument to console.profile(). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (false))] + 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 immediatelly at a certain point in time. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PreciseCoverageDeltaUpdateEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Monotonically increasing time (in seconds) when the coverage update was taken in the backend. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// Identifier for distinguishing coverage events. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("occassion"), IsRequired = (true))] + public string Occassion + { + get; + private set; + } + + /// + /// Coverage data for the current isolate. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("result"), IsRequired = (true))] + public System.Collections.Generic.IList Result + { + get; + private set; + } + } } namespace CefSharp.DevTools.Runtime @@ -18837,10 +23229,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// CustomPreview /// @@ -18870,10 +23259,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Object containing abbreviated remote object value. /// @@ -18940,10 +23326,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// PropertyPreview /// @@ -19000,10 +23383,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// EntryPreview /// @@ -19030,10 +23410,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Object property descriptor. /// @@ -19144,10 +23521,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Object internal property descriptor. This property isn't normally visible in JavaScript code. /// @@ -19174,10 +23548,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Object private field descriptor. /// @@ -19226,10 +23597,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Represents function call argument. Either remote object id `objectId`, primitive `value`, /// unserializable primitive value or neither of (for undefined) them should be specified. @@ -19267,10 +23635,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Description of an isolated world. /// @@ -19330,10 +23695,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Detailed information about exception (or error) that was thrown during script compilation or /// execution. @@ -19431,10 +23793,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Stack entry for runtime errors and assertions. /// @@ -19491,10 +23850,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Call frames for assertions or error messages. /// @@ -19542,10 +23898,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This /// allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages. @@ -19573,6 +23926,230 @@ namespace CefSharp.DevTools.Runtime set; } } + + /// + /// Notification is issued every time when binding is called. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class BindingCalledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Name + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + private set; + } + + /// + /// Payload + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("payload"), IsRequired = (true))] + public string Payload + { + get; + private set; + } + + /// + /// Identifier of the context where the call was made. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextId"), IsRequired = (true))] + public int ExecutionContextId + { + get; + private set; + } + } + + /// + /// Issued when console API was called. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ConsoleAPICalledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Type of the call. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + public string Type + { + get; + private set; + } + + /// + /// Call arguments. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("args"), IsRequired = (true))] + public System.Collections.Generic.IList Args + { + get; + private set; + } + + /// + /// Identifier of the context where the call was made. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextId"), IsRequired = (true))] + public int ExecutionContextId + { + get; + private set; + } + + /// + /// Call timestamp. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("stackTrace"), IsRequired = (false))] + 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. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("context"), IsRequired = (false))] + public string Context + { + get; + private set; + } + } + + /// + /// Issued when unhandled exception was revoked. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ExceptionRevokedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Reason describing why exception was revoked. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + public string Reason + { + get; + private set; + } + + /// + /// The id of revoked exception, as reported in `exceptionThrown`. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("exceptionId"), IsRequired = (true))] + public int ExceptionId + { + get; + private set; + } + } + + /// + /// Issued when exception was thrown and unhandled. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ExceptionThrownEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Timestamp of the exception. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// ExceptionDetails + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("exceptionDetails"), IsRequired = (true))] + public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails + { + get; + private set; + } + } + + /// + /// Issued when new execution context is created. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ExecutionContextCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// A newly created execution context. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("context"), IsRequired = (true))] + public CefSharp.DevTools.Runtime.ExecutionContextDescription Context + { + get; + private set; + } + } + + /// + /// Issued when execution context is destroyed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class ExecutionContextDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the destroyed context + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextId"), IsRequired = (true))] + public int ExecutionContextId + { + get; + private set; + } + } + + /// + /// Issued when object should be inspected (for example, as a result of inspect() command line API + /// call). + /// + [System.Runtime.Serialization.DataContractAttribute] + public class InspectRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Object + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("object"), IsRequired = (true))] + public CefSharp.DevTools.Runtime.RemoteObject Object + { + get; + private set; + } + + /// + /// Hints + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("hints"), IsRequired = (true))] + public object Hints + { + get; + private set; + } + } } namespace CefSharp.DevTools.Accessibility @@ -19859,7 +24436,7 @@ namespace CefSharp.DevTools.Animation public class GetCurrentTimeResponse : CefSharp.DevTools.DevToolsDomainResponseBase { [System.Runtime.Serialization.DataMemberAttribute] - internal long currentTime + internal double currentTime { get; set; @@ -19868,7 +24445,7 @@ namespace CefSharp.DevTools.Animation /// /// currentTime /// - public long CurrentTime + public double CurrentTime { get { @@ -19887,7 +24464,7 @@ namespace CefSharp.DevTools.Animation public class GetPlaybackRateResponse : CefSharp.DevTools.DevToolsDomainResponseBase { [System.Runtime.Serialization.DataMemberAttribute] - internal long playbackRate + internal double playbackRate { get; set; @@ -19896,7 +24473,7 @@ namespace CefSharp.DevTools.Animation /// /// playbackRate /// - public long PlaybackRate + public double PlaybackRate { get { @@ -19953,6 +24530,108 @@ namespace CefSharp.DevTools.Animation _client = (client); } + private System.EventHandler _AnimationCanceled; + /// + /// Event for when an animation has been cancelled. + /// + public event System.EventHandler AnimationCanceled + { + add + { + if ((_AnimationCanceled) == (null)) + { + _client.DevToolsEvent += (OnAnimationCanceled); + } + + _AnimationCanceled += (value); + } + + remove + { + _AnimationCanceled -= (value); + if ((_AnimationCanceled) == (null)) + { + _client.DevToolsEvent -= (OnAnimationCanceled); + } + } + } + + private void OnAnimationCanceled(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Animation.animationCanceled")) + { + _AnimationCanceled?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AnimationCreated; + /// + /// Event for each animation that has been created. + /// + public event System.EventHandler AnimationCreated + { + add + { + if ((_AnimationCreated) == (null)) + { + _client.DevToolsEvent += (OnAnimationCreated); + } + + _AnimationCreated += (value); + } + + remove + { + _AnimationCreated -= (value); + if ((_AnimationCreated) == (null)) + { + _client.DevToolsEvent -= (OnAnimationCreated); + } + } + } + + private void OnAnimationCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Animation.animationCreated")) + { + _AnimationCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AnimationStarted; + /// + /// Event for animation that has been started. + /// + public event System.EventHandler AnimationStarted + { + add + { + if ((_AnimationStarted) == (null)) + { + _client.DevToolsEvent += (OnAnimationStarted); + } + + _AnimationStarted += (value); + } + + remove + { + _AnimationStarted -= (value); + if ((_AnimationStarted) == (null)) + { + _client.DevToolsEvent -= (OnAnimationStarted); + } + } + } + + private void OnAnimationStarted(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Animation.animationStarted")) + { + _AnimationStarted?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Disables animation domain notifications. /// @@ -20031,14 +24710,14 @@ namespace CefSharp.DevTools.Animation return methodResult.DeserializeJson(); } - partial void ValidateSeekAnimations(string[] animations, long currentTime); + 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 async System.Threading.Tasks.Task SeekAnimationsAsync(string[] animations, long currentTime) + public async System.Threading.Tasks.Task SeekAnimationsAsync(string[] animations, double currentTime) { ValidateSeekAnimations(animations, currentTime); var dict = new System.Collections.Generic.Dictionary(); @@ -20065,13 +24744,13 @@ namespace CefSharp.DevTools.Animation return methodResult; } - partial void ValidateSetPlaybackRate(long playbackRate); + 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 async System.Threading.Tasks.Task SetPlaybackRateAsync(long playbackRate) + public async System.Threading.Tasks.Task SetPlaybackRateAsync(double playbackRate) { ValidateSetPlaybackRate(playbackRate); var dict = new System.Collections.Generic.Dictionary(); @@ -20080,7 +24759,7 @@ namespace CefSharp.DevTools.Animation return methodResult; } - partial void ValidateSetTiming(string animationId, long duration, long delay); + partial void ValidateSetTiming(string animationId, double duration, double delay); /// /// Sets the timing of an animation node. /// @@ -20088,7 +24767,7 @@ namespace CefSharp.DevTools.Animation /// Duration of the animation. /// Delay of the animation. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task SetTimingAsync(string animationId, long duration, long delay) + public async System.Threading.Tasks.Task SetTimingAsync(string animationId, double duration, double delay) { ValidateSetTiming(animationId, duration, delay); var dict = new System.Collections.Generic.Dictionary(); @@ -20204,6 +24883,74 @@ namespace CefSharp.DevTools.ApplicationCache _client = (client); } + private System.EventHandler _ApplicationCacheStatusUpdated; + /// + /// ApplicationCacheStatusUpdated + /// + public event System.EventHandler ApplicationCacheStatusUpdated + { + add + { + if ((_ApplicationCacheStatusUpdated) == (null)) + { + _client.DevToolsEvent += (OnApplicationCacheStatusUpdated); + } + + _ApplicationCacheStatusUpdated += (value); + } + + remove + { + _ApplicationCacheStatusUpdated -= (value); + if ((_ApplicationCacheStatusUpdated) == (null)) + { + _client.DevToolsEvent -= (OnApplicationCacheStatusUpdated); + } + } + } + + private void OnApplicationCacheStatusUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("ApplicationCache.applicationCacheStatusUpdated")) + { + _ApplicationCacheStatusUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NetworkStateUpdated; + /// + /// NetworkStateUpdated + /// + public event System.EventHandler NetworkStateUpdated + { + add + { + if ((_NetworkStateUpdated) == (null)) + { + _client.DevToolsEvent += (OnNetworkStateUpdated); + } + + _NetworkStateUpdated += (value); + } + + remove + { + _NetworkStateUpdated -= (value); + if ((_NetworkStateUpdated) == (null)) + { + _client.DevToolsEvent -= (OnNetworkStateUpdated); + } + } + } + + private void OnNetworkStateUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("ApplicationCache.networkStateUpdated")) + { + _NetworkStateUpdated?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Enables application cache domain notifications. /// @@ -20342,7 +25089,41 @@ namespace CefSharp.DevTools.Audits _client = (client); } - partial void ValidateGetEncodedResponse(string requestId, string encoding, long? quality = null, bool? sizeOnly = null); + private System.EventHandler _IssueAdded; + /// + /// IssueAdded + /// + public event System.EventHandler IssueAdded + { + add + { + if ((_IssueAdded) == (null)) + { + _client.DevToolsEvent += (OnIssueAdded); + } + + _IssueAdded += (value); + } + + remove + { + _IssueAdded -= (value); + if ((_IssueAdded) == (null)) + { + _client.DevToolsEvent -= (OnIssueAdded); + } + } + } + + private void OnIssueAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Audits.issueAdded")) + { + _IssueAdded?.Invoke(this, args.DeserializeJson()); + } + } + + partial void ValidateGetEncodedResponse(string requestId, string 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. @@ -20352,7 +25133,7 @@ namespace CefSharp.DevTools.Audits /// The quality of the encoding (0-1). (defaults to 1) /// Whether to only return the size information (defaults to false). /// returns System.Threading.Tasks.Task<GetEncodedResponseResponse> - public async System.Threading.Tasks.Task GetEncodedResponseAsync(string requestId, string encoding, long? quality = null, bool? sizeOnly = null) + public async System.Threading.Tasks.Task GetEncodedResponseAsync(string requestId, string encoding, double? quality = null, bool? sizeOnly = null) { ValidateGetEncodedResponse(requestId, encoding, quality, sizeOnly); var dict = new System.Collections.Generic.Dictionary(); @@ -20436,6 +25217,75 @@ namespace CefSharp.DevTools.BackgroundService _client = (client); } + private System.EventHandler _RecordingStateChanged; + /// + /// Called when the recording state for the service has been updated. + /// + public event System.EventHandler RecordingStateChanged + { + add + { + if ((_RecordingStateChanged) == (null)) + { + _client.DevToolsEvent += (OnRecordingStateChanged); + } + + _RecordingStateChanged += (value); + } + + remove + { + _RecordingStateChanged -= (value); + if ((_RecordingStateChanged) == (null)) + { + _client.DevToolsEvent -= (OnRecordingStateChanged); + } + } + } + + private void OnRecordingStateChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("BackgroundService.recordingStateChanged")) + { + _RecordingStateChanged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _BackgroundServiceEventReceived; + /// + /// Called with all existing backgroundServiceEvents when enabled, and all new + /// events afterwards if enabled and recording. + /// + public event System.EventHandler BackgroundServiceEventReceived + { + add + { + if ((_BackgroundServiceEventReceived) == (null)) + { + _client.DevToolsEvent += (OnBackgroundServiceEventReceived); + } + + _BackgroundServiceEventReceived += (value); + } + + remove + { + _BackgroundServiceEventReceived -= (value); + if ((_BackgroundServiceEventReceived) == (null)) + { + _client.DevToolsEvent -= (OnBackgroundServiceEventReceived); + } + } + } + + private void OnBackgroundServiceEventReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("BackgroundService.backgroundServiceEventReceived")) + { + _BackgroundServiceEventReceived?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateStartObserving(CefSharp.DevTools.BackgroundService.ServiceName service); /// /// Enables event updates for the service. @@ -20777,6 +25627,74 @@ namespace CefSharp.DevTools.Browser _client = (client); } + private System.EventHandler _DownloadWillBegin; + /// + /// Fired when page is about to start a download. + /// + public event System.EventHandler DownloadWillBegin + { + add + { + if ((_DownloadWillBegin) == (null)) + { + _client.DevToolsEvent += (OnDownloadWillBegin); + } + + _DownloadWillBegin += (value); + } + + remove + { + _DownloadWillBegin -= (value); + if ((_DownloadWillBegin) == (null)) + { + _client.DevToolsEvent -= (OnDownloadWillBegin); + } + } + } + + private void OnDownloadWillBegin(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Browser.downloadWillBegin")) + { + _DownloadWillBegin?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DownloadProgress; + /// + /// Fired when download makes progress. Last call has |done| == true. + /// + public event System.EventHandler DownloadProgress + { + add + { + if ((_DownloadProgress) == (null)) + { + _client.DevToolsEvent += (OnDownloadProgress); + } + + _DownloadProgress += (value); + } + + remove + { + _DownloadProgress -= (value); + if ((_DownloadProgress) == (null)) + { + _client.DevToolsEvent -= (OnDownloadProgress); + } + } + } + + private void OnDownloadProgress(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Browser.downloadProgress")) + { + _DownloadProgress?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateSetPermission(CefSharp.DevTools.Browser.PermissionDescriptor permission, CefSharp.DevTools.Browser.PermissionSetting setting, string origin = null, string browserContextId = null); /// /// Set permission settings for given origin. @@ -21748,7 +26666,7 @@ namespace CefSharp.DevTools.CSS } [System.Runtime.Serialization.DataMemberAttribute] - internal long timestamp + internal double timestamp { get; set; @@ -21757,7 +26675,7 @@ namespace CefSharp.DevTools.CSS /// /// timestamp /// - public long Timestamp + public double Timestamp { get { @@ -21791,6 +26709,178 @@ namespace CefSharp.DevTools.CSS _client = (client); } + private System.EventHandler _FontsUpdated; + /// + /// Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded + /// web font + /// + public event System.EventHandler FontsUpdated + { + add + { + if ((_FontsUpdated) == (null)) + { + _client.DevToolsEvent += (OnFontsUpdated); + } + + _FontsUpdated += (value); + } + + remove + { + _FontsUpdated -= (value); + if ((_FontsUpdated) == (null)) + { + _client.DevToolsEvent -= (OnFontsUpdated); + } + } + } + + private void OnFontsUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("CSS.fontsUpdated")) + { + _FontsUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _MediaQueryResultChanged; + /// + /// 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 + { + if ((_MediaQueryResultChanged) == (null)) + { + _client.DevToolsEvent += (OnMediaQueryResultChanged); + } + + _MediaQueryResultChanged += (value); + } + + remove + { + _MediaQueryResultChanged -= (value); + if ((_MediaQueryResultChanged) == (null)) + { + _client.DevToolsEvent -= (OnMediaQueryResultChanged); + } + } + } + + private void OnMediaQueryResultChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("CSS.mediaQueryResultChanged")) + { + _MediaQueryResultChanged?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _StyleSheetAdded; + /// + /// Fired whenever an active document stylesheet is added. + /// + public event System.EventHandler StyleSheetAdded + { + add + { + if ((_StyleSheetAdded) == (null)) + { + _client.DevToolsEvent += (OnStyleSheetAdded); + } + + _StyleSheetAdded += (value); + } + + remove + { + _StyleSheetAdded -= (value); + if ((_StyleSheetAdded) == (null)) + { + _client.DevToolsEvent -= (OnStyleSheetAdded); + } + } + } + + private void OnStyleSheetAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("CSS.styleSheetAdded")) + { + _StyleSheetAdded?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _StyleSheetChanged; + /// + /// Fired whenever a stylesheet is changed as a result of the client operation. + /// + public event System.EventHandler StyleSheetChanged + { + add + { + if ((_StyleSheetChanged) == (null)) + { + _client.DevToolsEvent += (OnStyleSheetChanged); + } + + _StyleSheetChanged += (value); + } + + remove + { + _StyleSheetChanged -= (value); + if ((_StyleSheetChanged) == (null)) + { + _client.DevToolsEvent -= (OnStyleSheetChanged); + } + } + } + + private void OnStyleSheetChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("CSS.styleSheetChanged")) + { + _StyleSheetChanged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _StyleSheetRemoved; + /// + /// Fired whenever an active document stylesheet is removed. + /// + public event System.EventHandler StyleSheetRemoved + { + add + { + if ((_StyleSheetRemoved) == (null)) + { + _client.DevToolsEvent += (OnStyleSheetRemoved); + } + + _StyleSheetRemoved += (value); + } + + remove + { + _StyleSheetRemoved -= (value); + if ((_StyleSheetRemoved) == (null)) + { + _client.DevToolsEvent -= (OnStyleSheetRemoved); + } + } + } + + private void OnStyleSheetRemoved(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("CSS.styleSheetRemoved")) + { + _StyleSheetRemoved?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateAddRule(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location); /// /// Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the @@ -22260,7 +27350,7 @@ namespace CefSharp.DevTools.CacheStorage } [System.Runtime.Serialization.DataMemberAttribute] - internal long returnCount + internal double returnCount { get; set; @@ -22269,7 +27359,7 @@ namespace CefSharp.DevTools.CacheStorage /// /// returnCount /// - public long ReturnCount + public double ReturnCount { get { @@ -22419,6 +27509,76 @@ namespace CefSharp.DevTools.Cast _client = (client); } + private System.EventHandler _SinksUpdated; + /// + /// 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 + { + if ((_SinksUpdated) == (null)) + { + _client.DevToolsEvent += (OnSinksUpdated); + } + + _SinksUpdated += (value); + } + + remove + { + _SinksUpdated -= (value); + if ((_SinksUpdated) == (null)) + { + _client.DevToolsEvent -= (OnSinksUpdated); + } + } + } + + private void OnSinksUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Cast.sinksUpdated")) + { + _SinksUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _IssueUpdated; + /// + /// This is fired whenever the outstanding issue/error message changes. + /// |issueMessage| is empty if there is no issue. + /// + public event System.EventHandler IssueUpdated + { + add + { + if ((_IssueUpdated) == (null)) + { + _client.DevToolsEvent += (OnIssueUpdated); + } + + _IssueUpdated += (value); + } + + remove + { + _IssueUpdated -= (value); + if ((_IssueUpdated) == (null)) + { + _client.DevToolsEvent -= (OnIssueUpdated); + } + } + } + + private void OnIssueUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Cast.issueUpdated")) + { + _IssueUpdated?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateEnable(string presentationUrl = null); /// /// Starts observing for sinks that can be used for tab mirroring, and if set, @@ -22650,7 +27810,7 @@ namespace CefSharp.DevTools.DOM public class GetContentQuadsResponse : CefSharp.DevTools.DevToolsDomainResponseBase { [System.Runtime.Serialization.DataMemberAttribute] - internal long[] quads + internal double[] quads { get; set; @@ -22659,7 +27819,7 @@ namespace CefSharp.DevTools.DOM /// /// quads /// - public long[] Quads + public double[] Quads { get { @@ -23270,6 +28430,483 @@ namespace CefSharp.DevTools.DOM _client = (client); } + private System.EventHandler _AttributeModified; + /// + /// Fired when `Element`'s attribute is modified. + /// + public event System.EventHandler AttributeModified + { + add + { + if ((_AttributeModified) == (null)) + { + _client.DevToolsEvent += (OnAttributeModified); + } + + _AttributeModified += (value); + } + + remove + { + _AttributeModified -= (value); + if ((_AttributeModified) == (null)) + { + _client.DevToolsEvent -= (OnAttributeModified); + } + } + } + + private void OnAttributeModified(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.attributeModified")) + { + _AttributeModified?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AttributeRemoved; + /// + /// Fired when `Element`'s attribute is removed. + /// + public event System.EventHandler AttributeRemoved + { + add + { + if ((_AttributeRemoved) == (null)) + { + _client.DevToolsEvent += (OnAttributeRemoved); + } + + _AttributeRemoved += (value); + } + + remove + { + _AttributeRemoved -= (value); + if ((_AttributeRemoved) == (null)) + { + _client.DevToolsEvent -= (OnAttributeRemoved); + } + } + } + + private void OnAttributeRemoved(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.attributeRemoved")) + { + _AttributeRemoved?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _CharacterDataModified; + /// + /// Mirrors `DOMCharacterDataModified` event. + /// + public event System.EventHandler CharacterDataModified + { + add + { + if ((_CharacterDataModified) == (null)) + { + _client.DevToolsEvent += (OnCharacterDataModified); + } + + _CharacterDataModified += (value); + } + + remove + { + _CharacterDataModified -= (value); + if ((_CharacterDataModified) == (null)) + { + _client.DevToolsEvent -= (OnCharacterDataModified); + } + } + } + + private void OnCharacterDataModified(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.characterDataModified")) + { + _CharacterDataModified?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ChildNodeCountUpdated; + /// + /// Fired when `Container`'s child node count has changed. + /// + public event System.EventHandler ChildNodeCountUpdated + { + add + { + if ((_ChildNodeCountUpdated) == (null)) + { + _client.DevToolsEvent += (OnChildNodeCountUpdated); + } + + _ChildNodeCountUpdated += (value); + } + + remove + { + _ChildNodeCountUpdated -= (value); + if ((_ChildNodeCountUpdated) == (null)) + { + _client.DevToolsEvent -= (OnChildNodeCountUpdated); + } + } + } + + private void OnChildNodeCountUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.childNodeCountUpdated")) + { + _ChildNodeCountUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ChildNodeInserted; + /// + /// Mirrors `DOMNodeInserted` event. + /// + public event System.EventHandler ChildNodeInserted + { + add + { + if ((_ChildNodeInserted) == (null)) + { + _client.DevToolsEvent += (OnChildNodeInserted); + } + + _ChildNodeInserted += (value); + } + + remove + { + _ChildNodeInserted -= (value); + if ((_ChildNodeInserted) == (null)) + { + _client.DevToolsEvent -= (OnChildNodeInserted); + } + } + } + + private void OnChildNodeInserted(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.childNodeInserted")) + { + _ChildNodeInserted?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ChildNodeRemoved; + /// + /// Mirrors `DOMNodeRemoved` event. + /// + public event System.EventHandler ChildNodeRemoved + { + add + { + if ((_ChildNodeRemoved) == (null)) + { + _client.DevToolsEvent += (OnChildNodeRemoved); + } + + _ChildNodeRemoved += (value); + } + + remove + { + _ChildNodeRemoved -= (value); + if ((_ChildNodeRemoved) == (null)) + { + _client.DevToolsEvent -= (OnChildNodeRemoved); + } + } + } + + private void OnChildNodeRemoved(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.childNodeRemoved")) + { + _ChildNodeRemoved?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DistributedNodesUpdated; + /// + /// Called when distrubution is changed. + /// + public event System.EventHandler DistributedNodesUpdated + { + add + { + if ((_DistributedNodesUpdated) == (null)) + { + _client.DevToolsEvent += (OnDistributedNodesUpdated); + } + + _DistributedNodesUpdated += (value); + } + + remove + { + _DistributedNodesUpdated -= (value); + if ((_DistributedNodesUpdated) == (null)) + { + _client.DevToolsEvent -= (OnDistributedNodesUpdated); + } + } + } + + private void OnDistributedNodesUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.distributedNodesUpdated")) + { + _DistributedNodesUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DocumentUpdated; + /// + /// Fired when `Document` has been totally updated. Node ids are no longer valid. + /// + public event System.EventHandler DocumentUpdated + { + add + { + if ((_DocumentUpdated) == (null)) + { + _client.DevToolsEvent += (OnDocumentUpdated); + } + + _DocumentUpdated += (value); + } + + remove + { + _DocumentUpdated -= (value); + if ((_DocumentUpdated) == (null)) + { + _client.DevToolsEvent -= (OnDocumentUpdated); + } + } + } + + private void OnDocumentUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.documentUpdated")) + { + _DocumentUpdated?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _InlineStyleInvalidated; + /// + /// Fired when `Element`'s inline style is modified via a CSS property modification. + /// + public event System.EventHandler InlineStyleInvalidated + { + add + { + if ((_InlineStyleInvalidated) == (null)) + { + _client.DevToolsEvent += (OnInlineStyleInvalidated); + } + + _InlineStyleInvalidated += (value); + } + + remove + { + _InlineStyleInvalidated -= (value); + if ((_InlineStyleInvalidated) == (null)) + { + _client.DevToolsEvent -= (OnInlineStyleInvalidated); + } + } + } + + private void OnInlineStyleInvalidated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.inlineStyleInvalidated")) + { + _InlineStyleInvalidated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PseudoElementAdded; + /// + /// Called when a pseudo element is added to an element. + /// + public event System.EventHandler PseudoElementAdded + { + add + { + if ((_PseudoElementAdded) == (null)) + { + _client.DevToolsEvent += (OnPseudoElementAdded); + } + + _PseudoElementAdded += (value); + } + + remove + { + _PseudoElementAdded -= (value); + if ((_PseudoElementAdded) == (null)) + { + _client.DevToolsEvent -= (OnPseudoElementAdded); + } + } + } + + private void OnPseudoElementAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.pseudoElementAdded")) + { + _PseudoElementAdded?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PseudoElementRemoved; + /// + /// Called when a pseudo element is removed from an element. + /// + public event System.EventHandler PseudoElementRemoved + { + add + { + if ((_PseudoElementRemoved) == (null)) + { + _client.DevToolsEvent += (OnPseudoElementRemoved); + } + + _PseudoElementRemoved += (value); + } + + remove + { + _PseudoElementRemoved -= (value); + if ((_PseudoElementRemoved) == (null)) + { + _client.DevToolsEvent -= (OnPseudoElementRemoved); + } + } + } + + private void OnPseudoElementRemoved(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.pseudoElementRemoved")) + { + _PseudoElementRemoved?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _SetChildNodes; + /// + /// 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 + { + if ((_SetChildNodes) == (null)) + { + _client.DevToolsEvent += (OnSetChildNodes); + } + + _SetChildNodes += (value); + } + + remove + { + _SetChildNodes -= (value); + if ((_SetChildNodes) == (null)) + { + _client.DevToolsEvent -= (OnSetChildNodes); + } + } + } + + private void OnSetChildNodes(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.setChildNodes")) + { + _SetChildNodes?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ShadowRootPopped; + /// + /// Called when shadow root is popped from the element. + /// + public event System.EventHandler ShadowRootPopped + { + add + { + if ((_ShadowRootPopped) == (null)) + { + _client.DevToolsEvent += (OnShadowRootPopped); + } + + _ShadowRootPopped += (value); + } + + remove + { + _ShadowRootPopped -= (value); + if ((_ShadowRootPopped) == (null)) + { + _client.DevToolsEvent -= (OnShadowRootPopped); + } + } + } + + private void OnShadowRootPopped(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.shadowRootPopped")) + { + _ShadowRootPopped?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ShadowRootPushed; + /// + /// Called when shadow root is pushed into the element. + /// + public event System.EventHandler ShadowRootPushed + { + add + { + if ((_ShadowRootPushed) == (null)) + { + _client.DevToolsEvent += (OnShadowRootPushed); + } + + _ShadowRootPushed += (value); + } + + remove + { + _ShadowRootPushed -= (value); + if ((_ShadowRootPushed) == (null)) + { + _client.DevToolsEvent -= (OnShadowRootPushed); + } + } + } + + private void OnShadowRootPushed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.shadowRootPushed")) + { + _ShadowRootPushed?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateCollectClassNamesFromSubtree(int nodeId); /// /// Collects class names for the node with given id and all of it's child nodes. @@ -24573,6 +30210,142 @@ namespace CefSharp.DevTools.DOMStorage _client = (client); } + private System.EventHandler _DomStorageItemAdded; + /// + /// DomStorageItemAdded + /// + public event System.EventHandler DomStorageItemAdded + { + add + { + if ((_DomStorageItemAdded) == (null)) + { + _client.DevToolsEvent += (OnDomStorageItemAdded); + } + + _DomStorageItemAdded += (value); + } + + remove + { + _DomStorageItemAdded -= (value); + if ((_DomStorageItemAdded) == (null)) + { + _client.DevToolsEvent -= (OnDomStorageItemAdded); + } + } + } + + private void OnDomStorageItemAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOMStorage.domStorageItemAdded")) + { + _DomStorageItemAdded?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DomStorageItemRemoved; + /// + /// DomStorageItemRemoved + /// + public event System.EventHandler DomStorageItemRemoved + { + add + { + if ((_DomStorageItemRemoved) == (null)) + { + _client.DevToolsEvent += (OnDomStorageItemRemoved); + } + + _DomStorageItemRemoved += (value); + } + + remove + { + _DomStorageItemRemoved -= (value); + if ((_DomStorageItemRemoved) == (null)) + { + _client.DevToolsEvent -= (OnDomStorageItemRemoved); + } + } + } + + private void OnDomStorageItemRemoved(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOMStorage.domStorageItemRemoved")) + { + _DomStorageItemRemoved?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DomStorageItemUpdated; + /// + /// DomStorageItemUpdated + /// + public event System.EventHandler DomStorageItemUpdated + { + add + { + if ((_DomStorageItemUpdated) == (null)) + { + _client.DevToolsEvent += (OnDomStorageItemUpdated); + } + + _DomStorageItemUpdated += (value); + } + + remove + { + _DomStorageItemUpdated -= (value); + if ((_DomStorageItemUpdated) == (null)) + { + _client.DevToolsEvent -= (OnDomStorageItemUpdated); + } + } + } + + private void OnDomStorageItemUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOMStorage.domStorageItemUpdated")) + { + _DomStorageItemUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DomStorageItemsCleared; + /// + /// DomStorageItemsCleared + /// + public event System.EventHandler DomStorageItemsCleared + { + add + { + if ((_DomStorageItemsCleared) == (null)) + { + _client.DevToolsEvent += (OnDomStorageItemsCleared); + } + + _DomStorageItemsCleared += (value); + } + + remove + { + _DomStorageItemsCleared -= (value); + if ((_DomStorageItemsCleared) == (null)) + { + _client.DevToolsEvent -= (OnDomStorageItemsCleared); + } + } + } + + private void OnDomStorageItemsCleared(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOMStorage.domStorageItemsCleared")) + { + _DomStorageItemsCleared?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateClear(CefSharp.DevTools.DOMStorage.StorageId storageId); /// /// Clear @@ -24774,6 +30547,40 @@ namespace CefSharp.DevTools.Database _client = (client); } + private System.EventHandler _AddDatabase; + /// + /// AddDatabase + /// + public event System.EventHandler AddDatabase + { + add + { + if ((_AddDatabase) == (null)) + { + _client.DevToolsEvent += (OnAddDatabase); + } + + _AddDatabase += (value); + } + + remove + { + _AddDatabase -= (value); + if ((_AddDatabase) == (null)) + { + _client.DevToolsEvent -= (OnAddDatabase); + } + } + } + + private void OnAddDatabase(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Database.addDatabase")) + { + _AddDatabase?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Disables database tracking, prevents database events from being sent to the client. /// @@ -24860,7 +30667,7 @@ namespace CefSharp.DevTools.DeviceOrientation return methodResult; } - partial void ValidateSetDeviceOrientationOverride(long alpha, long beta, long gamma); + partial void ValidateSetDeviceOrientationOverride(double alpha, double beta, double gamma); /// /// Overrides the Device Orientation. /// @@ -24868,7 +30675,7 @@ namespace CefSharp.DevTools.DeviceOrientation /// Mock beta /// Mock gamma /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task SetDeviceOrientationOverrideAsync(long alpha, long beta, long gamma) + public async System.Threading.Tasks.Task SetDeviceOrientationOverrideAsync(double alpha, double beta, double gamma) { ValidateSetDeviceOrientationOverride(alpha, beta, gamma); var dict = new System.Collections.Generic.Dictionary(); @@ -24918,7 +30725,7 @@ namespace CefSharp.DevTools.Emulation public class SetVirtualTimePolicyResponse : CefSharp.DevTools.DevToolsDomainResponseBase { [System.Runtime.Serialization.DataMemberAttribute] - internal long virtualTimeTicksBase + internal double virtualTimeTicksBase { get; set; @@ -24927,7 +30734,7 @@ namespace CefSharp.DevTools.Emulation /// /// virtualTimeTicksBase /// - public long VirtualTimeTicksBase + public double VirtualTimeTicksBase { get { @@ -24956,6 +30763,40 @@ namespace CefSharp.DevTools.Emulation _client = (client); } + private System.EventHandler _VirtualTimeBudgetExpired; + /// + /// Notification sent after the virtual time budget for the current VirtualTimePolicy has run out. + /// + public event System.EventHandler VirtualTimeBudgetExpired + { + add + { + if ((_VirtualTimeBudgetExpired) == (null)) + { + _client.DevToolsEvent += (OnVirtualTimeBudgetExpired); + } + + _VirtualTimeBudgetExpired += (value); + } + + remove + { + _VirtualTimeBudgetExpired -= (value); + if ((_VirtualTimeBudgetExpired) == (null)) + { + _client.DevToolsEvent -= (OnVirtualTimeBudgetExpired); + } + } + } + + private void OnVirtualTimeBudgetExpired(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Emulation.virtualTimeBudgetExpired")) + { + _VirtualTimeBudgetExpired?.Invoke(this, System.EventArgs.Empty); + } + } + /// /// Tells whether emulation is supported. /// @@ -25015,13 +30856,13 @@ namespace CefSharp.DevTools.Emulation return methodResult; } - partial void ValidateSetCPUThrottlingRate(long rate); + 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 async System.Threading.Tasks.Task SetCPUThrottlingRateAsync(long rate) + public async System.Threading.Tasks.Task SetCPUThrottlingRateAsync(double rate) { ValidateSetCPUThrottlingRate(rate); var dict = new System.Collections.Generic.Dictionary(); @@ -25050,7 +30891,7 @@ namespace CefSharp.DevTools.Emulation return methodResult; } - partial void ValidateSetDeviceMetricsOverride(int width, int height, long deviceScaleFactor, bool mobile, long? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null); + 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); /// /// 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 @@ -25070,7 +30911,7 @@ namespace CefSharp.DevTools.Emulation /// 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. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, long deviceScaleFactor, bool mobile, long? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null) + public async 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) { ValidateSetDeviceMetricsOverride(width, height, deviceScaleFactor, mobile, scale, screenWidth, screenHeight, positionX, positionY, dontSetVisibleSize, screenOrientation, viewport, displayFeature); var dict = new System.Collections.Generic.Dictionary(); @@ -25218,7 +31059,7 @@ namespace CefSharp.DevTools.Emulation return methodResult; } - partial void ValidateSetGeolocationOverride(long? latitude = null, long? longitude = null, long? accuracy = null); + partial void ValidateSetGeolocationOverride(double? latitude = null, double? longitude = null, double? accuracy = null); /// /// Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position /// unavailable. @@ -25227,7 +31068,7 @@ namespace CefSharp.DevTools.Emulation /// Mock longitude /// Mock accuracy /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task SetGeolocationOverrideAsync(long? latitude = null, long? longitude = null, long? accuracy = null) + public async System.Threading.Tasks.Task SetGeolocationOverrideAsync(double? latitude = null, double? longitude = null, double? accuracy = null) { ValidateSetGeolocationOverride(latitude, longitude, accuracy); var dict = new System.Collections.Generic.Dictionary(); @@ -25278,13 +31119,13 @@ namespace CefSharp.DevTools.Emulation return methodResult; } - partial void ValidateSetPageScaleFactor(long pageScaleFactor); + partial void ValidateSetPageScaleFactor(double pageScaleFactor); /// /// Sets a specified page scale factor. /// /// Page scale factor. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task SetPageScaleFactorAsync(long pageScaleFactor) + public async System.Threading.Tasks.Task SetPageScaleFactorAsync(double pageScaleFactor) { ValidateSetPageScaleFactor(pageScaleFactor); var dict = new System.Collections.Generic.Dictionary(); @@ -25329,7 +31170,7 @@ namespace CefSharp.DevTools.Emulation return methodResult; } - partial void ValidateSetVirtualTimePolicy(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, long? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = null, long? initialVirtualTime = null); + partial void ValidateSetVirtualTimePolicy(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = 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. @@ -25340,7 +31181,7 @@ namespace CefSharp.DevTools.Emulation /// If set the virtual time policy change should be deferred until any frame starts navigating.Note any previous deferred policy change is superseded. /// If set, base::Time::Now will be overriden to initially return this value. /// returns System.Threading.Tasks.Task<SetVirtualTimePolicyResponse> - public async System.Threading.Tasks.Task SetVirtualTimePolicyAsync(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, long? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = null, long? initialVirtualTime = null) + public async System.Threading.Tasks.Task SetVirtualTimePolicyAsync(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = null, double? initialVirtualTime = null) { ValidateSetVirtualTimePolicy(policy, budget, maxVirtualTimeTaskStarvationCount, waitForNavigation, initialVirtualTime); var dict = new System.Collections.Generic.Dictionary(); @@ -25518,7 +31359,7 @@ namespace CefSharp.DevTools.HeadlessExperimental _client = (client); } - partial void ValidateBeginFrame(long? frameTimeTicks = null, long? interval = null, bool? noDisplayUpdates = null, CefSharp.DevTools.HeadlessExperimental.ScreenshotParams screenshot = null); + 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 @@ -25530,7 +31371,7 @@ namespace CefSharp.DevTools.HeadlessExperimental /// 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 async System.Threading.Tasks.Task BeginFrameAsync(long? frameTimeTicks = null, long? interval = null, bool? noDisplayUpdates = null, CefSharp.DevTools.HeadlessExperimental.ScreenshotParams screenshot = null) + public async 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(); @@ -25807,7 +31648,7 @@ namespace CefSharp.DevTools.IndexedDB public class GetMetadataResponse : CefSharp.DevTools.DevToolsDomainResponseBase { [System.Runtime.Serialization.DataMemberAttribute] - internal long entriesCount + internal double entriesCount { get; set; @@ -25816,7 +31657,7 @@ namespace CefSharp.DevTools.IndexedDB /// /// entriesCount /// - public long EntriesCount + public double EntriesCount { get { @@ -25825,7 +31666,7 @@ namespace CefSharp.DevTools.IndexedDB } [System.Runtime.Serialization.DataMemberAttribute] - internal long keyGeneratorValue + internal double keyGeneratorValue { get; set; @@ -25834,7 +31675,7 @@ namespace CefSharp.DevTools.IndexedDB /// /// keyGeneratorValue /// - public long KeyGeneratorValue + public double KeyGeneratorValue { get { @@ -26101,7 +31942,42 @@ namespace CefSharp.DevTools.Input _client = (client); } - partial void ValidateDispatchDragEvent(string type, long x, long y, CefSharp.DevTools.Input.DragData data, int? modifiers = null); + private System.EventHandler _DragIntercepted; + /// + /// 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 + { + if ((_DragIntercepted) == (null)) + { + _client.DevToolsEvent += (OnDragIntercepted); + } + + _DragIntercepted += (value); + } + + remove + { + _DragIntercepted -= (value); + if ((_DragIntercepted) == (null)) + { + _client.DevToolsEvent -= (OnDragIntercepted); + } + } + } + + private void OnDragIntercepted(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Input.dragIntercepted")) + { + _DragIntercepted?.Invoke(this, args.DeserializeJson()); + } + } + + partial void ValidateDispatchDragEvent(string type, double x, double y, CefSharp.DevTools.Input.DragData data, int? modifiers = null); /// /// Dispatches a drag event into the page. /// @@ -26111,7 +31987,7 @@ namespace CefSharp.DevTools.Input /// 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 async System.Threading.Tasks.Task DispatchDragEventAsync(string type, long x, long y, CefSharp.DevTools.Input.DragData data, int? modifiers = null) + public async System.Threading.Tasks.Task DispatchDragEventAsync(string 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(); @@ -26128,7 +32004,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateDispatchKeyEvent(string type, int? modifiers = null, long? timestamp = null, string text = null, string unmodifiedText = null, string keyIdentifier = null, string code = null, string key = null, int? windowsVirtualKeyCode = null, int? nativeVirtualKeyCode = null, bool? autoRepeat = null, bool? isKeypad = null, bool? isSystemKey = null, int? location = null, string[] commands = null); + partial void ValidateDispatchKeyEvent(string 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. /// @@ -26148,7 +32024,7 @@ namespace CefSharp.DevTools.Input /// 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/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task DispatchKeyEventAsync(string type, int? modifiers = null, long? timestamp = null, string text = null, string unmodifiedText = null, string keyIdentifier = null, string code = null, string key = null, int? windowsVirtualKeyCode = null, int? nativeVirtualKeyCode = null, bool? autoRepeat = null, bool? isKeypad = null, bool? isSystemKey = null, int? location = null, string[] commands = null) + public async System.Threading.Tasks.Task DispatchKeyEventAsync(string 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(); @@ -26243,7 +32119,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateDispatchMouseEvent(string type, long x, long y, int? modifiers = null, long? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, long? force = null, long? tangentialPressure = null, int? tiltX = null, int? tiltY = null, int? twist = null, long? deltaX = null, long? deltaY = null, string pointerType = null); + partial void ValidateDispatchMouseEvent(string 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, int? tiltX = null, int? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, string pointerType = null); /// /// Dispatches a mouse event to the page. /// @@ -26264,7 +32140,7 @@ namespace CefSharp.DevTools.Input /// Y delta in CSS pixels for mouse wheel event (default: 0). /// Pointer type (default: "mouse"). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task DispatchMouseEventAsync(string type, long x, long y, int? modifiers = null, long? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, long? force = null, long? tangentialPressure = null, int? tiltX = null, int? tiltY = null, int? twist = null, long? deltaX = null, long? deltaY = null, string pointerType = null) + public async System.Threading.Tasks.Task DispatchMouseEventAsync(string 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, int? tiltX = null, int? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, string 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(); @@ -26340,7 +32216,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateDispatchTouchEvent(string type, System.Collections.Generic.IList touchPoints, int? modifiers = null, long? timestamp = null); + partial void ValidateDispatchTouchEvent(string type, System.Collections.Generic.IList touchPoints, int? modifiers = null, double? timestamp = null); /// /// Dispatches a touch event to the page. /// @@ -26349,7 +32225,7 @@ namespace CefSharp.DevTools.Input /// 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 async System.Threading.Tasks.Task DispatchTouchEventAsync(string type, System.Collections.Generic.IList touchPoints, int? modifiers = null, long? timestamp = null) + public async System.Threading.Tasks.Task DispatchTouchEventAsync(string type, System.Collections.Generic.IList touchPoints, int? modifiers = null, double? timestamp = null) { ValidateDispatchTouchEvent(type, touchPoints, modifiers, timestamp); var dict = new System.Collections.Generic.Dictionary(); @@ -26369,7 +32245,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateEmulateTouchFromMouseEvent(string type, int x, int y, CefSharp.DevTools.Input.MouseButton button, long? timestamp = null, long? deltaX = null, long? deltaY = null, int? modifiers = null, int? clickCount = null); + partial void ValidateEmulateTouchFromMouseEvent(string 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. /// @@ -26383,7 +32259,7 @@ namespace CefSharp.DevTools.Input /// 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 async System.Threading.Tasks.Task EmulateTouchFromMouseEventAsync(string type, int x, int y, CefSharp.DevTools.Input.MouseButton button, long? timestamp = null, long? deltaX = null, long? deltaY = null, int? modifiers = null, int? clickCount = null) + public async System.Threading.Tasks.Task EmulateTouchFromMouseEventAsync(string 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(); @@ -26451,7 +32327,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateSynthesizePinchGesture(long x, long y, long scaleFactor, int? relativeSpeed = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null); + 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. /// @@ -26461,7 +32337,7 @@ namespace CefSharp.DevTools.Input /// 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 async System.Threading.Tasks.Task SynthesizePinchGestureAsync(long x, long y, long scaleFactor, int? relativeSpeed = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null) + public async 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(); @@ -26482,7 +32358,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateSynthesizeScrollGesture(long x, long y, long? xDistance = null, long? yDistance = null, long? xOverscroll = null, long? yOverscroll = null, bool? preventFling = null, int? speed = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null, int? repeatCount = null, int? repeatDelayMs = null, string interactionMarkerName = null); + 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. /// @@ -26499,7 +32375,7 @@ namespace CefSharp.DevTools.Input /// 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 async System.Threading.Tasks.Task SynthesizeScrollGestureAsync(long x, long y, long? xDistance = null, long? yDistance = null, long? xOverscroll = null, long? yOverscroll = null, bool? preventFling = null, int? speed = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null, int? repeatCount = null, int? repeatDelayMs = null, string interactionMarkerName = null) + public async 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(); @@ -26559,7 +32435,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateSynthesizeTapGesture(long x, long y, int? duration = null, int? tapCount = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null); + 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. /// @@ -26569,7 +32445,7 @@ namespace CefSharp.DevTools.Input /// 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 async System.Threading.Tasks.Task SynthesizeTapGestureAsync(long x, long y, int? duration = null, int? tapCount = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null) + public async 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(); @@ -26615,6 +32491,108 @@ namespace CefSharp.DevTools.Inspector _client = (client); } + private System.EventHandler _Detached; + /// + /// Fired when remote debugging connection is about to be terminated. Contains detach reason. + /// + public event System.EventHandler Detached + { + add + { + if ((_Detached) == (null)) + { + _client.DevToolsEvent += (OnDetached); + } + + _Detached += (value); + } + + remove + { + _Detached -= (value); + if ((_Detached) == (null)) + { + _client.DevToolsEvent -= (OnDetached); + } + } + } + + private void OnDetached(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Inspector.detached")) + { + _Detached?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TargetCrashed; + /// + /// Fired when debugging target has crashed + /// + public event System.EventHandler TargetCrashed + { + add + { + if ((_TargetCrashed) == (null)) + { + _client.DevToolsEvent += (OnTargetCrashed); + } + + _TargetCrashed += (value); + } + + remove + { + _TargetCrashed -= (value); + if ((_TargetCrashed) == (null)) + { + _client.DevToolsEvent -= (OnTargetCrashed); + } + } + } + + private void OnTargetCrashed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Inspector.targetCrashed")) + { + _TargetCrashed?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _TargetReloadedAfterCrash; + /// + /// Fired when debugging target has reloaded after crash + /// + public event System.EventHandler TargetReloadedAfterCrash + { + add + { + if ((_TargetReloadedAfterCrash) == (null)) + { + _client.DevToolsEvent += (OnTargetReloadedAfterCrash); + } + + _TargetReloadedAfterCrash += (value); + } + + remove + { + _TargetReloadedAfterCrash -= (value); + if ((_TargetReloadedAfterCrash) == (null)) + { + _client.DevToolsEvent -= (OnTargetReloadedAfterCrash); + } + } + } + + private void OnTargetReloadedAfterCrash(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Inspector.targetReloadedAfterCrash")) + { + _TargetReloadedAfterCrash?.Invoke(this, System.EventArgs.Empty); + } + } + /// /// Disables inspector domain notifications. /// @@ -26750,7 +32728,7 @@ namespace CefSharp.DevTools.LayerTree public class ProfileSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase { [System.Runtime.Serialization.DataMemberAttribute] - internal long[] timings + internal double[] timings { get; set; @@ -26759,7 +32737,7 @@ namespace CefSharp.DevTools.LayerTree /// /// timings /// - public long[] Timings + public double[] Timings { get { @@ -26844,6 +32822,74 @@ namespace CefSharp.DevTools.LayerTree _client = (client); } + private System.EventHandler _LayerPainted; + /// + /// LayerPainted + /// + public event System.EventHandler LayerPainted + { + add + { + if ((_LayerPainted) == (null)) + { + _client.DevToolsEvent += (OnLayerPainted); + } + + _LayerPainted += (value); + } + + remove + { + _LayerPainted -= (value); + if ((_LayerPainted) == (null)) + { + _client.DevToolsEvent -= (OnLayerPainted); + } + } + } + + private void OnLayerPainted(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("LayerTree.layerPainted")) + { + _LayerPainted?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _LayerTreeDidChange; + /// + /// LayerTreeDidChange + /// + public event System.EventHandler LayerTreeDidChange + { + add + { + if ((_LayerTreeDidChange) == (null)) + { + _client.DevToolsEvent += (OnLayerTreeDidChange); + } + + _LayerTreeDidChange += (value); + } + + remove + { + _LayerTreeDidChange -= (value); + if ((_LayerTreeDidChange) == (null)) + { + _client.DevToolsEvent -= (OnLayerTreeDidChange); + } + } + } + + private void OnLayerTreeDidChange(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("LayerTree.layerTreeDidChange")) + { + _LayerTreeDidChange?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateCompositingReasons(string layerId); /// /// Provides the reasons why the given layer was composited. @@ -26911,7 +32957,7 @@ namespace CefSharp.DevTools.LayerTree return methodResult.DeserializeJson(); } - partial void ValidateProfileSnapshot(string snapshotId, int? minRepeatCount = null, long? minDuration = null, CefSharp.DevTools.DOM.Rect clipRect = null); + partial void ValidateProfileSnapshot(string snapshotId, int? minRepeatCount = null, double? minDuration = null, CefSharp.DevTools.DOM.Rect clipRect = null); /// /// ProfileSnapshot /// @@ -26920,7 +32966,7 @@ namespace CefSharp.DevTools.LayerTree /// The minimum duration (in seconds) to replay the snapshot. /// The clip rectangle to apply when replaying the snapshot. /// returns System.Threading.Tasks.Task<ProfileSnapshotResponse> - public async System.Threading.Tasks.Task ProfileSnapshotAsync(string snapshotId, int? minRepeatCount = null, long? minDuration = null, CefSharp.DevTools.DOM.Rect clipRect = null) + public async 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(); @@ -26959,7 +33005,7 @@ namespace CefSharp.DevTools.LayerTree return methodResult; } - partial void ValidateReplaySnapshot(string snapshotId, int? fromStep = null, int? toStep = null, long? scale = null); + partial void ValidateReplaySnapshot(string snapshotId, int? fromStep = null, int? toStep = null, double? scale = null); /// /// Replays the layer snapshot and returns the resulting bitmap. /// @@ -26968,7 +33014,7 @@ namespace CefSharp.DevTools.LayerTree /// The last step to replay to (replay till the end if not specified). /// The scale to apply while replaying (defaults to 1). /// returns System.Threading.Tasks.Task<ReplaySnapshotResponse> - public async System.Threading.Tasks.Task ReplaySnapshotAsync(string snapshotId, int? fromStep = null, int? toStep = null, long? scale = null) + public async 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(); @@ -27028,6 +33074,40 @@ namespace CefSharp.DevTools.Log _client = (client); } + private System.EventHandler _EntryAdded; + /// + /// Issued when new message was logged. + /// + public event System.EventHandler EntryAdded + { + add + { + if ((_EntryAdded) == (null)) + { + _client.DevToolsEvent += (OnEntryAdded); + } + + _EntryAdded += (value); + } + + remove + { + _EntryAdded -= (value); + if ((_EntryAdded) == (null)) + { + _client.DevToolsEvent -= (OnEntryAdded); + } + } + } + + private void OnEntryAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Log.entryAdded")) + { + _EntryAdded?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Clears the log. /// @@ -27758,6 +33838,762 @@ namespace CefSharp.DevTools.Network _client = (client); } + private System.EventHandler _DataReceived; + /// + /// Fired when data chunk was received over the network. + /// + public event System.EventHandler DataReceived + { + add + { + if ((_DataReceived) == (null)) + { + _client.DevToolsEvent += (OnDataReceived); + } + + _DataReceived += (value); + } + + remove + { + _DataReceived -= (value); + if ((_DataReceived) == (null)) + { + _client.DevToolsEvent -= (OnDataReceived); + } + } + } + + private void OnDataReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.dataReceived")) + { + _DataReceived?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _EventSourceMessageReceived; + /// + /// Fired when EventSource message is received. + /// + public event System.EventHandler EventSourceMessageReceived + { + add + { + if ((_EventSourceMessageReceived) == (null)) + { + _client.DevToolsEvent += (OnEventSourceMessageReceived); + } + + _EventSourceMessageReceived += (value); + } + + remove + { + _EventSourceMessageReceived -= (value); + if ((_EventSourceMessageReceived) == (null)) + { + _client.DevToolsEvent -= (OnEventSourceMessageReceived); + } + } + } + + private void OnEventSourceMessageReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.eventSourceMessageReceived")) + { + _EventSourceMessageReceived?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _LoadingFailed; + /// + /// Fired when HTTP request has failed to load. + /// + public event System.EventHandler LoadingFailed + { + add + { + if ((_LoadingFailed) == (null)) + { + _client.DevToolsEvent += (OnLoadingFailed); + } + + _LoadingFailed += (value); + } + + remove + { + _LoadingFailed -= (value); + if ((_LoadingFailed) == (null)) + { + _client.DevToolsEvent -= (OnLoadingFailed); + } + } + } + + private void OnLoadingFailed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.loadingFailed")) + { + _LoadingFailed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _LoadingFinished; + /// + /// Fired when HTTP request has finished loading. + /// + public event System.EventHandler LoadingFinished + { + add + { + if ((_LoadingFinished) == (null)) + { + _client.DevToolsEvent += (OnLoadingFinished); + } + + _LoadingFinished += (value); + } + + remove + { + _LoadingFinished -= (value); + if ((_LoadingFinished) == (null)) + { + _client.DevToolsEvent -= (OnLoadingFinished); + } + } + } + + private void OnLoadingFinished(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.loadingFinished")) + { + _LoadingFinished?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _RequestServedFromCache; + /// + /// Fired if request ended up loading from cache. + /// + public event System.EventHandler RequestServedFromCache + { + add + { + if ((_RequestServedFromCache) == (null)) + { + _client.DevToolsEvent += (OnRequestServedFromCache); + } + + _RequestServedFromCache += (value); + } + + remove + { + _RequestServedFromCache -= (value); + if ((_RequestServedFromCache) == (null)) + { + _client.DevToolsEvent -= (OnRequestServedFromCache); + } + } + } + + private void OnRequestServedFromCache(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.requestServedFromCache")) + { + _RequestServedFromCache?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _RequestWillBeSent; + /// + /// Fired when page is about to send HTTP request. + /// + public event System.EventHandler RequestWillBeSent + { + add + { + if ((_RequestWillBeSent) == (null)) + { + _client.DevToolsEvent += (OnRequestWillBeSent); + } + + _RequestWillBeSent += (value); + } + + remove + { + _RequestWillBeSent -= (value); + if ((_RequestWillBeSent) == (null)) + { + _client.DevToolsEvent -= (OnRequestWillBeSent); + } + } + } + + private void OnRequestWillBeSent(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.requestWillBeSent")) + { + _RequestWillBeSent?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ResourceChangedPriority; + /// + /// Fired when resource loading priority is changed + /// + public event System.EventHandler ResourceChangedPriority + { + add + { + if ((_ResourceChangedPriority) == (null)) + { + _client.DevToolsEvent += (OnResourceChangedPriority); + } + + _ResourceChangedPriority += (value); + } + + remove + { + _ResourceChangedPriority -= (value); + if ((_ResourceChangedPriority) == (null)) + { + _client.DevToolsEvent -= (OnResourceChangedPriority); + } + } + } + + private void OnResourceChangedPriority(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.resourceChangedPriority")) + { + _ResourceChangedPriority?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _SignedExchangeReceived; + /// + /// Fired when a signed exchange was received over the network + /// + public event System.EventHandler SignedExchangeReceived + { + add + { + if ((_SignedExchangeReceived) == (null)) + { + _client.DevToolsEvent += (OnSignedExchangeReceived); + } + + _SignedExchangeReceived += (value); + } + + remove + { + _SignedExchangeReceived -= (value); + if ((_SignedExchangeReceived) == (null)) + { + _client.DevToolsEvent -= (OnSignedExchangeReceived); + } + } + } + + private void OnSignedExchangeReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.signedExchangeReceived")) + { + _SignedExchangeReceived?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ResponseReceived; + /// + /// Fired when HTTP response is available. + /// + public event System.EventHandler ResponseReceived + { + add + { + if ((_ResponseReceived) == (null)) + { + _client.DevToolsEvent += (OnResponseReceived); + } + + _ResponseReceived += (value); + } + + remove + { + _ResponseReceived -= (value); + if ((_ResponseReceived) == (null)) + { + _client.DevToolsEvent -= (OnResponseReceived); + } + } + } + + private void OnResponseReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.responseReceived")) + { + _ResponseReceived?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketClosed; + /// + /// Fired when WebSocket is closed. + /// + public event System.EventHandler WebSocketClosed + { + add + { + if ((_WebSocketClosed) == (null)) + { + _client.DevToolsEvent += (OnWebSocketClosed); + } + + _WebSocketClosed += (value); + } + + remove + { + _WebSocketClosed -= (value); + if ((_WebSocketClosed) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketClosed); + } + } + } + + private void OnWebSocketClosed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketClosed")) + { + _WebSocketClosed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketCreated; + /// + /// Fired upon WebSocket creation. + /// + public event System.EventHandler WebSocketCreated + { + add + { + if ((_WebSocketCreated) == (null)) + { + _client.DevToolsEvent += (OnWebSocketCreated); + } + + _WebSocketCreated += (value); + } + + remove + { + _WebSocketCreated -= (value); + if ((_WebSocketCreated) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketCreated); + } + } + } + + private void OnWebSocketCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketCreated")) + { + _WebSocketCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketFrameError; + /// + /// Fired when WebSocket message error occurs. + /// + public event System.EventHandler WebSocketFrameError + { + add + { + if ((_WebSocketFrameError) == (null)) + { + _client.DevToolsEvent += (OnWebSocketFrameError); + } + + _WebSocketFrameError += (value); + } + + remove + { + _WebSocketFrameError -= (value); + if ((_WebSocketFrameError) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketFrameError); + } + } + } + + private void OnWebSocketFrameError(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketFrameError")) + { + _WebSocketFrameError?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketFrameReceived; + /// + /// Fired when WebSocket message is received. + /// + public event System.EventHandler WebSocketFrameReceived + { + add + { + if ((_WebSocketFrameReceived) == (null)) + { + _client.DevToolsEvent += (OnWebSocketFrameReceived); + } + + _WebSocketFrameReceived += (value); + } + + remove + { + _WebSocketFrameReceived -= (value); + if ((_WebSocketFrameReceived) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketFrameReceived); + } + } + } + + private void OnWebSocketFrameReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketFrameReceived")) + { + _WebSocketFrameReceived?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketFrameSent; + /// + /// Fired when WebSocket message is sent. + /// + public event System.EventHandler WebSocketFrameSent + { + add + { + if ((_WebSocketFrameSent) == (null)) + { + _client.DevToolsEvent += (OnWebSocketFrameSent); + } + + _WebSocketFrameSent += (value); + } + + remove + { + _WebSocketFrameSent -= (value); + if ((_WebSocketFrameSent) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketFrameSent); + } + } + } + + private void OnWebSocketFrameSent(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketFrameSent")) + { + _WebSocketFrameSent?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketHandshakeResponseReceived; + /// + /// Fired when WebSocket handshake response becomes available. + /// + public event System.EventHandler WebSocketHandshakeResponseReceived + { + add + { + if ((_WebSocketHandshakeResponseReceived) == (null)) + { + _client.DevToolsEvent += (OnWebSocketHandshakeResponseReceived); + } + + _WebSocketHandshakeResponseReceived += (value); + } + + remove + { + _WebSocketHandshakeResponseReceived -= (value); + if ((_WebSocketHandshakeResponseReceived) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketHandshakeResponseReceived); + } + } + } + + private void OnWebSocketHandshakeResponseReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketHandshakeResponseReceived")) + { + _WebSocketHandshakeResponseReceived?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketWillSendHandshakeRequest; + /// + /// Fired when WebSocket is about to initiate handshake. + /// + public event System.EventHandler WebSocketWillSendHandshakeRequest + { + add + { + if ((_WebSocketWillSendHandshakeRequest) == (null)) + { + _client.DevToolsEvent += (OnWebSocketWillSendHandshakeRequest); + } + + _WebSocketWillSendHandshakeRequest += (value); + } + + remove + { + _WebSocketWillSendHandshakeRequest -= (value); + if ((_WebSocketWillSendHandshakeRequest) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketWillSendHandshakeRequest); + } + } + } + + private void OnWebSocketWillSendHandshakeRequest(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketWillSendHandshakeRequest")) + { + _WebSocketWillSendHandshakeRequest?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebTransportCreated; + /// + /// Fired upon WebTransport creation. + /// + public event System.EventHandler WebTransportCreated + { + add + { + if ((_WebTransportCreated) == (null)) + { + _client.DevToolsEvent += (OnWebTransportCreated); + } + + _WebTransportCreated += (value); + } + + remove + { + _WebTransportCreated -= (value); + if ((_WebTransportCreated) == (null)) + { + _client.DevToolsEvent -= (OnWebTransportCreated); + } + } + } + + private void OnWebTransportCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webTransportCreated")) + { + _WebTransportCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebTransportConnectionEstablished; + /// + /// Fired when WebTransport handshake is finished. + /// + public event System.EventHandler WebTransportConnectionEstablished + { + add + { + if ((_WebTransportConnectionEstablished) == (null)) + { + _client.DevToolsEvent += (OnWebTransportConnectionEstablished); + } + + _WebTransportConnectionEstablished += (value); + } + + remove + { + _WebTransportConnectionEstablished -= (value); + if ((_WebTransportConnectionEstablished) == (null)) + { + _client.DevToolsEvent -= (OnWebTransportConnectionEstablished); + } + } + } + + private void OnWebTransportConnectionEstablished(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webTransportConnectionEstablished")) + { + _WebTransportConnectionEstablished?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebTransportClosed; + /// + /// Fired when WebTransport is disposed. + /// + public event System.EventHandler WebTransportClosed + { + add + { + if ((_WebTransportClosed) == (null)) + { + _client.DevToolsEvent += (OnWebTransportClosed); + } + + _WebTransportClosed += (value); + } + + remove + { + _WebTransportClosed -= (value); + if ((_WebTransportClosed) == (null)) + { + _client.DevToolsEvent -= (OnWebTransportClosed); + } + } + } + + private void OnWebTransportClosed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webTransportClosed")) + { + _WebTransportClosed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _RequestWillBeSentExtraInfo; + /// + /// 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 + { + if ((_RequestWillBeSentExtraInfo) == (null)) + { + _client.DevToolsEvent += (OnRequestWillBeSentExtraInfo); + } + + _RequestWillBeSentExtraInfo += (value); + } + + remove + { + _RequestWillBeSentExtraInfo -= (value); + if ((_RequestWillBeSentExtraInfo) == (null)) + { + _client.DevToolsEvent -= (OnRequestWillBeSentExtraInfo); + } + } + } + + private void OnRequestWillBeSentExtraInfo(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.requestWillBeSentExtraInfo")) + { + _RequestWillBeSentExtraInfo?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ResponseReceivedExtraInfo; + /// + /// 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 + { + if ((_ResponseReceivedExtraInfo) == (null)) + { + _client.DevToolsEvent += (OnResponseReceivedExtraInfo); + } + + _ResponseReceivedExtraInfo += (value); + } + + remove + { + _ResponseReceivedExtraInfo -= (value); + if ((_ResponseReceivedExtraInfo) == (null)) + { + _client.DevToolsEvent -= (OnResponseReceivedExtraInfo); + } + } + } + + private void OnResponseReceivedExtraInfo(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.responseReceivedExtraInfo")) + { + _ResponseReceivedExtraInfo?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TrustTokenOperationDone; + /// + /// 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 + { + if ((_TrustTokenOperationDone) == (null)) + { + _client.DevToolsEvent += (OnTrustTokenOperationDone); + } + + _TrustTokenOperationDone += (value); + } + + remove + { + _TrustTokenOperationDone -= (value); + if ((_TrustTokenOperationDone) == (null)) + { + _client.DevToolsEvent -= (OnTrustTokenOperationDone); + } + } + } + + private void OnTrustTokenOperationDone(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.trustTokenOperationDone")) + { + _TrustTokenOperationDone?.Invoke(this, args.DeserializeJson()); + } + } + 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. @@ -27850,7 +34686,7 @@ namespace CefSharp.DevTools.Network return methodResult; } - partial void ValidateEmulateNetworkConditions(bool offline, long latency, long downloadThroughput, long uploadThroughput, CefSharp.DevTools.Network.ConnectionType? connectionType = null); + partial void ValidateEmulateNetworkConditions(bool offline, double latency, double downloadThroughput, double uploadThroughput, CefSharp.DevTools.Network.ConnectionType? connectionType = null); /// /// Activates emulation of network conditions. /// @@ -27860,7 +34696,7 @@ namespace CefSharp.DevTools.Network /// Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling. /// Connection type if known. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task EmulateNetworkConditionsAsync(bool offline, long latency, long downloadThroughput, long uploadThroughput, CefSharp.DevTools.Network.ConnectionType? connectionType = null) + public async System.Threading.Tasks.Task EmulateNetworkConditionsAsync(bool offline, double latency, double downloadThroughput, double uploadThroughput, CefSharp.DevTools.Network.ConnectionType? connectionType = null) { ValidateEmulateNetworkConditions(offline, latency, downloadThroughput, uploadThroughput, connectionType); var dict = new System.Collections.Generic.Dictionary(); @@ -28109,7 +34945,7 @@ namespace CefSharp.DevTools.Network return methodResult; } - partial void ValidateSetCookie(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, long? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, bool? sameParty = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null); + 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); /// /// Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. /// @@ -28127,7 +34963,7 @@ namespace CefSharp.DevTools.Network /// 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. /// returns System.Threading.Tasks.Task<SetCookieResponse> - public async System.Threading.Tasks.Task SetCookieAsync(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, long? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, bool? sameParty = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null) + public async System.Threading.Tasks.Task SetCookieAsync(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, double? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, bool? sameParty = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null) { ValidateSetCookie(name, value, url, domain, path, secure, httpOnly, sameSite, expires, priority, sameParty, sourceScheme, sourcePort); var dict = new System.Collections.Generic.Dictionary(); @@ -28430,6 +35266,143 @@ namespace CefSharp.DevTools.Overlay _client = (client); } + private System.EventHandler _InspectNodeRequested; + /// + /// 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 + { + if ((_InspectNodeRequested) == (null)) + { + _client.DevToolsEvent += (OnInspectNodeRequested); + } + + _InspectNodeRequested += (value); + } + + remove + { + _InspectNodeRequested -= (value); + if ((_InspectNodeRequested) == (null)) + { + _client.DevToolsEvent -= (OnInspectNodeRequested); + } + } + } + + private void OnInspectNodeRequested(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Overlay.inspectNodeRequested")) + { + _InspectNodeRequested?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NodeHighlightRequested; + /// + /// Fired when the node should be highlighted. This happens after call to `setInspectMode`. + /// + public event System.EventHandler NodeHighlightRequested + { + add + { + if ((_NodeHighlightRequested) == (null)) + { + _client.DevToolsEvent += (OnNodeHighlightRequested); + } + + _NodeHighlightRequested += (value); + } + + remove + { + _NodeHighlightRequested -= (value); + if ((_NodeHighlightRequested) == (null)) + { + _client.DevToolsEvent -= (OnNodeHighlightRequested); + } + } + } + + private void OnNodeHighlightRequested(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Overlay.nodeHighlightRequested")) + { + _NodeHighlightRequested?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ScreenshotRequested; + /// + /// Fired when user asks to capture screenshot of some area on the page. + /// + public event System.EventHandler ScreenshotRequested + { + add + { + if ((_ScreenshotRequested) == (null)) + { + _client.DevToolsEvent += (OnScreenshotRequested); + } + + _ScreenshotRequested += (value); + } + + remove + { + _ScreenshotRequested -= (value); + if ((_ScreenshotRequested) == (null)) + { + _client.DevToolsEvent -= (OnScreenshotRequested); + } + } + } + + private void OnScreenshotRequested(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Overlay.screenshotRequested")) + { + _ScreenshotRequested?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _InspectModeCanceled; + /// + /// Fired when user cancels the inspect mode. + /// + public event System.EventHandler InspectModeCanceled + { + add + { + if ((_InspectModeCanceled) == (null)) + { + _client.DevToolsEvent += (OnInspectModeCanceled); + } + + _InspectModeCanceled += (value); + } + + remove + { + _InspectModeCanceled -= (value); + if ((_InspectModeCanceled) == (null)) + { + _client.DevToolsEvent -= (OnInspectModeCanceled); + } + } + } + + private void OnInspectModeCanceled(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Overlay.inspectModeCanceled")) + { + _InspectModeCanceled?.Invoke(this, System.EventArgs.Empty); + } + } + /// /// Disables domain notifications. /// @@ -28599,7 +35572,7 @@ namespace CefSharp.DevTools.Overlay return methodResult; } - partial void ValidateHighlightQuad(long[] quad, CefSharp.DevTools.DOM.RGBA color = null, CefSharp.DevTools.DOM.RGBA outlineColor = null); + 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. /// @@ -28607,7 +35580,7 @@ namespace CefSharp.DevTools.Overlay /// The highlight fill color (default: transparent). /// The highlight outline color (default: transparent). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task HighlightQuadAsync(long[] quad, CefSharp.DevTools.DOM.RGBA color = null, CefSharp.DevTools.DOM.RGBA outlineColor = null) + public async 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(); @@ -29636,6 +36609,725 @@ namespace CefSharp.DevTools.Page _client = (client); } + private System.EventHandler _DomContentEventFired; + /// + /// DomContentEventFired + /// + public event System.EventHandler DomContentEventFired + { + add + { + if ((_DomContentEventFired) == (null)) + { + _client.DevToolsEvent += (OnDomContentEventFired); + } + + _DomContentEventFired += (value); + } + + remove + { + _DomContentEventFired -= (value); + if ((_DomContentEventFired) == (null)) + { + _client.DevToolsEvent -= (OnDomContentEventFired); + } + } + } + + private void OnDomContentEventFired(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.domContentEventFired")) + { + _DomContentEventFired?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FileChooserOpened; + /// + /// Emitted only when `page.interceptFileChooser` is enabled. + /// + public event System.EventHandler FileChooserOpened + { + add + { + if ((_FileChooserOpened) == (null)) + { + _client.DevToolsEvent += (OnFileChooserOpened); + } + + _FileChooserOpened += (value); + } + + remove + { + _FileChooserOpened -= (value); + if ((_FileChooserOpened) == (null)) + { + _client.DevToolsEvent -= (OnFileChooserOpened); + } + } + } + + private void OnFileChooserOpened(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.fileChooserOpened")) + { + _FileChooserOpened?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FrameAttached; + /// + /// Fired when frame has been attached to its parent. + /// + public event System.EventHandler FrameAttached + { + add + { + if ((_FrameAttached) == (null)) + { + _client.DevToolsEvent += (OnFrameAttached); + } + + _FrameAttached += (value); + } + + remove + { + _FrameAttached -= (value); + if ((_FrameAttached) == (null)) + { + _client.DevToolsEvent -= (OnFrameAttached); + } + } + } + + private void OnFrameAttached(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameAttached")) + { + _FrameAttached?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FrameDetached; + /// + /// Fired when frame has been detached from its parent. + /// + public event System.EventHandler FrameDetached + { + add + { + if ((_FrameDetached) == (null)) + { + _client.DevToolsEvent += (OnFrameDetached); + } + + _FrameDetached += (value); + } + + remove + { + _FrameDetached -= (value); + if ((_FrameDetached) == (null)) + { + _client.DevToolsEvent -= (OnFrameDetached); + } + } + } + + private void OnFrameDetached(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameDetached")) + { + _FrameDetached?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FrameNavigated; + /// + /// Fired once navigation of the frame has completed. Frame is now associated with the new loader. + /// + public event System.EventHandler FrameNavigated + { + add + { + if ((_FrameNavigated) == (null)) + { + _client.DevToolsEvent += (OnFrameNavigated); + } + + _FrameNavigated += (value); + } + + remove + { + _FrameNavigated -= (value); + if ((_FrameNavigated) == (null)) + { + _client.DevToolsEvent -= (OnFrameNavigated); + } + } + } + + private void OnFrameNavigated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameNavigated")) + { + _FrameNavigated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DocumentOpened; + /// + /// Fired when opening document to write to. + /// + public event System.EventHandler DocumentOpened + { + add + { + if ((_DocumentOpened) == (null)) + { + _client.DevToolsEvent += (OnDocumentOpened); + } + + _DocumentOpened += (value); + } + + remove + { + _DocumentOpened -= (value); + if ((_DocumentOpened) == (null)) + { + _client.DevToolsEvent -= (OnDocumentOpened); + } + } + } + + private void OnDocumentOpened(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.documentOpened")) + { + _DocumentOpened?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FrameResized; + /// + /// FrameResized + /// + public event System.EventHandler FrameResized + { + add + { + if ((_FrameResized) == (null)) + { + _client.DevToolsEvent += (OnFrameResized); + } + + _FrameResized += (value); + } + + remove + { + _FrameResized -= (value); + if ((_FrameResized) == (null)) + { + _client.DevToolsEvent -= (OnFrameResized); + } + } + } + + private void OnFrameResized(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameResized")) + { + _FrameResized?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _FrameRequestedNavigation; + /// + /// Fired when a renderer-initiated navigation is requested. + /// Navigation may still be cancelled after the event is issued. + /// + public event System.EventHandler FrameRequestedNavigation + { + add + { + if ((_FrameRequestedNavigation) == (null)) + { + _client.DevToolsEvent += (OnFrameRequestedNavigation); + } + + _FrameRequestedNavigation += (value); + } + + remove + { + _FrameRequestedNavigation -= (value); + if ((_FrameRequestedNavigation) == (null)) + { + _client.DevToolsEvent -= (OnFrameRequestedNavigation); + } + } + } + + private void OnFrameRequestedNavigation(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameRequestedNavigation")) + { + _FrameRequestedNavigation?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FrameStartedLoading; + /// + /// Fired when frame has started loading. + /// + public event System.EventHandler FrameStartedLoading + { + add + { + if ((_FrameStartedLoading) == (null)) + { + _client.DevToolsEvent += (OnFrameStartedLoading); + } + + _FrameStartedLoading += (value); + } + + remove + { + _FrameStartedLoading -= (value); + if ((_FrameStartedLoading) == (null)) + { + _client.DevToolsEvent -= (OnFrameStartedLoading); + } + } + } + + private void OnFrameStartedLoading(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameStartedLoading")) + { + _FrameStartedLoading?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FrameStoppedLoading; + /// + /// Fired when frame has stopped loading. + /// + public event System.EventHandler FrameStoppedLoading + { + add + { + if ((_FrameStoppedLoading) == (null)) + { + _client.DevToolsEvent += (OnFrameStoppedLoading); + } + + _FrameStoppedLoading += (value); + } + + remove + { + _FrameStoppedLoading -= (value); + if ((_FrameStoppedLoading) == (null)) + { + _client.DevToolsEvent -= (OnFrameStoppedLoading); + } + } + } + + private void OnFrameStoppedLoading(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameStoppedLoading")) + { + _FrameStoppedLoading?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _InterstitialHidden; + /// + /// Fired when interstitial page was hidden + /// + public event System.EventHandler InterstitialHidden + { + add + { + if ((_InterstitialHidden) == (null)) + { + _client.DevToolsEvent += (OnInterstitialHidden); + } + + _InterstitialHidden += (value); + } + + remove + { + _InterstitialHidden -= (value); + if ((_InterstitialHidden) == (null)) + { + _client.DevToolsEvent -= (OnInterstitialHidden); + } + } + } + + private void OnInterstitialHidden(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.interstitialHidden")) + { + _InterstitialHidden?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _InterstitialShown; + /// + /// Fired when interstitial page was shown + /// + public event System.EventHandler InterstitialShown + { + add + { + if ((_InterstitialShown) == (null)) + { + _client.DevToolsEvent += (OnInterstitialShown); + } + + _InterstitialShown += (value); + } + + remove + { + _InterstitialShown -= (value); + if ((_InterstitialShown) == (null)) + { + _client.DevToolsEvent -= (OnInterstitialShown); + } + } + } + + private void OnInterstitialShown(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.interstitialShown")) + { + _InterstitialShown?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _JavascriptDialogClosed; + /// + /// Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been + /// closed. + /// + public event System.EventHandler JavascriptDialogClosed + { + add + { + if ((_JavascriptDialogClosed) == (null)) + { + _client.DevToolsEvent += (OnJavascriptDialogClosed); + } + + _JavascriptDialogClosed += (value); + } + + remove + { + _JavascriptDialogClosed -= (value); + if ((_JavascriptDialogClosed) == (null)) + { + _client.DevToolsEvent -= (OnJavascriptDialogClosed); + } + } + } + + private void OnJavascriptDialogClosed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.javascriptDialogClosed")) + { + _JavascriptDialogClosed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _JavascriptDialogOpening; + /// + /// Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to + /// open. + /// + public event System.EventHandler JavascriptDialogOpening + { + add + { + if ((_JavascriptDialogOpening) == (null)) + { + _client.DevToolsEvent += (OnJavascriptDialogOpening); + } + + _JavascriptDialogOpening += (value); + } + + remove + { + _JavascriptDialogOpening -= (value); + if ((_JavascriptDialogOpening) == (null)) + { + _client.DevToolsEvent -= (OnJavascriptDialogOpening); + } + } + } + + private void OnJavascriptDialogOpening(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.javascriptDialogOpening")) + { + _JavascriptDialogOpening?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _LifecycleEvent; + /// + /// Fired for top level page lifecycle events such as navigation, load, paint, etc. + /// + public event System.EventHandler LifecycleEvent + { + add + { + if ((_LifecycleEvent) == (null)) + { + _client.DevToolsEvent += (OnLifecycleEvent); + } + + _LifecycleEvent += (value); + } + + remove + { + _LifecycleEvent -= (value); + if ((_LifecycleEvent) == (null)) + { + _client.DevToolsEvent -= (OnLifecycleEvent); + } + } + } + + private void OnLifecycleEvent(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.lifecycleEvent")) + { + _LifecycleEvent?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _LoadEventFired; + /// + /// LoadEventFired + /// + public event System.EventHandler LoadEventFired + { + add + { + if ((_LoadEventFired) == (null)) + { + _client.DevToolsEvent += (OnLoadEventFired); + } + + _LoadEventFired += (value); + } + + remove + { + _LoadEventFired -= (value); + if ((_LoadEventFired) == (null)) + { + _client.DevToolsEvent -= (OnLoadEventFired); + } + } + } + + private void OnLoadEventFired(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.loadEventFired")) + { + _LoadEventFired?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NavigatedWithinDocument; + /// + /// Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation. + /// + public event System.EventHandler NavigatedWithinDocument + { + add + { + if ((_NavigatedWithinDocument) == (null)) + { + _client.DevToolsEvent += (OnNavigatedWithinDocument); + } + + _NavigatedWithinDocument += (value); + } + + remove + { + _NavigatedWithinDocument -= (value); + if ((_NavigatedWithinDocument) == (null)) + { + _client.DevToolsEvent -= (OnNavigatedWithinDocument); + } + } + } + + private void OnNavigatedWithinDocument(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.navigatedWithinDocument")) + { + _NavigatedWithinDocument?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ScreencastFrame; + /// + /// Compressed image data requested by the `startScreencast`. + /// + public event System.EventHandler ScreencastFrame + { + add + { + if ((_ScreencastFrame) == (null)) + { + _client.DevToolsEvent += (OnScreencastFrame); + } + + _ScreencastFrame += (value); + } + + remove + { + _ScreencastFrame -= (value); + if ((_ScreencastFrame) == (null)) + { + _client.DevToolsEvent -= (OnScreencastFrame); + } + } + } + + private void OnScreencastFrame(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.screencastFrame")) + { + _ScreencastFrame?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ScreencastVisibilityChanged; + /// + /// Fired when the page with currently enabled screencast was shown or hidden `. + /// + public event System.EventHandler ScreencastVisibilityChanged + { + add + { + if ((_ScreencastVisibilityChanged) == (null)) + { + _client.DevToolsEvent += (OnScreencastVisibilityChanged); + } + + _ScreencastVisibilityChanged += (value); + } + + remove + { + _ScreencastVisibilityChanged -= (value); + if ((_ScreencastVisibilityChanged) == (null)) + { + _client.DevToolsEvent -= (OnScreencastVisibilityChanged); + } + } + } + + private void OnScreencastVisibilityChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.screencastVisibilityChanged")) + { + _ScreencastVisibilityChanged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WindowOpen; + /// + /// Fired when a new window is going to be opened, via window.open(), link click, form submission, + /// etc. + /// + public event System.EventHandler WindowOpen + { + add + { + if ((_WindowOpen) == (null)) + { + _client.DevToolsEvent += (OnWindowOpen); + } + + _WindowOpen += (value); + } + + remove + { + _WindowOpen -= (value); + if ((_WindowOpen) == (null)) + { + _client.DevToolsEvent -= (OnWindowOpen); + } + } + } + + private void OnWindowOpen(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.windowOpen")) + { + _WindowOpen?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _CompilationCacheProduced; + /// + /// Issued for every compilation cache generated. Is only available + /// if Page.setGenerateCompilationCache is enabled. + /// + public event System.EventHandler CompilationCacheProduced + { + add + { + if ((_CompilationCacheProduced) == (null)) + { + _client.DevToolsEvent += (OnCompilationCacheProduced); + } + + _CompilationCacheProduced += (value); + } + + remove + { + _CompilationCacheProduced -= (value); + if ((_CompilationCacheProduced) == (null)) + { + _client.DevToolsEvent -= (OnCompilationCacheProduced); + } + } + } + + private void OnCompilationCacheProduced(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.compilationCacheProduced")) + { + _CompilationCacheProduced?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null); /// /// Evaluates given script in every frame upon creation (before loading frame's scripts). @@ -29960,7 +37652,7 @@ namespace CefSharp.DevTools.Page return methodResult; } - partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, long? scale = null, long? paperWidth = null, long? paperHeight = null, long? marginTop = null, long? marginBottom = null, long? marginLeft = null, long? marginRight = null, string pageRanges = null, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, string transferMode = null); + 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, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, string transferMode = null); /// /// Print page as PDF. /// @@ -29981,7 +37673,7 @@ namespace CefSharp.DevTools.Page /// 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 /// returns System.Threading.Tasks.Task<PrintToPDFResponse> - public async System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, long? scale = null, long? paperWidth = null, long? paperHeight = null, long? marginTop = null, long? marginBottom = null, long? marginLeft = null, long? marginRight = null, string pageRanges = null, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, string transferMode = null) + public async 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, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, string transferMode = null) { ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, ignoreInvalidPageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode); var dict = new System.Collections.Generic.Dictionary(); @@ -30532,6 +38224,40 @@ namespace CefSharp.DevTools.Performance _client = (client); } + private System.EventHandler _Metrics; + /// + /// Current values of the metrics. + /// + public event System.EventHandler Metrics + { + add + { + if ((_Metrics) == (null)) + { + _client.DevToolsEvent += (OnMetrics); + } + + _Metrics += (value); + } + + remove + { + _Metrics -= (value); + if ((_Metrics) == (null)) + { + _client.DevToolsEvent -= (OnMetrics); + } + } + } + + private void OnMetrics(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Performance.metrics")) + { + _Metrics?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Disable collecting and reporting metrics. /// @@ -30595,6 +38321,40 @@ namespace CefSharp.DevTools.PerformanceTimeline _client = (client); } + private System.EventHandler _TimelineEventAdded; + /// + /// Sent when a performance timeline event is added. See reportPerformanceTimeline method. + /// + public event System.EventHandler TimelineEventAdded + { + add + { + if ((_TimelineEventAdded) == (null)) + { + _client.DevToolsEvent += (OnTimelineEventAdded); + } + + _TimelineEventAdded += (value); + } + + remove + { + _TimelineEventAdded -= (value); + if ((_TimelineEventAdded) == (null)) + { + _client.DevToolsEvent -= (OnTimelineEventAdded); + } + } + } + + private void OnTimelineEventAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("PerformanceTimeline.timelineEventAdded")) + { + _TimelineEventAdded?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateEnable(string[] eventTypes); /// /// Previously buffered events would be reported before method returns. @@ -30632,6 +38392,74 @@ namespace CefSharp.DevTools.Security _client = (client); } + private System.EventHandler _VisibleSecurityStateChanged; + /// + /// The security state of the page changed. + /// + public event System.EventHandler VisibleSecurityStateChanged + { + add + { + if ((_VisibleSecurityStateChanged) == (null)) + { + _client.DevToolsEvent += (OnVisibleSecurityStateChanged); + } + + _VisibleSecurityStateChanged += (value); + } + + remove + { + _VisibleSecurityStateChanged -= (value); + if ((_VisibleSecurityStateChanged) == (null)) + { + _client.DevToolsEvent -= (OnVisibleSecurityStateChanged); + } + } + } + + private void OnVisibleSecurityStateChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Security.visibleSecurityStateChanged")) + { + _VisibleSecurityStateChanged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _SecurityStateChanged; + /// + /// The security state of the page changed. + /// + public event System.EventHandler SecurityStateChanged + { + add + { + if ((_SecurityStateChanged) == (null)) + { + _client.DevToolsEvent += (OnSecurityStateChanged); + } + + _SecurityStateChanged += (value); + } + + remove + { + _SecurityStateChanged -= (value); + if ((_SecurityStateChanged) == (null)) + { + _client.DevToolsEvent -= (OnSecurityStateChanged); + } + } + } + + private void OnSecurityStateChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Security.securityStateChanged")) + { + _SecurityStateChanged?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Disables tracking security state changes. /// @@ -30690,6 +38518,108 @@ namespace CefSharp.DevTools.ServiceWorker _client = (client); } + private System.EventHandler _WorkerErrorReported; + /// + /// WorkerErrorReported + /// + public event System.EventHandler WorkerErrorReported + { + add + { + if ((_WorkerErrorReported) == (null)) + { + _client.DevToolsEvent += (OnWorkerErrorReported); + } + + _WorkerErrorReported += (value); + } + + remove + { + _WorkerErrorReported -= (value); + if ((_WorkerErrorReported) == (null)) + { + _client.DevToolsEvent -= (OnWorkerErrorReported); + } + } + } + + private void OnWorkerErrorReported(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("ServiceWorker.workerErrorReported")) + { + _WorkerErrorReported?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WorkerRegistrationUpdated; + /// + /// WorkerRegistrationUpdated + /// + public event System.EventHandler WorkerRegistrationUpdated + { + add + { + if ((_WorkerRegistrationUpdated) == (null)) + { + _client.DevToolsEvent += (OnWorkerRegistrationUpdated); + } + + _WorkerRegistrationUpdated += (value); + } + + remove + { + _WorkerRegistrationUpdated -= (value); + if ((_WorkerRegistrationUpdated) == (null)) + { + _client.DevToolsEvent -= (OnWorkerRegistrationUpdated); + } + } + } + + private void OnWorkerRegistrationUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("ServiceWorker.workerRegistrationUpdated")) + { + _WorkerRegistrationUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WorkerVersionUpdated; + /// + /// WorkerVersionUpdated + /// + public event System.EventHandler WorkerVersionUpdated + { + add + { + if ((_WorkerVersionUpdated) == (null)) + { + _client.DevToolsEvent += (OnWorkerVersionUpdated); + } + + _WorkerVersionUpdated += (value); + } + + remove + { + _WorkerVersionUpdated -= (value); + if ((_WorkerVersionUpdated) == (null)) + { + _client.DevToolsEvent -= (OnWorkerVersionUpdated); + } + } + } + + private void OnWorkerVersionUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("ServiceWorker.workerVersionUpdated")) + { + _WorkerVersionUpdated?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateDeliverPushMessage(string origin, string registrationId, string data); /// /// DeliverPushMessage @@ -30926,7 +38856,7 @@ namespace CefSharp.DevTools.Storage public class GetUsageAndQuotaResponse : CefSharp.DevTools.DevToolsDomainResponseBase { [System.Runtime.Serialization.DataMemberAttribute] - internal long usage + internal double usage { get; set; @@ -30935,7 +38865,7 @@ namespace CefSharp.DevTools.Storage /// /// usage /// - public long Usage + public double Usage { get { @@ -30944,7 +38874,7 @@ namespace CefSharp.DevTools.Storage } [System.Runtime.Serialization.DataMemberAttribute] - internal long quota + internal double quota { get; set; @@ -30953,7 +38883,7 @@ namespace CefSharp.DevTools.Storage /// /// quota /// - public long Quota + public double Quota { get { @@ -31074,6 +39004,142 @@ namespace CefSharp.DevTools.Storage _client = (client); } + private System.EventHandler _CacheStorageContentUpdated; + /// + /// A cache's contents have been modified. + /// + public event System.EventHandler CacheStorageContentUpdated + { + add + { + if ((_CacheStorageContentUpdated) == (null)) + { + _client.DevToolsEvent += (OnCacheStorageContentUpdated); + } + + _CacheStorageContentUpdated += (value); + } + + remove + { + _CacheStorageContentUpdated -= (value); + if ((_CacheStorageContentUpdated) == (null)) + { + _client.DevToolsEvent -= (OnCacheStorageContentUpdated); + } + } + } + + private void OnCacheStorageContentUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Storage.cacheStorageContentUpdated")) + { + _CacheStorageContentUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _CacheStorageListUpdated; + /// + /// A cache has been added/deleted. + /// + public event System.EventHandler CacheStorageListUpdated + { + add + { + if ((_CacheStorageListUpdated) == (null)) + { + _client.DevToolsEvent += (OnCacheStorageListUpdated); + } + + _CacheStorageListUpdated += (value); + } + + remove + { + _CacheStorageListUpdated -= (value); + if ((_CacheStorageListUpdated) == (null)) + { + _client.DevToolsEvent -= (OnCacheStorageListUpdated); + } + } + } + + private void OnCacheStorageListUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Storage.cacheStorageListUpdated")) + { + _CacheStorageListUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _IndexedDBContentUpdated; + /// + /// The origin's IndexedDB object store has been modified. + /// + public event System.EventHandler IndexedDBContentUpdated + { + add + { + if ((_IndexedDBContentUpdated) == (null)) + { + _client.DevToolsEvent += (OnIndexedDBContentUpdated); + } + + _IndexedDBContentUpdated += (value); + } + + remove + { + _IndexedDBContentUpdated -= (value); + if ((_IndexedDBContentUpdated) == (null)) + { + _client.DevToolsEvent -= (OnIndexedDBContentUpdated); + } + } + } + + private void OnIndexedDBContentUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Storage.indexedDBContentUpdated")) + { + _IndexedDBContentUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _IndexedDBListUpdated; + /// + /// The origin's IndexedDB database list has been modified. + /// + public event System.EventHandler IndexedDBListUpdated + { + add + { + if ((_IndexedDBListUpdated) == (null)) + { + _client.DevToolsEvent += (OnIndexedDBListUpdated); + } + + _IndexedDBListUpdated += (value); + } + + remove + { + _IndexedDBListUpdated -= (value); + if ((_IndexedDBListUpdated) == (null)) + { + _client.DevToolsEvent -= (OnIndexedDBListUpdated); + } + } + } + + private void OnIndexedDBListUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Storage.indexedDBListUpdated")) + { + _IndexedDBListUpdated?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateClearDataForOrigin(string origin, string storageTypes); /// /// Clears storage for origin. @@ -31165,14 +39231,14 @@ namespace CefSharp.DevTools.Storage return methodResult.DeserializeJson(); } - partial void ValidateOverrideQuotaForOrigin(string origin, long? quotaSize = null); + 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 overriden 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 async System.Threading.Tasks.Task OverrideQuotaForOriginAsync(string origin, long? quotaSize = null) + public async System.Threading.Tasks.Task OverrideQuotaForOriginAsync(string origin, double? quotaSize = null) { ValidateOverrideQuotaForOrigin(origin, quotaSize); var dict = new System.Collections.Generic.Dictionary(); @@ -31672,6 +39738,247 @@ namespace CefSharp.DevTools.Target _client = (client); } + private System.EventHandler _AttachedToTarget; + /// + /// Issued when attached to target because of auto-attach or `attachToTarget` command. + /// + public event System.EventHandler AttachedToTarget + { + add + { + if ((_AttachedToTarget) == (null)) + { + _client.DevToolsEvent += (OnAttachedToTarget); + } + + _AttachedToTarget += (value); + } + + remove + { + _AttachedToTarget -= (value); + if ((_AttachedToTarget) == (null)) + { + _client.DevToolsEvent -= (OnAttachedToTarget); + } + } + } + + private void OnAttachedToTarget(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.attachedToTarget")) + { + _AttachedToTarget?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DetachedFromTarget; + /// + /// 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 + { + if ((_DetachedFromTarget) == (null)) + { + _client.DevToolsEvent += (OnDetachedFromTarget); + } + + _DetachedFromTarget += (value); + } + + remove + { + _DetachedFromTarget -= (value); + if ((_DetachedFromTarget) == (null)) + { + _client.DevToolsEvent -= (OnDetachedFromTarget); + } + } + } + + private void OnDetachedFromTarget(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.detachedFromTarget")) + { + _DetachedFromTarget?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ReceivedMessageFromTarget; + /// + /// Notifies about a new protocol message received from the session (as reported in + /// `attachedToTarget` event). + /// + public event System.EventHandler ReceivedMessageFromTarget + { + add + { + if ((_ReceivedMessageFromTarget) == (null)) + { + _client.DevToolsEvent += (OnReceivedMessageFromTarget); + } + + _ReceivedMessageFromTarget += (value); + } + + remove + { + _ReceivedMessageFromTarget -= (value); + if ((_ReceivedMessageFromTarget) == (null)) + { + _client.DevToolsEvent -= (OnReceivedMessageFromTarget); + } + } + } + + private void OnReceivedMessageFromTarget(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.receivedMessageFromTarget")) + { + _ReceivedMessageFromTarget?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TargetCreated; + /// + /// Issued when a possible inspection target is created. + /// + public event System.EventHandler TargetCreated + { + add + { + if ((_TargetCreated) == (null)) + { + _client.DevToolsEvent += (OnTargetCreated); + } + + _TargetCreated += (value); + } + + remove + { + _TargetCreated -= (value); + if ((_TargetCreated) == (null)) + { + _client.DevToolsEvent -= (OnTargetCreated); + } + } + } + + private void OnTargetCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.targetCreated")) + { + _TargetCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TargetDestroyed; + /// + /// Issued when a target is destroyed. + /// + public event System.EventHandler TargetDestroyed + { + add + { + if ((_TargetDestroyed) == (null)) + { + _client.DevToolsEvent += (OnTargetDestroyed); + } + + _TargetDestroyed += (value); + } + + remove + { + _TargetDestroyed -= (value); + if ((_TargetDestroyed) == (null)) + { + _client.DevToolsEvent -= (OnTargetDestroyed); + } + } + } + + private void OnTargetDestroyed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.targetDestroyed")) + { + _TargetDestroyed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TargetCrashed; + /// + /// Issued when a target has crashed. + /// + public event System.EventHandler TargetCrashed + { + add + { + if ((_TargetCrashed) == (null)) + { + _client.DevToolsEvent += (OnTargetCrashed); + } + + _TargetCrashed += (value); + } + + remove + { + _TargetCrashed -= (value); + if ((_TargetCrashed) == (null)) + { + _client.DevToolsEvent -= (OnTargetCrashed); + } + } + } + + private void OnTargetCrashed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.targetCrashed")) + { + _TargetCrashed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TargetInfoChanged; + /// + /// Issued when some information about a target has changed. This only happens between + /// `targetCreated` and `targetDestroyed`. + /// + public event System.EventHandler TargetInfoChanged + { + add + { + if ((_TargetInfoChanged) == (null)) + { + _client.DevToolsEvent += (OnTargetInfoChanged); + } + + _TargetInfoChanged += (value); + } + + remove + { + _TargetInfoChanged -= (value); + if ((_TargetInfoChanged) == (null)) + { + _client.DevToolsEvent -= (OnTargetInfoChanged); + } + } + } + + private void OnTargetInfoChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.targetInfoChanged")) + { + _TargetInfoChanged?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateActivateTarget(string targetId); /// /// Activates (focuses) the target. @@ -32005,6 +40312,40 @@ namespace CefSharp.DevTools.Tethering _client = (client); } + private System.EventHandler _Accepted; + /// + /// Informs that port was successfully bound and got a specified connection id. + /// + public event System.EventHandler Accepted + { + add + { + if ((_Accepted) == (null)) + { + _client.DevToolsEvent += (OnAccepted); + } + + _Accepted += (value); + } + + remove + { + _Accepted -= (value); + if ((_Accepted) == (null)) + { + _client.DevToolsEvent -= (OnAccepted); + } + } + } + + private void OnAccepted(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Tethering.accepted")) + { + _Accepted?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateBind(int port); /// /// Request browser port binding. @@ -32130,6 +40471,110 @@ namespace CefSharp.DevTools.Tracing _client = (client); } + private System.EventHandler _BufferUsage; + /// + /// BufferUsage + /// + public event System.EventHandler BufferUsage + { + add + { + if ((_BufferUsage) == (null)) + { + _client.DevToolsEvent += (OnBufferUsage); + } + + _BufferUsage += (value); + } + + remove + { + _BufferUsage -= (value); + if ((_BufferUsage) == (null)) + { + _client.DevToolsEvent -= (OnBufferUsage); + } + } + } + + private void OnBufferUsage(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Tracing.bufferUsage")) + { + _BufferUsage?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DataCollected; + /// + /// Contains an bucket of collected trace events. When tracing is stopped collected events will be + /// send as a sequence of dataCollected events followed by tracingComplete event. + /// + public event System.EventHandler DataCollected + { + add + { + if ((_DataCollected) == (null)) + { + _client.DevToolsEvent += (OnDataCollected); + } + + _DataCollected += (value); + } + + remove + { + _DataCollected -= (value); + if ((_DataCollected) == (null)) + { + _client.DevToolsEvent -= (OnDataCollected); + } + } + } + + private void OnDataCollected(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Tracing.dataCollected")) + { + _DataCollected?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TracingComplete; + /// + /// 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 + { + if ((_TracingComplete) == (null)) + { + _client.DevToolsEvent += (OnTracingComplete); + } + + _TracingComplete += (value); + } + + remove + { + _TracingComplete -= (value); + if ((_TracingComplete) == (null)) + { + _client.DevToolsEvent -= (OnTracingComplete); + } + } + } + + private void OnTracingComplete(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Tracing.tracingComplete")) + { + _TracingComplete?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Stop trace events collection. /// @@ -32192,7 +40637,7 @@ namespace CefSharp.DevTools.Tracing return methodResult.DeserializeJson(); } - partial void ValidateStart(string categories = null, string options = null, long? bufferUsageReportingInterval = null, string transferMode = null, CefSharp.DevTools.Tracing.StreamFormat? streamFormat = null, CefSharp.DevTools.Tracing.StreamCompression? streamCompression = null, CefSharp.DevTools.Tracing.TraceConfig traceConfig = null, byte[] perfettoConfig = null, CefSharp.DevTools.Tracing.TracingBackend? tracingBackend = null); + partial void ValidateStart(string categories = null, string options = null, double? bufferUsageReportingInterval = null, string 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. /// @@ -32206,7 +40651,7 @@ namespace CefSharp.DevTools.Tracing /// 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 async System.Threading.Tasks.Task StartAsync(string categories = null, string options = null, long? bufferUsageReportingInterval = null, string transferMode = null, CefSharp.DevTools.Tracing.StreamFormat? streamFormat = null, CefSharp.DevTools.Tracing.StreamCompression? streamCompression = null, CefSharp.DevTools.Tracing.TraceConfig traceConfig = null, byte[] perfettoConfig = null, CefSharp.DevTools.Tracing.TracingBackend? tracingBackend = null) + public async System.Threading.Tasks.Task StartAsync(string categories = null, string options = null, double? bufferUsageReportingInterval = null, string 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(); @@ -32354,6 +40799,80 @@ namespace CefSharp.DevTools.Fetch _client = (client); } + private System.EventHandler _RequestPaused; + /// + /// 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. + /// + public event System.EventHandler RequestPaused + { + add + { + if ((_RequestPaused) == (null)) + { + _client.DevToolsEvent += (OnRequestPaused); + } + + _RequestPaused += (value); + } + + remove + { + _RequestPaused -= (value); + if ((_RequestPaused) == (null)) + { + _client.DevToolsEvent -= (OnRequestPaused); + } + } + } + + private void OnRequestPaused(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Fetch.requestPaused")) + { + _RequestPaused?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AuthRequired; + /// + /// 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 + { + if ((_AuthRequired) == (null)) + { + _client.DevToolsEvent += (OnAuthRequired); + } + + _AuthRequired += (value); + } + + remove + { + _AuthRequired -= (value); + if ((_AuthRequired) == (null)) + { + _client.DevToolsEvent -= (OnAuthRequired); + } + } + } + + private void OnAuthRequired(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Fetch.authRequired")) + { + _AuthRequired?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Disables the fetch domain. /// @@ -32599,6 +41118,448 @@ namespace CefSharp.DevTools.WebAudio _client = (client); } + private System.EventHandler _ContextCreated; + /// + /// Notifies that a new BaseAudioContext has been created. + /// + public event System.EventHandler ContextCreated + { + add + { + if ((_ContextCreated) == (null)) + { + _client.DevToolsEvent += (OnContextCreated); + } + + _ContextCreated += (value); + } + + remove + { + _ContextCreated -= (value); + if ((_ContextCreated) == (null)) + { + _client.DevToolsEvent -= (OnContextCreated); + } + } + } + + private void OnContextCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.contextCreated")) + { + _ContextCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ContextWillBeDestroyed; + /// + /// Notifies that an existing BaseAudioContext will be destroyed. + /// + public event System.EventHandler ContextWillBeDestroyed + { + add + { + if ((_ContextWillBeDestroyed) == (null)) + { + _client.DevToolsEvent += (OnContextWillBeDestroyed); + } + + _ContextWillBeDestroyed += (value); + } + + remove + { + _ContextWillBeDestroyed -= (value); + if ((_ContextWillBeDestroyed) == (null)) + { + _client.DevToolsEvent -= (OnContextWillBeDestroyed); + } + } + } + + private void OnContextWillBeDestroyed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.contextWillBeDestroyed")) + { + _ContextWillBeDestroyed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ContextChanged; + /// + /// Notifies that existing BaseAudioContext has changed some properties (id stays the same).. + /// + public event System.EventHandler ContextChanged + { + add + { + if ((_ContextChanged) == (null)) + { + _client.DevToolsEvent += (OnContextChanged); + } + + _ContextChanged += (value); + } + + remove + { + _ContextChanged -= (value); + if ((_ContextChanged) == (null)) + { + _client.DevToolsEvent -= (OnContextChanged); + } + } + } + + private void OnContextChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.contextChanged")) + { + _ContextChanged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AudioListenerCreated; + /// + /// Notifies that the construction of an AudioListener has finished. + /// + public event System.EventHandler AudioListenerCreated + { + add + { + if ((_AudioListenerCreated) == (null)) + { + _client.DevToolsEvent += (OnAudioListenerCreated); + } + + _AudioListenerCreated += (value); + } + + remove + { + _AudioListenerCreated -= (value); + if ((_AudioListenerCreated) == (null)) + { + _client.DevToolsEvent -= (OnAudioListenerCreated); + } + } + } + + private void OnAudioListenerCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.audioListenerCreated")) + { + _AudioListenerCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AudioListenerWillBeDestroyed; + /// + /// Notifies that a new AudioListener has been created. + /// + public event System.EventHandler AudioListenerWillBeDestroyed + { + add + { + if ((_AudioListenerWillBeDestroyed) == (null)) + { + _client.DevToolsEvent += (OnAudioListenerWillBeDestroyed); + } + + _AudioListenerWillBeDestroyed += (value); + } + + remove + { + _AudioListenerWillBeDestroyed -= (value); + if ((_AudioListenerWillBeDestroyed) == (null)) + { + _client.DevToolsEvent -= (OnAudioListenerWillBeDestroyed); + } + } + } + + private void OnAudioListenerWillBeDestroyed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.audioListenerWillBeDestroyed")) + { + _AudioListenerWillBeDestroyed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AudioNodeCreated; + /// + /// Notifies that a new AudioNode has been created. + /// + public event System.EventHandler AudioNodeCreated + { + add + { + if ((_AudioNodeCreated) == (null)) + { + _client.DevToolsEvent += (OnAudioNodeCreated); + } + + _AudioNodeCreated += (value); + } + + remove + { + _AudioNodeCreated -= (value); + if ((_AudioNodeCreated) == (null)) + { + _client.DevToolsEvent -= (OnAudioNodeCreated); + } + } + } + + private void OnAudioNodeCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.audioNodeCreated")) + { + _AudioNodeCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AudioNodeWillBeDestroyed; + /// + /// Notifies that an existing AudioNode has been destroyed. + /// + public event System.EventHandler AudioNodeWillBeDestroyed + { + add + { + if ((_AudioNodeWillBeDestroyed) == (null)) + { + _client.DevToolsEvent += (OnAudioNodeWillBeDestroyed); + } + + _AudioNodeWillBeDestroyed += (value); + } + + remove + { + _AudioNodeWillBeDestroyed -= (value); + if ((_AudioNodeWillBeDestroyed) == (null)) + { + _client.DevToolsEvent -= (OnAudioNodeWillBeDestroyed); + } + } + } + + private void OnAudioNodeWillBeDestroyed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.audioNodeWillBeDestroyed")) + { + _AudioNodeWillBeDestroyed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AudioParamCreated; + /// + /// Notifies that a new AudioParam has been created. + /// + public event System.EventHandler AudioParamCreated + { + add + { + if ((_AudioParamCreated) == (null)) + { + _client.DevToolsEvent += (OnAudioParamCreated); + } + + _AudioParamCreated += (value); + } + + remove + { + _AudioParamCreated -= (value); + if ((_AudioParamCreated) == (null)) + { + _client.DevToolsEvent -= (OnAudioParamCreated); + } + } + } + + private void OnAudioParamCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.audioParamCreated")) + { + _AudioParamCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AudioParamWillBeDestroyed; + /// + /// Notifies that an existing AudioParam has been destroyed. + /// + public event System.EventHandler AudioParamWillBeDestroyed + { + add + { + if ((_AudioParamWillBeDestroyed) == (null)) + { + _client.DevToolsEvent += (OnAudioParamWillBeDestroyed); + } + + _AudioParamWillBeDestroyed += (value); + } + + remove + { + _AudioParamWillBeDestroyed -= (value); + if ((_AudioParamWillBeDestroyed) == (null)) + { + _client.DevToolsEvent -= (OnAudioParamWillBeDestroyed); + } + } + } + + private void OnAudioParamWillBeDestroyed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.audioParamWillBeDestroyed")) + { + _AudioParamWillBeDestroyed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NodesConnected; + /// + /// Notifies that two AudioNodes are connected. + /// + public event System.EventHandler NodesConnected + { + add + { + if ((_NodesConnected) == (null)) + { + _client.DevToolsEvent += (OnNodesConnected); + } + + _NodesConnected += (value); + } + + remove + { + _NodesConnected -= (value); + if ((_NodesConnected) == (null)) + { + _client.DevToolsEvent -= (OnNodesConnected); + } + } + } + + private void OnNodesConnected(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.nodesConnected")) + { + _NodesConnected?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NodesDisconnected; + /// + /// 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 + { + if ((_NodesDisconnected) == (null)) + { + _client.DevToolsEvent += (OnNodesDisconnected); + } + + _NodesDisconnected += (value); + } + + remove + { + _NodesDisconnected -= (value); + if ((_NodesDisconnected) == (null)) + { + _client.DevToolsEvent -= (OnNodesDisconnected); + } + } + } + + private void OnNodesDisconnected(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.nodesDisconnected")) + { + _NodesDisconnected?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NodeParamConnected; + /// + /// Notifies that an AudioNode is connected to an AudioParam. + /// + public event System.EventHandler NodeParamConnected + { + add + { + if ((_NodeParamConnected) == (null)) + { + _client.DevToolsEvent += (OnNodeParamConnected); + } + + _NodeParamConnected += (value); + } + + remove + { + _NodeParamConnected -= (value); + if ((_NodeParamConnected) == (null)) + { + _client.DevToolsEvent -= (OnNodeParamConnected); + } + } + } + + private void OnNodeParamConnected(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.nodeParamConnected")) + { + _NodeParamConnected?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NodeParamDisconnected; + /// + /// Notifies that an AudioNode is disconnected to an AudioParam. + /// + public event System.EventHandler NodeParamDisconnected + { + add + { + if ((_NodeParamDisconnected) == (null)) + { + _client.DevToolsEvent += (OnNodeParamDisconnected); + } + + _NodeParamDisconnected += (value); + } + + remove + { + _NodeParamDisconnected -= (value); + if ((_NodeParamDisconnected) == (null)) + { + _client.DevToolsEvent -= (OnNodeParamDisconnected); + } + } + } + + private void OnNodeParamDisconnected(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.nodeParamDisconnected")) + { + _NodeParamDisconnected?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Enables the WebAudio domain and starts sending context lifetime events. /// @@ -32934,6 +41895,180 @@ namespace CefSharp.DevTools.Media _client = (client); } + private System.EventHandler _PlayerPropertiesChanged; + /// + /// 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 + { + if ((_PlayerPropertiesChanged) == (null)) + { + _client.DevToolsEvent += (OnPlayerPropertiesChanged); + } + + _PlayerPropertiesChanged += (value); + } + + remove + { + _PlayerPropertiesChanged -= (value); + if ((_PlayerPropertiesChanged) == (null)) + { + _client.DevToolsEvent -= (OnPlayerPropertiesChanged); + } + } + } + + private void OnPlayerPropertiesChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Media.playerPropertiesChanged")) + { + _PlayerPropertiesChanged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PlayerEventsAdded; + /// + /// 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 + { + if ((_PlayerEventsAdded) == (null)) + { + _client.DevToolsEvent += (OnPlayerEventsAdded); + } + + _PlayerEventsAdded += (value); + } + + remove + { + _PlayerEventsAdded -= (value); + if ((_PlayerEventsAdded) == (null)) + { + _client.DevToolsEvent -= (OnPlayerEventsAdded); + } + } + } + + private void OnPlayerEventsAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Media.playerEventsAdded")) + { + _PlayerEventsAdded?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PlayerMessagesLogged; + /// + /// Send a list of any messages that need to be delivered. + /// + public event System.EventHandler PlayerMessagesLogged + { + add + { + if ((_PlayerMessagesLogged) == (null)) + { + _client.DevToolsEvent += (OnPlayerMessagesLogged); + } + + _PlayerMessagesLogged += (value); + } + + remove + { + _PlayerMessagesLogged -= (value); + if ((_PlayerMessagesLogged) == (null)) + { + _client.DevToolsEvent -= (OnPlayerMessagesLogged); + } + } + } + + private void OnPlayerMessagesLogged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Media.playerMessagesLogged")) + { + _PlayerMessagesLogged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PlayerErrorsRaised; + /// + /// Send a list of any errors that need to be delivered. + /// + public event System.EventHandler PlayerErrorsRaised + { + add + { + if ((_PlayerErrorsRaised) == (null)) + { + _client.DevToolsEvent += (OnPlayerErrorsRaised); + } + + _PlayerErrorsRaised += (value); + } + + remove + { + _PlayerErrorsRaised -= (value); + if ((_PlayerErrorsRaised) == (null)) + { + _client.DevToolsEvent -= (OnPlayerErrorsRaised); + } + } + } + + private void OnPlayerErrorsRaised(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Media.playerErrorsRaised")) + { + _PlayerErrorsRaised?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PlayersCreated; + /// + /// Called whenever a player is created, or when a new agent joins and recieves + /// a list of active players. If an agent is restored, it will recieve the full + /// list of player ids and all events again. + /// + public event System.EventHandler PlayersCreated + { + add + { + if ((_PlayersCreated) == (null)) + { + _client.DevToolsEvent += (OnPlayersCreated); + } + + _PlayersCreated += (value); + } + + remove + { + _PlayersCreated -= (value); + if ((_PlayersCreated) == (null)) + { + _client.DevToolsEvent -= (OnPlayersCreated); + } + } + } + + private void OnPlayersCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Media.playersCreated")) + { + _PlayersCreated?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Enables the Media domain /// @@ -33494,6 +42629,177 @@ namespace CefSharp.DevTools.Debugger _client = (client); } + private System.EventHandler _BreakpointResolved; + /// + /// Fired when breakpoint is resolved to an actual script and location. + /// + public event System.EventHandler BreakpointResolved + { + add + { + if ((_BreakpointResolved) == (null)) + { + _client.DevToolsEvent += (OnBreakpointResolved); + } + + _BreakpointResolved += (value); + } + + remove + { + _BreakpointResolved -= (value); + if ((_BreakpointResolved) == (null)) + { + _client.DevToolsEvent -= (OnBreakpointResolved); + } + } + } + + private void OnBreakpointResolved(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Debugger.breakpointResolved")) + { + _BreakpointResolved?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _Paused; + /// + /// Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + /// + public event System.EventHandler Paused + { + add + { + if ((_Paused) == (null)) + { + _client.DevToolsEvent += (OnPaused); + } + + _Paused += (value); + } + + remove + { + _Paused -= (value); + if ((_Paused) == (null)) + { + _client.DevToolsEvent -= (OnPaused); + } + } + } + + private void OnPaused(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Debugger.paused")) + { + _Paused?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _Resumed; + /// + /// Fired when the virtual machine resumed execution. + /// + public event System.EventHandler Resumed + { + add + { + if ((_Resumed) == (null)) + { + _client.DevToolsEvent += (OnResumed); + } + + _Resumed += (value); + } + + remove + { + _Resumed -= (value); + if ((_Resumed) == (null)) + { + _client.DevToolsEvent -= (OnResumed); + } + } + } + + private void OnResumed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Debugger.resumed")) + { + _Resumed?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _ScriptFailedToParse; + /// + /// Fired when virtual machine fails to parse the script. + /// + public event System.EventHandler ScriptFailedToParse + { + add + { + if ((_ScriptFailedToParse) == (null)) + { + _client.DevToolsEvent += (OnScriptFailedToParse); + } + + _ScriptFailedToParse += (value); + } + + remove + { + _ScriptFailedToParse -= (value); + if ((_ScriptFailedToParse) == (null)) + { + _client.DevToolsEvent -= (OnScriptFailedToParse); + } + } + } + + private void OnScriptFailedToParse(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Debugger.scriptFailedToParse")) + { + _ScriptFailedToParse?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ScriptParsed; + /// + /// 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 + { + if ((_ScriptParsed) == (null)) + { + _client.DevToolsEvent += (OnScriptParsed); + } + + _ScriptParsed += (value); + } + + remove + { + _ScriptParsed -= (value); + if ((_ScriptParsed) == (null)) + { + _client.DevToolsEvent -= (OnScriptParsed); + } + } + } + + private void OnScriptParsed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Debugger.scriptParsed")) + { + _ScriptParsed?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateContinueToLocation(CefSharp.DevTools.Debugger.Location location, string targetCallFrames = null); /// /// Continues execution until specific location is reached. @@ -33526,14 +42832,14 @@ namespace CefSharp.DevTools.Debugger return methodResult; } - partial void ValidateEnable(long? maxScriptsCacheSize = null); + 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 paramter is omitted. /// returns System.Threading.Tasks.Task<EnableResponse> - public async System.Threading.Tasks.Task EnableAsync(long? maxScriptsCacheSize = null) + public async System.Threading.Tasks.Task EnableAsync(double? maxScriptsCacheSize = null) { ValidateEnable(maxScriptsCacheSize); var dict = new System.Collections.Generic.Dictionary(); @@ -33546,7 +42852,7 @@ namespace CefSharp.DevTools.Debugger return methodResult.DeserializeJson(); } - partial void ValidateEvaluateOnCallFrame(string callFrameId, string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? throwOnSideEffect = null, long? timeout = null); + 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. /// @@ -33560,7 +42866,7 @@ namespace CefSharp.DevTools.Debugger /// 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 async System.Threading.Tasks.Task EvaluateOnCallFrameAsync(string callFrameId, string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? throwOnSideEffect = null, long? timeout = null) + public async System.Threading.Tasks.Task EvaluateOnCallFrameAsync(string callFrameId, string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? throwOnSideEffect = null, double? timeout = null) { ValidateEvaluateOnCallFrame(callFrameId, expression, objectGroup, includeCommandLineAPI, silent, returnByValue, generatePreview, throwOnSideEffect, timeout); var dict = new System.Collections.Generic.Dictionary(); @@ -34205,6 +43511,178 @@ namespace CefSharp.DevTools.HeapProfiler _client = (client); } + private System.EventHandler _AddHeapSnapshotChunk; + /// + /// AddHeapSnapshotChunk + /// + public event System.EventHandler AddHeapSnapshotChunk + { + add + { + if ((_AddHeapSnapshotChunk) == (null)) + { + _client.DevToolsEvent += (OnAddHeapSnapshotChunk); + } + + _AddHeapSnapshotChunk += (value); + } + + remove + { + _AddHeapSnapshotChunk -= (value); + if ((_AddHeapSnapshotChunk) == (null)) + { + _client.DevToolsEvent -= (OnAddHeapSnapshotChunk); + } + } + } + + private void OnAddHeapSnapshotChunk(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("HeapProfiler.addHeapSnapshotChunk")) + { + _AddHeapSnapshotChunk?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _HeapStatsUpdate; + /// + /// If heap objects tracking has been started then backend may send update for one or more fragments + /// + public event System.EventHandler HeapStatsUpdate + { + add + { + if ((_HeapStatsUpdate) == (null)) + { + _client.DevToolsEvent += (OnHeapStatsUpdate); + } + + _HeapStatsUpdate += (value); + } + + remove + { + _HeapStatsUpdate -= (value); + if ((_HeapStatsUpdate) == (null)) + { + _client.DevToolsEvent -= (OnHeapStatsUpdate); + } + } + } + + private void OnHeapStatsUpdate(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("HeapProfiler.heapStatsUpdate")) + { + _HeapStatsUpdate?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _LastSeenObjectId; + /// + /// 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 + { + if ((_LastSeenObjectId) == (null)) + { + _client.DevToolsEvent += (OnLastSeenObjectId); + } + + _LastSeenObjectId += (value); + } + + remove + { + _LastSeenObjectId -= (value); + if ((_LastSeenObjectId) == (null)) + { + _client.DevToolsEvent -= (OnLastSeenObjectId); + } + } + } + + private void OnLastSeenObjectId(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("HeapProfiler.lastSeenObjectId")) + { + _LastSeenObjectId?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ReportHeapSnapshotProgress; + /// + /// ReportHeapSnapshotProgress + /// + public event System.EventHandler ReportHeapSnapshotProgress + { + add + { + if ((_ReportHeapSnapshotProgress) == (null)) + { + _client.DevToolsEvent += (OnReportHeapSnapshotProgress); + } + + _ReportHeapSnapshotProgress += (value); + } + + remove + { + _ReportHeapSnapshotProgress -= (value); + if ((_ReportHeapSnapshotProgress) == (null)) + { + _client.DevToolsEvent -= (OnReportHeapSnapshotProgress); + } + } + } + + private void OnReportHeapSnapshotProgress(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("HeapProfiler.reportHeapSnapshotProgress")) + { + _ReportHeapSnapshotProgress?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ResetProfiles; + /// + /// ResetProfiles + /// + public event System.EventHandler ResetProfiles + { + add + { + if ((_ResetProfiles) == (null)) + { + _client.DevToolsEvent += (OnResetProfiles); + } + + _ResetProfiles += (value); + } + + remove + { + _ResetProfiles -= (value); + if ((_ResetProfiles) == (null)) + { + _client.DevToolsEvent -= (OnResetProfiles); + } + } + } + + private void OnResetProfiles(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("HeapProfiler.resetProfiles")) + { + _ResetProfiles?.Invoke(this, System.EventArgs.Empty); + } + } + partial void ValidateAddInspectedHeapObject(string heapObjectId); /// /// Enables console to refer to the node with given id via $x (see Command Line API for more details @@ -34301,13 +43779,13 @@ namespace CefSharp.DevTools.HeapProfiler return methodResult.DeserializeJson(); } - partial void ValidateStartSampling(long? samplingInterval = null); + partial void ValidateStartSampling(double? samplingInterval = null); /// /// StartSampling /// /// Average sample interval in bytes. Poisson distribution is used for the intervals. Thedefault value is 32768 bytes. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task StartSamplingAsync(long? samplingInterval = null) + public async System.Threading.Tasks.Task StartSamplingAsync(double? samplingInterval = null) { ValidateStartSampling(samplingInterval); var dict = new System.Collections.Generic.Dictionary(); @@ -34439,7 +43917,7 @@ namespace CefSharp.DevTools.Profiler public class StartPreciseCoverageResponse : CefSharp.DevTools.DevToolsDomainResponseBase { [System.Runtime.Serialization.DataMemberAttribute] - internal long timestamp + internal double timestamp { get; set; @@ -34448,7 +43926,7 @@ namespace CefSharp.DevTools.Profiler /// /// timestamp /// - public long Timestamp + public double Timestamp { get { @@ -34513,7 +43991,7 @@ namespace CefSharp.DevTools.Profiler } [System.Runtime.Serialization.DataMemberAttribute] - internal long timestamp + internal double timestamp { get; set; @@ -34522,7 +44000,7 @@ namespace CefSharp.DevTools.Profiler /// /// timestamp /// - public long Timestamp + public double Timestamp { get { @@ -34635,6 +44113,111 @@ namespace CefSharp.DevTools.Profiler _client = (client); } + private System.EventHandler _ConsoleProfileFinished; + /// + /// ConsoleProfileFinished + /// + public event System.EventHandler ConsoleProfileFinished + { + add + { + if ((_ConsoleProfileFinished) == (null)) + { + _client.DevToolsEvent += (OnConsoleProfileFinished); + } + + _ConsoleProfileFinished += (value); + } + + remove + { + _ConsoleProfileFinished -= (value); + if ((_ConsoleProfileFinished) == (null)) + { + _client.DevToolsEvent -= (OnConsoleProfileFinished); + } + } + } + + private void OnConsoleProfileFinished(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Profiler.consoleProfileFinished")) + { + _ConsoleProfileFinished?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ConsoleProfileStarted; + /// + /// Sent when new profile recording is started using console.profile() call. + /// + public event System.EventHandler ConsoleProfileStarted + { + add + { + if ((_ConsoleProfileStarted) == (null)) + { + _client.DevToolsEvent += (OnConsoleProfileStarted); + } + + _ConsoleProfileStarted += (value); + } + + remove + { + _ConsoleProfileStarted -= (value); + if ((_ConsoleProfileStarted) == (null)) + { + _client.DevToolsEvent -= (OnConsoleProfileStarted); + } + } + } + + private void OnConsoleProfileStarted(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Profiler.consoleProfileStarted")) + { + _ConsoleProfileStarted?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PreciseCoverageDeltaUpdate; + /// + /// 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 immediatelly at a certain point in time. + /// + public event System.EventHandler PreciseCoverageDeltaUpdate + { + add + { + if ((_PreciseCoverageDeltaUpdate) == (null)) + { + _client.DevToolsEvent += (OnPreciseCoverageDeltaUpdate); + } + + _PreciseCoverageDeltaUpdate += (value); + } + + remove + { + _PreciseCoverageDeltaUpdate -= (value); + if ((_PreciseCoverageDeltaUpdate) == (null)) + { + _client.DevToolsEvent -= (OnPreciseCoverageDeltaUpdate); + } + } + } + + private void OnPreciseCoverageDeltaUpdate(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Profiler.preciseCoverageDeltaUpdate")) + { + _PreciseCoverageDeltaUpdate?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Disable /// @@ -35085,7 +44668,7 @@ namespace CefSharp.DevTools.Runtime public class GetHeapUsageResponse : CefSharp.DevTools.DevToolsDomainResponseBase { [System.Runtime.Serialization.DataMemberAttribute] - internal long usedSize + internal double usedSize { get; set; @@ -35094,7 +44677,7 @@ namespace CefSharp.DevTools.Runtime /// /// usedSize /// - public long UsedSize + public double UsedSize { get { @@ -35103,7 +44686,7 @@ namespace CefSharp.DevTools.Runtime } [System.Runtime.Serialization.DataMemberAttribute] - internal long totalSize + internal double totalSize { get; set; @@ -35112,7 +44695,7 @@ namespace CefSharp.DevTools.Runtime /// /// totalSize /// - public long TotalSize + public double TotalSize { get { @@ -35329,6 +44912,279 @@ namespace CefSharp.DevTools.Runtime _client = (client); } + private System.EventHandler _BindingCalled; + /// + /// Notification is issued every time when binding is called. + /// + public event System.EventHandler BindingCalled + { + add + { + if ((_BindingCalled) == (null)) + { + _client.DevToolsEvent += (OnBindingCalled); + } + + _BindingCalled += (value); + } + + remove + { + _BindingCalled -= (value); + if ((_BindingCalled) == (null)) + { + _client.DevToolsEvent -= (OnBindingCalled); + } + } + } + + private void OnBindingCalled(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.bindingCalled")) + { + _BindingCalled?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ConsoleAPICalled; + /// + /// Issued when console API was called. + /// + public event System.EventHandler ConsoleAPICalled + { + add + { + if ((_ConsoleAPICalled) == (null)) + { + _client.DevToolsEvent += (OnConsoleAPICalled); + } + + _ConsoleAPICalled += (value); + } + + remove + { + _ConsoleAPICalled -= (value); + if ((_ConsoleAPICalled) == (null)) + { + _client.DevToolsEvent -= (OnConsoleAPICalled); + } + } + } + + private void OnConsoleAPICalled(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.consoleAPICalled")) + { + _ConsoleAPICalled?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ExceptionRevoked; + /// + /// Issued when unhandled exception was revoked. + /// + public event System.EventHandler ExceptionRevoked + { + add + { + if ((_ExceptionRevoked) == (null)) + { + _client.DevToolsEvent += (OnExceptionRevoked); + } + + _ExceptionRevoked += (value); + } + + remove + { + _ExceptionRevoked -= (value); + if ((_ExceptionRevoked) == (null)) + { + _client.DevToolsEvent -= (OnExceptionRevoked); + } + } + } + + private void OnExceptionRevoked(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.exceptionRevoked")) + { + _ExceptionRevoked?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ExceptionThrown; + /// + /// Issued when exception was thrown and unhandled. + /// + public event System.EventHandler ExceptionThrown + { + add + { + if ((_ExceptionThrown) == (null)) + { + _client.DevToolsEvent += (OnExceptionThrown); + } + + _ExceptionThrown += (value); + } + + remove + { + _ExceptionThrown -= (value); + if ((_ExceptionThrown) == (null)) + { + _client.DevToolsEvent -= (OnExceptionThrown); + } + } + } + + private void OnExceptionThrown(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.exceptionThrown")) + { + _ExceptionThrown?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ExecutionContextCreated; + /// + /// Issued when new execution context is created. + /// + public event System.EventHandler ExecutionContextCreated + { + add + { + if ((_ExecutionContextCreated) == (null)) + { + _client.DevToolsEvent += (OnExecutionContextCreated); + } + + _ExecutionContextCreated += (value); + } + + remove + { + _ExecutionContextCreated -= (value); + if ((_ExecutionContextCreated) == (null)) + { + _client.DevToolsEvent -= (OnExecutionContextCreated); + } + } + } + + private void OnExecutionContextCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.executionContextCreated")) + { + _ExecutionContextCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ExecutionContextDestroyed; + /// + /// Issued when execution context is destroyed. + /// + public event System.EventHandler ExecutionContextDestroyed + { + add + { + if ((_ExecutionContextDestroyed) == (null)) + { + _client.DevToolsEvent += (OnExecutionContextDestroyed); + } + + _ExecutionContextDestroyed += (value); + } + + remove + { + _ExecutionContextDestroyed -= (value); + if ((_ExecutionContextDestroyed) == (null)) + { + _client.DevToolsEvent -= (OnExecutionContextDestroyed); + } + } + } + + private void OnExecutionContextDestroyed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.executionContextDestroyed")) + { + _ExecutionContextDestroyed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ExecutionContextsCleared; + /// + /// Issued when all executionContexts were cleared in browser + /// + public event System.EventHandler ExecutionContextsCleared + { + add + { + if ((_ExecutionContextsCleared) == (null)) + { + _client.DevToolsEvent += (OnExecutionContextsCleared); + } + + _ExecutionContextsCleared += (value); + } + + remove + { + _ExecutionContextsCleared -= (value); + if ((_ExecutionContextsCleared) == (null)) + { + _client.DevToolsEvent -= (OnExecutionContextsCleared); + } + } + } + + private void OnExecutionContextsCleared(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.executionContextsCleared")) + { + _ExecutionContextsCleared?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _InspectRequested; + /// + /// Issued when object should be inspected (for example, as a result of inspect() command line API + /// call). + /// + public event System.EventHandler InspectRequested + { + add + { + if ((_InspectRequested) == (null)) + { + _client.DevToolsEvent += (OnInspectRequested); + } + + _InspectRequested += (value); + } + + remove + { + _InspectRequested -= (value); + if ((_InspectRequested) == (null)) + { + _client.DevToolsEvent -= (OnInspectRequested); + } + } + } + + private void OnInspectRequested(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.inspectRequested")) + { + _InspectRequested?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateAwaitPromise(string promiseObjectId, bool? returnByValue = null, bool? generatePreview = null); /// /// Add handler to promise with given promise object id. @@ -35486,7 +45342,7 @@ namespace CefSharp.DevTools.Runtime return methodResult; } - partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, long? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null); + 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); /// /// Evaluates expression on global object. /// @@ -35506,7 +45362,7 @@ namespace CefSharp.DevTools.Runtime /// 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 accross 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 accross processboundaries).This is mutually exclusive with `contextId`. /// returns System.Threading.Tasks.Task<EvaluateResponse> - public async System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, long? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null) + public async System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null) { ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId); var dict = new System.Collections.Generic.Dictionary(); diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs index c006731ff..aaf8ea96f 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 91.0.4472.77 +// CHROMIUM VERSION 91.0.4472.114 namespace CefSharp.DevTools.Accessibility { /// @@ -97,10 +97,7 @@ namespace CefSharp.DevTools.Accessibility [System.Text.Json.Serialization.JsonPropertyNameAttribute("valueUndefined")] ValueUndefined } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// Enum of possible property sources. /// @@ -137,10 +134,7 @@ namespace CefSharp.DevTools.Accessibility [System.Text.Json.Serialization.JsonPropertyNameAttribute("relatedElement")] RelatedElement } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// Enum of possible native property sources (as a subtype of a particular AXValueSourceType). /// @@ -192,10 +186,7 @@ namespace CefSharp.DevTools.Accessibility [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] Other } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// A single source for a computed AX property. /// @@ -291,10 +282,7 @@ namespace CefSharp.DevTools.Accessibility set; } } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// AXRelatedNode /// @@ -330,10 +318,7 @@ namespace CefSharp.DevTools.Accessibility set; } } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// AXProperty /// @@ -360,10 +345,7 @@ namespace CefSharp.DevTools.Accessibility set; } } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// A single computed AX property. /// @@ -409,10 +391,7 @@ namespace CefSharp.DevTools.Accessibility set; } } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// Values of AXProperty name: /// - from 'busy' to 'roledescription': states which apply to every AX node @@ -619,10 +598,7 @@ namespace CefSharp.DevTools.Accessibility [System.Text.Json.Serialization.JsonPropertyNameAttribute("owns")] Owns } -} -namespace CefSharp.DevTools.Accessibility -{ /// /// A node in the accessibility tree. /// @@ -785,7 +761,7 @@ namespace CefSharp.DevTools.Animation /// `Animation`'s playback rate. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("playbackRate")] - public long PlaybackRate + public double PlaybackRate { get; set; @@ -795,7 +771,7 @@ namespace CefSharp.DevTools.Animation /// `Animation`'s start time. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("startTime")] - public long StartTime + public double StartTime { get; set; @@ -805,7 +781,7 @@ namespace CefSharp.DevTools.Animation /// `Animation`'s current time. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentTime")] - public long CurrentTime + public double CurrentTime { get; set; @@ -843,10 +819,7 @@ namespace CefSharp.DevTools.Animation set; } } -} -namespace CefSharp.DevTools.Animation -{ /// /// AnimationEffect instance /// @@ -856,7 +829,7 @@ namespace CefSharp.DevTools.Animation /// `AnimationEffect`'s delay. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("delay")] - public long Delay + public double Delay { get; set; @@ -866,7 +839,7 @@ namespace CefSharp.DevTools.Animation /// `AnimationEffect`'s end delay. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("endDelay")] - public long EndDelay + public double EndDelay { get; set; @@ -876,7 +849,7 @@ namespace CefSharp.DevTools.Animation /// `AnimationEffect`'s iteration start. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("iterationStart")] - public long IterationStart + public double IterationStart { get; set; @@ -886,7 +859,7 @@ namespace CefSharp.DevTools.Animation /// `AnimationEffect`'s iterations. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("iterations")] - public long Iterations + public double Iterations { get; set; @@ -896,7 +869,7 @@ namespace CefSharp.DevTools.Animation /// `AnimationEffect`'s iteration duration. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("duration")] - public long Duration + public double Duration { get; set; @@ -955,10 +928,7 @@ namespace CefSharp.DevTools.Animation set; } } -} -namespace CefSharp.DevTools.Animation -{ /// /// Keyframes Rule /// @@ -985,10 +955,7 @@ namespace CefSharp.DevTools.Animation set; } } -} -namespace CefSharp.DevTools.Animation -{ /// /// Keyframe Style /// @@ -1016,6 +983,60 @@ namespace CefSharp.DevTools.Animation set; } } + + /// + /// Event for when an animation has been cancelled. + /// + public class AnimationCanceledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the animation that was cancelled. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("animation")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Animation.Animation Animation + { + get; + private set; + } + } } namespace CefSharp.DevTools.ApplicationCache @@ -1057,10 +1078,7 @@ namespace CefSharp.DevTools.ApplicationCache set; } } -} -namespace CefSharp.DevTools.ApplicationCache -{ /// /// Detailed application cache information. /// @@ -1081,7 +1099,7 @@ namespace CefSharp.DevTools.ApplicationCache /// Application cache size. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] - public long Size + public double Size { get; set; @@ -1091,7 +1109,7 @@ namespace CefSharp.DevTools.ApplicationCache /// Application cache creation time. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("creationTime")] - public long CreationTime + public double CreationTime { get; set; @@ -1101,7 +1119,7 @@ namespace CefSharp.DevTools.ApplicationCache /// Application cache update time. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("updateTime")] - public long UpdateTime + public double UpdateTime { get; set; @@ -1118,10 +1136,7 @@ namespace CefSharp.DevTools.ApplicationCache set; } } -} -namespace CefSharp.DevTools.ApplicationCache -{ /// /// Frame identifier - manifest URL pair. /// @@ -1159,6 +1174,64 @@ namespace CefSharp.DevTools.ApplicationCache set; } } + + /// + /// applicationCacheStatusUpdated + /// + public class ApplicationCacheStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier of the frame containing document whose application cache updated status. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + + /// + /// Manifest URL. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("manifestURL")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ManifestURL + { + get; + private set; + } + + /// + /// Updated application cache status. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + public int Status + { + get; + private set; + } + } + + /// + /// networkStateUpdated + /// + public class NetworkStateUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// IsNowOnline + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isNowOnline")] + public bool IsNowOnline + { + get; + private set; + } + } } namespace CefSharp.DevTools.Audits @@ -1201,10 +1274,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// Information about a request that is affected by an inspector issue. /// @@ -1231,10 +1301,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// Information about the frame affected by an inspector issue. /// @@ -1251,10 +1318,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// SameSiteCookieExclusionReason /// @@ -1281,10 +1345,7 @@ namespace CefSharp.DevTools.Audits [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeSameSiteStrict")] ExcludeSameSiteStrict } -} -namespace CefSharp.DevTools.Audits -{ /// /// SameSiteCookieWarningReason /// @@ -1331,10 +1392,7 @@ namespace CefSharp.DevTools.Audits [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteLaxCrossDowngradeLax")] WarnSameSiteLaxCrossDowngradeLax } -} -namespace CefSharp.DevTools.Audits -{ /// /// SameSiteCookieOperation /// @@ -1351,10 +1409,7 @@ namespace CefSharp.DevTools.Audits [System.Text.Json.Serialization.JsonPropertyNameAttribute("ReadCookie")] ReadCookie } -} -namespace CefSharp.DevTools.Audits -{ /// /// This information is currently necessary, as the front-end has a difficult /// time finding a specific cookie. With this, we can convey specific error @@ -1434,10 +1489,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// MixedContentResolutionStatus /// @@ -1459,10 +1511,7 @@ namespace CefSharp.DevTools.Audits [System.Text.Json.Serialization.JsonPropertyNameAttribute("MixedContentWarning")] MixedContentWarning } -} -namespace CefSharp.DevTools.Audits -{ /// /// MixedContentResourceType /// @@ -1599,10 +1648,7 @@ namespace CefSharp.DevTools.Audits [System.Text.Json.Serialization.JsonPropertyNameAttribute("XSLT")] XSLT } -} -namespace CefSharp.DevTools.Audits -{ /// /// MixedContentIssueDetails /// @@ -1674,10 +1720,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// Enum indicating the reason a response has been blocked. These reasons are /// refinements of the net error BLOCKED_BY_RESPONSE. @@ -1710,10 +1753,7 @@ namespace CefSharp.DevTools.Audits [System.Text.Json.Serialization.JsonPropertyNameAttribute("CorpNotSameSite")] CorpNotSameSite } -} -namespace CefSharp.DevTools.Audits -{ /// /// Details for a request that has been blocked with the BLOCKED_BY_RESPONSE /// code. Currently only used for COEP/COOP, but may be extended to include @@ -1762,10 +1802,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// HeavyAdResolutionStatus /// @@ -1782,10 +1819,7 @@ namespace CefSharp.DevTools.Audits [System.Text.Json.Serialization.JsonPropertyNameAttribute("HeavyAdWarning")] HeavyAdWarning } -} -namespace CefSharp.DevTools.Audits -{ /// /// HeavyAdReason /// @@ -1807,10 +1841,7 @@ namespace CefSharp.DevTools.Audits [System.Text.Json.Serialization.JsonPropertyNameAttribute("CpuPeakLimit")] CpuPeakLimit } -} -namespace CefSharp.DevTools.Audits -{ /// /// HeavyAdIssueDetails /// @@ -1847,10 +1878,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// ContentSecurityPolicyViolationType /// @@ -1882,10 +1910,7 @@ namespace CefSharp.DevTools.Audits [System.Text.Json.Serialization.JsonPropertyNameAttribute("kTrustedTypesPolicyViolation")] KTrustedTypesPolicyViolation } -} -namespace CefSharp.DevTools.Audits -{ /// /// SourceCodeLocation /// @@ -1932,10 +1957,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// ContentSecurityPolicyIssueDetails /// @@ -2012,10 +2034,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// SharedArrayBufferIssueType /// @@ -2032,10 +2051,7 @@ namespace CefSharp.DevTools.Audits [System.Text.Json.Serialization.JsonPropertyNameAttribute("CreationIssue")] CreationIssue } -} -namespace CefSharp.DevTools.Audits -{ /// /// Details for a issue arising from an SAB being instantiated in, or /// transfered to a context that is not cross-origin isolated. @@ -2073,10 +2089,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// TwaQualityEnforcementViolationType /// @@ -2098,10 +2111,7 @@ namespace CefSharp.DevTools.Audits [System.Text.Json.Serialization.JsonPropertyNameAttribute("kDigitalAssetLinks")] KDigitalAssetLinks } -} -namespace CefSharp.DevTools.Audits -{ /// /// TrustedWebActivityIssueDetails /// @@ -2160,10 +2170,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// LowTextContrastIssueDetails /// @@ -2194,7 +2201,7 @@ namespace CefSharp.DevTools.Audits /// ContrastRatio /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("contrastRatio")] - public long ContrastRatio + public double ContrastRatio { get; set; @@ -2204,7 +2211,7 @@ namespace CefSharp.DevTools.Audits /// ThresholdAA /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("thresholdAA")] - public long ThresholdAA + public double ThresholdAA { get; set; @@ -2214,7 +2221,7 @@ namespace CefSharp.DevTools.Audits /// ThresholdAAA /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("thresholdAAA")] - public long ThresholdAAA + public double ThresholdAAA { get; set; @@ -2242,10 +2249,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// Details for a CORS related issue, e.g. a warning or error related to /// CORS RFC1918 enforcement. @@ -2314,10 +2318,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// A unique identifier for the type of issue. Each type may use one of the /// optional fields in InspectorIssueDetails to convey more specific @@ -2371,10 +2372,7 @@ namespace CefSharp.DevTools.Audits [System.Text.Json.Serialization.JsonPropertyNameAttribute("CorsIssue")] CorsIssue } -} -namespace CefSharp.DevTools.Audits -{ /// /// This struct holds a list of optional fields with additional information /// specific to the kind of issue. When adding a new issue code, please also @@ -2472,10 +2470,7 @@ namespace CefSharp.DevTools.Audits set; } } -} -namespace CefSharp.DevTools.Audits -{ /// /// An inspector issue reported from the back-end. /// @@ -2502,6 +2497,24 @@ namespace CefSharp.DevTools.Audits set; } } + + /// + /// issueAdded + /// + public class IssueAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Issue + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("issue")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Audits.InspectorIssue Issue + { + get; + private set; + } + } } namespace CefSharp.DevTools.BackgroundService @@ -2544,10 +2557,7 @@ namespace CefSharp.DevTools.BackgroundService [System.Text.Json.Serialization.JsonPropertyNameAttribute("periodicBackgroundSync")] PeriodicBackgroundSync } -} -namespace CefSharp.DevTools.BackgroundService -{ /// /// A key-value pair for additional event information to pass along. /// @@ -2575,10 +2585,7 @@ namespace CefSharp.DevTools.BackgroundService set; } } -} -namespace CefSharp.DevTools.BackgroundService -{ /// /// BackgroundServiceEvent /// @@ -2588,7 +2595,7 @@ namespace CefSharp.DevTools.BackgroundService /// Timestamp of the event (in seconds). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] - public long Timestamp + public double Timestamp { get; set; @@ -2659,6 +2666,53 @@ namespace CefSharp.DevTools.BackgroundService set; } } + + /// + /// Called when the recording state for the service has been updated. + /// + public class RecordingStateChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// IsRecording + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isRecording")] + public bool IsRecording + { + get; + private set; + } + + /// + /// Service + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backgroundServiceEvent")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.BackgroundService.BackgroundServiceEvent BackgroundServiceEvent + { + get; + private set; + } + } } namespace CefSharp.DevTools.Browser @@ -2689,10 +2743,7 @@ namespace CefSharp.DevTools.Browser [System.Text.Json.Serialization.JsonPropertyNameAttribute("fullscreen")] Fullscreen } -} -namespace CefSharp.DevTools.Browser -{ /// /// Browser window bounds information /// @@ -2748,10 +2799,7 @@ namespace CefSharp.DevTools.Browser set; } } -} -namespace CefSharp.DevTools.Browser -{ /// /// PermissionType /// @@ -2873,10 +2921,7 @@ namespace CefSharp.DevTools.Browser [System.Text.Json.Serialization.JsonPropertyNameAttribute("wakeLockSystem")] WakeLockSystem } -} -namespace CefSharp.DevTools.Browser -{ /// /// PermissionSetting /// @@ -2898,10 +2943,7 @@ namespace CefSharp.DevTools.Browser [System.Text.Json.Serialization.JsonPropertyNameAttribute("prompt")] Prompt } -} -namespace CefSharp.DevTools.Browser -{ /// /// Definition of PermissionDescriptor defined in the Permissions API: /// https://w3c.github.io/permissions/#dictdef-permissiondescriptor. @@ -2961,10 +3003,7 @@ namespace CefSharp.DevTools.Browser set; } } -} -namespace CefSharp.DevTools.Browser -{ /// /// Browser command ids used by executeBrowserCommand. /// @@ -2981,10 +3020,7 @@ namespace CefSharp.DevTools.Browser [System.Text.Json.Serialization.JsonPropertyNameAttribute("closeTabSearch")] CloseTabSearch } -} -namespace CefSharp.DevTools.Browser -{ /// /// Chrome histogram bucket. /// @@ -3020,10 +3056,7 @@ namespace CefSharp.DevTools.Browser set; } } -} -namespace CefSharp.DevTools.Browser -{ /// /// Chrome histogram. /// @@ -3071,6 +3104,112 @@ namespace CefSharp.DevTools.Browser set; } } + + /// + /// 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + + /// + /// Global unique identifier of the download. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("guid")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Guid + { + get; + private set; + } + + /// + /// URL of the resource being downloaded. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("suggestedFilename")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SuggestedFilename + { + get; + private set; + } + } + + /// + /// Fired when download makes progress. Last call has |done| == true. + /// + public class DownloadProgressEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Global unique identifier of the download. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("guid")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Guid + { + get; + private set; + } + + /// + /// Total expected bytes to download. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("totalBytes")] + public double TotalBytes + { + get; + private set; + } + + /// + /// Total bytes received. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("receivedBytes")] + public double ReceivedBytes + { + get; + private set; + } + + /// + /// Download status. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("state")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string State + { + get; + private set; + } + } } namespace CefSharp.DevTools.CSS @@ -3103,10 +3242,7 @@ namespace CefSharp.DevTools.CSS [System.Text.Json.Serialization.JsonPropertyNameAttribute("regular")] Regular } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS rule collection for a single pseudo style. /// @@ -3133,10 +3269,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Inherited CSS rule collection from ancestor node. /// @@ -3163,10 +3296,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Match data for a CSS rule. /// @@ -3193,10 +3323,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Data for a simple selector (these are delimited by commas in a selector list). /// @@ -3223,10 +3350,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Selector list data. /// @@ -3254,10 +3378,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS stylesheet metainformation. /// @@ -3395,7 +3516,7 @@ namespace CefSharp.DevTools.CSS /// Line offset of the stylesheet within the resource (zero based). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("startLine")] - public long StartLine + public double StartLine { get; set; @@ -3405,7 +3526,7 @@ namespace CefSharp.DevTools.CSS /// Column offset of the stylesheet within the resource (zero based). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("startColumn")] - public long StartColumn + public double StartColumn { get; set; @@ -3415,7 +3536,7 @@ namespace CefSharp.DevTools.CSS /// Size of the content (in characters). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("length")] - public long Length + public double Length { get; set; @@ -3425,7 +3546,7 @@ namespace CefSharp.DevTools.CSS /// Line offset of the end of the stylesheet within the resource (zero based). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("endLine")] - public long EndLine + public double EndLine { get; set; @@ -3435,16 +3556,13 @@ namespace CefSharp.DevTools.CSS /// Column offset of the end of the stylesheet within the resource (zero based). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("endColumn")] - public long EndColumn + public double EndColumn { get; set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS rule representation. /// @@ -3504,10 +3622,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS coverage information. /// @@ -3529,7 +3644,7 @@ namespace CefSharp.DevTools.CSS /// Offset of the start of the rule (including selector) from the beginning of the stylesheet. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("startOffset")] - public long StartOffset + public double StartOffset { get; set; @@ -3539,7 +3654,7 @@ namespace CefSharp.DevTools.CSS /// Offset of the end of the rule body from the beginning of the stylesheet. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("endOffset")] - public long EndOffset + public double EndOffset { get; set; @@ -3555,10 +3670,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Text range within a resource. All numbers are zero-based. /// @@ -3604,10 +3716,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// ShorthandEntry /// @@ -3645,10 +3754,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSSComputedStyleProperty /// @@ -3676,10 +3782,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS style representation. /// @@ -3738,10 +3841,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS property declaration data. /// @@ -3829,10 +3929,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS media rule descriptor. /// @@ -3904,10 +4001,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Media query descriptor. /// @@ -3934,10 +4028,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Media query expression descriptor. /// @@ -3947,7 +4038,7 @@ namespace CefSharp.DevTools.CSS /// Media query expression value. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] - public long Value + public double Value { get; set; @@ -3989,16 +4080,13 @@ namespace CefSharp.DevTools.CSS /// Computed length of media query expression (if applicable). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("computedLength")] - public long? ComputedLength + public double? ComputedLength { get; set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Information about amount of glyphs that were rendered with given font. /// @@ -4029,16 +4117,13 @@ namespace CefSharp.DevTools.CSS /// Amount of glyphs that were rendered with this font. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("glyphCount")] - public long GlyphCount + public double GlyphCount { get; set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Information about font variation axes for variable fonts /// @@ -4070,7 +4155,7 @@ namespace CefSharp.DevTools.CSS /// The minimum value (inclusive) the font supports for this tag. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("minValue")] - public long MinValue + public double MinValue { get; set; @@ -4080,7 +4165,7 @@ namespace CefSharp.DevTools.CSS /// The maximum value (inclusive) the font supports for this tag. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxValue")] - public long MaxValue + public double MaxValue { get; set; @@ -4090,16 +4175,13 @@ namespace CefSharp.DevTools.CSS /// The default value. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("defaultValue")] - public long DefaultValue + public double DefaultValue { get; set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions /// and additional information such as platformFontFamily and fontVariationAxes. @@ -4204,10 +4286,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS keyframes rule representation. /// @@ -4235,10 +4314,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// CSS keyframe rule representation. /// @@ -4287,10 +4363,7 @@ namespace CefSharp.DevTools.CSS set; } } -} -namespace CefSharp.DevTools.CSS -{ /// /// A descriptor of operation to mutate style declaration text. /// @@ -4329,6 +4402,78 @@ namespace CefSharp.DevTools.CSS 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StyleSheetId + { + get; + private set; + } + } } namespace CefSharp.DevTools.CacheStorage @@ -4369,10 +4514,7 @@ namespace CefSharp.DevTools.CacheStorage [System.Text.Json.Serialization.JsonPropertyNameAttribute("opaqueRedirect")] OpaqueRedirect } -} -namespace CefSharp.DevTools.CacheStorage -{ /// /// Data entry. /// @@ -4415,7 +4557,7 @@ namespace CefSharp.DevTools.CacheStorage /// Number of seconds since epoch. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseTime")] - public long ResponseTime + public double ResponseTime { get; set; @@ -4463,10 +4605,7 @@ namespace CefSharp.DevTools.CacheStorage set; } } -} -namespace CefSharp.DevTools.CacheStorage -{ /// /// Cache identifier. /// @@ -4505,10 +4644,7 @@ namespace CefSharp.DevTools.CacheStorage set; } } -} -namespace CefSharp.DevTools.CacheStorage -{ /// /// Header /// @@ -4536,10 +4672,7 @@ namespace CefSharp.DevTools.CacheStorage set; } } -} -namespace CefSharp.DevTools.CacheStorage -{ /// /// Cached response /// @@ -4598,6 +4731,44 @@ namespace CefSharp.DevTools.Cast 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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("issueMessage")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string IssueMessage + { + get; + private set; + } + } } namespace CefSharp.DevTools.DOM @@ -4638,10 +4809,7 @@ namespace CefSharp.DevTools.DOM set; } } -} -namespace CefSharp.DevTools.DOM -{ /// /// Pseudo element type. /// @@ -4743,10 +4911,7 @@ namespace CefSharp.DevTools.DOM [System.Text.Json.Serialization.JsonPropertyNameAttribute("input-list-button")] InputListButton } -} -namespace CefSharp.DevTools.DOM -{ /// /// Shadow root type. /// @@ -4768,10 +4933,7 @@ namespace CefSharp.DevTools.DOM [System.Text.Json.Serialization.JsonPropertyNameAttribute("closed")] Closed } -} -namespace CefSharp.DevTools.DOM -{ /// /// DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. /// DOMNode is a base node mirror type. @@ -5063,10 +5225,7 @@ namespace CefSharp.DevTools.DOM set; } } -} -namespace CefSharp.DevTools.DOM -{ /// /// A structure holding an RGBA color. /// @@ -5106,16 +5265,13 @@ namespace CefSharp.DevTools.DOM /// The alpha component, in the [0-1] range (default: 1). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("a")] - public long? A + public double? A { get; set; } } -} -namespace CefSharp.DevTools.DOM -{ /// /// Box model. /// @@ -5125,7 +5281,7 @@ namespace CefSharp.DevTools.DOM /// Content box /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("content")] - public long[] Content + public double[] Content { get; set; @@ -5135,7 +5291,7 @@ namespace CefSharp.DevTools.DOM /// Padding box /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("padding")] - public long[] Padding + public double[] Padding { get; set; @@ -5145,7 +5301,7 @@ namespace CefSharp.DevTools.DOM /// Border box /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("border")] - public long[] Border + public double[] Border { get; set; @@ -5155,7 +5311,7 @@ namespace CefSharp.DevTools.DOM /// Margin box /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("margin")] - public long[] Margin + public double[] Margin { get; set; @@ -5191,10 +5347,7 @@ namespace CefSharp.DevTools.DOM set; } } -} -namespace CefSharp.DevTools.DOM -{ /// /// CSS Shape Outside details. /// @@ -5204,7 +5357,7 @@ namespace CefSharp.DevTools.DOM /// Shape bounds /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] - public long[] Bounds + public double[] Bounds { get; set; @@ -5232,10 +5385,7 @@ namespace CefSharp.DevTools.DOM set; } } -} -namespace CefSharp.DevTools.DOM -{ /// /// Rectangle. /// @@ -5245,7 +5395,7 @@ namespace CefSharp.DevTools.DOM /// X coordinate /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("x")] - public long X + public double X { get; set; @@ -5255,7 +5405,7 @@ namespace CefSharp.DevTools.DOM /// Y coordinate /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("y")] - public long Y + public double Y { get; set; @@ -5265,7 +5415,7 @@ namespace CefSharp.DevTools.DOM /// Rectangle width /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] - public long Width + public double Width { get; set; @@ -5275,16 +5425,13 @@ namespace CefSharp.DevTools.DOM /// Rectangle height /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] - public long Height + public double Height { get; set; } } -} -namespace CefSharp.DevTools.DOM -{ /// /// CSSComputedStyleProperty /// @@ -5312,6 +5459,391 @@ namespace CefSharp.DevTools.DOM set; } } + + /// + /// Fired when `Element`'s attribute is modified. + /// + public class AttributeModifiedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node that has changed. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + private set; + } + + /// + /// Attribute name. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + private set; + } + + /// + /// Attribute value. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + private set; + } + } + + /// + /// Fired when `Element`'s attribute is removed. + /// + public class AttributeRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node that has changed. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + private set; + } + + /// + /// A ttribute name. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + private set; + } + + /// + /// New text value. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + private set; + } + + /// + /// New node count. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("childNodeCount")] + public int ChildNodeCount + { + get; + private set; + } + } + + /// + /// Mirrors `DOMNodeInserted` event. + /// + public class ChildNodeInsertedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the node that has changed. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentNodeId")] + public int ParentNodeId + { + get; + private set; + } + + /// + /// If of the previous siblint. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("previousNodeId")] + public int PreviousNodeId + { + get; + private set; + } + + /// + /// Inserted node data. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentNodeId")] + public int ParentNodeId + { + get; + private set; + } + + /// + /// Id of the node that has been removed. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + public int NodeId + { + get; + private set; + } + } + + /// + /// Called when distrubution is changed. + /// + public class DistributedNodesUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Insertion point where distrubuted nodes were updated. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("insertionPointId")] + public int InsertionPointId + { + get; + private set; + } + + /// + /// Distributed nodes for given insertion point. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + public int ParentId + { + get; + private set; + } + + /// + /// The added pseudo element. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoElement")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOM.Node PseudoElement + { + 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + public int ParentId + { + get; + private set; + } + + /// + /// The removed pseudo element id. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + public int ParentId + { + get; + private set; + } + + /// + /// Child nodes array. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hostId")] + public int HostId + { + get; + private set; + } + + /// + /// Shadow root id. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hostId")] + public int HostId + { + get; + private set; + } + + /// + /// Shadow root. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("root")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOM.Node Root + { + get; + private set; + } + } } namespace CefSharp.DevTools.DOMDebugger @@ -5337,10 +5869,7 @@ namespace CefSharp.DevTools.DOMDebugger [System.Text.Json.Serialization.JsonPropertyNameAttribute("node-removed")] NodeRemoved } -} -namespace CefSharp.DevTools.DOMDebugger -{ /// /// CSP Violation type. /// @@ -5357,10 +5886,7 @@ namespace CefSharp.DevTools.DOMDebugger [System.Text.Json.Serialization.JsonPropertyNameAttribute("trustedtype-policy-violation")] TrustedtypePolicyViolation } -} -namespace CefSharp.DevTools.DOMDebugger -{ /// /// Object event listener. /// @@ -5749,7 +6275,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// Scroll offsets, set when this node is a Document. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetX")] - public long? ScrollOffsetX + public double? ScrollOffsetX { get; set; @@ -5759,16 +6285,13 @@ namespace CefSharp.DevTools.DOMSnapshot /// ScrollOffsetY /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetY")] - public long? ScrollOffsetY + public double? ScrollOffsetY { get; set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Details of post layout rendered text positions. The exact layout should not be regarded as /// stable and may change between versions. @@ -5808,10 +6331,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Details of an element in the DOM tree with a LayoutObject. /// @@ -5890,10 +6410,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// A subset of the full ComputedStyle as defined by the request whitelist. /// @@ -5910,10 +6427,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// A name/value pair. /// @@ -5941,10 +6455,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Data that is only present on rare nodes. /// @@ -5970,10 +6481,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// RareBooleanData /// @@ -5989,10 +6497,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// RareIntegerData /// @@ -6018,10 +6523,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Document snapshot. /// @@ -6144,7 +6646,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// Horizontal scroll offset. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetX")] - public long? ScrollOffsetX + public double? ScrollOffsetX { get; set; @@ -6154,7 +6656,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// Vertical scroll offset. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetY")] - public long? ScrollOffsetY + public double? ScrollOffsetY { get; set; @@ -6164,7 +6666,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// Document content width. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentWidth")] - public long? ContentWidth + public double? ContentWidth { get; set; @@ -6174,16 +6676,13 @@ namespace CefSharp.DevTools.DOMSnapshot /// Document content height. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentHeight")] - public long? ContentHeight + public double? ContentHeight { get; set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Table containing nodes. /// @@ -6341,10 +6840,7 @@ namespace CefSharp.DevTools.DOMSnapshot set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Table of details of an element in the DOM tree with a LayoutObject. /// @@ -6374,7 +6870,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// The absolute position bounding box. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] - public long[] Bounds + public double[] Bounds { get; set; @@ -6417,7 +6913,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// The offset rect of nodes. Only available when includeDOMRects is set to true /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetRects")] - public long[] OffsetRects + public double[] OffsetRects { get; set; @@ -6427,7 +6923,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// The scroll rect of nodes. Only available when includeDOMRects is set to true /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollRects")] - public long[] ScrollRects + public double[] ScrollRects { get; set; @@ -6437,16 +6933,13 @@ namespace CefSharp.DevTools.DOMSnapshot /// The client rect of nodes. Only available when includeDOMRects is set to true /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientRects")] - public long[] ClientRects + public double[] ClientRects { get; set; } } -} -namespace CefSharp.DevTools.DOMSnapshot -{ /// /// Table of details of the post layout rendered text positions. The exact layout should not be regarded as /// stable and may change between versions. @@ -6467,7 +6960,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// The absolute position bounding box. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] - public long[] Bounds + public double[] Bounds { get; set; @@ -6525,6 +7018,150 @@ namespace CefSharp.DevTools.DOMStorage set; } } + + /// + /// domStorageItemAdded + /// + public class DomStorageItemAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// StorageId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOMStorage.StorageId StorageId + { + get; + private set; + } + + /// + /// Key + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Key + { + get; + private set; + } + + /// + /// NewValue + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("newValue")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string NewValue + { + get; + private set; + } + } + + /// + /// domStorageItemRemoved + /// + public class DomStorageItemRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// StorageId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOMStorage.StorageId StorageId + { + get; + private set; + } + + /// + /// Key + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Key + { + get; + private set; + } + } + + /// + /// domStorageItemUpdated + /// + public class DomStorageItemUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// StorageId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOMStorage.StorageId StorageId + { + get; + private set; + } + + /// + /// Key + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Key + { + get; + private set; + } + + /// + /// OldValue + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("oldValue")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string OldValue + { + get; + private set; + } + + /// + /// NewValue + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("newValue")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string NewValue + { + get; + private set; + } + } + + /// + /// domStorageItemsCleared + /// + public class DomStorageItemsClearedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// StorageId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.DOMStorage.StorageId StorageId + { + get; + private set; + } + } } namespace CefSharp.DevTools.Database @@ -6578,10 +7215,7 @@ namespace CefSharp.DevTools.Database set; } } -} -namespace CefSharp.DevTools.Database -{ /// /// Database error. /// @@ -6608,6 +7242,24 @@ namespace CefSharp.DevTools.Database set; } } + + /// + /// addDatabase + /// + public class AddDatabaseEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Database + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("database")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Database.Database Database + { + get; + private set; + } + } } namespace CefSharp.DevTools.Emulation @@ -6638,10 +7290,7 @@ namespace CefSharp.DevTools.Emulation set; } } -} -namespace CefSharp.DevTools.Emulation -{ /// /// DisplayFeature /// @@ -6681,10 +7330,7 @@ namespace CefSharp.DevTools.Emulation set; } } -} -namespace CefSharp.DevTools.Emulation -{ /// /// MediaFeature /// @@ -6712,10 +7358,7 @@ namespace CefSharp.DevTools.Emulation set; } } -} -namespace CefSharp.DevTools.Emulation -{ /// /// advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to /// allow the next delayed task (if any) to run; pause: The virtual time base may not advance; @@ -6740,10 +7383,7 @@ namespace CefSharp.DevTools.Emulation [System.Text.Json.Serialization.JsonPropertyNameAttribute("pauseIfNetworkFetchesPending")] PauseIfNetworkFetchesPending } -} -namespace CefSharp.DevTools.Emulation -{ /// /// Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints /// @@ -6771,10 +7411,7 @@ namespace CefSharp.DevTools.Emulation set; } } -} -namespace CefSharp.DevTools.Emulation -{ /// /// Used to specify User Agent Cient 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. @@ -6855,10 +7492,7 @@ namespace CefSharp.DevTools.Emulation set; } } -} -namespace CefSharp.DevTools.Emulation -{ /// /// Enum of image types that can be disabled. /// @@ -6904,6 +7538,25 @@ namespace CefSharp.DevTools.HeadlessExperimental set; } } + + /// + /// Issued when the target starts or stops needing BeginFrames. + /// Deprecated. Issue beginFrame unconditionally instead and use result from + /// beginFrame to detect whether the frames were suppressed. + /// + public class NeedsBeginFramesChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// True if BeginFrames are needed, false otherwise. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("needsBeginFrames")] + public bool NeedsBeginFrames + { + get; + private set; + } + } } namespace CefSharp.DevTools.IndexedDB @@ -6929,7 +7582,7 @@ namespace CefSharp.DevTools.IndexedDB /// requires the version number to be 'unsigned long long') /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("version")] - public long Version + public double Version { get; set; @@ -6946,10 +7599,7 @@ namespace CefSharp.DevTools.IndexedDB set; } } -} -namespace CefSharp.DevTools.IndexedDB -{ /// /// Object store. /// @@ -6998,10 +7648,7 @@ namespace CefSharp.DevTools.IndexedDB set; } } -} -namespace CefSharp.DevTools.IndexedDB -{ /// /// Object store index. /// @@ -7049,10 +7696,7 @@ namespace CefSharp.DevTools.IndexedDB set; } } -} -namespace CefSharp.DevTools.IndexedDB -{ /// /// Key. /// @@ -7073,7 +7717,7 @@ namespace CefSharp.DevTools.IndexedDB /// Number value. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("number")] - public long? Number + public double? Number { get; set; @@ -7093,7 +7737,7 @@ namespace CefSharp.DevTools.IndexedDB /// Date value. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("date")] - public long? Date + public double? Date { get; set; @@ -7109,10 +7753,7 @@ namespace CefSharp.DevTools.IndexedDB set; } } -} -namespace CefSharp.DevTools.IndexedDB -{ /// /// Key range. /// @@ -7158,10 +7799,7 @@ namespace CefSharp.DevTools.IndexedDB set; } } -} -namespace CefSharp.DevTools.IndexedDB -{ /// /// Data entry. /// @@ -7200,10 +7838,7 @@ namespace CefSharp.DevTools.IndexedDB set; } } -} -namespace CefSharp.DevTools.IndexedDB -{ /// /// Key path. /// @@ -7253,7 +7888,7 @@ namespace CefSharp.DevTools.Input /// X coordinate of the event relative to the main frame's viewport in CSS pixels. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("x")] - public long X + public double X { get; set; @@ -7264,7 +7899,7 @@ namespace CefSharp.DevTools.Input /// the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("y")] - public long Y + public double Y { get; set; @@ -7274,7 +7909,7 @@ namespace CefSharp.DevTools.Input /// X radius of the touch area (default: 1.0). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("radiusX")] - public long? RadiusX + public double? RadiusX { get; set; @@ -7284,7 +7919,7 @@ namespace CefSharp.DevTools.Input /// Y radius of the touch area (default: 1.0). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("radiusY")] - public long? RadiusY + public double? RadiusY { get; set; @@ -7294,7 +7929,7 @@ namespace CefSharp.DevTools.Input /// Rotation angle (default: 0.0). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("rotationAngle")] - public long? RotationAngle + public double? RotationAngle { get; set; @@ -7304,7 +7939,7 @@ namespace CefSharp.DevTools.Input /// Force (default: 1.0). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("force")] - public long? Force + public double? Force { get; set; @@ -7314,7 +7949,7 @@ namespace CefSharp.DevTools.Input /// The normalized tangential pressure, which has a range of [-1,1] (default: 0). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("tangentialPressure")] - public long? TangentialPressure + public double? TangentialPressure { get; set; @@ -7354,16 +7989,13 @@ namespace CefSharp.DevTools.Input /// Identifier used to track touch sources between events, must be unique within an event. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] - public long? Id + public double? Id { get; set; } } -} -namespace CefSharp.DevTools.Input -{ /// /// GestureSourceType /// @@ -7385,10 +8017,7 @@ namespace CefSharp.DevTools.Input [System.Text.Json.Serialization.JsonPropertyNameAttribute("mouse")] Mouse } -} -namespace CefSharp.DevTools.Input -{ /// /// MouseButton /// @@ -7425,10 +8054,7 @@ namespace CefSharp.DevTools.Input [System.Text.Json.Serialization.JsonPropertyNameAttribute("forward")] Forward } -} -namespace CefSharp.DevTools.Input -{ /// /// DragDataItem /// @@ -7478,10 +8104,7 @@ namespace CefSharp.DevTools.Input set; } } -} -namespace CefSharp.DevTools.Input -{ /// /// DragData /// @@ -7508,6 +8131,46 @@ namespace CefSharp.DevTools.Input 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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Reason + { + get; + private set; + } + } } namespace CefSharp.DevTools.LayerTree @@ -7539,10 +8202,7 @@ namespace CefSharp.DevTools.LayerTree set; } } -} -namespace CefSharp.DevTools.LayerTree -{ /// /// Sticky position constraints. /// @@ -7590,10 +8250,7 @@ namespace CefSharp.DevTools.LayerTree set; } } -} -namespace CefSharp.DevTools.LayerTree -{ /// /// Serialized fragment of layer picture along with its offset within the layer. /// @@ -7603,7 +8260,7 @@ namespace CefSharp.DevTools.LayerTree /// Offset from owning layer left boundary /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("x")] - public long X + public double X { get; set; @@ -7613,7 +8270,7 @@ namespace CefSharp.DevTools.LayerTree /// Offset from owning layer top boundary /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("y")] - public long Y + public double Y { get; set; @@ -7630,10 +8287,7 @@ namespace CefSharp.DevTools.LayerTree set; } } -} -namespace CefSharp.DevTools.LayerTree -{ /// /// Information about a compositing layer. /// @@ -7674,7 +8328,7 @@ namespace CefSharp.DevTools.LayerTree /// Offset from parent layer, X coordinate. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetX")] - public long OffsetX + public double OffsetX { get; set; @@ -7684,7 +8338,7 @@ namespace CefSharp.DevTools.LayerTree /// Offset from parent layer, Y coordinate. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetY")] - public long OffsetY + public double OffsetY { get; set; @@ -7694,7 +8348,7 @@ namespace CefSharp.DevTools.LayerTree /// Layer width. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] - public long Width + public double Width { get; set; @@ -7704,7 +8358,7 @@ namespace CefSharp.DevTools.LayerTree /// Layer height. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] - public long Height + public double Height { get; set; @@ -7714,7 +8368,7 @@ namespace CefSharp.DevTools.LayerTree /// Transformation matrix for layer, default is identity matrix /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("transform")] - public long[] Transform + public double[] Transform { get; set; @@ -7724,7 +8378,7 @@ namespace CefSharp.DevTools.LayerTree /// Transform anchor point X, absent if no transform specified /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("anchorX")] - public long? AnchorX + public double? AnchorX { get; set; @@ -7734,7 +8388,7 @@ namespace CefSharp.DevTools.LayerTree /// Transform anchor point Y, absent if no transform specified /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("anchorY")] - public long? AnchorY + public double? AnchorY { get; set; @@ -7744,7 +8398,7 @@ namespace CefSharp.DevTools.LayerTree /// Transform anchor point Z, absent if no transform specified /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("anchorZ")] - public long? AnchorZ + public double? AnchorZ { get; set; @@ -7801,6 +8455,53 @@ namespace CefSharp.DevTools.LayerTree set; } } + + /// + /// layerPainted + /// + public class LayerPaintedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The id of the painted layer. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("layerId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LayerId + { + get; + private set; + } + + /// + /// Clip rectangle. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 comspositing mode. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("layers")] + public System.Collections.Generic.IList Layers + { + get; + private set; + } + } } namespace CefSharp.DevTools.Log @@ -7847,7 +8548,7 @@ namespace CefSharp.DevTools.Log /// Timestamp when this entry was added. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] - public long Timestamp + public double Timestamp { get; set; @@ -7913,10 +8614,7 @@ namespace CefSharp.DevTools.Log set; } } -} -namespace CefSharp.DevTools.Log -{ /// /// Violation configuration setting. /// @@ -7937,12 +8635,30 @@ namespace CefSharp.DevTools.Log /// Time threshold to trigger upon. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("threshold")] - public long Threshold + public double Threshold { get; set; } } + + /// + /// Issued when new message was logged. + /// + public class EntryAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The entry. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("entry")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Log.LogEntry Entry + { + get; + private set; + } + } } namespace CefSharp.DevTools.Memory @@ -7963,10 +8679,7 @@ namespace CefSharp.DevTools.Memory [System.Text.Json.Serialization.JsonPropertyNameAttribute("critical")] Critical } -} -namespace CefSharp.DevTools.Memory -{ /// /// Heap profile sample. /// @@ -7976,7 +8689,7 @@ namespace CefSharp.DevTools.Memory /// Size of the sampled allocation. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] - public long Size + public double Size { get; set; @@ -7986,7 +8699,7 @@ namespace CefSharp.DevTools.Memory /// Total bytes attributed to this sample. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("total")] - public long Total + public double Total { get; set; @@ -8003,10 +8716,7 @@ namespace CefSharp.DevTools.Memory set; } } -} -namespace CefSharp.DevTools.Memory -{ /// /// Array of heap profile samples. /// @@ -8034,10 +8744,7 @@ namespace CefSharp.DevTools.Memory set; } } -} -namespace CefSharp.DevTools.Memory -{ /// /// Executable module information /// @@ -8081,7 +8788,7 @@ namespace CefSharp.DevTools.Memory /// Size of the module in bytes. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] - public long Size + public double Size { get; set; @@ -8182,10 +8889,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("Other")] Other } -} -namespace CefSharp.DevTools.Network -{ /// /// Network level fetch failure reason. /// @@ -8262,10 +8966,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("BlockedByResponse")] BlockedByResponse } -} -namespace CefSharp.DevTools.Network -{ /// /// The underlying connection technology that the browser is supposedly using. /// @@ -8317,10 +9018,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] Other } -} -namespace CefSharp.DevTools.Network -{ /// /// Represents the cookie's 'SameSite' status: /// https://tools.ietf.org/html/draft-west-first-party-cookies @@ -8343,10 +9041,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("None")] None } -} -namespace CefSharp.DevTools.Network -{ /// /// Represents the cookie's 'Priority' status: /// https://tools.ietf.org/html/draft-west-cookie-priority-00 @@ -8369,10 +9064,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("High")] High } -} -namespace CefSharp.DevTools.Network -{ /// /// 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. @@ -8396,10 +9088,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("Secure")] Secure } -} -namespace CefSharp.DevTools.Network -{ /// /// Timing information for the request. /// @@ -8410,7 +9099,7 @@ namespace CefSharp.DevTools.Network /// milliseconds relatively to this requestTime. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestTime")] - public long RequestTime + public double RequestTime { get; set; @@ -8420,7 +9109,7 @@ namespace CefSharp.DevTools.Network /// Started resolving proxy. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("proxyStart")] - public long ProxyStart + public double ProxyStart { get; set; @@ -8430,7 +9119,7 @@ namespace CefSharp.DevTools.Network /// Finished resolving proxy. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("proxyEnd")] - public long ProxyEnd + public double ProxyEnd { get; set; @@ -8440,7 +9129,7 @@ namespace CefSharp.DevTools.Network /// Started DNS address resolve. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("dnsStart")] - public long DnsStart + public double DnsStart { get; set; @@ -8450,7 +9139,7 @@ namespace CefSharp.DevTools.Network /// Finished DNS address resolve. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("dnsEnd")] - public long DnsEnd + public double DnsEnd { get; set; @@ -8460,7 +9149,7 @@ namespace CefSharp.DevTools.Network /// Started connecting to the remote host. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectStart")] - public long ConnectStart + public double ConnectStart { get; set; @@ -8470,7 +9159,7 @@ namespace CefSharp.DevTools.Network /// Connected to the remote host. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectEnd")] - public long ConnectEnd + public double ConnectEnd { get; set; @@ -8480,7 +9169,7 @@ namespace CefSharp.DevTools.Network /// Started SSL handshake. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("sslStart")] - public long SslStart + public double SslStart { get; set; @@ -8490,7 +9179,7 @@ namespace CefSharp.DevTools.Network /// Finished SSL handshake. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("sslEnd")] - public long SslEnd + public double SslEnd { get; set; @@ -8500,7 +9189,7 @@ namespace CefSharp.DevTools.Network /// Started running ServiceWorker. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerStart")] - public long WorkerStart + public double WorkerStart { get; set; @@ -8510,7 +9199,7 @@ namespace CefSharp.DevTools.Network /// Finished Starting ServiceWorker. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerReady")] - public long WorkerReady + public double WorkerReady { get; set; @@ -8520,7 +9209,7 @@ namespace CefSharp.DevTools.Network /// Started fetch event. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerFetchStart")] - public long WorkerFetchStart + public double WorkerFetchStart { get; set; @@ -8530,7 +9219,7 @@ namespace CefSharp.DevTools.Network /// Settled fetch event respondWith promise. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerRespondWithSettled")] - public long WorkerRespondWithSettled + public double WorkerRespondWithSettled { get; set; @@ -8540,7 +9229,7 @@ namespace CefSharp.DevTools.Network /// Started sending request. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("sendStart")] - public long SendStart + public double SendStart { get; set; @@ -8550,7 +9239,7 @@ namespace CefSharp.DevTools.Network /// Finished sending request. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("sendEnd")] - public long SendEnd + public double SendEnd { get; set; @@ -8560,7 +9249,7 @@ namespace CefSharp.DevTools.Network /// Time the server started pushing request. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("pushStart")] - public long PushStart + public double PushStart { get; set; @@ -8570,7 +9259,7 @@ namespace CefSharp.DevTools.Network /// Time the server finished pushing request. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("pushEnd")] - public long PushEnd + public double PushEnd { get; set; @@ -8580,16 +9269,13 @@ namespace CefSharp.DevTools.Network /// Finished receiving response headers. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("receiveHeadersEnd")] - public long ReceiveHeadersEnd + public double ReceiveHeadersEnd { get; set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Loading priority of a resource request. /// @@ -8621,10 +9307,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("VeryHigh")] VeryHigh } -} -namespace CefSharp.DevTools.Network -{ /// /// Post data entry for HTTP request /// @@ -8640,10 +9323,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// HTTP request data. /// @@ -8774,10 +9454,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Details of a signed certificate timestamp (SCT). /// @@ -8831,7 +9508,7 @@ namespace CefSharp.DevTools.Network /// Issuance date. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] - public long Timestamp + public double Timestamp { get; set; @@ -8870,10 +9547,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Security details about a request. /// @@ -8979,7 +9653,7 @@ namespace CefSharp.DevTools.Network /// Certificate valid from date. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("validFrom")] - public long ValidFrom + public double ValidFrom { get; set; @@ -8989,7 +9663,7 @@ namespace CefSharp.DevTools.Network /// Certificate valid to (expiration) date /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("validTo")] - public long ValidTo + public double ValidTo { get; set; @@ -9016,10 +9690,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Whether the request complied with Certificate Transparency policy. /// @@ -9041,10 +9712,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("compliant")] Compliant } -} -namespace CefSharp.DevTools.Network -{ /// /// The reason why request was blocked. /// @@ -9111,10 +9779,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("corp-not-same-site")] CorpNotSameSite } -} -namespace CefSharp.DevTools.Network -{ /// /// The reason why request was blocked. /// @@ -9246,10 +9911,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("InsecurePrivateNetwork")] InsecurePrivateNetwork } -} -namespace CefSharp.DevTools.Network -{ /// /// CorsErrorStatus /// @@ -9276,10 +9938,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Source of serviceworker response. /// @@ -9306,10 +9965,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("network")] Network } -} -namespace CefSharp.DevTools.Network -{ /// /// Determines what type of Trust Token operation is executed and /// depending on the type, some additional parameters. The values @@ -9350,10 +10006,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// TrustTokenOperationType /// @@ -9375,10 +10028,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("Signing")] Signing } -} -namespace CefSharp.DevTools.Network -{ /// /// HTTP response data. /// @@ -9482,7 +10132,7 @@ namespace CefSharp.DevTools.Network /// Physical connection id that was actually used for this request. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectionId")] - public long ConnectionId + public double ConnectionId { get; set; @@ -9542,7 +10192,7 @@ namespace CefSharp.DevTools.Network /// Total number of bytes received for this request so far. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("encodedDataLength")] - public long EncodedDataLength + public double EncodedDataLength { get; set; @@ -9572,7 +10222,7 @@ namespace CefSharp.DevTools.Network /// The time at which the returned response was generated. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseTime")] - public long? ResponseTime + public double? ResponseTime { get; set; @@ -9618,10 +10268,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// WebSocket request data. /// @@ -9638,10 +10285,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// WebSocket response data. /// @@ -9709,10 +10353,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests. /// @@ -9722,7 +10363,7 @@ namespace CefSharp.DevTools.Network /// WebSocket message opcode. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("opcode")] - public long Opcode + public double Opcode { get; set; @@ -9751,10 +10392,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Information about the cached resource. /// @@ -9795,16 +10433,13 @@ namespace CefSharp.DevTools.Network /// Cached response body size. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("bodySize")] - public long BodySize + public double BodySize { get; set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Information about the request initiator. /// @@ -9846,7 +10481,7 @@ namespace CefSharp.DevTools.Network /// module) (0-based). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] - public long? LineNumber + public double? LineNumber { get; set; @@ -9857,7 +10492,7 @@ namespace CefSharp.DevTools.Network /// module) (0-based). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] - public long? ColumnNumber + public double? ColumnNumber { get; set; @@ -9873,10 +10508,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Cookie object /// @@ -9930,7 +10562,7 @@ namespace CefSharp.DevTools.Network /// Cookie expiration date as the number of seconds since the UNIX epoch. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("expires")] - public long Expires + public double Expires { get; set; @@ -10028,10 +10660,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Types of reasons why a cookie may not be stored from a response. /// @@ -10123,10 +10752,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("SamePartyConflictsWithOtherAttributes")] SamePartyConflictsWithOtherAttributes } -} -namespace CefSharp.DevTools.Network -{ /// /// Types of reasons why a cookie may not be sent with a request. /// @@ -10198,10 +10824,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("SamePartyFromCrossPartyContext")] SamePartyFromCrossPartyContext } -} -namespace CefSharp.DevTools.Network -{ /// /// A cookie which was not stored from a response with the corresponding reason. /// @@ -10241,10 +10864,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// A cookie with was not sent with a request with the corresponding reason. /// @@ -10271,10 +10891,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Cookie parameter object /// @@ -10367,7 +10984,7 @@ namespace CefSharp.DevTools.Network /// Cookie expiration date, session cookie if not set /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("expires")] - public long? Expires + public double? Expires { get; set; @@ -10415,10 +11032,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Authorization challenge for HTTP status code 401 or 407. /// @@ -10467,10 +11081,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Response to an AuthChallenge. /// @@ -10511,10 +11122,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Stages of the interception to begin intercepting. Request will intercept before the request is /// sent. Response will intercept after the response is received. @@ -10532,10 +11140,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("HeadersReceived")] HeadersReceived } -} -namespace CefSharp.DevTools.Network -{ /// /// Request pattern for interception. /// @@ -10572,10 +11177,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Information about a signed exchange signature. /// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1 @@ -10676,10 +11278,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Information about a signed exchange header. /// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation @@ -10740,10 +11339,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Field type for a signed exchange related error. /// @@ -10780,10 +11376,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureTimestamps")] SignatureTimestamps } -} -namespace CefSharp.DevTools.Network -{ /// /// Information about a signed exchange response. /// @@ -10820,10 +11413,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// Information about a signed exchange response. /// @@ -10870,10 +11460,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// List of content encodings supported by the backend. /// @@ -10895,10 +11482,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("br")] Br } -} -namespace CefSharp.DevTools.Network -{ /// /// PrivateNetworkRequestPolicy /// @@ -10920,10 +11504,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnFromInsecureToMorePrivate")] WarnFromInsecureToMorePrivate } -} -namespace CefSharp.DevTools.Network -{ /// /// IPAddressSpace /// @@ -10950,10 +11531,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("Unknown")] Unknown } -} -namespace CefSharp.DevTools.Network -{ /// /// ClientSecurityState /// @@ -10989,10 +11567,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// CrossOriginOpenerPolicyValue /// @@ -11019,10 +11594,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameOriginPlusCoep")] SameOriginPlusCoep } -} -namespace CefSharp.DevTools.Network -{ /// /// CrossOriginOpenerPolicyStatus /// @@ -11068,10 +11640,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// CrossOriginEmbedderPolicyValue /// @@ -11093,10 +11662,7 @@ namespace CefSharp.DevTools.Network [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequireCorp")] RequireCorp } -} -namespace CefSharp.DevTools.Network -{ /// /// CrossOriginEmbedderPolicyStatus /// @@ -11142,10 +11708,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// SecurityIsolationStatus /// @@ -11171,10 +11734,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// An object providing the result of a network resource load. /// @@ -11194,7 +11754,7 @@ namespace CefSharp.DevTools.Network /// Optional values used for error reporting. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("netError")] - public long? NetError + public double? NetError { get; set; @@ -11214,7 +11774,7 @@ namespace CefSharp.DevTools.Network /// HttpStatusCode /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("httpStatusCode")] - public long? HttpStatusCode + public double? HttpStatusCode { get; set; @@ -11240,10 +11800,7 @@ namespace CefSharp.DevTools.Network set; } } -} -namespace CefSharp.DevTools.Network -{ /// /// An options object that may be extended later to better support CORS, /// CORB and streaming. @@ -11270,6 +11827,1308 @@ namespace CefSharp.DevTools.Network set; } } + + /// + /// Fired when data chunk was received over the network. + /// + public class DataReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// Data chunk length. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("dataLength")] + public int DataLength + { + get; + private set; + } + + /// + /// Actual bytes received (might be less than dataLength for compressed encodings). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("encodedDataLength")] + public int EncodedDataLength + { + get; + private set; + } + } + + /// + /// Fired when EventSource message is received. + /// + public class EventSourceMessageReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// Message type. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string EventName + { + get; + private set; + } + + /// + /// Message identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string EventId + { + get; + private set; + } + + /// + /// Message content. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// Resource type. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public CefSharp.DevTools.Network.ResourceType Type + { + get; + private set; + } + + /// + /// User friendly error message. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorText")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ErrorText + { + get; + private set; + } + + /// + /// True if loading was canceled. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("canceled")] + public bool? Canceled + { + get; + private set; + } + + /// + /// The reason why loading was blocked, if any. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedReason")] + public CefSharp.DevTools.Network.BlockedReason? BlockedReason + { + get; + private set; + } + + /// + /// The reason why loading was blocked by CORS, if any. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// Total number of bytes received for this request. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("encodedDataLength")] + public double EncodedDataLength + { + get; + private set; + } + + /// + /// Set when 1) response was blocked by Cross-Origin Read Blocking and also + /// 2) this needs to be reported to the DevTools console. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shouldReportCorbBlocking")] + public bool? ShouldReportCorbBlocking + { + 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("interceptionId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string InterceptionId + { + get; + private set; + } + + /// + /// Request + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Request Request + { + get; + private set; + } + + /// + /// The id of the frame that initiated the request. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + + /// + /// How the requested resource will be used. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceType")] + public CefSharp.DevTools.Network.ResourceType ResourceType + { + get; + private set; + } + + /// + /// Whether this is a navigation request, which can abort the navigation completely. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isDownload")] + public bool? IsDownload + { + get; + private set; + } + + /// + /// Redirect location, only sent if a redirect was intercepted. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("redirectUrl")] + public string RedirectUrl + { + get; + private set; + } + + /// + /// Details of the Authorization Challenge encountered. If this is set then + /// continueInterceptedRequest must contain an authChallengeResponse. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("authChallenge")] + public CefSharp.DevTools.Network.AuthChallenge AuthChallenge + { + get; + private set; + } + + /// + /// Response error if intercepted at response stage or if redirect occurred while intercepting + /// request. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + public string RequestId + { + get; + private set; + } + } + + /// + /// Fired if request ended up loading from cache. + /// + public class RequestServedFromCacheEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Loader identifier. Empty string if the request is fetched from worker. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaderId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LoaderId + { + get; + private set; + } + + /// + /// URL of the document this request is loaded for. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentURL")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string DocumentURL + { + get; + private set; + } + + /// + /// Request data. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Request Request + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("wallTime")] + public double WallTime + { + get; + private set; + } + + /// + /// Request initiator. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("initiator")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Initiator Initiator + { + get; + private set; + } + + /// + /// Redirect response data. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("redirectResponse")] + public CefSharp.DevTools.Network.Response RedirectResponse + { + get; + private set; + } + + /// + /// Type of this resource. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public CefSharp.DevTools.Network.ResourceType? Type + { + get; + private set; + } + + /// + /// Frame identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + public string FrameId + { + get; + private set; + } + + /// + /// Whether the request is initiated by a user gesture. Defaults to false. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasUserGesture")] + public bool? HasUserGesture + { + get; + private set; + } + } + + /// + /// Fired when resource loading priority is changed + /// + public class ResourceChangedPriorityEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// New priority + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("newPriority")] + public CefSharp.DevTools.Network.ResourcePriority NewPriority + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Information about the signed exchange response. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Loader identifier. Empty string if the request is fetched from worker. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaderId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LoaderId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// Resource type. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public CefSharp.DevTools.Network.ResourceType Type + { + get; + private set; + } + + /// + /// Response data. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Response Response + { + get; + private set; + } + + /// + /// Frame identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + public string FrameId + { + get; + private set; + } + } + + /// + /// Fired when WebSocket is closed. + /// + public class WebSocketClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + } + + /// + /// Fired upon WebSocket creation. + /// + public class WebSocketCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// WebSocket request URL. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + private set; + } + + /// + /// Request initiator. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("initiator")] + public CefSharp.DevTools.Network.Initiator Initiator + { + get; + private set; + } + } + + /// + /// Fired when WebSocket message error occurs. + /// + public class WebSocketFrameErrorEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Request identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// WebSocket error message. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// WebSocket response data. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// WebSocket response data. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// WebSocket response data. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// UTC Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("wallTime")] + public double WallTime + { + get; + private set; + } + + /// + /// WebSocket request data. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("transportId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string TransportId + { + get; + private set; + } + + /// + /// WebTransport request URL. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// Request initiator. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("initiator")] + public CefSharp.DevTools.Network.Initiator Initiator + { + get; + private set; + } + } + + /// + /// Fired when WebTransport handshake is finished. + /// + public class WebTransportConnectionEstablishedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// WebTransport identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("transportId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string TransportId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + } + + /// + /// Fired when WebTransport is disposed. + /// + public class WebTransportClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// WebTransport identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("transportId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string TransportId + { + get; + private set; + } + + /// + /// Timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 blockedReason field set. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Headers Headers + { + get; + private set; + } + + /// + /// The client security state set for the request. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientSecurityState")] + public CefSharp.DevTools.Network.ClientSecurityState ClientSecurityState + { + 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedCookies")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList BlockedCookies + { + get; + private set; + } + + /// + /// Raw response headers as they were received over the wire. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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`. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceIPAddressSpace")] + public CefSharp.DevTools.Network.IPAddressSpace ResourceIPAddressSpace + { + 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("headersText")] + public string HeadersText + { + get; + private set; + } + } + + /// + /// 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). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Status + { + get; + private set; + } + + /// + /// Type + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public CefSharp.DevTools.Network.TrustTokenOperationType Type + { + get; + private set; + } + + /// + /// RequestId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// Top level origin. The context in which the operation was attempted. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("topLevelOrigin")] + public string TopLevelOrigin + { + get; + private set; + } + + /// + /// Origin of the issuer in case of a "Issuance" or "Redemption" operation. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("issuerOrigin")] + public string IssuerOrigin + { + get; + private set; + } + + /// + /// The number of obtained Trust Tokens on a successful "Issuance" operation. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("issuedTokenCount")] + public int? IssuedTokenCount + { + get; + private set; + } + } } namespace CefSharp.DevTools.Overlay @@ -11301,10 +13160,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Configuration data for the highlighting of Grid elements. /// @@ -11510,10 +13366,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Configuration data for the highlighting of Flex container elements. /// @@ -11599,10 +13452,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Configuration data for the highlighting of Flex item elements. /// @@ -11638,10 +13488,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Style information for drawing a line. /// @@ -11667,10 +13514,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Style information for drawing a box. /// @@ -11696,10 +13540,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// ContrastAlgorithm /// @@ -11721,10 +13562,7 @@ namespace CefSharp.DevTools.Overlay [System.Text.Json.Serialization.JsonPropertyNameAttribute("apca")] Apca } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Configuration data for the highlighting of page elements. /// @@ -11910,10 +13748,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// ColorFormat /// @@ -11935,10 +13770,7 @@ namespace CefSharp.DevTools.Overlay [System.Text.Json.Serialization.JsonPropertyNameAttribute("hex")] Hex } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Configurations for Persistent Grid Highlight /// @@ -11965,10 +13797,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// FlexNodeHighlightConfig /// @@ -11995,10 +13824,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// ScrollSnapContainerHighlightConfig /// @@ -12044,10 +13870,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// ScrollSnapHighlightConfig /// @@ -12074,10 +13897,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// Configuration for dual screen hinge /// @@ -12114,10 +13934,7 @@ namespace CefSharp.DevTools.Overlay set; } } -} -namespace CefSharp.DevTools.Overlay -{ /// /// InspectMode /// @@ -12149,6 +13966,59 @@ namespace CefSharp.DevTools.Overlay [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("viewport")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Page.Viewport Viewport + { + get; + private set; + } + } } namespace CefSharp.DevTools.Page @@ -12174,10 +14044,7 @@ namespace CefSharp.DevTools.Page [System.Text.Json.Serialization.JsonPropertyNameAttribute("root")] Root } -} -namespace CefSharp.DevTools.Page -{ /// /// Indicates whether the frame is a secure context and why it is the case. /// @@ -12204,10 +14071,7 @@ namespace CefSharp.DevTools.Page [System.Text.Json.Serialization.JsonPropertyNameAttribute("InsecureAncestor")] InsecureAncestor } -} -namespace CefSharp.DevTools.Page -{ /// /// Indicates whether the frame is cross-origin isolated and why it is the case. /// @@ -12229,10 +14093,7 @@ namespace CefSharp.DevTools.Page [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotIsolatedFeatureDisabled")] NotIsolatedFeatureDisabled } -} -namespace CefSharp.DevTools.Page -{ /// /// GatedAPIFeatures /// @@ -12259,10 +14120,7 @@ namespace CefSharp.DevTools.Page [System.Text.Json.Serialization.JsonPropertyNameAttribute("PerformanceProfile")] PerformanceProfile } -} -namespace CefSharp.DevTools.Page -{ /// /// All Permissions Policy features. This enum should match the one defined /// in renderer/core/feature_policy/feature_policy_features.json5. @@ -12535,10 +14393,7 @@ namespace CefSharp.DevTools.Page [System.Text.Json.Serialization.JsonPropertyNameAttribute("xr-spatial-tracking")] XrSpatialTracking } -} -namespace CefSharp.DevTools.Page -{ /// /// Reason for a permissions policy feature to be disabled. /// @@ -12555,10 +14410,7 @@ namespace CefSharp.DevTools.Page [System.Text.Json.Serialization.JsonPropertyNameAttribute("IframeAttribute")] IframeAttribute } -} -namespace CefSharp.DevTools.Page -{ /// /// PermissionsPolicyBlockLocator /// @@ -12585,10 +14437,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// PermissionsPolicyFeatureState /// @@ -12624,10 +14473,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Information about the Frame on the page. /// @@ -12782,10 +14628,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Information about the Resource on the page. /// @@ -12827,7 +14670,7 @@ namespace CefSharp.DevTools.Page /// last-modified timestamp as reported by server. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("lastModified")] - public long? LastModified + public double? LastModified { get; set; @@ -12837,7 +14680,7 @@ namespace CefSharp.DevTools.Page /// Resource content size. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentSize")] - public long? ContentSize + public double? ContentSize { get; set; @@ -12863,10 +14706,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Information about the Frame hierarchy along with their cached resources. /// @@ -12904,10 +14744,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Information about the Frame hierarchy. /// @@ -12934,10 +14771,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Transition type. /// @@ -13009,10 +14843,7 @@ namespace CefSharp.DevTools.Page [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] Other } -} -namespace CefSharp.DevTools.Page -{ /// /// Navigation history entry. /// @@ -13071,10 +14902,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Screencast frame metadata. /// @@ -13084,7 +14912,7 @@ namespace CefSharp.DevTools.Page /// Top offset in DIP. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetTop")] - public long OffsetTop + public double OffsetTop { get; set; @@ -13094,7 +14922,7 @@ namespace CefSharp.DevTools.Page /// Page scale factor. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageScaleFactor")] - public long PageScaleFactor + public double PageScaleFactor { get; set; @@ -13104,7 +14932,7 @@ namespace CefSharp.DevTools.Page /// Device screen width in DIP. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("deviceWidth")] - public long DeviceWidth + public double DeviceWidth { get; set; @@ -13114,7 +14942,7 @@ namespace CefSharp.DevTools.Page /// Device screen height in DIP. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("deviceHeight")] - public long DeviceHeight + public double DeviceHeight { get; set; @@ -13124,7 +14952,7 @@ namespace CefSharp.DevTools.Page /// Position of horizontal scroll in CSS pixels. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetX")] - public long ScrollOffsetX + public double ScrollOffsetX { get; set; @@ -13134,7 +14962,7 @@ namespace CefSharp.DevTools.Page /// Position of vertical scroll in CSS pixels. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetY")] - public long ScrollOffsetY + public double ScrollOffsetY { get; set; @@ -13144,16 +14972,13 @@ namespace CefSharp.DevTools.Page /// Frame swap timestamp. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] - public long? Timestamp + public double? Timestamp { get; set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Javascript dialog type. /// @@ -13180,10 +15005,7 @@ namespace CefSharp.DevTools.Page [System.Text.Json.Serialization.JsonPropertyNameAttribute("beforeunload")] Beforeunload } -} -namespace CefSharp.DevTools.Page -{ /// /// Error while paring app manifest. /// @@ -13230,10 +15052,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Parsed app manifest properties. /// @@ -13250,10 +15069,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Layout viewport position and dimensions. /// @@ -13299,10 +15115,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Visual viewport position, dimensions, and scale. /// @@ -13312,7 +15125,7 @@ namespace CefSharp.DevTools.Page /// Horizontal offset relative to the layout viewport (CSS pixels). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetX")] - public long OffsetX + public double OffsetX { get; set; @@ -13322,7 +15135,7 @@ namespace CefSharp.DevTools.Page /// Vertical offset relative to the layout viewport (CSS pixels). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetY")] - public long OffsetY + public double OffsetY { get; set; @@ -13332,7 +15145,7 @@ namespace CefSharp.DevTools.Page /// Horizontal offset relative to the document (CSS pixels). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageX")] - public long PageX + public double PageX { get; set; @@ -13342,7 +15155,7 @@ namespace CefSharp.DevTools.Page /// Vertical offset relative to the document (CSS pixels). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageY")] - public long PageY + public double PageY { get; set; @@ -13352,7 +15165,7 @@ namespace CefSharp.DevTools.Page /// Width (CSS pixels), excludes scrollbar if present. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientWidth")] - public long ClientWidth + public double ClientWidth { get; set; @@ -13362,7 +15175,7 @@ namespace CefSharp.DevTools.Page /// Height (CSS pixels), excludes scrollbar if present. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientHeight")] - public long ClientHeight + public double ClientHeight { get; set; @@ -13372,7 +15185,7 @@ namespace CefSharp.DevTools.Page /// Scale relative to the ideal viewport (size at width=device-width). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("scale")] - public long Scale + public double Scale { get; set; @@ -13382,16 +15195,13 @@ namespace CefSharp.DevTools.Page /// Page zoom factor (CSS to device independent pixels ratio). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("zoom")] - public long? Zoom + public double? Zoom { get; set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Viewport for capturing screenshot. /// @@ -13401,7 +15211,7 @@ namespace CefSharp.DevTools.Page /// X offset in device independent pixels (dip). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("x")] - public long X + public double X { get; set; @@ -13411,7 +15221,7 @@ namespace CefSharp.DevTools.Page /// Y offset in device independent pixels (dip). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("y")] - public long Y + public double Y { get; set; @@ -13421,7 +15231,7 @@ namespace CefSharp.DevTools.Page /// Rectangle width in device independent pixels (dip). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] - public long Width + public double Width { get; set; @@ -13431,7 +15241,7 @@ namespace CefSharp.DevTools.Page /// Rectangle height in device independent pixels (dip). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] - public long Height + public double Height { get; set; @@ -13441,16 +15251,13 @@ namespace CefSharp.DevTools.Page /// Page scale factor. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("scale")] - public long Scale + public double Scale { get; set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Generic font families collection. /// @@ -13526,10 +15333,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// Default font sizes. /// @@ -13555,10 +15359,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// ClientNavigationReason /// @@ -13605,10 +15406,7 @@ namespace CefSharp.DevTools.Page [System.Text.Json.Serialization.JsonPropertyNameAttribute("anchorClick")] AnchorClick } -} -namespace CefSharp.DevTools.Page -{ /// /// ClientNavigationDisposition /// @@ -13635,10 +15433,7 @@ namespace CefSharp.DevTools.Page [System.Text.Json.Serialization.JsonPropertyNameAttribute("download")] Download } -} -namespace CefSharp.DevTools.Page -{ /// /// InstallabilityErrorArgument /// @@ -13666,10 +15461,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// The installability error /// @@ -13697,10 +15489,7 @@ namespace CefSharp.DevTools.Page set; } } -} -namespace CefSharp.DevTools.Page -{ /// /// The referring-policy used for the navigation. /// @@ -13747,10 +15536,7 @@ namespace CefSharp.DevTools.Page [System.Text.Json.Serialization.JsonPropertyNameAttribute("unsafeUrl")] UnsafeUrl } -} -namespace CefSharp.DevTools.Page -{ /// /// Per-script compilation cache parameters for `Page.produceCompilationCache` /// @@ -13778,6 +15564,778 @@ namespace CefSharp.DevTools.Page set; } } + + /// + /// domContentEventFired + /// + public class DomContentEventFiredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Timestamp + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + } + + /// + /// Emitted only when `page.interceptFileChooser` is enabled. + /// + public class FileChooserOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame containing input node. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + + /// + /// Input node id. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + public int BackendNodeId + { + get; + private set; + } + + /// + /// Input mode. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mode")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Mode + { + 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + + /// + /// Parent frame identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + } + + /// + /// Fired when frame has been detached from its parent. + /// + public class FrameDetachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame that has been detached. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + + /// + /// Reason + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Reason + { + 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Page.Frame Frame + { + get; + private set; + } + } + + /// + /// Fired when opening document to write to. + /// + public class DocumentOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Frame object. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Page.Frame Frame + { + 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + + /// + /// The reason for the navigation. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + public CefSharp.DevTools.Page.ClientNavigationReason Reason + { + get; + private set; + } + + /// + /// The destination URL for the requested navigation. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + private set; + } + + /// + /// The disposition for the navigation. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("delay")] + public double Delay + { + get; + private set; + } + + /// + /// The reason for the navigation. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + public CefSharp.DevTools.Page.ClientNavigationReason Reason + { + get; + private set; + } + + /// + /// The destination URL for the scheduled navigation. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + + /// + /// Global unique identifier of the download. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("guid")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Guid + { + get; + private set; + } + + /// + /// URL of the resource being downloaded. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("suggestedFilename")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SuggestedFilename + { + get; + private set; + } + } + + /// + /// 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("guid")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Guid + { + get; + private set; + } + + /// + /// Total expected bytes to download. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("totalBytes")] + public double TotalBytes + { + get; + private set; + } + + /// + /// Total bytes received. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("receivedBytes")] + public double ReceivedBytes + { + get; + private set; + } + + /// + /// Download status. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("state")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string State + { + get; + private set; + } + } + + /// + /// Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been + /// closed. + /// + public class JavascriptDialogClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Whether dialog was confirmed. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + public bool Result + { + get; + private set; + } + + /// + /// User input in case of prompt. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + private set; + } + + /// + /// Message that will be displayed by the dialog. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Message + { + get; + private set; + } + + /// + /// Dialog type. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasBrowserHandler")] + public bool HasBrowserHandler + { + get; + private set; + } + + /// + /// Default dialog prompt. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("defaultPrompt")] + public string DefaultPrompt + { + get; + private set; + } + } + + /// + /// Fired for top level page lifecycle events such as navigation, load, paint, etc. + /// + public class LifecycleEventEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id of the frame. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + + /// + /// Loader identifier. Empty string if the request is fetched from worker. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaderId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LoaderId + { + get; + private set; + } + + /// + /// Name + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + private set; + } + + /// + /// Timestamp + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + } + + /// + /// loadEventFired + /// + public class LoadEventFiredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Timestamp + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + } + + /// + /// 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + + /// + /// Frame's new url. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + private set; + } + } + + /// + /// Compressed image data requested by the `startScreencast`. + /// + public class ScreencastFrameEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Base64-encoded compressed image. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public byte[] Data + { + get; + private set; + } + + /// + /// Screencast frame metadata. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("metadata")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Page.ScreencastFrameMetadata Metadata + { + get; + private set; + } + + /// + /// Frame number. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + private set; + } + + /// + /// Window name. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("windowName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string WindowName + { + get; + private set; + } + + /// + /// An array of enabled window features. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("windowFeatures")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] WindowFeatures + { + get; + private set; + } + + /// + /// Whether or not it was triggered by user gesture. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("userGesture")] + public bool UserGesture + { + get; + private set; + } + } + + /// + /// Issued for every compilation cache generated. Is only available + /// if Page.setGenerateCompilationCache is enabled. + /// + public class CompilationCacheProducedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Url + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + private set; + } + + /// + /// Base64-encoded data + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public byte[] Data + { + get; + private set; + } + } } namespace CefSharp.DevTools.Performance @@ -13802,12 +16360,42 @@ namespace CefSharp.DevTools.Performance /// Metric value. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] - public long Value + public double Value { get; set; } } + + /// + /// Current values of the metrics. + /// + public class MetricsEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Current values of the metrics. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("metrics")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Metrics + { + get; + private set; + } + + /// + /// Timestamp title. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Title + { + get; + private set; + } + } } namespace CefSharp.DevTools.PerformanceTimeline @@ -13821,7 +16409,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// RenderTime /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("renderTime")] - public long RenderTime + public double RenderTime { get; set; @@ -13831,7 +16419,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// LoadTime /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("loadTime")] - public long LoadTime + public double LoadTime { get; set; @@ -13841,7 +16429,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// The number of pixels being painted. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] - public long Size + public double Size { get; set; @@ -13877,10 +16465,7 @@ namespace CefSharp.DevTools.PerformanceTimeline set; } } -} -namespace CefSharp.DevTools.PerformanceTimeline -{ /// /// LayoutShiftAttribution /// @@ -13918,10 +16503,7 @@ namespace CefSharp.DevTools.PerformanceTimeline set; } } -} -namespace CefSharp.DevTools.PerformanceTimeline -{ /// /// See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl /// @@ -13931,7 +16513,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// Score increment produced by this event. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] - public long Value + public double Value { get; set; @@ -13951,7 +16533,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// LastInputTime /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("lastInputTime")] - public long LastInputTime + public double LastInputTime { get; set; @@ -13968,10 +16550,7 @@ namespace CefSharp.DevTools.PerformanceTimeline set; } } -} -namespace CefSharp.DevTools.PerformanceTimeline -{ /// /// TimelineEvent /// @@ -14015,7 +16594,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// Time in seconds since Epoch, monotonically increasing within document lifetime. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("time")] - public long Time + public double Time { get; set; @@ -14025,7 +16604,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// Event duration, if applicable. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("duration")] - public long? Duration + public double? Duration { get; set; @@ -14051,6 +16630,24 @@ namespace CefSharp.DevTools.PerformanceTimeline set; } } + + /// + /// Sent when a performance timeline event is added. See reportPerformanceTimeline method. + /// + public class TimelineEventAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Event + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("event")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.PerformanceTimeline.TimelineEvent Event + { + get; + private set; + } + } } namespace CefSharp.DevTools.Security @@ -14077,10 +16674,7 @@ namespace CefSharp.DevTools.Security [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] None } -} -namespace CefSharp.DevTools.Security -{ /// /// The security level of a page or resource. /// @@ -14117,10 +16711,7 @@ namespace CefSharp.DevTools.Security [System.Text.Json.Serialization.JsonPropertyNameAttribute("insecure-broken")] InsecureBroken } -} -namespace CefSharp.DevTools.Security -{ /// /// Details about the security state of the page certificate. /// @@ -14216,7 +16807,7 @@ namespace CefSharp.DevTools.Security /// Certificate valid from date. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("validFrom")] - public long ValidFrom + public double ValidFrom { get; set; @@ -14226,7 +16817,7 @@ namespace CefSharp.DevTools.Security /// Certificate valid to (expiration) date /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("validTo")] - public long ValidTo + public double ValidTo { get; set; @@ -14312,10 +16903,7 @@ namespace CefSharp.DevTools.Security set; } } -} -namespace CefSharp.DevTools.Security -{ /// /// SafetyTipStatus /// @@ -14332,10 +16920,7 @@ namespace CefSharp.DevTools.Security [System.Text.Json.Serialization.JsonPropertyNameAttribute("lookalike")] Lookalike } -} -namespace CefSharp.DevTools.Security -{ /// /// SafetyTipInfo /// @@ -14361,10 +16946,7 @@ namespace CefSharp.DevTools.Security set; } } -} -namespace CefSharp.DevTools.Security -{ /// /// Security state information about the page. /// @@ -14411,10 +16993,7 @@ namespace CefSharp.DevTools.Security set; } } -} -namespace CefSharp.DevTools.Security -{ /// /// An explanation of an factor contributing to the security state. /// @@ -14494,10 +17073,7 @@ namespace CefSharp.DevTools.Security set; } } -} -namespace CefSharp.DevTools.Security -{ /// /// Information about insecure content on the page. /// @@ -14573,10 +17149,7 @@ namespace CefSharp.DevTools.Security set; } } -} -namespace CefSharp.DevTools.Security -{ /// /// The action to take when a certificate error occurs. continue will continue processing the /// request and cancel will cancel the request. @@ -14594,6 +17167,132 @@ namespace CefSharp.DevTools.Security [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventId")] + public int EventId + { + get; + private set; + } + + /// + /// The type of the error. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorType")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ErrorType + { + get; + private set; + } + + /// + /// The url that was requested. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("visibleSecurityState")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Security.VisibleSecurityState VisibleSecurityState + { + get; + private set; + } + } + + /// + /// The security state of the page changed. + /// + public class SecurityStateChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Security state. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityState")] + public CefSharp.DevTools.Security.SecurityState SecurityState + { + get; + private set; + } + + /// + /// True if the page was loaded over cryptographic transport such as HTTPS. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("schemeIsCryptographic")] + public bool SchemeIsCryptographic + { + get; + private set; + } + + /// + /// List of explanations for the security state. If the overall security state is `insecure` or + /// `warning`, at least one corresponding explanation should be included. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("explanations")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Explanations + { + get; + private set; + } + + /// + /// Information about insecure content on the page. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("insecureContentStatus")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Security.InsecureContentStatus InsecureContentStatus + { + get; + private set; + } + + /// + /// Overrides user-visible description of the state. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("summary")] + public string Summary + { + get; + private set; + } + } } namespace CefSharp.DevTools.ServiceWorker @@ -14635,10 +17334,7 @@ namespace CefSharp.DevTools.ServiceWorker set; } } -} -namespace CefSharp.DevTools.ServiceWorker -{ /// /// ServiceWorkerVersionRunningStatus /// @@ -14665,10 +17361,7 @@ namespace CefSharp.DevTools.ServiceWorker [System.Text.Json.Serialization.JsonPropertyNameAttribute("stopping")] Stopping } -} -namespace CefSharp.DevTools.ServiceWorker -{ /// /// ServiceWorkerVersionStatus /// @@ -14705,10 +17398,7 @@ namespace CefSharp.DevTools.ServiceWorker [System.Text.Json.Serialization.JsonPropertyNameAttribute("redundant")] Redundant } -} -namespace CefSharp.DevTools.ServiceWorker -{ /// /// ServiceWorker version. /// @@ -14771,7 +17461,7 @@ namespace CefSharp.DevTools.ServiceWorker /// The Last-Modified header value of the main script. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptLastModified")] - public long? ScriptLastModified + public double? ScriptLastModified { get; set; @@ -14782,7 +17472,7 @@ namespace CefSharp.DevTools.ServiceWorker /// For cached script it is the last time the cache entry was validated. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptResponseTime")] - public long? ScriptResponseTime + public double? ScriptResponseTime { get; set; @@ -14808,10 +17498,7 @@ namespace CefSharp.DevTools.ServiceWorker set; } } -} -namespace CefSharp.DevTools.ServiceWorker -{ /// /// ServiceWorker error message. /// @@ -14881,6 +17568,60 @@ namespace CefSharp.DevTools.ServiceWorker set; } } + + /// + /// workerErrorReported + /// + public class WorkerErrorReportedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ErrorMessage + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorMessage")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.ServiceWorker.ServiceWorkerErrorMessage ErrorMessage + { + get; + private set; + } + } + + /// + /// workerRegistrationUpdated + /// + public class WorkerRegistrationUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Registrations + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("registrations")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Registrations + { + get; + private set; + } + } + + /// + /// workerVersionUpdated + /// + public class WorkerVersionUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Versions + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("versions")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Versions + { + get; + private set; + } + } } namespace CefSharp.DevTools.Storage @@ -14946,10 +17687,7 @@ namespace CefSharp.DevTools.Storage [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] Other } -} -namespace CefSharp.DevTools.Storage -{ /// /// Usage for a storage type. /// @@ -14969,16 +17707,13 @@ namespace CefSharp.DevTools.Storage /// Storage usage (bytes). /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("usage")] - public long Usage + public double Usage { get; set; } } -} -namespace CefSharp.DevTools.Storage -{ /// /// Pair of issuer origin and number of available (signed, but not used) Trust /// Tokens from that issuer. @@ -15000,12 +17735,120 @@ namespace CefSharp.DevTools.Storage /// Count /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("count")] - public long Count + public double Count { get; set; } } + + /// + /// A cache's contents have been modified. + /// + public class CacheStorageContentUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Origin to update. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Origin + { + get; + private set; + } + + /// + /// Name of cache in origin. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Origin + { + get; + private set; + } + } + + /// + /// The origin's IndexedDB object store has been modified. + /// + public class IndexedDBContentUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Origin to update. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Origin + { + get; + private set; + } + + /// + /// Database to update. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("databaseName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string DatabaseName + { + get; + private set; + } + + /// + /// ObjectStore to update. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Origin + { + get; + private set; + } + } } namespace CefSharp.DevTools.SystemInfo @@ -15019,7 +17862,7 @@ namespace CefSharp.DevTools.SystemInfo /// PCI ID of the GPU vendor, if available; 0 otherwise. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("vendorId")] - public long VendorId + public double VendorId { get; set; @@ -15029,7 +17872,7 @@ namespace CefSharp.DevTools.SystemInfo /// PCI ID of the GPU device, if available; 0 otherwise. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("deviceId")] - public long DeviceId + public double DeviceId { get; set; @@ -15039,7 +17882,7 @@ namespace CefSharp.DevTools.SystemInfo /// Sub sys ID of the GPU, only available on Windows. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("subSysId")] - public long? SubSysId + public double? SubSysId { get; set; @@ -15049,7 +17892,7 @@ namespace CefSharp.DevTools.SystemInfo /// Revision of the GPU, only available on Windows. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("revision")] - public long? Revision + public double? Revision { get; set; @@ -15099,10 +17942,7 @@ namespace CefSharp.DevTools.SystemInfo set; } } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Describes the width and height dimensions of an entity. /// @@ -15128,10 +17968,7 @@ namespace CefSharp.DevTools.SystemInfo set; } } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Describes a supported video decoding profile with its associated minimum and /// maximum resolutions. @@ -15171,10 +18008,7 @@ namespace CefSharp.DevTools.SystemInfo set; } } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Describes a supported video encoding profile with its associated maximum /// resolution and maximum framerate. @@ -15225,10 +18059,7 @@ namespace CefSharp.DevTools.SystemInfo set; } } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// YUV subsampling type of the pixels of a given image. /// @@ -15250,10 +18081,7 @@ namespace CefSharp.DevTools.SystemInfo [System.Text.Json.Serialization.JsonPropertyNameAttribute("yuv444")] Yuv444 } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Image format of a given image. /// @@ -15275,10 +18103,7 @@ namespace CefSharp.DevTools.SystemInfo [System.Text.Json.Serialization.JsonPropertyNameAttribute("unknown")] Unknown } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Describes a supported image decoding profile with its associated minimum and /// maximum resolutions and subsampling. @@ -15327,10 +18152,7 @@ namespace CefSharp.DevTools.SystemInfo set; } } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Provides information about the GPU(s) on the system. /// @@ -15411,10 +18233,7 @@ namespace CefSharp.DevTools.SystemInfo set; } } -} -namespace CefSharp.DevTools.SystemInfo -{ /// /// Represents process info. /// @@ -15446,7 +18265,7 @@ namespace CefSharp.DevTools.SystemInfo /// process since the process start. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("cpuTime")] - public long CpuTime + public double CpuTime { get; set; @@ -15555,10 +18374,7 @@ namespace CefSharp.DevTools.Target set; } } -} -namespace CefSharp.DevTools.Target -{ /// /// RemoteLocation /// @@ -15585,6 +18401,247 @@ namespace CefSharp.DevTools.Target set; } } + + /// + /// 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sessionId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SessionId + { + get; + private set; + } + + /// + /// TargetInfo + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetInfo")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Target.TargetInfo TargetInfo + { + get; + private set; + } + + /// + /// WaitingForDebugger + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sessionId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SessionId + { + get; + private set; + } + + /// + /// Deprecated. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sessionId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SessionId + { + get; + private set; + } + + /// + /// Message + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Message + { + get; + private set; + } + + /// + /// Deprecated. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + public string TargetId + { + get; + private set; + } + } + + /// + /// Issued when a possible inspection target is created. + /// + public class TargetCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// TargetInfo + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string TargetId + { + get; + private set; + } + } + + /// + /// Issued when a target has crashed. + /// + public class TargetCrashedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// TargetId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string TargetId + { + get; + private set; + } + + /// + /// Termination status type. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Status + { + get; + private set; + } + + /// + /// Termination error code. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("port")] + public int Port + { + get; + private set; + } + + /// + /// Connection id to be used. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectionId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ConnectionId + { + get; + private set; + } + } } namespace CefSharp.DevTools.Tracing @@ -15674,10 +18731,7 @@ namespace CefSharp.DevTools.Tracing set; } } -} -namespace CefSharp.DevTools.Tracing -{ /// /// Data format of a trace. Can be either the legacy JSON format or the /// protocol buffer format. Note that the JSON format will be deprecated soon. @@ -15695,10 +18749,7 @@ namespace CefSharp.DevTools.Tracing [System.Text.Json.Serialization.JsonPropertyNameAttribute("proto")] Proto } -} -namespace CefSharp.DevTools.Tracing -{ /// /// Compression type to use for traces returned via streams. /// @@ -15715,10 +18766,7 @@ namespace CefSharp.DevTools.Tracing [System.Text.Json.Serialization.JsonPropertyNameAttribute("gzip")] Gzip } -} -namespace CefSharp.DevTools.Tracing -{ /// /// Details exposed when memory request explicitly declared. /// Keep consistent with memory_dump_request_args.h and @@ -15742,10 +18790,7 @@ namespace CefSharp.DevTools.Tracing [System.Text.Json.Serialization.JsonPropertyNameAttribute("detailed")] Detailed } -} -namespace CefSharp.DevTools.Tracing -{ /// /// Backend type to use for tracing. `chrome` uses the Chrome-integrated /// tracing service and is supported on all platforms. `system` is only @@ -15771,6 +18816,118 @@ namespace CefSharp.DevTools.Tracing [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("percentFull")] + public double? PercentFull + { + get; + private set; + } + + /// + /// An approximate number of events in the trace log. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public double? Value + { + get; + private set; + } + } + + /// + /// Contains an bucket of collected trace events. When tracing is stopped collected events will be + /// send as a sequence of dataCollected events followed by tracingComplete event. + /// + public class DataCollectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Value + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("dataLossOccurred")] + public bool DataLossOccurred + { + get; + private set; + } + + /// + /// A handle of the stream that holds resulting trace data. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stream")] + public string Stream + { + get; + private set; + } + + /// + /// Trace data format of returned stream. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("traceFormat")] + public CefSharp.DevTools.Tracing.StreamFormat? TraceFormat + { + get; + private set; + } + + /// + /// Compression format of returned stream. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("streamCompression")] + public CefSharp.DevTools.Tracing.StreamCompression? StreamCompression + { + get; + private set; + } + } } namespace CefSharp.DevTools.Fetch @@ -15793,10 +18950,7 @@ namespace CefSharp.DevTools.Fetch [System.Text.Json.Serialization.JsonPropertyNameAttribute("Response")] Response } -} -namespace CefSharp.DevTools.Fetch -{ /// /// RequestPattern /// @@ -15833,10 +18987,7 @@ namespace CefSharp.DevTools.Fetch set; } } -} -namespace CefSharp.DevTools.Fetch -{ /// /// Response HTTP header entry /// @@ -15864,10 +19015,7 @@ namespace CefSharp.DevTools.Fetch set; } } -} -namespace CefSharp.DevTools.Fetch -{ /// /// Authorization challenge for HTTP status code 401 or 407. /// @@ -15916,10 +19064,7 @@ namespace CefSharp.DevTools.Fetch set; } } -} -namespace CefSharp.DevTools.Fetch -{ /// /// Response to an AuthChallenge. /// @@ -15960,6 +19105,177 @@ namespace CefSharp.DevTools.Fetch 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. + /// + public class RequestPausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Each request the page makes will have a unique id. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// The details of the request. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Request Request + { + get; + private set; + } + + /// + /// The id of the frame that initiated the request. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + + /// + /// How the requested resource will be used. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceType")] + public CefSharp.DevTools.Network.ResourceType ResourceType + { + get; + private set; + } + + /// + /// Response error if intercepted at response stage. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseErrorReason")] + public CefSharp.DevTools.Network.ErrorReason? ResponseErrorReason + { + get; + private set; + } + + /// + /// Response code if intercepted at response stage. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseStatusCode")] + public int? ResponseStatusCode + { + get; + private set; + } + + /// + /// Response headers if intercepted at the response stage. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("networkId")] + public string NetworkId + { + 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } + + /// + /// The details of the request. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.Request Request + { + get; + private set; + } + + /// + /// The id of the frame that initiated the request. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FrameId + { + get; + private set; + } + + /// + /// How the requested resource will be used. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("authChallenge")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Fetch.AuthChallenge AuthChallenge + { + get; + private set; + } + } } namespace CefSharp.DevTools.WebAudio @@ -15980,10 +19296,7 @@ namespace CefSharp.DevTools.WebAudio [System.Text.Json.Serialization.JsonPropertyNameAttribute("offline")] Offline } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Enum of AudioContextState from the spec /// @@ -16005,10 +19318,7 @@ namespace CefSharp.DevTools.WebAudio [System.Text.Json.Serialization.JsonPropertyNameAttribute("closed")] Closed } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Enum of AudioNode::ChannelCountMode from the spec /// @@ -16030,10 +19340,7 @@ namespace CefSharp.DevTools.WebAudio [System.Text.Json.Serialization.JsonPropertyNameAttribute("max")] Max } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Enum of AudioNode::ChannelInterpretation from the spec /// @@ -16050,10 +19357,7 @@ namespace CefSharp.DevTools.WebAudio [System.Text.Json.Serialization.JsonPropertyNameAttribute("speakers")] Speakers } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Enum of AudioParam::AutomationRate from the spec /// @@ -16070,10 +19374,7 @@ namespace CefSharp.DevTools.WebAudio [System.Text.Json.Serialization.JsonPropertyNameAttribute("k-rate")] KRate } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Fields in AudioContext that change in real-time. /// @@ -16083,7 +19384,7 @@ namespace CefSharp.DevTools.WebAudio /// The current context time in second in BaseAudioContext. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentTime")] - public long CurrentTime + public double CurrentTime { get; set; @@ -16095,7 +19396,7 @@ namespace CefSharp.DevTools.WebAudio /// capacity and glitch may occur. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("renderCapacity")] - public long RenderCapacity + public double RenderCapacity { get; set; @@ -16105,7 +19406,7 @@ namespace CefSharp.DevTools.WebAudio /// A running mean of callback interval. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("callbackIntervalMean")] - public long CallbackIntervalMean + public double CallbackIntervalMean { get; set; @@ -16115,16 +19416,13 @@ namespace CefSharp.DevTools.WebAudio /// A running variance of callback interval. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("callbackIntervalVariance")] - public long CallbackIntervalVariance + public double CallbackIntervalVariance { get; set; } } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Protocol object for BaseAudioContext /// @@ -16175,7 +19473,7 @@ namespace CefSharp.DevTools.WebAudio /// Platform-dependent callback buffer size. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("callbackBufferSize")] - public long CallbackBufferSize + public double CallbackBufferSize { get; set; @@ -16185,7 +19483,7 @@ namespace CefSharp.DevTools.WebAudio /// Number of output channels supported by audio hardware in use. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxOutputChannelCount")] - public long MaxOutputChannelCount + public double MaxOutputChannelCount { get; set; @@ -16195,16 +19493,13 @@ namespace CefSharp.DevTools.WebAudio /// Context sample rate. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("sampleRate")] - public long SampleRate + public double SampleRate { get; set; } } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Protocol object for AudioListener /// @@ -16232,10 +19527,7 @@ namespace CefSharp.DevTools.WebAudio set; } } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Protocol object for AudioNode /// @@ -16278,7 +19570,7 @@ namespace CefSharp.DevTools.WebAudio /// NumberOfInputs /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("numberOfInputs")] - public long NumberOfInputs + public double NumberOfInputs { get; set; @@ -16288,7 +19580,7 @@ namespace CefSharp.DevTools.WebAudio /// NumberOfOutputs /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("numberOfOutputs")] - public long NumberOfOutputs + public double NumberOfOutputs { get; set; @@ -16298,7 +19590,7 @@ namespace CefSharp.DevTools.WebAudio /// ChannelCount /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("channelCount")] - public long ChannelCount + public double ChannelCount { get; set; @@ -16324,10 +19616,7 @@ namespace CefSharp.DevTools.WebAudio set; } } -} -namespace CefSharp.DevTools.WebAudio -{ /// /// Protocol object for AudioParam /// @@ -16391,7 +19680,7 @@ namespace CefSharp.DevTools.WebAudio /// DefaultValue /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("defaultValue")] - public long DefaultValue + public double DefaultValue { get; set; @@ -16401,7 +19690,7 @@ namespace CefSharp.DevTools.WebAudio /// MinValue /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("minValue")] - public long MinValue + public double MinValue { get; set; @@ -16411,12 +19700,456 @@ namespace CefSharp.DevTools.WebAudio /// MaxValue /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxValue")] - public long MaxValue + public double MaxValue { get; set; } } + + /// + /// Notifies that a new BaseAudioContext has been created. + /// + public class ContextCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Context + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ContextId + { + get; + private set; + } + + /// + /// ListenerId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ContextId + { + get; + private set; + } + + /// + /// NodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ContextId + { + get; + private set; + } + + /// + /// NodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string NodeId + { + get; + private set; + } + + /// + /// ParamId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("paramId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ParamId + { + get; + private set; + } + } + + /// + /// Notifies that two AudioNodes are connected. + /// + public class NodesConnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ContextId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ContextId + { + get; + private set; + } + + /// + /// SourceId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SourceId + { + get; + private set; + } + + /// + /// DestinationId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("destinationId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string DestinationId + { + get; + private set; + } + + /// + /// SourceOutputIndex + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceOutputIndex")] + public double? SourceOutputIndex + { + get; + private set; + } + + /// + /// DestinationInputIndex + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ContextId + { + get; + private set; + } + + /// + /// SourceId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SourceId + { + get; + private set; + } + + /// + /// DestinationId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("destinationId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string DestinationId + { + get; + private set; + } + + /// + /// SourceOutputIndex + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceOutputIndex")] + public double? SourceOutputIndex + { + get; + private set; + } + + /// + /// DestinationInputIndex + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("destinationInputIndex")] + public double? DestinationInputIndex + { + get; + private set; + } + } + + /// + /// Notifies that an AudioNode is connected to an AudioParam. + /// + public class NodeParamConnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ContextId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ContextId + { + get; + private set; + } + + /// + /// SourceId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SourceId + { + get; + private set; + } + + /// + /// DestinationId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("destinationId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string DestinationId + { + get; + private set; + } + + /// + /// SourceOutputIndex + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceOutputIndex")] + public double? SourceOutputIndex + { + get; + private set; + } + } + + /// + /// Notifies that an AudioNode is disconnected to an AudioParam. + /// + public class NodeParamDisconnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// ContextId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ContextId + { + get; + private set; + } + + /// + /// SourceId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SourceId + { + get; + private set; + } + + /// + /// DestinationId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("destinationId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string DestinationId + { + get; + private set; + } + + /// + /// SourceOutputIndex + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceOutputIndex")] + public double? SourceOutputIndex + { + get; + private set; + } + } } namespace CefSharp.DevTools.WebAuthn @@ -16437,10 +20170,7 @@ namespace CefSharp.DevTools.WebAuthn [System.Text.Json.Serialization.JsonPropertyNameAttribute("ctap2")] Ctap2 } -} -namespace CefSharp.DevTools.WebAuthn -{ /// /// Ctap2Version /// @@ -16457,10 +20187,7 @@ namespace CefSharp.DevTools.WebAuthn [System.Text.Json.Serialization.JsonPropertyNameAttribute("ctap2_1")] Ctap21 } -} -namespace CefSharp.DevTools.WebAuthn -{ /// /// AuthenticatorTransport /// @@ -16492,10 +20219,7 @@ namespace CefSharp.DevTools.WebAuthn [System.Text.Json.Serialization.JsonPropertyNameAttribute("internal")] Internal } -} -namespace CefSharp.DevTools.WebAuthn -{ /// /// VirtualAuthenticatorOptions /// @@ -16585,10 +20309,7 @@ namespace CefSharp.DevTools.WebAuthn set; } } -} -namespace CefSharp.DevTools.WebAuthn -{ /// /// Credential /// @@ -16711,10 +20432,7 @@ namespace CefSharp.DevTools.Media set; } } -} -namespace CefSharp.DevTools.Media -{ /// /// Corresponds to kMediaPropertyChange /// @@ -16742,10 +20460,7 @@ namespace CefSharp.DevTools.Media set; } } -} -namespace CefSharp.DevTools.Media -{ /// /// Corresponds to kMediaEventTriggered /// @@ -16755,7 +20470,7 @@ namespace CefSharp.DevTools.Media /// Timestamp /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] - public long Timestamp + public double Timestamp { get; set; @@ -16772,10 +20487,7 @@ namespace CefSharp.DevTools.Media set; } } -} -namespace CefSharp.DevTools.Media -{ /// /// Corresponds to kMediaError /// @@ -16807,6 +20519,148 @@ namespace CefSharp.DevTools.Media 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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("playerId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PlayerId + { + get; + private set; + } + + /// + /// Properties + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("playerId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PlayerId + { + get; + private set; + } + + /// + /// Events + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("playerId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PlayerId + { + get; + private set; + } + + /// + /// Messages + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("playerId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PlayerId + { + get; + private set; + } + + /// + /// Errors + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 recieves + /// a list of active players. If an agent is restored, it will recieve the full + /// list of player ids and all events again. + /// + public class PlayersCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Players + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("players")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] Players + { + get; + private set; + } + } } namespace CefSharp.DevTools.Debugger @@ -16847,10 +20701,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// Location in the source code. /// @@ -16876,10 +20727,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// Location range within one script. /// @@ -16918,10 +20766,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// JavaScript call frame. Array of call frames form the call stack. /// @@ -17013,10 +20858,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// Scope description. /// @@ -17076,10 +20918,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// Search match for resource. /// @@ -17089,7 +20928,7 @@ namespace CefSharp.DevTools.Debugger /// Line number in resource content. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] - public long LineNumber + public double LineNumber { get; set; @@ -17106,10 +20945,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// BreakLocation /// @@ -17156,10 +20992,7 @@ namespace CefSharp.DevTools.Debugger set; } } -} -namespace CefSharp.DevTools.Debugger -{ /// /// Enum of possible script languages. /// @@ -17176,10 +21009,7 @@ namespace CefSharp.DevTools.Debugger [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebAssembly")] WebAssembly } -} -namespace CefSharp.DevTools.Debugger -{ /// /// Debug symbols available for a wasm script. /// @@ -17206,6 +21036,536 @@ namespace CefSharp.DevTools.Debugger set; } } + + /// + /// Fired when breakpoint is resolved to an actual script and location. + /// + public class BreakpointResolvedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Breakpoint unique identifier. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("breakpointId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string BreakpointId + { + get; + private set; + } + + /// + /// Actual breakpoint location. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("location")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Debugger.Location Location + { + get; + private set; + } + } + + /// + /// 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrames")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList CallFrames + { + get; + private set; + } + + /// + /// Pause reason. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Reason + { + get; + private set; + } + + /// + /// Object containing break-specific auxiliary properties. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + public object Data + { + get; + private set; + } + + /// + /// Hit breakpoints IDs + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hitBreakpoints")] + public string[] HitBreakpoints + { + get; + private set; + } + + /// + /// Async stack trace, if any. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncStackTrace")] + public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace + { + get; + private set; + } + + /// + /// Async stack trace, if any. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncStackTraceId")] + public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId + { + get; + private set; + } + + /// + /// Never present, will be removed. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ScriptId + { + get; + private set; + } + + /// + /// URL or name of the script parsed (if any). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startLine")] + public int StartLine + { + get; + private set; + } + + /// + /// Column offset of the script within the resource with given URL. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startColumn")] + public int StartColumn + { + get; + private set; + } + + /// + /// Last line of the script. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endLine")] + public int EndLine + { + get; + private set; + } + + /// + /// Length of the last line of the script. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endColumn")] + public int EndColumn + { + get; + private set; + } + + /// + /// Specifies script creation context. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + public int ExecutionContextId + { + get; + private set; + } + + /// + /// Content hash of the script. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hash")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Hash + { + get; + private set; + } + + /// + /// Embedder-specific auxiliary data. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextAuxData")] + public object ExecutionContextAuxData + { + get; + private set; + } + + /// + /// URL of source map associated with script (if any). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceMapURL")] + public string SourceMapURL + { + get; + private set; + } + + /// + /// True, if this script has sourceURL. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasSourceURL")] + public bool? HasSourceURL + { + get; + private set; + } + + /// + /// True, if this script is ES6 module. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isModule")] + public bool? IsModule + { + get; + private set; + } + + /// + /// This script length. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("length")] + public int? Length + { + get; + private set; + } + + /// + /// JavaScript top stack frame of where the script parsed event was triggered if available. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackTrace")] + public CefSharp.DevTools.Runtime.StackTrace StackTrace + { + get; + private set; + } + + /// + /// If the scriptLanguage is WebAssembly, the code section offset in the module. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("codeOffset")] + public int? CodeOffset + { + get; + private set; + } + + /// + /// The language of the script. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptLanguage")] + public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage + { + get; + private set; + } + + /// + /// The name the embedder supplied for this script. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ScriptId + { + get; + private set; + } + + /// + /// URL or name of the script parsed (if any). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startLine")] + public int StartLine + { + get; + private set; + } + + /// + /// Column offset of the script within the resource with given URL. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("startColumn")] + public int StartColumn + { + get; + private set; + } + + /// + /// Last line of the script. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endLine")] + public int EndLine + { + get; + private set; + } + + /// + /// Length of the last line of the script. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("endColumn")] + public int EndColumn + { + get; + private set; + } + + /// + /// Specifies script creation context. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + public int ExecutionContextId + { + get; + private set; + } + + /// + /// Content hash of the script. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hash")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Hash + { + get; + private set; + } + + /// + /// Embedder-specific auxiliary data. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextAuxData")] + public object ExecutionContextAuxData + { + get; + private set; + } + + /// + /// True, if this script is generated as a result of the live edit operation. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isLiveEdit")] + public bool? IsLiveEdit + { + get; + private set; + } + + /// + /// URL of source map associated with script (if any). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceMapURL")] + public string SourceMapURL + { + get; + private set; + } + + /// + /// True, if this script has sourceURL. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasSourceURL")] + public bool? HasSourceURL + { + get; + private set; + } + + /// + /// True, if this script is ES6 module. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("isModule")] + public bool? IsModule + { + get; + private set; + } + + /// + /// This script length. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("length")] + public int? Length + { + get; + private set; + } + + /// + /// JavaScript top stack frame of where the script parsed event was triggered if available. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackTrace")] + public CefSharp.DevTools.Runtime.StackTrace StackTrace + { + get; + private set; + } + + /// + /// If the scriptLanguage is WebAssembly, the code section offset in the module. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("codeOffset")] + public int? CodeOffset + { + get; + private set; + } + + /// + /// The language of the script. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptLanguage")] + public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage + { + get; + private set; + } + + /// + /// If the scriptLanguage is WebASsembly, the source of debug symbols for the module. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("debugSymbols")] + public CefSharp.DevTools.Debugger.DebugSymbols DebugSymbols + { + get; + private set; + } + + /// + /// The name the embedder supplied for this script. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("embedderName")] + public string EmbedderName + { + get; + private set; + } + } } namespace CefSharp.DevTools.HeapProfiler @@ -17230,7 +21590,7 @@ namespace CefSharp.DevTools.HeapProfiler /// Allocations size in bytes for the node excluding children. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("selfSize")] - public long SelfSize + public double SelfSize { get; set; @@ -17257,10 +21617,7 @@ namespace CefSharp.DevTools.HeapProfiler set; } } -} -namespace CefSharp.DevTools.HeapProfiler -{ /// /// A single sample from a sampling profile. /// @@ -17270,7 +21627,7 @@ namespace CefSharp.DevTools.HeapProfiler /// Allocation size in bytes attributed to the sample. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] - public long Size + public double Size { get; set; @@ -17291,16 +21648,13 @@ namespace CefSharp.DevTools.HeapProfiler /// between startSampling and stopSampling. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ordinal")] - public long Ordinal + public double Ordinal { get; set; } } -} -namespace CefSharp.DevTools.HeapProfiler -{ /// /// Sampling profile. /// @@ -17328,6 +21682,112 @@ namespace CefSharp.DevTools.HeapProfiler set; } } + + /// + /// addHeapSnapshotChunk + /// + public class AddHeapSnapshotChunkEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Chunk + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lastSeenObjectId")] + public int LastSeenObjectId + { + get; + private set; + } + + /// + /// Timestamp + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + } + + /// + /// reportHeapSnapshotProgress + /// + public class ReportHeapSnapshotProgressEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Done + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("done")] + public int Done + { + get; + private set; + } + + /// + /// Total + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("total")] + public int Total + { + get; + private set; + } + + /// + /// Finished + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("finished")] + public bool? Finished + { + get; + private set; + } + } } namespace CefSharp.DevTools.Profiler @@ -17399,10 +21859,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Profile. /// @@ -17423,7 +21880,7 @@ namespace CefSharp.DevTools.Profiler /// Profiling start timestamp in microseconds. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("startTime")] - public long StartTime + public double StartTime { get; set; @@ -17433,7 +21890,7 @@ namespace CefSharp.DevTools.Profiler /// Profiling end timestamp in microseconds. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("endTime")] - public long EndTime + public double EndTime { get; set; @@ -17460,10 +21917,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Specifies a number of samples attributed to a certain source position. /// @@ -17489,10 +21943,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Coverage data for a source range. /// @@ -17528,10 +21979,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Coverage data for a JavaScript function. /// @@ -17569,10 +22017,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Coverage data for a JavaScript script. /// @@ -17611,10 +22056,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Describes a type collected during runtime. /// @@ -17631,10 +22073,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Source offset and types for a parameter or return value. /// @@ -17661,10 +22100,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Type profile data collected during runtime for a JavaScript script. /// @@ -17703,10 +22139,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Collected counter information. /// @@ -17733,10 +22166,7 @@ namespace CefSharp.DevTools.Profiler set; } } -} -namespace CefSharp.DevTools.Profiler -{ /// /// Runtime call counter information. /// @@ -17757,7 +22187,7 @@ namespace CefSharp.DevTools.Profiler /// Counter value. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] - public long Value + public double Value { get; set; @@ -17767,12 +22197,150 @@ namespace CefSharp.DevTools.Profiler /// Counter time in seconds. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("time")] - public long Time + public double Time { get; set; } } + + /// + /// consoleProfileFinished + /// + public class ConsoleProfileFinishedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + private set; + } + + /// + /// Location of console.profileEnd(). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("location")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Debugger.Location Location + { + get; + private set; + } + + /// + /// Profile + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Profiler.Profile Profile + { + get; + private set; + } + + /// + /// Profile title passed as an argument to console.profile(). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + private set; + } + + /// + /// Location of console.profile(). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("location")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Debugger.Location Location + { + get; + private set; + } + + /// + /// Profile title passed as an argument to console.profile(). + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 immediatelly 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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// Identifier for distinguishing coverage events. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("occassion")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Occassion + { + get; + private set; + } + + /// + /// Coverage data for the current isolate. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Result + { + get; + private set; + } + } } namespace CefSharp.DevTools.Runtime @@ -17876,10 +22444,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// CustomPreview /// @@ -17909,10 +22474,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Object containing abbreviated remote object value. /// @@ -17980,10 +22542,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// PropertyPreview /// @@ -18041,10 +22600,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// EntryPreview /// @@ -18071,10 +22627,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Object property descriptor. /// @@ -18185,10 +22738,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Object internal property descriptor. This property isn't normally visible in JavaScript code. /// @@ -18215,10 +22765,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Object private field descriptor. /// @@ -18267,10 +22814,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Represents function call argument. Either remote object id `objectId`, primitive `value`, /// unserializable primitive value or neither of (for undefined) them should be specified. @@ -18307,10 +22851,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Description of an isolated world. /// @@ -18372,10 +22913,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Detailed information about exception (or error) that was thrown during script compilation or /// execution. @@ -18473,10 +23011,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Stack entry for runtime errors and assertions. /// @@ -18535,10 +23070,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// Call frames for assertions or error messages. /// @@ -18586,10 +23118,7 @@ namespace CefSharp.DevTools.Runtime set; } } -} -namespace CefSharp.DevTools.Runtime -{ /// /// If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This /// allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages. @@ -18617,6 +23146,249 @@ namespace CefSharp.DevTools.Runtime set; } } + + /// + /// Notification is issued every time when binding is called. + /// + public class BindingCalledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Name + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + private set; + } + + /// + /// Payload + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("payload")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Payload + { + get; + private set; + } + + /// + /// Identifier of the context where the call was made. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + public int ExecutionContextId + { + get; + private set; + } + } + + /// + /// Issued when console API was called. + /// + public class ConsoleAPICalledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Type of the call. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type + { + get; + private set; + } + + /// + /// Call arguments. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("args")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Args + { + get; + private set; + } + + /// + /// Identifier of the context where the call was made. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + public int ExecutionContextId + { + get; + private set; + } + + /// + /// Call timestamp. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Reason + { + get; + private set; + } + + /// + /// The id of revoked exception, as reported in `exceptionThrown`. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionId")] + public int ExceptionId + { + get; + private set; + } + } + + /// + /// Issued when exception was thrown and unhandled. + /// + public class ExceptionThrownEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Timestamp of the exception. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// ExceptionDetails + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + public int ExecutionContextId + { + 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 + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("object")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Runtime.RemoteObject Object + { + get; + private set; + } + + /// + /// Hints + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hints")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public object Hints + { + get; + private set; + } + } } namespace CefSharp.DevTools.Accessibility @@ -18874,7 +23646,7 @@ namespace CefSharp.DevTools.Animation /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentTime")] - public long CurrentTime + public double CurrentTime { get; private set; @@ -18894,7 +23666,7 @@ namespace CefSharp.DevTools.Animation /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("playbackRate")] - public long PlaybackRate + public double PlaybackRate { get; private set; @@ -18941,6 +23713,108 @@ namespace CefSharp.DevTools.Animation _client = (client); } + private System.EventHandler _AnimationCanceled; + /// + /// Event for when an animation has been cancelled. + /// + public event System.EventHandler AnimationCanceled + { + add + { + if ((_AnimationCanceled) == (null)) + { + _client.DevToolsEvent += (OnAnimationCanceled); + } + + _AnimationCanceled += (value); + } + + remove + { + _AnimationCanceled -= (value); + if ((_AnimationCanceled) == (null)) + { + _client.DevToolsEvent -= (OnAnimationCanceled); + } + } + } + + private void OnAnimationCanceled(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Animation.animationCanceled")) + { + _AnimationCanceled?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AnimationCreated; + /// + /// Event for each animation that has been created. + /// + public event System.EventHandler AnimationCreated + { + add + { + if ((_AnimationCreated) == (null)) + { + _client.DevToolsEvent += (OnAnimationCreated); + } + + _AnimationCreated += (value); + } + + remove + { + _AnimationCreated -= (value); + if ((_AnimationCreated) == (null)) + { + _client.DevToolsEvent -= (OnAnimationCreated); + } + } + } + + private void OnAnimationCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Animation.animationCreated")) + { + _AnimationCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AnimationStarted; + /// + /// Event for animation that has been started. + /// + public event System.EventHandler AnimationStarted + { + add + { + if ((_AnimationStarted) == (null)) + { + _client.DevToolsEvent += (OnAnimationStarted); + } + + _AnimationStarted += (value); + } + + remove + { + _AnimationStarted -= (value); + if ((_AnimationStarted) == (null)) + { + _client.DevToolsEvent -= (OnAnimationStarted); + } + } + } + + private void OnAnimationStarted(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Animation.animationStarted")) + { + _AnimationStarted?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Disables animation domain notifications. /// @@ -19019,14 +23893,14 @@ namespace CefSharp.DevTools.Animation return methodResult.DeserializeJson(); } - partial void ValidateSeekAnimations(string[] animations, long currentTime); + 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 async System.Threading.Tasks.Task SeekAnimationsAsync(string[] animations, long currentTime) + public async System.Threading.Tasks.Task SeekAnimationsAsync(string[] animations, double currentTime) { ValidateSeekAnimations(animations, currentTime); var dict = new System.Collections.Generic.Dictionary(); @@ -19053,13 +23927,13 @@ namespace CefSharp.DevTools.Animation return methodResult; } - partial void ValidateSetPlaybackRate(long playbackRate); + 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 async System.Threading.Tasks.Task SetPlaybackRateAsync(long playbackRate) + public async System.Threading.Tasks.Task SetPlaybackRateAsync(double playbackRate) { ValidateSetPlaybackRate(playbackRate); var dict = new System.Collections.Generic.Dictionary(); @@ -19068,7 +23942,7 @@ namespace CefSharp.DevTools.Animation return methodResult; } - partial void ValidateSetTiming(string animationId, long duration, long delay); + partial void ValidateSetTiming(string animationId, double duration, double delay); /// /// Sets the timing of an animation node. /// @@ -19076,7 +23950,7 @@ namespace CefSharp.DevTools.Animation /// Duration of the animation. /// Delay of the animation. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task SetTimingAsync(string animationId, long duration, long delay) + public async System.Threading.Tasks.Task SetTimingAsync(string animationId, double duration, double delay) { ValidateSetTiming(animationId, duration, delay); var dict = new System.Collections.Generic.Dictionary(); @@ -19168,6 +24042,74 @@ namespace CefSharp.DevTools.ApplicationCache _client = (client); } + private System.EventHandler _ApplicationCacheStatusUpdated; + /// + /// ApplicationCacheStatusUpdated + /// + public event System.EventHandler ApplicationCacheStatusUpdated + { + add + { + if ((_ApplicationCacheStatusUpdated) == (null)) + { + _client.DevToolsEvent += (OnApplicationCacheStatusUpdated); + } + + _ApplicationCacheStatusUpdated += (value); + } + + remove + { + _ApplicationCacheStatusUpdated -= (value); + if ((_ApplicationCacheStatusUpdated) == (null)) + { + _client.DevToolsEvent -= (OnApplicationCacheStatusUpdated); + } + } + } + + private void OnApplicationCacheStatusUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("ApplicationCache.applicationCacheStatusUpdated")) + { + _ApplicationCacheStatusUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NetworkStateUpdated; + /// + /// NetworkStateUpdated + /// + public event System.EventHandler NetworkStateUpdated + { + add + { + if ((_NetworkStateUpdated) == (null)) + { + _client.DevToolsEvent += (OnNetworkStateUpdated); + } + + _NetworkStateUpdated += (value); + } + + remove + { + _NetworkStateUpdated -= (value); + if ((_NetworkStateUpdated) == (null)) + { + _client.DevToolsEvent -= (OnNetworkStateUpdated); + } + } + } + + private void OnNetworkStateUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("ApplicationCache.networkStateUpdated")) + { + _NetworkStateUpdated?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Enables application cache domain notifications. /// @@ -19284,7 +24226,41 @@ namespace CefSharp.DevTools.Audits _client = (client); } - partial void ValidateGetEncodedResponse(string requestId, string encoding, long? quality = null, bool? sizeOnly = null); + private System.EventHandler _IssueAdded; + /// + /// IssueAdded + /// + public event System.EventHandler IssueAdded + { + add + { + if ((_IssueAdded) == (null)) + { + _client.DevToolsEvent += (OnIssueAdded); + } + + _IssueAdded += (value); + } + + remove + { + _IssueAdded -= (value); + if ((_IssueAdded) == (null)) + { + _client.DevToolsEvent -= (OnIssueAdded); + } + } + } + + private void OnIssueAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Audits.issueAdded")) + { + _IssueAdded?.Invoke(this, args.DeserializeJson()); + } + } + + partial void ValidateGetEncodedResponse(string requestId, string 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. @@ -19294,7 +24270,7 @@ namespace CefSharp.DevTools.Audits /// The quality of the encoding (0-1). (defaults to 1) /// Whether to only return the size information (defaults to false). /// returns System.Threading.Tasks.Task<GetEncodedResponseResponse> - public async System.Threading.Tasks.Task GetEncodedResponseAsync(string requestId, string encoding, long? quality = null, bool? sizeOnly = null) + public async System.Threading.Tasks.Task GetEncodedResponseAsync(string requestId, string encoding, double? quality = null, bool? sizeOnly = null) { ValidateGetEncodedResponse(requestId, encoding, quality, sizeOnly); var dict = new System.Collections.Generic.Dictionary(); @@ -19378,6 +24354,75 @@ namespace CefSharp.DevTools.BackgroundService _client = (client); } + private System.EventHandler _RecordingStateChanged; + /// + /// Called when the recording state for the service has been updated. + /// + public event System.EventHandler RecordingStateChanged + { + add + { + if ((_RecordingStateChanged) == (null)) + { + _client.DevToolsEvent += (OnRecordingStateChanged); + } + + _RecordingStateChanged += (value); + } + + remove + { + _RecordingStateChanged -= (value); + if ((_RecordingStateChanged) == (null)) + { + _client.DevToolsEvent -= (OnRecordingStateChanged); + } + } + } + + private void OnRecordingStateChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("BackgroundService.recordingStateChanged")) + { + _RecordingStateChanged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _BackgroundServiceEventReceived; + /// + /// Called with all existing backgroundServiceEvents when enabled, and all new + /// events afterwards if enabled and recording. + /// + public event System.EventHandler BackgroundServiceEventReceived + { + add + { + if ((_BackgroundServiceEventReceived) == (null)) + { + _client.DevToolsEvent += (OnBackgroundServiceEventReceived); + } + + _BackgroundServiceEventReceived += (value); + } + + remove + { + _BackgroundServiceEventReceived -= (value); + if ((_BackgroundServiceEventReceived) == (null)) + { + _client.DevToolsEvent -= (OnBackgroundServiceEventReceived); + } + } + } + + private void OnBackgroundServiceEventReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("BackgroundService.backgroundServiceEventReceived")) + { + _BackgroundServiceEventReceived?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateStartObserving(CefSharp.DevTools.BackgroundService.ServiceName service); /// /// Enables event updates for the service. @@ -19636,6 +24681,74 @@ namespace CefSharp.DevTools.Browser _client = (client); } + private System.EventHandler _DownloadWillBegin; + /// + /// Fired when page is about to start a download. + /// + public event System.EventHandler DownloadWillBegin + { + add + { + if ((_DownloadWillBegin) == (null)) + { + _client.DevToolsEvent += (OnDownloadWillBegin); + } + + _DownloadWillBegin += (value); + } + + remove + { + _DownloadWillBegin -= (value); + if ((_DownloadWillBegin) == (null)) + { + _client.DevToolsEvent -= (OnDownloadWillBegin); + } + } + } + + private void OnDownloadWillBegin(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Browser.downloadWillBegin")) + { + _DownloadWillBegin?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DownloadProgress; + /// + /// Fired when download makes progress. Last call has |done| == true. + /// + public event System.EventHandler DownloadProgress + { + add + { + if ((_DownloadProgress) == (null)) + { + _client.DevToolsEvent += (OnDownloadProgress); + } + + _DownloadProgress += (value); + } + + remove + { + _DownloadProgress -= (value); + if ((_DownloadProgress) == (null)) + { + _client.DevToolsEvent -= (OnDownloadProgress); + } + } + } + + private void OnDownloadProgress(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Browser.downloadProgress")) + { + _DownloadProgress?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateSetPermission(CefSharp.DevTools.Browser.PermissionDescriptor permission, CefSharp.DevTools.Browser.PermissionSetting setting, string origin = null, string browserContextId = null); /// /// Set permission settings for given origin. @@ -20411,7 +25524,7 @@ namespace CefSharp.DevTools.CSS /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] - public long Timestamp + public double Timestamp { get; private set; @@ -20443,6 +25556,178 @@ namespace CefSharp.DevTools.CSS _client = (client); } + private System.EventHandler _FontsUpdated; + /// + /// Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded + /// web font + /// + public event System.EventHandler FontsUpdated + { + add + { + if ((_FontsUpdated) == (null)) + { + _client.DevToolsEvent += (OnFontsUpdated); + } + + _FontsUpdated += (value); + } + + remove + { + _FontsUpdated -= (value); + if ((_FontsUpdated) == (null)) + { + _client.DevToolsEvent -= (OnFontsUpdated); + } + } + } + + private void OnFontsUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("CSS.fontsUpdated")) + { + _FontsUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _MediaQueryResultChanged; + /// + /// 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 + { + if ((_MediaQueryResultChanged) == (null)) + { + _client.DevToolsEvent += (OnMediaQueryResultChanged); + } + + _MediaQueryResultChanged += (value); + } + + remove + { + _MediaQueryResultChanged -= (value); + if ((_MediaQueryResultChanged) == (null)) + { + _client.DevToolsEvent -= (OnMediaQueryResultChanged); + } + } + } + + private void OnMediaQueryResultChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("CSS.mediaQueryResultChanged")) + { + _MediaQueryResultChanged?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _StyleSheetAdded; + /// + /// Fired whenever an active document stylesheet is added. + /// + public event System.EventHandler StyleSheetAdded + { + add + { + if ((_StyleSheetAdded) == (null)) + { + _client.DevToolsEvent += (OnStyleSheetAdded); + } + + _StyleSheetAdded += (value); + } + + remove + { + _StyleSheetAdded -= (value); + if ((_StyleSheetAdded) == (null)) + { + _client.DevToolsEvent -= (OnStyleSheetAdded); + } + } + } + + private void OnStyleSheetAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("CSS.styleSheetAdded")) + { + _StyleSheetAdded?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _StyleSheetChanged; + /// + /// Fired whenever a stylesheet is changed as a result of the client operation. + /// + public event System.EventHandler StyleSheetChanged + { + add + { + if ((_StyleSheetChanged) == (null)) + { + _client.DevToolsEvent += (OnStyleSheetChanged); + } + + _StyleSheetChanged += (value); + } + + remove + { + _StyleSheetChanged -= (value); + if ((_StyleSheetChanged) == (null)) + { + _client.DevToolsEvent -= (OnStyleSheetChanged); + } + } + } + + private void OnStyleSheetChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("CSS.styleSheetChanged")) + { + _StyleSheetChanged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _StyleSheetRemoved; + /// + /// Fired whenever an active document stylesheet is removed. + /// + public event System.EventHandler StyleSheetRemoved + { + add + { + if ((_StyleSheetRemoved) == (null)) + { + _client.DevToolsEvent += (OnStyleSheetRemoved); + } + + _StyleSheetRemoved += (value); + } + + remove + { + _StyleSheetRemoved -= (value); + if ((_StyleSheetRemoved) == (null)) + { + _client.DevToolsEvent -= (OnStyleSheetRemoved); + } + } + } + + private void OnStyleSheetRemoved(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("CSS.styleSheetRemoved")) + { + _StyleSheetRemoved?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateAddRule(string styleSheetId, string ruleText, CefSharp.DevTools.CSS.SourceRange location); /// /// Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the @@ -20892,7 +26177,7 @@ namespace CefSharp.DevTools.CacheStorage /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("returnCount")] - public long ReturnCount + public double ReturnCount { get; private set; @@ -21040,6 +26325,76 @@ namespace CefSharp.DevTools.Cast _client = (client); } + private System.EventHandler _SinksUpdated; + /// + /// 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 + { + if ((_SinksUpdated) == (null)) + { + _client.DevToolsEvent += (OnSinksUpdated); + } + + _SinksUpdated += (value); + } + + remove + { + _SinksUpdated -= (value); + if ((_SinksUpdated) == (null)) + { + _client.DevToolsEvent -= (OnSinksUpdated); + } + } + } + + private void OnSinksUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Cast.sinksUpdated")) + { + _SinksUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _IssueUpdated; + /// + /// This is fired whenever the outstanding issue/error message changes. + /// |issueMessage| is empty if there is no issue. + /// + public event System.EventHandler IssueUpdated + { + add + { + if ((_IssueUpdated) == (null)) + { + _client.DevToolsEvent += (OnIssueUpdated); + } + + _IssueUpdated += (value); + } + + remove + { + _IssueUpdated -= (value); + if ((_IssueUpdated) == (null)) + { + _client.DevToolsEvent -= (OnIssueUpdated); + } + } + } + + private void OnIssueUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Cast.issueUpdated")) + { + _IssueUpdated?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateEnable(string presentationUrl = null); /// /// Starts observing for sinks that can be used for tab mirroring, and if set, @@ -21234,7 +26589,7 @@ namespace CefSharp.DevTools.DOM /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("quads")] - public long[] Quads + public double[] Quads { get; private set; @@ -21671,6 +27026,483 @@ namespace CefSharp.DevTools.DOM _client = (client); } + private System.EventHandler _AttributeModified; + /// + /// Fired when `Element`'s attribute is modified. + /// + public event System.EventHandler AttributeModified + { + add + { + if ((_AttributeModified) == (null)) + { + _client.DevToolsEvent += (OnAttributeModified); + } + + _AttributeModified += (value); + } + + remove + { + _AttributeModified -= (value); + if ((_AttributeModified) == (null)) + { + _client.DevToolsEvent -= (OnAttributeModified); + } + } + } + + private void OnAttributeModified(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.attributeModified")) + { + _AttributeModified?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AttributeRemoved; + /// + /// Fired when `Element`'s attribute is removed. + /// + public event System.EventHandler AttributeRemoved + { + add + { + if ((_AttributeRemoved) == (null)) + { + _client.DevToolsEvent += (OnAttributeRemoved); + } + + _AttributeRemoved += (value); + } + + remove + { + _AttributeRemoved -= (value); + if ((_AttributeRemoved) == (null)) + { + _client.DevToolsEvent -= (OnAttributeRemoved); + } + } + } + + private void OnAttributeRemoved(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.attributeRemoved")) + { + _AttributeRemoved?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _CharacterDataModified; + /// + /// Mirrors `DOMCharacterDataModified` event. + /// + public event System.EventHandler CharacterDataModified + { + add + { + if ((_CharacterDataModified) == (null)) + { + _client.DevToolsEvent += (OnCharacterDataModified); + } + + _CharacterDataModified += (value); + } + + remove + { + _CharacterDataModified -= (value); + if ((_CharacterDataModified) == (null)) + { + _client.DevToolsEvent -= (OnCharacterDataModified); + } + } + } + + private void OnCharacterDataModified(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.characterDataModified")) + { + _CharacterDataModified?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ChildNodeCountUpdated; + /// + /// Fired when `Container`'s child node count has changed. + /// + public event System.EventHandler ChildNodeCountUpdated + { + add + { + if ((_ChildNodeCountUpdated) == (null)) + { + _client.DevToolsEvent += (OnChildNodeCountUpdated); + } + + _ChildNodeCountUpdated += (value); + } + + remove + { + _ChildNodeCountUpdated -= (value); + if ((_ChildNodeCountUpdated) == (null)) + { + _client.DevToolsEvent -= (OnChildNodeCountUpdated); + } + } + } + + private void OnChildNodeCountUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.childNodeCountUpdated")) + { + _ChildNodeCountUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ChildNodeInserted; + /// + /// Mirrors `DOMNodeInserted` event. + /// + public event System.EventHandler ChildNodeInserted + { + add + { + if ((_ChildNodeInserted) == (null)) + { + _client.DevToolsEvent += (OnChildNodeInserted); + } + + _ChildNodeInserted += (value); + } + + remove + { + _ChildNodeInserted -= (value); + if ((_ChildNodeInserted) == (null)) + { + _client.DevToolsEvent -= (OnChildNodeInserted); + } + } + } + + private void OnChildNodeInserted(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.childNodeInserted")) + { + _ChildNodeInserted?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ChildNodeRemoved; + /// + /// Mirrors `DOMNodeRemoved` event. + /// + public event System.EventHandler ChildNodeRemoved + { + add + { + if ((_ChildNodeRemoved) == (null)) + { + _client.DevToolsEvent += (OnChildNodeRemoved); + } + + _ChildNodeRemoved += (value); + } + + remove + { + _ChildNodeRemoved -= (value); + if ((_ChildNodeRemoved) == (null)) + { + _client.DevToolsEvent -= (OnChildNodeRemoved); + } + } + } + + private void OnChildNodeRemoved(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.childNodeRemoved")) + { + _ChildNodeRemoved?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DistributedNodesUpdated; + /// + /// Called when distrubution is changed. + /// + public event System.EventHandler DistributedNodesUpdated + { + add + { + if ((_DistributedNodesUpdated) == (null)) + { + _client.DevToolsEvent += (OnDistributedNodesUpdated); + } + + _DistributedNodesUpdated += (value); + } + + remove + { + _DistributedNodesUpdated -= (value); + if ((_DistributedNodesUpdated) == (null)) + { + _client.DevToolsEvent -= (OnDistributedNodesUpdated); + } + } + } + + private void OnDistributedNodesUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.distributedNodesUpdated")) + { + _DistributedNodesUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DocumentUpdated; + /// + /// Fired when `Document` has been totally updated. Node ids are no longer valid. + /// + public event System.EventHandler DocumentUpdated + { + add + { + if ((_DocumentUpdated) == (null)) + { + _client.DevToolsEvent += (OnDocumentUpdated); + } + + _DocumentUpdated += (value); + } + + remove + { + _DocumentUpdated -= (value); + if ((_DocumentUpdated) == (null)) + { + _client.DevToolsEvent -= (OnDocumentUpdated); + } + } + } + + private void OnDocumentUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.documentUpdated")) + { + _DocumentUpdated?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _InlineStyleInvalidated; + /// + /// Fired when `Element`'s inline style is modified via a CSS property modification. + /// + public event System.EventHandler InlineStyleInvalidated + { + add + { + if ((_InlineStyleInvalidated) == (null)) + { + _client.DevToolsEvent += (OnInlineStyleInvalidated); + } + + _InlineStyleInvalidated += (value); + } + + remove + { + _InlineStyleInvalidated -= (value); + if ((_InlineStyleInvalidated) == (null)) + { + _client.DevToolsEvent -= (OnInlineStyleInvalidated); + } + } + } + + private void OnInlineStyleInvalidated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.inlineStyleInvalidated")) + { + _InlineStyleInvalidated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PseudoElementAdded; + /// + /// Called when a pseudo element is added to an element. + /// + public event System.EventHandler PseudoElementAdded + { + add + { + if ((_PseudoElementAdded) == (null)) + { + _client.DevToolsEvent += (OnPseudoElementAdded); + } + + _PseudoElementAdded += (value); + } + + remove + { + _PseudoElementAdded -= (value); + if ((_PseudoElementAdded) == (null)) + { + _client.DevToolsEvent -= (OnPseudoElementAdded); + } + } + } + + private void OnPseudoElementAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.pseudoElementAdded")) + { + _PseudoElementAdded?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PseudoElementRemoved; + /// + /// Called when a pseudo element is removed from an element. + /// + public event System.EventHandler PseudoElementRemoved + { + add + { + if ((_PseudoElementRemoved) == (null)) + { + _client.DevToolsEvent += (OnPseudoElementRemoved); + } + + _PseudoElementRemoved += (value); + } + + remove + { + _PseudoElementRemoved -= (value); + if ((_PseudoElementRemoved) == (null)) + { + _client.DevToolsEvent -= (OnPseudoElementRemoved); + } + } + } + + private void OnPseudoElementRemoved(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.pseudoElementRemoved")) + { + _PseudoElementRemoved?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _SetChildNodes; + /// + /// 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 + { + if ((_SetChildNodes) == (null)) + { + _client.DevToolsEvent += (OnSetChildNodes); + } + + _SetChildNodes += (value); + } + + remove + { + _SetChildNodes -= (value); + if ((_SetChildNodes) == (null)) + { + _client.DevToolsEvent -= (OnSetChildNodes); + } + } + } + + private void OnSetChildNodes(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.setChildNodes")) + { + _SetChildNodes?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ShadowRootPopped; + /// + /// Called when shadow root is popped from the element. + /// + public event System.EventHandler ShadowRootPopped + { + add + { + if ((_ShadowRootPopped) == (null)) + { + _client.DevToolsEvent += (OnShadowRootPopped); + } + + _ShadowRootPopped += (value); + } + + remove + { + _ShadowRootPopped -= (value); + if ((_ShadowRootPopped) == (null)) + { + _client.DevToolsEvent -= (OnShadowRootPopped); + } + } + } + + private void OnShadowRootPopped(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.shadowRootPopped")) + { + _ShadowRootPopped?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ShadowRootPushed; + /// + /// Called when shadow root is pushed into the element. + /// + public event System.EventHandler ShadowRootPushed + { + add + { + if ((_ShadowRootPushed) == (null)) + { + _client.DevToolsEvent += (OnShadowRootPushed); + } + + _ShadowRootPushed += (value); + } + + remove + { + _ShadowRootPushed -= (value); + if ((_ShadowRootPushed) == (null)) + { + _client.DevToolsEvent -= (OnShadowRootPushed); + } + } + } + + private void OnShadowRootPushed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOM.shadowRootPushed")) + { + _ShadowRootPushed?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateCollectClassNamesFromSubtree(int nodeId); /// /// Collects class names for the node with given id and all of it's child nodes. @@ -22943,6 +28775,142 @@ namespace CefSharp.DevTools.DOMStorage _client = (client); } + private System.EventHandler _DomStorageItemAdded; + /// + /// DomStorageItemAdded + /// + public event System.EventHandler DomStorageItemAdded + { + add + { + if ((_DomStorageItemAdded) == (null)) + { + _client.DevToolsEvent += (OnDomStorageItemAdded); + } + + _DomStorageItemAdded += (value); + } + + remove + { + _DomStorageItemAdded -= (value); + if ((_DomStorageItemAdded) == (null)) + { + _client.DevToolsEvent -= (OnDomStorageItemAdded); + } + } + } + + private void OnDomStorageItemAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOMStorage.domStorageItemAdded")) + { + _DomStorageItemAdded?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DomStorageItemRemoved; + /// + /// DomStorageItemRemoved + /// + public event System.EventHandler DomStorageItemRemoved + { + add + { + if ((_DomStorageItemRemoved) == (null)) + { + _client.DevToolsEvent += (OnDomStorageItemRemoved); + } + + _DomStorageItemRemoved += (value); + } + + remove + { + _DomStorageItemRemoved -= (value); + if ((_DomStorageItemRemoved) == (null)) + { + _client.DevToolsEvent -= (OnDomStorageItemRemoved); + } + } + } + + private void OnDomStorageItemRemoved(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOMStorage.domStorageItemRemoved")) + { + _DomStorageItemRemoved?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DomStorageItemUpdated; + /// + /// DomStorageItemUpdated + /// + public event System.EventHandler DomStorageItemUpdated + { + add + { + if ((_DomStorageItemUpdated) == (null)) + { + _client.DevToolsEvent += (OnDomStorageItemUpdated); + } + + _DomStorageItemUpdated += (value); + } + + remove + { + _DomStorageItemUpdated -= (value); + if ((_DomStorageItemUpdated) == (null)) + { + _client.DevToolsEvent -= (OnDomStorageItemUpdated); + } + } + } + + private void OnDomStorageItemUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOMStorage.domStorageItemUpdated")) + { + _DomStorageItemUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DomStorageItemsCleared; + /// + /// DomStorageItemsCleared + /// + public event System.EventHandler DomStorageItemsCleared + { + add + { + if ((_DomStorageItemsCleared) == (null)) + { + _client.DevToolsEvent += (OnDomStorageItemsCleared); + } + + _DomStorageItemsCleared += (value); + } + + remove + { + _DomStorageItemsCleared -= (value); + if ((_DomStorageItemsCleared) == (null)) + { + _client.DevToolsEvent -= (OnDomStorageItemsCleared); + } + } + } + + private void OnDomStorageItemsCleared(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("DOMStorage.domStorageItemsCleared")) + { + _DomStorageItemsCleared?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateClear(CefSharp.DevTools.DOMStorage.StorageId storageId); /// /// Clear @@ -23114,6 +29082,40 @@ namespace CefSharp.DevTools.Database _client = (client); } + private System.EventHandler _AddDatabase; + /// + /// AddDatabase + /// + public event System.EventHandler AddDatabase + { + add + { + if ((_AddDatabase) == (null)) + { + _client.DevToolsEvent += (OnAddDatabase); + } + + _AddDatabase += (value); + } + + remove + { + _AddDatabase -= (value); + if ((_AddDatabase) == (null)) + { + _client.DevToolsEvent -= (OnAddDatabase); + } + } + } + + private void OnAddDatabase(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Database.addDatabase")) + { + _AddDatabase?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Disables database tracking, prevents database events from being sent to the client. /// @@ -23200,7 +29202,7 @@ namespace CefSharp.DevTools.DeviceOrientation return methodResult; } - partial void ValidateSetDeviceOrientationOverride(long alpha, long beta, long gamma); + partial void ValidateSetDeviceOrientationOverride(double alpha, double beta, double gamma); /// /// Overrides the Device Orientation. /// @@ -23208,7 +29210,7 @@ namespace CefSharp.DevTools.DeviceOrientation /// Mock beta /// Mock gamma /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task SetDeviceOrientationOverrideAsync(long alpha, long beta, long gamma) + public async System.Threading.Tasks.Task SetDeviceOrientationOverrideAsync(double alpha, double beta, double gamma) { ValidateSetDeviceOrientationOverride(alpha, beta, gamma); var dict = new System.Collections.Generic.Dictionary(); @@ -23253,7 +29255,7 @@ namespace CefSharp.DevTools.Emulation /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("virtualTimeTicksBase")] - public long VirtualTimeTicksBase + public double VirtualTimeTicksBase { get; private set; @@ -23280,6 +29282,40 @@ namespace CefSharp.DevTools.Emulation _client = (client); } + private System.EventHandler _VirtualTimeBudgetExpired; + /// + /// Notification sent after the virtual time budget for the current VirtualTimePolicy has run out. + /// + public event System.EventHandler VirtualTimeBudgetExpired + { + add + { + if ((_VirtualTimeBudgetExpired) == (null)) + { + _client.DevToolsEvent += (OnVirtualTimeBudgetExpired); + } + + _VirtualTimeBudgetExpired += (value); + } + + remove + { + _VirtualTimeBudgetExpired -= (value); + if ((_VirtualTimeBudgetExpired) == (null)) + { + _client.DevToolsEvent -= (OnVirtualTimeBudgetExpired); + } + } + } + + private void OnVirtualTimeBudgetExpired(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Emulation.virtualTimeBudgetExpired")) + { + _VirtualTimeBudgetExpired?.Invoke(this, System.EventArgs.Empty); + } + } + /// /// Tells whether emulation is supported. /// @@ -23339,13 +29375,13 @@ namespace CefSharp.DevTools.Emulation return methodResult; } - partial void ValidateSetCPUThrottlingRate(long rate); + 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 async System.Threading.Tasks.Task SetCPUThrottlingRateAsync(long rate) + public async System.Threading.Tasks.Task SetCPUThrottlingRateAsync(double rate) { ValidateSetCPUThrottlingRate(rate); var dict = new System.Collections.Generic.Dictionary(); @@ -23374,7 +29410,7 @@ namespace CefSharp.DevTools.Emulation return methodResult; } - partial void ValidateSetDeviceMetricsOverride(int width, int height, long deviceScaleFactor, bool mobile, long? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null); + 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); /// /// 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 @@ -23394,7 +29430,7 @@ namespace CefSharp.DevTools.Emulation /// 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. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, long deviceScaleFactor, bool mobile, long? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null) + public async 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) { ValidateSetDeviceMetricsOverride(width, height, deviceScaleFactor, mobile, scale, screenWidth, screenHeight, positionX, positionY, dontSetVisibleSize, screenOrientation, viewport, displayFeature); var dict = new System.Collections.Generic.Dictionary(); @@ -23542,7 +29578,7 @@ namespace CefSharp.DevTools.Emulation return methodResult; } - partial void ValidateSetGeolocationOverride(long? latitude = null, long? longitude = null, long? accuracy = null); + partial void ValidateSetGeolocationOverride(double? latitude = null, double? longitude = null, double? accuracy = null); /// /// Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position /// unavailable. @@ -23551,7 +29587,7 @@ namespace CefSharp.DevTools.Emulation /// Mock longitude /// Mock accuracy /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task SetGeolocationOverrideAsync(long? latitude = null, long? longitude = null, long? accuracy = null) + public async System.Threading.Tasks.Task SetGeolocationOverrideAsync(double? latitude = null, double? longitude = null, double? accuracy = null) { ValidateSetGeolocationOverride(latitude, longitude, accuracy); var dict = new System.Collections.Generic.Dictionary(); @@ -23602,13 +29638,13 @@ namespace CefSharp.DevTools.Emulation return methodResult; } - partial void ValidateSetPageScaleFactor(long pageScaleFactor); + partial void ValidateSetPageScaleFactor(double pageScaleFactor); /// /// Sets a specified page scale factor. /// /// Page scale factor. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task SetPageScaleFactorAsync(long pageScaleFactor) + public async System.Threading.Tasks.Task SetPageScaleFactorAsync(double pageScaleFactor) { ValidateSetPageScaleFactor(pageScaleFactor); var dict = new System.Collections.Generic.Dictionary(); @@ -23653,7 +29689,7 @@ namespace CefSharp.DevTools.Emulation return methodResult; } - partial void ValidateSetVirtualTimePolicy(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, long? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = null, long? initialVirtualTime = null); + partial void ValidateSetVirtualTimePolicy(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = 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. @@ -23664,7 +29700,7 @@ namespace CefSharp.DevTools.Emulation /// If set the virtual time policy change should be deferred until any frame starts navigating.Note any previous deferred policy change is superseded. /// If set, base::Time::Now will be overriden to initially return this value. /// returns System.Threading.Tasks.Task<SetVirtualTimePolicyResponse> - public async System.Threading.Tasks.Task SetVirtualTimePolicyAsync(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, long? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = null, long? initialVirtualTime = null) + public async System.Threading.Tasks.Task SetVirtualTimePolicyAsync(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = null, double? initialVirtualTime = null) { ValidateSetVirtualTimePolicy(policy, budget, maxVirtualTimeTaskStarvationCount, waitForNavigation, initialVirtualTime); var dict = new System.Collections.Generic.Dictionary(); @@ -23827,7 +29863,7 @@ namespace CefSharp.DevTools.HeadlessExperimental _client = (client); } - partial void ValidateBeginFrame(long? frameTimeTicks = null, long? interval = null, bool? noDisplayUpdates = null, CefSharp.DevTools.HeadlessExperimental.ScreenshotParams screenshot = null); + 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 @@ -23839,7 +29875,7 @@ namespace CefSharp.DevTools.HeadlessExperimental /// 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 async System.Threading.Tasks.Task BeginFrameAsync(long? frameTimeTicks = null, long? interval = null, bool? noDisplayUpdates = null, CefSharp.DevTools.HeadlessExperimental.ScreenshotParams screenshot = null) + public async 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(); @@ -24074,7 +30110,7 @@ namespace CefSharp.DevTools.IndexedDB /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("entriesCount")] - public long EntriesCount + public double EntriesCount { get; private set; @@ -24085,7 +30121,7 @@ namespace CefSharp.DevTools.IndexedDB /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyGeneratorValue")] - public long KeyGeneratorValue + public double KeyGeneratorValue { get; private set; @@ -24334,7 +30370,42 @@ namespace CefSharp.DevTools.Input _client = (client); } - partial void ValidateDispatchDragEvent(string type, long x, long y, CefSharp.DevTools.Input.DragData data, int? modifiers = null); + private System.EventHandler _DragIntercepted; + /// + /// 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 + { + if ((_DragIntercepted) == (null)) + { + _client.DevToolsEvent += (OnDragIntercepted); + } + + _DragIntercepted += (value); + } + + remove + { + _DragIntercepted -= (value); + if ((_DragIntercepted) == (null)) + { + _client.DevToolsEvent -= (OnDragIntercepted); + } + } + } + + private void OnDragIntercepted(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Input.dragIntercepted")) + { + _DragIntercepted?.Invoke(this, args.DeserializeJson()); + } + } + + partial void ValidateDispatchDragEvent(string type, double x, double y, CefSharp.DevTools.Input.DragData data, int? modifiers = null); /// /// Dispatches a drag event into the page. /// @@ -24344,7 +30415,7 @@ namespace CefSharp.DevTools.Input /// 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 async System.Threading.Tasks.Task DispatchDragEventAsync(string type, long x, long y, CefSharp.DevTools.Input.DragData data, int? modifiers = null) + public async System.Threading.Tasks.Task DispatchDragEventAsync(string 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(); @@ -24361,7 +30432,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateDispatchKeyEvent(string type, int? modifiers = null, long? timestamp = null, string text = null, string unmodifiedText = null, string keyIdentifier = null, string code = null, string key = null, int? windowsVirtualKeyCode = null, int? nativeVirtualKeyCode = null, bool? autoRepeat = null, bool? isKeypad = null, bool? isSystemKey = null, int? location = null, string[] commands = null); + partial void ValidateDispatchKeyEvent(string 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. /// @@ -24381,7 +30452,7 @@ namespace CefSharp.DevTools.Input /// 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/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task DispatchKeyEventAsync(string type, int? modifiers = null, long? timestamp = null, string text = null, string unmodifiedText = null, string keyIdentifier = null, string code = null, string key = null, int? windowsVirtualKeyCode = null, int? nativeVirtualKeyCode = null, bool? autoRepeat = null, bool? isKeypad = null, bool? isSystemKey = null, int? location = null, string[] commands = null) + public async System.Threading.Tasks.Task DispatchKeyEventAsync(string 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(); @@ -24476,7 +30547,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateDispatchMouseEvent(string type, long x, long y, int? modifiers = null, long? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, long? force = null, long? tangentialPressure = null, int? tiltX = null, int? tiltY = null, int? twist = null, long? deltaX = null, long? deltaY = null, string pointerType = null); + partial void ValidateDispatchMouseEvent(string 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, int? tiltX = null, int? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, string pointerType = null); /// /// Dispatches a mouse event to the page. /// @@ -24497,7 +30568,7 @@ namespace CefSharp.DevTools.Input /// Y delta in CSS pixels for mouse wheel event (default: 0). /// Pointer type (default: "mouse"). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task DispatchMouseEventAsync(string type, long x, long y, int? modifiers = null, long? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, long? force = null, long? tangentialPressure = null, int? tiltX = null, int? tiltY = null, int? twist = null, long? deltaX = null, long? deltaY = null, string pointerType = null) + public async System.Threading.Tasks.Task DispatchMouseEventAsync(string 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, int? tiltX = null, int? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, string 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(); @@ -24573,7 +30644,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateDispatchTouchEvent(string type, System.Collections.Generic.IList touchPoints, int? modifiers = null, long? timestamp = null); + partial void ValidateDispatchTouchEvent(string type, System.Collections.Generic.IList touchPoints, int? modifiers = null, double? timestamp = null); /// /// Dispatches a touch event to the page. /// @@ -24582,7 +30653,7 @@ namespace CefSharp.DevTools.Input /// 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 async System.Threading.Tasks.Task DispatchTouchEventAsync(string type, System.Collections.Generic.IList touchPoints, int? modifiers = null, long? timestamp = null) + public async System.Threading.Tasks.Task DispatchTouchEventAsync(string type, System.Collections.Generic.IList touchPoints, int? modifiers = null, double? timestamp = null) { ValidateDispatchTouchEvent(type, touchPoints, modifiers, timestamp); var dict = new System.Collections.Generic.Dictionary(); @@ -24602,7 +30673,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateEmulateTouchFromMouseEvent(string type, int x, int y, CefSharp.DevTools.Input.MouseButton button, long? timestamp = null, long? deltaX = null, long? deltaY = null, int? modifiers = null, int? clickCount = null); + partial void ValidateEmulateTouchFromMouseEvent(string 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. /// @@ -24616,7 +30687,7 @@ namespace CefSharp.DevTools.Input /// 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 async System.Threading.Tasks.Task EmulateTouchFromMouseEventAsync(string type, int x, int y, CefSharp.DevTools.Input.MouseButton button, long? timestamp = null, long? deltaX = null, long? deltaY = null, int? modifiers = null, int? clickCount = null) + public async System.Threading.Tasks.Task EmulateTouchFromMouseEventAsync(string 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(); @@ -24684,7 +30755,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateSynthesizePinchGesture(long x, long y, long scaleFactor, int? relativeSpeed = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null); + 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. /// @@ -24694,7 +30765,7 @@ namespace CefSharp.DevTools.Input /// 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 async System.Threading.Tasks.Task SynthesizePinchGestureAsync(long x, long y, long scaleFactor, int? relativeSpeed = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null) + public async 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(); @@ -24715,7 +30786,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateSynthesizeScrollGesture(long x, long y, long? xDistance = null, long? yDistance = null, long? xOverscroll = null, long? yOverscroll = null, bool? preventFling = null, int? speed = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null, int? repeatCount = null, int? repeatDelayMs = null, string interactionMarkerName = null); + 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. /// @@ -24732,7 +30803,7 @@ namespace CefSharp.DevTools.Input /// 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 async System.Threading.Tasks.Task SynthesizeScrollGestureAsync(long x, long y, long? xDistance = null, long? yDistance = null, long? xOverscroll = null, long? yOverscroll = null, bool? preventFling = null, int? speed = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null, int? repeatCount = null, int? repeatDelayMs = null, string interactionMarkerName = null) + public async 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(); @@ -24792,7 +30863,7 @@ namespace CefSharp.DevTools.Input return methodResult; } - partial void ValidateSynthesizeTapGesture(long x, long y, int? duration = null, int? tapCount = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null); + 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. /// @@ -24802,7 +30873,7 @@ namespace CefSharp.DevTools.Input /// 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 async System.Threading.Tasks.Task SynthesizeTapGestureAsync(long x, long y, int? duration = null, int? tapCount = null, CefSharp.DevTools.Input.GestureSourceType? gestureSourceType = null) + public async 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(); @@ -24848,6 +30919,108 @@ namespace CefSharp.DevTools.Inspector _client = (client); } + private System.EventHandler _Detached; + /// + /// Fired when remote debugging connection is about to be terminated. Contains detach reason. + /// + public event System.EventHandler Detached + { + add + { + if ((_Detached) == (null)) + { + _client.DevToolsEvent += (OnDetached); + } + + _Detached += (value); + } + + remove + { + _Detached -= (value); + if ((_Detached) == (null)) + { + _client.DevToolsEvent -= (OnDetached); + } + } + } + + private void OnDetached(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Inspector.detached")) + { + _Detached?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TargetCrashed; + /// + /// Fired when debugging target has crashed + /// + public event System.EventHandler TargetCrashed + { + add + { + if ((_TargetCrashed) == (null)) + { + _client.DevToolsEvent += (OnTargetCrashed); + } + + _TargetCrashed += (value); + } + + remove + { + _TargetCrashed -= (value); + if ((_TargetCrashed) == (null)) + { + _client.DevToolsEvent -= (OnTargetCrashed); + } + } + } + + private void OnTargetCrashed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Inspector.targetCrashed")) + { + _TargetCrashed?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _TargetReloadedAfterCrash; + /// + /// Fired when debugging target has reloaded after crash + /// + public event System.EventHandler TargetReloadedAfterCrash + { + add + { + if ((_TargetReloadedAfterCrash) == (null)) + { + _client.DevToolsEvent += (OnTargetReloadedAfterCrash); + } + + _TargetReloadedAfterCrash += (value); + } + + remove + { + _TargetReloadedAfterCrash -= (value); + if ((_TargetReloadedAfterCrash) == (null)) + { + _client.DevToolsEvent -= (OnTargetReloadedAfterCrash); + } + } + } + + private void OnTargetReloadedAfterCrash(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Inspector.targetReloadedAfterCrash")) + { + _TargetReloadedAfterCrash?.Invoke(this, System.EventArgs.Empty); + } + } + /// /// Disables inspector domain notifications. /// @@ -24955,7 +31128,7 @@ namespace CefSharp.DevTools.LayerTree /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("timings")] - public long[] Timings + public double[] Timings { get; private set; @@ -25022,6 +31195,74 @@ namespace CefSharp.DevTools.LayerTree _client = (client); } + private System.EventHandler _LayerPainted; + /// + /// LayerPainted + /// + public event System.EventHandler LayerPainted + { + add + { + if ((_LayerPainted) == (null)) + { + _client.DevToolsEvent += (OnLayerPainted); + } + + _LayerPainted += (value); + } + + remove + { + _LayerPainted -= (value); + if ((_LayerPainted) == (null)) + { + _client.DevToolsEvent -= (OnLayerPainted); + } + } + } + + private void OnLayerPainted(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("LayerTree.layerPainted")) + { + _LayerPainted?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _LayerTreeDidChange; + /// + /// LayerTreeDidChange + /// + public event System.EventHandler LayerTreeDidChange + { + add + { + if ((_LayerTreeDidChange) == (null)) + { + _client.DevToolsEvent += (OnLayerTreeDidChange); + } + + _LayerTreeDidChange += (value); + } + + remove + { + _LayerTreeDidChange -= (value); + if ((_LayerTreeDidChange) == (null)) + { + _client.DevToolsEvent -= (OnLayerTreeDidChange); + } + } + } + + private void OnLayerTreeDidChange(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("LayerTree.layerTreeDidChange")) + { + _LayerTreeDidChange?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateCompositingReasons(string layerId); /// /// Provides the reasons why the given layer was composited. @@ -25089,7 +31330,7 @@ namespace CefSharp.DevTools.LayerTree return methodResult.DeserializeJson(); } - partial void ValidateProfileSnapshot(string snapshotId, int? minRepeatCount = null, long? minDuration = null, CefSharp.DevTools.DOM.Rect clipRect = null); + partial void ValidateProfileSnapshot(string snapshotId, int? minRepeatCount = null, double? minDuration = null, CefSharp.DevTools.DOM.Rect clipRect = null); /// /// ProfileSnapshot /// @@ -25098,7 +31339,7 @@ namespace CefSharp.DevTools.LayerTree /// The minimum duration (in seconds) to replay the snapshot. /// The clip rectangle to apply when replaying the snapshot. /// returns System.Threading.Tasks.Task<ProfileSnapshotResponse> - public async System.Threading.Tasks.Task ProfileSnapshotAsync(string snapshotId, int? minRepeatCount = null, long? minDuration = null, CefSharp.DevTools.DOM.Rect clipRect = null) + public async 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(); @@ -25137,7 +31378,7 @@ namespace CefSharp.DevTools.LayerTree return methodResult; } - partial void ValidateReplaySnapshot(string snapshotId, int? fromStep = null, int? toStep = null, long? scale = null); + partial void ValidateReplaySnapshot(string snapshotId, int? fromStep = null, int? toStep = null, double? scale = null); /// /// Replays the layer snapshot and returns the resulting bitmap. /// @@ -25146,7 +31387,7 @@ namespace CefSharp.DevTools.LayerTree /// The last step to replay to (replay till the end if not specified). /// The scale to apply while replaying (defaults to 1). /// returns System.Threading.Tasks.Task<ReplaySnapshotResponse> - public async System.Threading.Tasks.Task ReplaySnapshotAsync(string snapshotId, int? fromStep = null, int? toStep = null, long? scale = null) + public async 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(); @@ -25206,6 +31447,40 @@ namespace CefSharp.DevTools.Log _client = (client); } + private System.EventHandler _EntryAdded; + /// + /// Issued when new message was logged. + /// + public event System.EventHandler EntryAdded + { + add + { + if ((_EntryAdded) == (null)) + { + _client.DevToolsEvent += (OnEntryAdded); + } + + _EntryAdded += (value); + } + + remove + { + _EntryAdded -= (value); + if ((_EntryAdded) == (null)) + { + _client.DevToolsEvent -= (OnEntryAdded); + } + } + } + + private void OnEntryAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Log.entryAdded")) + { + _EntryAdded?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Clears the log. /// @@ -25788,6 +32063,762 @@ namespace CefSharp.DevTools.Network _client = (client); } + private System.EventHandler _DataReceived; + /// + /// Fired when data chunk was received over the network. + /// + public event System.EventHandler DataReceived + { + add + { + if ((_DataReceived) == (null)) + { + _client.DevToolsEvent += (OnDataReceived); + } + + _DataReceived += (value); + } + + remove + { + _DataReceived -= (value); + if ((_DataReceived) == (null)) + { + _client.DevToolsEvent -= (OnDataReceived); + } + } + } + + private void OnDataReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.dataReceived")) + { + _DataReceived?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _EventSourceMessageReceived; + /// + /// Fired when EventSource message is received. + /// + public event System.EventHandler EventSourceMessageReceived + { + add + { + if ((_EventSourceMessageReceived) == (null)) + { + _client.DevToolsEvent += (OnEventSourceMessageReceived); + } + + _EventSourceMessageReceived += (value); + } + + remove + { + _EventSourceMessageReceived -= (value); + if ((_EventSourceMessageReceived) == (null)) + { + _client.DevToolsEvent -= (OnEventSourceMessageReceived); + } + } + } + + private void OnEventSourceMessageReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.eventSourceMessageReceived")) + { + _EventSourceMessageReceived?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _LoadingFailed; + /// + /// Fired when HTTP request has failed to load. + /// + public event System.EventHandler LoadingFailed + { + add + { + if ((_LoadingFailed) == (null)) + { + _client.DevToolsEvent += (OnLoadingFailed); + } + + _LoadingFailed += (value); + } + + remove + { + _LoadingFailed -= (value); + if ((_LoadingFailed) == (null)) + { + _client.DevToolsEvent -= (OnLoadingFailed); + } + } + } + + private void OnLoadingFailed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.loadingFailed")) + { + _LoadingFailed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _LoadingFinished; + /// + /// Fired when HTTP request has finished loading. + /// + public event System.EventHandler LoadingFinished + { + add + { + if ((_LoadingFinished) == (null)) + { + _client.DevToolsEvent += (OnLoadingFinished); + } + + _LoadingFinished += (value); + } + + remove + { + _LoadingFinished -= (value); + if ((_LoadingFinished) == (null)) + { + _client.DevToolsEvent -= (OnLoadingFinished); + } + } + } + + private void OnLoadingFinished(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.loadingFinished")) + { + _LoadingFinished?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _RequestServedFromCache; + /// + /// Fired if request ended up loading from cache. + /// + public event System.EventHandler RequestServedFromCache + { + add + { + if ((_RequestServedFromCache) == (null)) + { + _client.DevToolsEvent += (OnRequestServedFromCache); + } + + _RequestServedFromCache += (value); + } + + remove + { + _RequestServedFromCache -= (value); + if ((_RequestServedFromCache) == (null)) + { + _client.DevToolsEvent -= (OnRequestServedFromCache); + } + } + } + + private void OnRequestServedFromCache(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.requestServedFromCache")) + { + _RequestServedFromCache?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _RequestWillBeSent; + /// + /// Fired when page is about to send HTTP request. + /// + public event System.EventHandler RequestWillBeSent + { + add + { + if ((_RequestWillBeSent) == (null)) + { + _client.DevToolsEvent += (OnRequestWillBeSent); + } + + _RequestWillBeSent += (value); + } + + remove + { + _RequestWillBeSent -= (value); + if ((_RequestWillBeSent) == (null)) + { + _client.DevToolsEvent -= (OnRequestWillBeSent); + } + } + } + + private void OnRequestWillBeSent(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.requestWillBeSent")) + { + _RequestWillBeSent?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ResourceChangedPriority; + /// + /// Fired when resource loading priority is changed + /// + public event System.EventHandler ResourceChangedPriority + { + add + { + if ((_ResourceChangedPriority) == (null)) + { + _client.DevToolsEvent += (OnResourceChangedPriority); + } + + _ResourceChangedPriority += (value); + } + + remove + { + _ResourceChangedPriority -= (value); + if ((_ResourceChangedPriority) == (null)) + { + _client.DevToolsEvent -= (OnResourceChangedPriority); + } + } + } + + private void OnResourceChangedPriority(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.resourceChangedPriority")) + { + _ResourceChangedPriority?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _SignedExchangeReceived; + /// + /// Fired when a signed exchange was received over the network + /// + public event System.EventHandler SignedExchangeReceived + { + add + { + if ((_SignedExchangeReceived) == (null)) + { + _client.DevToolsEvent += (OnSignedExchangeReceived); + } + + _SignedExchangeReceived += (value); + } + + remove + { + _SignedExchangeReceived -= (value); + if ((_SignedExchangeReceived) == (null)) + { + _client.DevToolsEvent -= (OnSignedExchangeReceived); + } + } + } + + private void OnSignedExchangeReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.signedExchangeReceived")) + { + _SignedExchangeReceived?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ResponseReceived; + /// + /// Fired when HTTP response is available. + /// + public event System.EventHandler ResponseReceived + { + add + { + if ((_ResponseReceived) == (null)) + { + _client.DevToolsEvent += (OnResponseReceived); + } + + _ResponseReceived += (value); + } + + remove + { + _ResponseReceived -= (value); + if ((_ResponseReceived) == (null)) + { + _client.DevToolsEvent -= (OnResponseReceived); + } + } + } + + private void OnResponseReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.responseReceived")) + { + _ResponseReceived?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketClosed; + /// + /// Fired when WebSocket is closed. + /// + public event System.EventHandler WebSocketClosed + { + add + { + if ((_WebSocketClosed) == (null)) + { + _client.DevToolsEvent += (OnWebSocketClosed); + } + + _WebSocketClosed += (value); + } + + remove + { + _WebSocketClosed -= (value); + if ((_WebSocketClosed) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketClosed); + } + } + } + + private void OnWebSocketClosed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketClosed")) + { + _WebSocketClosed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketCreated; + /// + /// Fired upon WebSocket creation. + /// + public event System.EventHandler WebSocketCreated + { + add + { + if ((_WebSocketCreated) == (null)) + { + _client.DevToolsEvent += (OnWebSocketCreated); + } + + _WebSocketCreated += (value); + } + + remove + { + _WebSocketCreated -= (value); + if ((_WebSocketCreated) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketCreated); + } + } + } + + private void OnWebSocketCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketCreated")) + { + _WebSocketCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketFrameError; + /// + /// Fired when WebSocket message error occurs. + /// + public event System.EventHandler WebSocketFrameError + { + add + { + if ((_WebSocketFrameError) == (null)) + { + _client.DevToolsEvent += (OnWebSocketFrameError); + } + + _WebSocketFrameError += (value); + } + + remove + { + _WebSocketFrameError -= (value); + if ((_WebSocketFrameError) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketFrameError); + } + } + } + + private void OnWebSocketFrameError(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketFrameError")) + { + _WebSocketFrameError?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketFrameReceived; + /// + /// Fired when WebSocket message is received. + /// + public event System.EventHandler WebSocketFrameReceived + { + add + { + if ((_WebSocketFrameReceived) == (null)) + { + _client.DevToolsEvent += (OnWebSocketFrameReceived); + } + + _WebSocketFrameReceived += (value); + } + + remove + { + _WebSocketFrameReceived -= (value); + if ((_WebSocketFrameReceived) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketFrameReceived); + } + } + } + + private void OnWebSocketFrameReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketFrameReceived")) + { + _WebSocketFrameReceived?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketFrameSent; + /// + /// Fired when WebSocket message is sent. + /// + public event System.EventHandler WebSocketFrameSent + { + add + { + if ((_WebSocketFrameSent) == (null)) + { + _client.DevToolsEvent += (OnWebSocketFrameSent); + } + + _WebSocketFrameSent += (value); + } + + remove + { + _WebSocketFrameSent -= (value); + if ((_WebSocketFrameSent) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketFrameSent); + } + } + } + + private void OnWebSocketFrameSent(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketFrameSent")) + { + _WebSocketFrameSent?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketHandshakeResponseReceived; + /// + /// Fired when WebSocket handshake response becomes available. + /// + public event System.EventHandler WebSocketHandshakeResponseReceived + { + add + { + if ((_WebSocketHandshakeResponseReceived) == (null)) + { + _client.DevToolsEvent += (OnWebSocketHandshakeResponseReceived); + } + + _WebSocketHandshakeResponseReceived += (value); + } + + remove + { + _WebSocketHandshakeResponseReceived -= (value); + if ((_WebSocketHandshakeResponseReceived) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketHandshakeResponseReceived); + } + } + } + + private void OnWebSocketHandshakeResponseReceived(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketHandshakeResponseReceived")) + { + _WebSocketHandshakeResponseReceived?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebSocketWillSendHandshakeRequest; + /// + /// Fired when WebSocket is about to initiate handshake. + /// + public event System.EventHandler WebSocketWillSendHandshakeRequest + { + add + { + if ((_WebSocketWillSendHandshakeRequest) == (null)) + { + _client.DevToolsEvent += (OnWebSocketWillSendHandshakeRequest); + } + + _WebSocketWillSendHandshakeRequest += (value); + } + + remove + { + _WebSocketWillSendHandshakeRequest -= (value); + if ((_WebSocketWillSendHandshakeRequest) == (null)) + { + _client.DevToolsEvent -= (OnWebSocketWillSendHandshakeRequest); + } + } + } + + private void OnWebSocketWillSendHandshakeRequest(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webSocketWillSendHandshakeRequest")) + { + _WebSocketWillSendHandshakeRequest?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebTransportCreated; + /// + /// Fired upon WebTransport creation. + /// + public event System.EventHandler WebTransportCreated + { + add + { + if ((_WebTransportCreated) == (null)) + { + _client.DevToolsEvent += (OnWebTransportCreated); + } + + _WebTransportCreated += (value); + } + + remove + { + _WebTransportCreated -= (value); + if ((_WebTransportCreated) == (null)) + { + _client.DevToolsEvent -= (OnWebTransportCreated); + } + } + } + + private void OnWebTransportCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webTransportCreated")) + { + _WebTransportCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebTransportConnectionEstablished; + /// + /// Fired when WebTransport handshake is finished. + /// + public event System.EventHandler WebTransportConnectionEstablished + { + add + { + if ((_WebTransportConnectionEstablished) == (null)) + { + _client.DevToolsEvent += (OnWebTransportConnectionEstablished); + } + + _WebTransportConnectionEstablished += (value); + } + + remove + { + _WebTransportConnectionEstablished -= (value); + if ((_WebTransportConnectionEstablished) == (null)) + { + _client.DevToolsEvent -= (OnWebTransportConnectionEstablished); + } + } + } + + private void OnWebTransportConnectionEstablished(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webTransportConnectionEstablished")) + { + _WebTransportConnectionEstablished?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WebTransportClosed; + /// + /// Fired when WebTransport is disposed. + /// + public event System.EventHandler WebTransportClosed + { + add + { + if ((_WebTransportClosed) == (null)) + { + _client.DevToolsEvent += (OnWebTransportClosed); + } + + _WebTransportClosed += (value); + } + + remove + { + _WebTransportClosed -= (value); + if ((_WebTransportClosed) == (null)) + { + _client.DevToolsEvent -= (OnWebTransportClosed); + } + } + } + + private void OnWebTransportClosed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.webTransportClosed")) + { + _WebTransportClosed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _RequestWillBeSentExtraInfo; + /// + /// 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 + { + if ((_RequestWillBeSentExtraInfo) == (null)) + { + _client.DevToolsEvent += (OnRequestWillBeSentExtraInfo); + } + + _RequestWillBeSentExtraInfo += (value); + } + + remove + { + _RequestWillBeSentExtraInfo -= (value); + if ((_RequestWillBeSentExtraInfo) == (null)) + { + _client.DevToolsEvent -= (OnRequestWillBeSentExtraInfo); + } + } + } + + private void OnRequestWillBeSentExtraInfo(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.requestWillBeSentExtraInfo")) + { + _RequestWillBeSentExtraInfo?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ResponseReceivedExtraInfo; + /// + /// 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 + { + if ((_ResponseReceivedExtraInfo) == (null)) + { + _client.DevToolsEvent += (OnResponseReceivedExtraInfo); + } + + _ResponseReceivedExtraInfo += (value); + } + + remove + { + _ResponseReceivedExtraInfo -= (value); + if ((_ResponseReceivedExtraInfo) == (null)) + { + _client.DevToolsEvent -= (OnResponseReceivedExtraInfo); + } + } + } + + private void OnResponseReceivedExtraInfo(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.responseReceivedExtraInfo")) + { + _ResponseReceivedExtraInfo?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TrustTokenOperationDone; + /// + /// 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 + { + if ((_TrustTokenOperationDone) == (null)) + { + _client.DevToolsEvent += (OnTrustTokenOperationDone); + } + + _TrustTokenOperationDone += (value); + } + + remove + { + _TrustTokenOperationDone -= (value); + if ((_TrustTokenOperationDone) == (null)) + { + _client.DevToolsEvent -= (OnTrustTokenOperationDone); + } + } + } + + private void OnTrustTokenOperationDone(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Network.trustTokenOperationDone")) + { + _TrustTokenOperationDone?.Invoke(this, args.DeserializeJson()); + } + } + 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. @@ -25880,7 +32911,7 @@ namespace CefSharp.DevTools.Network return methodResult; } - partial void ValidateEmulateNetworkConditions(bool offline, long latency, long downloadThroughput, long uploadThroughput, CefSharp.DevTools.Network.ConnectionType? connectionType = null); + partial void ValidateEmulateNetworkConditions(bool offline, double latency, double downloadThroughput, double uploadThroughput, CefSharp.DevTools.Network.ConnectionType? connectionType = null); /// /// Activates emulation of network conditions. /// @@ -25890,7 +32921,7 @@ namespace CefSharp.DevTools.Network /// Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling. /// Connection type if known. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task EmulateNetworkConditionsAsync(bool offline, long latency, long downloadThroughput, long uploadThroughput, CefSharp.DevTools.Network.ConnectionType? connectionType = null) + public async System.Threading.Tasks.Task EmulateNetworkConditionsAsync(bool offline, double latency, double downloadThroughput, double uploadThroughput, CefSharp.DevTools.Network.ConnectionType? connectionType = null) { ValidateEmulateNetworkConditions(offline, latency, downloadThroughput, uploadThroughput, connectionType); var dict = new System.Collections.Generic.Dictionary(); @@ -26139,7 +33170,7 @@ namespace CefSharp.DevTools.Network return methodResult; } - partial void ValidateSetCookie(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, long? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, bool? sameParty = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null); + 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); /// /// Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. /// @@ -26157,7 +33188,7 @@ namespace CefSharp.DevTools.Network /// 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. /// returns System.Threading.Tasks.Task<SetCookieResponse> - public async System.Threading.Tasks.Task SetCookieAsync(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, long? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, bool? sameParty = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null) + public async System.Threading.Tasks.Task SetCookieAsync(string name, string value, string url = null, string domain = null, string path = null, bool? secure = null, bool? httpOnly = null, CefSharp.DevTools.Network.CookieSameSite? sameSite = null, double? expires = null, CefSharp.DevTools.Network.CookiePriority? priority = null, bool? sameParty = null, CefSharp.DevTools.Network.CookieSourceScheme? sourceScheme = null, int? sourcePort = null) { ValidateSetCookie(name, value, url, domain, path, secure, httpOnly, sameSite, expires, priority, sameParty, sourceScheme, sourcePort); var dict = new System.Collections.Generic.Dictionary(); @@ -26436,6 +33467,143 @@ namespace CefSharp.DevTools.Overlay _client = (client); } + private System.EventHandler _InspectNodeRequested; + /// + /// 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 + { + if ((_InspectNodeRequested) == (null)) + { + _client.DevToolsEvent += (OnInspectNodeRequested); + } + + _InspectNodeRequested += (value); + } + + remove + { + _InspectNodeRequested -= (value); + if ((_InspectNodeRequested) == (null)) + { + _client.DevToolsEvent -= (OnInspectNodeRequested); + } + } + } + + private void OnInspectNodeRequested(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Overlay.inspectNodeRequested")) + { + _InspectNodeRequested?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NodeHighlightRequested; + /// + /// Fired when the node should be highlighted. This happens after call to `setInspectMode`. + /// + public event System.EventHandler NodeHighlightRequested + { + add + { + if ((_NodeHighlightRequested) == (null)) + { + _client.DevToolsEvent += (OnNodeHighlightRequested); + } + + _NodeHighlightRequested += (value); + } + + remove + { + _NodeHighlightRequested -= (value); + if ((_NodeHighlightRequested) == (null)) + { + _client.DevToolsEvent -= (OnNodeHighlightRequested); + } + } + } + + private void OnNodeHighlightRequested(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Overlay.nodeHighlightRequested")) + { + _NodeHighlightRequested?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ScreenshotRequested; + /// + /// Fired when user asks to capture screenshot of some area on the page. + /// + public event System.EventHandler ScreenshotRequested + { + add + { + if ((_ScreenshotRequested) == (null)) + { + _client.DevToolsEvent += (OnScreenshotRequested); + } + + _ScreenshotRequested += (value); + } + + remove + { + _ScreenshotRequested -= (value); + if ((_ScreenshotRequested) == (null)) + { + _client.DevToolsEvent -= (OnScreenshotRequested); + } + } + } + + private void OnScreenshotRequested(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Overlay.screenshotRequested")) + { + _ScreenshotRequested?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _InspectModeCanceled; + /// + /// Fired when user cancels the inspect mode. + /// + public event System.EventHandler InspectModeCanceled + { + add + { + if ((_InspectModeCanceled) == (null)) + { + _client.DevToolsEvent += (OnInspectModeCanceled); + } + + _InspectModeCanceled += (value); + } + + remove + { + _InspectModeCanceled -= (value); + if ((_InspectModeCanceled) == (null)) + { + _client.DevToolsEvent -= (OnInspectModeCanceled); + } + } + } + + private void OnInspectModeCanceled(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Overlay.inspectModeCanceled")) + { + _InspectModeCanceled?.Invoke(this, System.EventArgs.Empty); + } + } + /// /// Disables domain notifications. /// @@ -26605,7 +33773,7 @@ namespace CefSharp.DevTools.Overlay return methodResult; } - partial void ValidateHighlightQuad(long[] quad, CefSharp.DevTools.DOM.RGBA color = null, CefSharp.DevTools.DOM.RGBA outlineColor = null); + 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. /// @@ -26613,7 +33781,7 @@ namespace CefSharp.DevTools.Overlay /// The highlight fill color (default: transparent). /// The highlight outline color (default: transparent). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task HighlightQuadAsync(long[] quad, CefSharp.DevTools.DOM.RGBA color = null, CefSharp.DevTools.DOM.RGBA outlineColor = null) + public async 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(); @@ -27423,6 +34591,725 @@ namespace CefSharp.DevTools.Page _client = (client); } + private System.EventHandler _DomContentEventFired; + /// + /// DomContentEventFired + /// + public event System.EventHandler DomContentEventFired + { + add + { + if ((_DomContentEventFired) == (null)) + { + _client.DevToolsEvent += (OnDomContentEventFired); + } + + _DomContentEventFired += (value); + } + + remove + { + _DomContentEventFired -= (value); + if ((_DomContentEventFired) == (null)) + { + _client.DevToolsEvent -= (OnDomContentEventFired); + } + } + } + + private void OnDomContentEventFired(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.domContentEventFired")) + { + _DomContentEventFired?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FileChooserOpened; + /// + /// Emitted only when `page.interceptFileChooser` is enabled. + /// + public event System.EventHandler FileChooserOpened + { + add + { + if ((_FileChooserOpened) == (null)) + { + _client.DevToolsEvent += (OnFileChooserOpened); + } + + _FileChooserOpened += (value); + } + + remove + { + _FileChooserOpened -= (value); + if ((_FileChooserOpened) == (null)) + { + _client.DevToolsEvent -= (OnFileChooserOpened); + } + } + } + + private void OnFileChooserOpened(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.fileChooserOpened")) + { + _FileChooserOpened?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FrameAttached; + /// + /// Fired when frame has been attached to its parent. + /// + public event System.EventHandler FrameAttached + { + add + { + if ((_FrameAttached) == (null)) + { + _client.DevToolsEvent += (OnFrameAttached); + } + + _FrameAttached += (value); + } + + remove + { + _FrameAttached -= (value); + if ((_FrameAttached) == (null)) + { + _client.DevToolsEvent -= (OnFrameAttached); + } + } + } + + private void OnFrameAttached(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameAttached")) + { + _FrameAttached?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FrameDetached; + /// + /// Fired when frame has been detached from its parent. + /// + public event System.EventHandler FrameDetached + { + add + { + if ((_FrameDetached) == (null)) + { + _client.DevToolsEvent += (OnFrameDetached); + } + + _FrameDetached += (value); + } + + remove + { + _FrameDetached -= (value); + if ((_FrameDetached) == (null)) + { + _client.DevToolsEvent -= (OnFrameDetached); + } + } + } + + private void OnFrameDetached(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameDetached")) + { + _FrameDetached?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FrameNavigated; + /// + /// Fired once navigation of the frame has completed. Frame is now associated with the new loader. + /// + public event System.EventHandler FrameNavigated + { + add + { + if ((_FrameNavigated) == (null)) + { + _client.DevToolsEvent += (OnFrameNavigated); + } + + _FrameNavigated += (value); + } + + remove + { + _FrameNavigated -= (value); + if ((_FrameNavigated) == (null)) + { + _client.DevToolsEvent -= (OnFrameNavigated); + } + } + } + + private void OnFrameNavigated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameNavigated")) + { + _FrameNavigated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DocumentOpened; + /// + /// Fired when opening document to write to. + /// + public event System.EventHandler DocumentOpened + { + add + { + if ((_DocumentOpened) == (null)) + { + _client.DevToolsEvent += (OnDocumentOpened); + } + + _DocumentOpened += (value); + } + + remove + { + _DocumentOpened -= (value); + if ((_DocumentOpened) == (null)) + { + _client.DevToolsEvent -= (OnDocumentOpened); + } + } + } + + private void OnDocumentOpened(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.documentOpened")) + { + _DocumentOpened?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FrameResized; + /// + /// FrameResized + /// + public event System.EventHandler FrameResized + { + add + { + if ((_FrameResized) == (null)) + { + _client.DevToolsEvent += (OnFrameResized); + } + + _FrameResized += (value); + } + + remove + { + _FrameResized -= (value); + if ((_FrameResized) == (null)) + { + _client.DevToolsEvent -= (OnFrameResized); + } + } + } + + private void OnFrameResized(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameResized")) + { + _FrameResized?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _FrameRequestedNavigation; + /// + /// Fired when a renderer-initiated navigation is requested. + /// Navigation may still be cancelled after the event is issued. + /// + public event System.EventHandler FrameRequestedNavigation + { + add + { + if ((_FrameRequestedNavigation) == (null)) + { + _client.DevToolsEvent += (OnFrameRequestedNavigation); + } + + _FrameRequestedNavigation += (value); + } + + remove + { + _FrameRequestedNavigation -= (value); + if ((_FrameRequestedNavigation) == (null)) + { + _client.DevToolsEvent -= (OnFrameRequestedNavigation); + } + } + } + + private void OnFrameRequestedNavigation(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameRequestedNavigation")) + { + _FrameRequestedNavigation?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FrameStartedLoading; + /// + /// Fired when frame has started loading. + /// + public event System.EventHandler FrameStartedLoading + { + add + { + if ((_FrameStartedLoading) == (null)) + { + _client.DevToolsEvent += (OnFrameStartedLoading); + } + + _FrameStartedLoading += (value); + } + + remove + { + _FrameStartedLoading -= (value); + if ((_FrameStartedLoading) == (null)) + { + _client.DevToolsEvent -= (OnFrameStartedLoading); + } + } + } + + private void OnFrameStartedLoading(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameStartedLoading")) + { + _FrameStartedLoading?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _FrameStoppedLoading; + /// + /// Fired when frame has stopped loading. + /// + public event System.EventHandler FrameStoppedLoading + { + add + { + if ((_FrameStoppedLoading) == (null)) + { + _client.DevToolsEvent += (OnFrameStoppedLoading); + } + + _FrameStoppedLoading += (value); + } + + remove + { + _FrameStoppedLoading -= (value); + if ((_FrameStoppedLoading) == (null)) + { + _client.DevToolsEvent -= (OnFrameStoppedLoading); + } + } + } + + private void OnFrameStoppedLoading(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.frameStoppedLoading")) + { + _FrameStoppedLoading?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _InterstitialHidden; + /// + /// Fired when interstitial page was hidden + /// + public event System.EventHandler InterstitialHidden + { + add + { + if ((_InterstitialHidden) == (null)) + { + _client.DevToolsEvent += (OnInterstitialHidden); + } + + _InterstitialHidden += (value); + } + + remove + { + _InterstitialHidden -= (value); + if ((_InterstitialHidden) == (null)) + { + _client.DevToolsEvent -= (OnInterstitialHidden); + } + } + } + + private void OnInterstitialHidden(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.interstitialHidden")) + { + _InterstitialHidden?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _InterstitialShown; + /// + /// Fired when interstitial page was shown + /// + public event System.EventHandler InterstitialShown + { + add + { + if ((_InterstitialShown) == (null)) + { + _client.DevToolsEvent += (OnInterstitialShown); + } + + _InterstitialShown += (value); + } + + remove + { + _InterstitialShown -= (value); + if ((_InterstitialShown) == (null)) + { + _client.DevToolsEvent -= (OnInterstitialShown); + } + } + } + + private void OnInterstitialShown(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.interstitialShown")) + { + _InterstitialShown?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _JavascriptDialogClosed; + /// + /// Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been + /// closed. + /// + public event System.EventHandler JavascriptDialogClosed + { + add + { + if ((_JavascriptDialogClosed) == (null)) + { + _client.DevToolsEvent += (OnJavascriptDialogClosed); + } + + _JavascriptDialogClosed += (value); + } + + remove + { + _JavascriptDialogClosed -= (value); + if ((_JavascriptDialogClosed) == (null)) + { + _client.DevToolsEvent -= (OnJavascriptDialogClosed); + } + } + } + + private void OnJavascriptDialogClosed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.javascriptDialogClosed")) + { + _JavascriptDialogClosed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _JavascriptDialogOpening; + /// + /// Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to + /// open. + /// + public event System.EventHandler JavascriptDialogOpening + { + add + { + if ((_JavascriptDialogOpening) == (null)) + { + _client.DevToolsEvent += (OnJavascriptDialogOpening); + } + + _JavascriptDialogOpening += (value); + } + + remove + { + _JavascriptDialogOpening -= (value); + if ((_JavascriptDialogOpening) == (null)) + { + _client.DevToolsEvent -= (OnJavascriptDialogOpening); + } + } + } + + private void OnJavascriptDialogOpening(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.javascriptDialogOpening")) + { + _JavascriptDialogOpening?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _LifecycleEvent; + /// + /// Fired for top level page lifecycle events such as navigation, load, paint, etc. + /// + public event System.EventHandler LifecycleEvent + { + add + { + if ((_LifecycleEvent) == (null)) + { + _client.DevToolsEvent += (OnLifecycleEvent); + } + + _LifecycleEvent += (value); + } + + remove + { + _LifecycleEvent -= (value); + if ((_LifecycleEvent) == (null)) + { + _client.DevToolsEvent -= (OnLifecycleEvent); + } + } + } + + private void OnLifecycleEvent(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.lifecycleEvent")) + { + _LifecycleEvent?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _LoadEventFired; + /// + /// LoadEventFired + /// + public event System.EventHandler LoadEventFired + { + add + { + if ((_LoadEventFired) == (null)) + { + _client.DevToolsEvent += (OnLoadEventFired); + } + + _LoadEventFired += (value); + } + + remove + { + _LoadEventFired -= (value); + if ((_LoadEventFired) == (null)) + { + _client.DevToolsEvent -= (OnLoadEventFired); + } + } + } + + private void OnLoadEventFired(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.loadEventFired")) + { + _LoadEventFired?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NavigatedWithinDocument; + /// + /// Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation. + /// + public event System.EventHandler NavigatedWithinDocument + { + add + { + if ((_NavigatedWithinDocument) == (null)) + { + _client.DevToolsEvent += (OnNavigatedWithinDocument); + } + + _NavigatedWithinDocument += (value); + } + + remove + { + _NavigatedWithinDocument -= (value); + if ((_NavigatedWithinDocument) == (null)) + { + _client.DevToolsEvent -= (OnNavigatedWithinDocument); + } + } + } + + private void OnNavigatedWithinDocument(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.navigatedWithinDocument")) + { + _NavigatedWithinDocument?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ScreencastFrame; + /// + /// Compressed image data requested by the `startScreencast`. + /// + public event System.EventHandler ScreencastFrame + { + add + { + if ((_ScreencastFrame) == (null)) + { + _client.DevToolsEvent += (OnScreencastFrame); + } + + _ScreencastFrame += (value); + } + + remove + { + _ScreencastFrame -= (value); + if ((_ScreencastFrame) == (null)) + { + _client.DevToolsEvent -= (OnScreencastFrame); + } + } + } + + private void OnScreencastFrame(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.screencastFrame")) + { + _ScreencastFrame?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ScreencastVisibilityChanged; + /// + /// Fired when the page with currently enabled screencast was shown or hidden `. + /// + public event System.EventHandler ScreencastVisibilityChanged + { + add + { + if ((_ScreencastVisibilityChanged) == (null)) + { + _client.DevToolsEvent += (OnScreencastVisibilityChanged); + } + + _ScreencastVisibilityChanged += (value); + } + + remove + { + _ScreencastVisibilityChanged -= (value); + if ((_ScreencastVisibilityChanged) == (null)) + { + _client.DevToolsEvent -= (OnScreencastVisibilityChanged); + } + } + } + + private void OnScreencastVisibilityChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.screencastVisibilityChanged")) + { + _ScreencastVisibilityChanged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WindowOpen; + /// + /// Fired when a new window is going to be opened, via window.open(), link click, form submission, + /// etc. + /// + public event System.EventHandler WindowOpen + { + add + { + if ((_WindowOpen) == (null)) + { + _client.DevToolsEvent += (OnWindowOpen); + } + + _WindowOpen += (value); + } + + remove + { + _WindowOpen -= (value); + if ((_WindowOpen) == (null)) + { + _client.DevToolsEvent -= (OnWindowOpen); + } + } + } + + private void OnWindowOpen(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.windowOpen")) + { + _WindowOpen?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _CompilationCacheProduced; + /// + /// Issued for every compilation cache generated. Is only available + /// if Page.setGenerateCompilationCache is enabled. + /// + public event System.EventHandler CompilationCacheProduced + { + add + { + if ((_CompilationCacheProduced) == (null)) + { + _client.DevToolsEvent += (OnCompilationCacheProduced); + } + + _CompilationCacheProduced += (value); + } + + remove + { + _CompilationCacheProduced -= (value); + if ((_CompilationCacheProduced) == (null)) + { + _client.DevToolsEvent -= (OnCompilationCacheProduced); + } + } + } + + private void OnCompilationCacheProduced(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Page.compilationCacheProduced")) + { + _CompilationCacheProduced?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null); /// /// Evaluates given script in every frame upon creation (before loading frame's scripts). @@ -27747,7 +35634,7 @@ namespace CefSharp.DevTools.Page return methodResult; } - partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, long? scale = null, long? paperWidth = null, long? paperHeight = null, long? marginTop = null, long? marginBottom = null, long? marginLeft = null, long? marginRight = null, string pageRanges = null, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, string transferMode = null); + 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, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, string transferMode = null); /// /// Print page as PDF. /// @@ -27768,7 +35655,7 @@ namespace CefSharp.DevTools.Page /// 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 /// returns System.Threading.Tasks.Task<PrintToPDFResponse> - public async System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, long? scale = null, long? paperWidth = null, long? paperHeight = null, long? marginTop = null, long? marginBottom = null, long? marginLeft = null, long? marginRight = null, string pageRanges = null, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, string transferMode = null) + public async 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, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, string transferMode = null) { ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, ignoreInvalidPageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode); var dict = new System.Collections.Generic.Dictionary(); @@ -28311,6 +36198,40 @@ namespace CefSharp.DevTools.Performance _client = (client); } + private System.EventHandler _Metrics; + /// + /// Current values of the metrics. + /// + public event System.EventHandler Metrics + { + add + { + if ((_Metrics) == (null)) + { + _client.DevToolsEvent += (OnMetrics); + } + + _Metrics += (value); + } + + remove + { + _Metrics -= (value); + if ((_Metrics) == (null)) + { + _client.DevToolsEvent -= (OnMetrics); + } + } + } + + private void OnMetrics(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Performance.metrics")) + { + _Metrics?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Disable collecting and reporting metrics. /// @@ -28374,6 +36295,40 @@ namespace CefSharp.DevTools.PerformanceTimeline _client = (client); } + private System.EventHandler _TimelineEventAdded; + /// + /// Sent when a performance timeline event is added. See reportPerformanceTimeline method. + /// + public event System.EventHandler TimelineEventAdded + { + add + { + if ((_TimelineEventAdded) == (null)) + { + _client.DevToolsEvent += (OnTimelineEventAdded); + } + + _TimelineEventAdded += (value); + } + + remove + { + _TimelineEventAdded -= (value); + if ((_TimelineEventAdded) == (null)) + { + _client.DevToolsEvent -= (OnTimelineEventAdded); + } + } + } + + private void OnTimelineEventAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("PerformanceTimeline.timelineEventAdded")) + { + _TimelineEventAdded?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateEnable(string[] eventTypes); /// /// Previously buffered events would be reported before method returns. @@ -28411,6 +36366,74 @@ namespace CefSharp.DevTools.Security _client = (client); } + private System.EventHandler _VisibleSecurityStateChanged; + /// + /// The security state of the page changed. + /// + public event System.EventHandler VisibleSecurityStateChanged + { + add + { + if ((_VisibleSecurityStateChanged) == (null)) + { + _client.DevToolsEvent += (OnVisibleSecurityStateChanged); + } + + _VisibleSecurityStateChanged += (value); + } + + remove + { + _VisibleSecurityStateChanged -= (value); + if ((_VisibleSecurityStateChanged) == (null)) + { + _client.DevToolsEvent -= (OnVisibleSecurityStateChanged); + } + } + } + + private void OnVisibleSecurityStateChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Security.visibleSecurityStateChanged")) + { + _VisibleSecurityStateChanged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _SecurityStateChanged; + /// + /// The security state of the page changed. + /// + public event System.EventHandler SecurityStateChanged + { + add + { + if ((_SecurityStateChanged) == (null)) + { + _client.DevToolsEvent += (OnSecurityStateChanged); + } + + _SecurityStateChanged += (value); + } + + remove + { + _SecurityStateChanged -= (value); + if ((_SecurityStateChanged) == (null)) + { + _client.DevToolsEvent -= (OnSecurityStateChanged); + } + } + } + + private void OnSecurityStateChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Security.securityStateChanged")) + { + _SecurityStateChanged?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Disables tracking security state changes. /// @@ -28469,6 +36492,108 @@ namespace CefSharp.DevTools.ServiceWorker _client = (client); } + private System.EventHandler _WorkerErrorReported; + /// + /// WorkerErrorReported + /// + public event System.EventHandler WorkerErrorReported + { + add + { + if ((_WorkerErrorReported) == (null)) + { + _client.DevToolsEvent += (OnWorkerErrorReported); + } + + _WorkerErrorReported += (value); + } + + remove + { + _WorkerErrorReported -= (value); + if ((_WorkerErrorReported) == (null)) + { + _client.DevToolsEvent -= (OnWorkerErrorReported); + } + } + } + + private void OnWorkerErrorReported(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("ServiceWorker.workerErrorReported")) + { + _WorkerErrorReported?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WorkerRegistrationUpdated; + /// + /// WorkerRegistrationUpdated + /// + public event System.EventHandler WorkerRegistrationUpdated + { + add + { + if ((_WorkerRegistrationUpdated) == (null)) + { + _client.DevToolsEvent += (OnWorkerRegistrationUpdated); + } + + _WorkerRegistrationUpdated += (value); + } + + remove + { + _WorkerRegistrationUpdated -= (value); + if ((_WorkerRegistrationUpdated) == (null)) + { + _client.DevToolsEvent -= (OnWorkerRegistrationUpdated); + } + } + } + + private void OnWorkerRegistrationUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("ServiceWorker.workerRegistrationUpdated")) + { + _WorkerRegistrationUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _WorkerVersionUpdated; + /// + /// WorkerVersionUpdated + /// + public event System.EventHandler WorkerVersionUpdated + { + add + { + if ((_WorkerVersionUpdated) == (null)) + { + _client.DevToolsEvent += (OnWorkerVersionUpdated); + } + + _WorkerVersionUpdated += (value); + } + + remove + { + _WorkerVersionUpdated -= (value); + if ((_WorkerVersionUpdated) == (null)) + { + _client.DevToolsEvent -= (OnWorkerVersionUpdated); + } + } + } + + private void OnWorkerVersionUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("ServiceWorker.workerVersionUpdated")) + { + _WorkerVersionUpdated?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateDeliverPushMessage(string origin, string registrationId, string data); /// /// DeliverPushMessage @@ -28700,7 +36825,7 @@ namespace CefSharp.DevTools.Storage /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("usage")] - public long Usage + public double Usage { get; private set; @@ -28711,7 +36836,7 @@ namespace CefSharp.DevTools.Storage /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("quota")] - public long Quota + public double Quota { get; private set; @@ -28800,6 +36925,142 @@ namespace CefSharp.DevTools.Storage _client = (client); } + private System.EventHandler _CacheStorageContentUpdated; + /// + /// A cache's contents have been modified. + /// + public event System.EventHandler CacheStorageContentUpdated + { + add + { + if ((_CacheStorageContentUpdated) == (null)) + { + _client.DevToolsEvent += (OnCacheStorageContentUpdated); + } + + _CacheStorageContentUpdated += (value); + } + + remove + { + _CacheStorageContentUpdated -= (value); + if ((_CacheStorageContentUpdated) == (null)) + { + _client.DevToolsEvent -= (OnCacheStorageContentUpdated); + } + } + } + + private void OnCacheStorageContentUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Storage.cacheStorageContentUpdated")) + { + _CacheStorageContentUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _CacheStorageListUpdated; + /// + /// A cache has been added/deleted. + /// + public event System.EventHandler CacheStorageListUpdated + { + add + { + if ((_CacheStorageListUpdated) == (null)) + { + _client.DevToolsEvent += (OnCacheStorageListUpdated); + } + + _CacheStorageListUpdated += (value); + } + + remove + { + _CacheStorageListUpdated -= (value); + if ((_CacheStorageListUpdated) == (null)) + { + _client.DevToolsEvent -= (OnCacheStorageListUpdated); + } + } + } + + private void OnCacheStorageListUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Storage.cacheStorageListUpdated")) + { + _CacheStorageListUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _IndexedDBContentUpdated; + /// + /// The origin's IndexedDB object store has been modified. + /// + public event System.EventHandler IndexedDBContentUpdated + { + add + { + if ((_IndexedDBContentUpdated) == (null)) + { + _client.DevToolsEvent += (OnIndexedDBContentUpdated); + } + + _IndexedDBContentUpdated += (value); + } + + remove + { + _IndexedDBContentUpdated -= (value); + if ((_IndexedDBContentUpdated) == (null)) + { + _client.DevToolsEvent -= (OnIndexedDBContentUpdated); + } + } + } + + private void OnIndexedDBContentUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Storage.indexedDBContentUpdated")) + { + _IndexedDBContentUpdated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _IndexedDBListUpdated; + /// + /// The origin's IndexedDB database list has been modified. + /// + public event System.EventHandler IndexedDBListUpdated + { + add + { + if ((_IndexedDBListUpdated) == (null)) + { + _client.DevToolsEvent += (OnIndexedDBListUpdated); + } + + _IndexedDBListUpdated += (value); + } + + remove + { + _IndexedDBListUpdated -= (value); + if ((_IndexedDBListUpdated) == (null)) + { + _client.DevToolsEvent -= (OnIndexedDBListUpdated); + } + } + } + + private void OnIndexedDBListUpdated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Storage.indexedDBListUpdated")) + { + _IndexedDBListUpdated?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateClearDataForOrigin(string origin, string storageTypes); /// /// Clears storage for origin. @@ -28891,14 +37152,14 @@ namespace CefSharp.DevTools.Storage return methodResult.DeserializeJson(); } - partial void ValidateOverrideQuotaForOrigin(string origin, long? quotaSize = null); + 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 overriden 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 async System.Threading.Tasks.Task OverrideQuotaForOriginAsync(string origin, long? quotaSize = null) + public async System.Threading.Tasks.Task OverrideQuotaForOriginAsync(string origin, double? quotaSize = null) { ValidateOverrideQuotaForOrigin(origin, quotaSize); var dict = new System.Collections.Generic.Dictionary(); @@ -29297,6 +37558,247 @@ namespace CefSharp.DevTools.Target _client = (client); } + private System.EventHandler _AttachedToTarget; + /// + /// Issued when attached to target because of auto-attach or `attachToTarget` command. + /// + public event System.EventHandler AttachedToTarget + { + add + { + if ((_AttachedToTarget) == (null)) + { + _client.DevToolsEvent += (OnAttachedToTarget); + } + + _AttachedToTarget += (value); + } + + remove + { + _AttachedToTarget -= (value); + if ((_AttachedToTarget) == (null)) + { + _client.DevToolsEvent -= (OnAttachedToTarget); + } + } + } + + private void OnAttachedToTarget(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.attachedToTarget")) + { + _AttachedToTarget?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DetachedFromTarget; + /// + /// 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 + { + if ((_DetachedFromTarget) == (null)) + { + _client.DevToolsEvent += (OnDetachedFromTarget); + } + + _DetachedFromTarget += (value); + } + + remove + { + _DetachedFromTarget -= (value); + if ((_DetachedFromTarget) == (null)) + { + _client.DevToolsEvent -= (OnDetachedFromTarget); + } + } + } + + private void OnDetachedFromTarget(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.detachedFromTarget")) + { + _DetachedFromTarget?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ReceivedMessageFromTarget; + /// + /// Notifies about a new protocol message received from the session (as reported in + /// `attachedToTarget` event). + /// + public event System.EventHandler ReceivedMessageFromTarget + { + add + { + if ((_ReceivedMessageFromTarget) == (null)) + { + _client.DevToolsEvent += (OnReceivedMessageFromTarget); + } + + _ReceivedMessageFromTarget += (value); + } + + remove + { + _ReceivedMessageFromTarget -= (value); + if ((_ReceivedMessageFromTarget) == (null)) + { + _client.DevToolsEvent -= (OnReceivedMessageFromTarget); + } + } + } + + private void OnReceivedMessageFromTarget(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.receivedMessageFromTarget")) + { + _ReceivedMessageFromTarget?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TargetCreated; + /// + /// Issued when a possible inspection target is created. + /// + public event System.EventHandler TargetCreated + { + add + { + if ((_TargetCreated) == (null)) + { + _client.DevToolsEvent += (OnTargetCreated); + } + + _TargetCreated += (value); + } + + remove + { + _TargetCreated -= (value); + if ((_TargetCreated) == (null)) + { + _client.DevToolsEvent -= (OnTargetCreated); + } + } + } + + private void OnTargetCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.targetCreated")) + { + _TargetCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TargetDestroyed; + /// + /// Issued when a target is destroyed. + /// + public event System.EventHandler TargetDestroyed + { + add + { + if ((_TargetDestroyed) == (null)) + { + _client.DevToolsEvent += (OnTargetDestroyed); + } + + _TargetDestroyed += (value); + } + + remove + { + _TargetDestroyed -= (value); + if ((_TargetDestroyed) == (null)) + { + _client.DevToolsEvent -= (OnTargetDestroyed); + } + } + } + + private void OnTargetDestroyed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.targetDestroyed")) + { + _TargetDestroyed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TargetCrashed; + /// + /// Issued when a target has crashed. + /// + public event System.EventHandler TargetCrashed + { + add + { + if ((_TargetCrashed) == (null)) + { + _client.DevToolsEvent += (OnTargetCrashed); + } + + _TargetCrashed += (value); + } + + remove + { + _TargetCrashed -= (value); + if ((_TargetCrashed) == (null)) + { + _client.DevToolsEvent -= (OnTargetCrashed); + } + } + } + + private void OnTargetCrashed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.targetCrashed")) + { + _TargetCrashed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TargetInfoChanged; + /// + /// Issued when some information about a target has changed. This only happens between + /// `targetCreated` and `targetDestroyed`. + /// + public event System.EventHandler TargetInfoChanged + { + add + { + if ((_TargetInfoChanged) == (null)) + { + _client.DevToolsEvent += (OnTargetInfoChanged); + } + + _TargetInfoChanged += (value); + } + + remove + { + _TargetInfoChanged -= (value); + if ((_TargetInfoChanged) == (null)) + { + _client.DevToolsEvent -= (OnTargetInfoChanged); + } + } + } + + private void OnTargetInfoChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Target.targetInfoChanged")) + { + _TargetInfoChanged?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateActivateTarget(string targetId); /// /// Activates (focuses) the target. @@ -29630,6 +38132,40 @@ namespace CefSharp.DevTools.Tethering _client = (client); } + private System.EventHandler _Accepted; + /// + /// Informs that port was successfully bound and got a specified connection id. + /// + public event System.EventHandler Accepted + { + add + { + if ((_Accepted) == (null)) + { + _client.DevToolsEvent += (OnAccepted); + } + + _Accepted += (value); + } + + remove + { + _Accepted -= (value); + if ((_Accepted) == (null)) + { + _client.DevToolsEvent -= (OnAccepted); + } + } + } + + private void OnAccepted(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Tethering.accepted")) + { + _Accepted?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateBind(int port); /// /// Request browser port binding. @@ -29732,6 +38268,110 @@ namespace CefSharp.DevTools.Tracing _client = (client); } + private System.EventHandler _BufferUsage; + /// + /// BufferUsage + /// + public event System.EventHandler BufferUsage + { + add + { + if ((_BufferUsage) == (null)) + { + _client.DevToolsEvent += (OnBufferUsage); + } + + _BufferUsage += (value); + } + + remove + { + _BufferUsage -= (value); + if ((_BufferUsage) == (null)) + { + _client.DevToolsEvent -= (OnBufferUsage); + } + } + } + + private void OnBufferUsage(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Tracing.bufferUsage")) + { + _BufferUsage?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _DataCollected; + /// + /// Contains an bucket of collected trace events. When tracing is stopped collected events will be + /// send as a sequence of dataCollected events followed by tracingComplete event. + /// + public event System.EventHandler DataCollected + { + add + { + if ((_DataCollected) == (null)) + { + _client.DevToolsEvent += (OnDataCollected); + } + + _DataCollected += (value); + } + + remove + { + _DataCollected -= (value); + if ((_DataCollected) == (null)) + { + _client.DevToolsEvent -= (OnDataCollected); + } + } + } + + private void OnDataCollected(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Tracing.dataCollected")) + { + _DataCollected?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _TracingComplete; + /// + /// 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 + { + if ((_TracingComplete) == (null)) + { + _client.DevToolsEvent += (OnTracingComplete); + } + + _TracingComplete += (value); + } + + remove + { + _TracingComplete -= (value); + if ((_TracingComplete) == (null)) + { + _client.DevToolsEvent -= (OnTracingComplete); + } + } + } + + private void OnTracingComplete(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Tracing.tracingComplete")) + { + _TracingComplete?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Stop trace events collection. /// @@ -29794,7 +38434,7 @@ namespace CefSharp.DevTools.Tracing return methodResult.DeserializeJson(); } - partial void ValidateStart(string categories = null, string options = null, long? bufferUsageReportingInterval = null, string transferMode = null, CefSharp.DevTools.Tracing.StreamFormat? streamFormat = null, CefSharp.DevTools.Tracing.StreamCompression? streamCompression = null, CefSharp.DevTools.Tracing.TraceConfig traceConfig = null, byte[] perfettoConfig = null, CefSharp.DevTools.Tracing.TracingBackend? tracingBackend = null); + partial void ValidateStart(string categories = null, string options = null, double? bufferUsageReportingInterval = null, string 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. /// @@ -29808,7 +38448,7 @@ namespace CefSharp.DevTools.Tracing /// 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 async System.Threading.Tasks.Task StartAsync(string categories = null, string options = null, long? bufferUsageReportingInterval = null, string transferMode = null, CefSharp.DevTools.Tracing.StreamFormat? streamFormat = null, CefSharp.DevTools.Tracing.StreamCompression? streamCompression = null, CefSharp.DevTools.Tracing.TraceConfig traceConfig = null, byte[] perfettoConfig = null, CefSharp.DevTools.Tracing.TracingBackend? tracingBackend = null) + public async System.Threading.Tasks.Task StartAsync(string categories = null, string options = null, double? bufferUsageReportingInterval = null, string 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(); @@ -29933,6 +38573,80 @@ namespace CefSharp.DevTools.Fetch _client = (client); } + private System.EventHandler _RequestPaused; + /// + /// 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. + /// + public event System.EventHandler RequestPaused + { + add + { + if ((_RequestPaused) == (null)) + { + _client.DevToolsEvent += (OnRequestPaused); + } + + _RequestPaused += (value); + } + + remove + { + _RequestPaused -= (value); + if ((_RequestPaused) == (null)) + { + _client.DevToolsEvent -= (OnRequestPaused); + } + } + } + + private void OnRequestPaused(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Fetch.requestPaused")) + { + _RequestPaused?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AuthRequired; + /// + /// 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 + { + if ((_AuthRequired) == (null)) + { + _client.DevToolsEvent += (OnAuthRequired); + } + + _AuthRequired += (value); + } + + remove + { + _AuthRequired -= (value); + if ((_AuthRequired) == (null)) + { + _client.DevToolsEvent -= (OnAuthRequired); + } + } + } + + private void OnAuthRequired(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Fetch.authRequired")) + { + _AuthRequired?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Disables the fetch domain. /// @@ -30170,6 +38884,448 @@ namespace CefSharp.DevTools.WebAudio _client = (client); } + private System.EventHandler _ContextCreated; + /// + /// Notifies that a new BaseAudioContext has been created. + /// + public event System.EventHandler ContextCreated + { + add + { + if ((_ContextCreated) == (null)) + { + _client.DevToolsEvent += (OnContextCreated); + } + + _ContextCreated += (value); + } + + remove + { + _ContextCreated -= (value); + if ((_ContextCreated) == (null)) + { + _client.DevToolsEvent -= (OnContextCreated); + } + } + } + + private void OnContextCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.contextCreated")) + { + _ContextCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ContextWillBeDestroyed; + /// + /// Notifies that an existing BaseAudioContext will be destroyed. + /// + public event System.EventHandler ContextWillBeDestroyed + { + add + { + if ((_ContextWillBeDestroyed) == (null)) + { + _client.DevToolsEvent += (OnContextWillBeDestroyed); + } + + _ContextWillBeDestroyed += (value); + } + + remove + { + _ContextWillBeDestroyed -= (value); + if ((_ContextWillBeDestroyed) == (null)) + { + _client.DevToolsEvent -= (OnContextWillBeDestroyed); + } + } + } + + private void OnContextWillBeDestroyed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.contextWillBeDestroyed")) + { + _ContextWillBeDestroyed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ContextChanged; + /// + /// Notifies that existing BaseAudioContext has changed some properties (id stays the same).. + /// + public event System.EventHandler ContextChanged + { + add + { + if ((_ContextChanged) == (null)) + { + _client.DevToolsEvent += (OnContextChanged); + } + + _ContextChanged += (value); + } + + remove + { + _ContextChanged -= (value); + if ((_ContextChanged) == (null)) + { + _client.DevToolsEvent -= (OnContextChanged); + } + } + } + + private void OnContextChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.contextChanged")) + { + _ContextChanged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AudioListenerCreated; + /// + /// Notifies that the construction of an AudioListener has finished. + /// + public event System.EventHandler AudioListenerCreated + { + add + { + if ((_AudioListenerCreated) == (null)) + { + _client.DevToolsEvent += (OnAudioListenerCreated); + } + + _AudioListenerCreated += (value); + } + + remove + { + _AudioListenerCreated -= (value); + if ((_AudioListenerCreated) == (null)) + { + _client.DevToolsEvent -= (OnAudioListenerCreated); + } + } + } + + private void OnAudioListenerCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.audioListenerCreated")) + { + _AudioListenerCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AudioListenerWillBeDestroyed; + /// + /// Notifies that a new AudioListener has been created. + /// + public event System.EventHandler AudioListenerWillBeDestroyed + { + add + { + if ((_AudioListenerWillBeDestroyed) == (null)) + { + _client.DevToolsEvent += (OnAudioListenerWillBeDestroyed); + } + + _AudioListenerWillBeDestroyed += (value); + } + + remove + { + _AudioListenerWillBeDestroyed -= (value); + if ((_AudioListenerWillBeDestroyed) == (null)) + { + _client.DevToolsEvent -= (OnAudioListenerWillBeDestroyed); + } + } + } + + private void OnAudioListenerWillBeDestroyed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.audioListenerWillBeDestroyed")) + { + _AudioListenerWillBeDestroyed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AudioNodeCreated; + /// + /// Notifies that a new AudioNode has been created. + /// + public event System.EventHandler AudioNodeCreated + { + add + { + if ((_AudioNodeCreated) == (null)) + { + _client.DevToolsEvent += (OnAudioNodeCreated); + } + + _AudioNodeCreated += (value); + } + + remove + { + _AudioNodeCreated -= (value); + if ((_AudioNodeCreated) == (null)) + { + _client.DevToolsEvent -= (OnAudioNodeCreated); + } + } + } + + private void OnAudioNodeCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.audioNodeCreated")) + { + _AudioNodeCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AudioNodeWillBeDestroyed; + /// + /// Notifies that an existing AudioNode has been destroyed. + /// + public event System.EventHandler AudioNodeWillBeDestroyed + { + add + { + if ((_AudioNodeWillBeDestroyed) == (null)) + { + _client.DevToolsEvent += (OnAudioNodeWillBeDestroyed); + } + + _AudioNodeWillBeDestroyed += (value); + } + + remove + { + _AudioNodeWillBeDestroyed -= (value); + if ((_AudioNodeWillBeDestroyed) == (null)) + { + _client.DevToolsEvent -= (OnAudioNodeWillBeDestroyed); + } + } + } + + private void OnAudioNodeWillBeDestroyed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.audioNodeWillBeDestroyed")) + { + _AudioNodeWillBeDestroyed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AudioParamCreated; + /// + /// Notifies that a new AudioParam has been created. + /// + public event System.EventHandler AudioParamCreated + { + add + { + if ((_AudioParamCreated) == (null)) + { + _client.DevToolsEvent += (OnAudioParamCreated); + } + + _AudioParamCreated += (value); + } + + remove + { + _AudioParamCreated -= (value); + if ((_AudioParamCreated) == (null)) + { + _client.DevToolsEvent -= (OnAudioParamCreated); + } + } + } + + private void OnAudioParamCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.audioParamCreated")) + { + _AudioParamCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _AudioParamWillBeDestroyed; + /// + /// Notifies that an existing AudioParam has been destroyed. + /// + public event System.EventHandler AudioParamWillBeDestroyed + { + add + { + if ((_AudioParamWillBeDestroyed) == (null)) + { + _client.DevToolsEvent += (OnAudioParamWillBeDestroyed); + } + + _AudioParamWillBeDestroyed += (value); + } + + remove + { + _AudioParamWillBeDestroyed -= (value); + if ((_AudioParamWillBeDestroyed) == (null)) + { + _client.DevToolsEvent -= (OnAudioParamWillBeDestroyed); + } + } + } + + private void OnAudioParamWillBeDestroyed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.audioParamWillBeDestroyed")) + { + _AudioParamWillBeDestroyed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NodesConnected; + /// + /// Notifies that two AudioNodes are connected. + /// + public event System.EventHandler NodesConnected + { + add + { + if ((_NodesConnected) == (null)) + { + _client.DevToolsEvent += (OnNodesConnected); + } + + _NodesConnected += (value); + } + + remove + { + _NodesConnected -= (value); + if ((_NodesConnected) == (null)) + { + _client.DevToolsEvent -= (OnNodesConnected); + } + } + } + + private void OnNodesConnected(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.nodesConnected")) + { + _NodesConnected?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NodesDisconnected; + /// + /// 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 + { + if ((_NodesDisconnected) == (null)) + { + _client.DevToolsEvent += (OnNodesDisconnected); + } + + _NodesDisconnected += (value); + } + + remove + { + _NodesDisconnected -= (value); + if ((_NodesDisconnected) == (null)) + { + _client.DevToolsEvent -= (OnNodesDisconnected); + } + } + } + + private void OnNodesDisconnected(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.nodesDisconnected")) + { + _NodesDisconnected?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NodeParamConnected; + /// + /// Notifies that an AudioNode is connected to an AudioParam. + /// + public event System.EventHandler NodeParamConnected + { + add + { + if ((_NodeParamConnected) == (null)) + { + _client.DevToolsEvent += (OnNodeParamConnected); + } + + _NodeParamConnected += (value); + } + + remove + { + _NodeParamConnected -= (value); + if ((_NodeParamConnected) == (null)) + { + _client.DevToolsEvent -= (OnNodeParamConnected); + } + } + } + + private void OnNodeParamConnected(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.nodeParamConnected")) + { + _NodeParamConnected?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _NodeParamDisconnected; + /// + /// Notifies that an AudioNode is disconnected to an AudioParam. + /// + public event System.EventHandler NodeParamDisconnected + { + add + { + if ((_NodeParamDisconnected) == (null)) + { + _client.DevToolsEvent += (OnNodeParamDisconnected); + } + + _NodeParamDisconnected += (value); + } + + remove + { + _NodeParamDisconnected -= (value); + if ((_NodeParamDisconnected) == (null)) + { + _client.DevToolsEvent -= (OnNodeParamDisconnected); + } + } + } + + private void OnNodeParamDisconnected(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("WebAudio.nodeParamDisconnected")) + { + _NodeParamDisconnected?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Enables the WebAudio domain and starts sending context lifetime events. /// @@ -30481,6 +39637,180 @@ namespace CefSharp.DevTools.Media _client = (client); } + private System.EventHandler _PlayerPropertiesChanged; + /// + /// 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 + { + if ((_PlayerPropertiesChanged) == (null)) + { + _client.DevToolsEvent += (OnPlayerPropertiesChanged); + } + + _PlayerPropertiesChanged += (value); + } + + remove + { + _PlayerPropertiesChanged -= (value); + if ((_PlayerPropertiesChanged) == (null)) + { + _client.DevToolsEvent -= (OnPlayerPropertiesChanged); + } + } + } + + private void OnPlayerPropertiesChanged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Media.playerPropertiesChanged")) + { + _PlayerPropertiesChanged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PlayerEventsAdded; + /// + /// 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 + { + if ((_PlayerEventsAdded) == (null)) + { + _client.DevToolsEvent += (OnPlayerEventsAdded); + } + + _PlayerEventsAdded += (value); + } + + remove + { + _PlayerEventsAdded -= (value); + if ((_PlayerEventsAdded) == (null)) + { + _client.DevToolsEvent -= (OnPlayerEventsAdded); + } + } + } + + private void OnPlayerEventsAdded(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Media.playerEventsAdded")) + { + _PlayerEventsAdded?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PlayerMessagesLogged; + /// + /// Send a list of any messages that need to be delivered. + /// + public event System.EventHandler PlayerMessagesLogged + { + add + { + if ((_PlayerMessagesLogged) == (null)) + { + _client.DevToolsEvent += (OnPlayerMessagesLogged); + } + + _PlayerMessagesLogged += (value); + } + + remove + { + _PlayerMessagesLogged -= (value); + if ((_PlayerMessagesLogged) == (null)) + { + _client.DevToolsEvent -= (OnPlayerMessagesLogged); + } + } + } + + private void OnPlayerMessagesLogged(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Media.playerMessagesLogged")) + { + _PlayerMessagesLogged?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PlayerErrorsRaised; + /// + /// Send a list of any errors that need to be delivered. + /// + public event System.EventHandler PlayerErrorsRaised + { + add + { + if ((_PlayerErrorsRaised) == (null)) + { + _client.DevToolsEvent += (OnPlayerErrorsRaised); + } + + _PlayerErrorsRaised += (value); + } + + remove + { + _PlayerErrorsRaised -= (value); + if ((_PlayerErrorsRaised) == (null)) + { + _client.DevToolsEvent -= (OnPlayerErrorsRaised); + } + } + } + + private void OnPlayerErrorsRaised(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Media.playerErrorsRaised")) + { + _PlayerErrorsRaised?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PlayersCreated; + /// + /// Called whenever a player is created, or when a new agent joins and recieves + /// a list of active players. If an agent is restored, it will recieve the full + /// list of player ids and all events again. + /// + public event System.EventHandler PlayersCreated + { + add + { + if ((_PlayersCreated) == (null)) + { + _client.DevToolsEvent += (OnPlayersCreated); + } + + _PlayersCreated += (value); + } + + remove + { + _PlayersCreated -= (value); + if ((_PlayersCreated) == (null)) + { + _client.DevToolsEvent -= (OnPlayersCreated); + } + } + } + + private void OnPlayersCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Media.playersCreated")) + { + _PlayersCreated?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Enables the Media domain /// @@ -30875,6 +40205,177 @@ namespace CefSharp.DevTools.Debugger _client = (client); } + private System.EventHandler _BreakpointResolved; + /// + /// Fired when breakpoint is resolved to an actual script and location. + /// + public event System.EventHandler BreakpointResolved + { + add + { + if ((_BreakpointResolved) == (null)) + { + _client.DevToolsEvent += (OnBreakpointResolved); + } + + _BreakpointResolved += (value); + } + + remove + { + _BreakpointResolved -= (value); + if ((_BreakpointResolved) == (null)) + { + _client.DevToolsEvent -= (OnBreakpointResolved); + } + } + } + + private void OnBreakpointResolved(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Debugger.breakpointResolved")) + { + _BreakpointResolved?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _Paused; + /// + /// Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + /// + public event System.EventHandler Paused + { + add + { + if ((_Paused) == (null)) + { + _client.DevToolsEvent += (OnPaused); + } + + _Paused += (value); + } + + remove + { + _Paused -= (value); + if ((_Paused) == (null)) + { + _client.DevToolsEvent -= (OnPaused); + } + } + } + + private void OnPaused(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Debugger.paused")) + { + _Paused?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _Resumed; + /// + /// Fired when the virtual machine resumed execution. + /// + public event System.EventHandler Resumed + { + add + { + if ((_Resumed) == (null)) + { + _client.DevToolsEvent += (OnResumed); + } + + _Resumed += (value); + } + + remove + { + _Resumed -= (value); + if ((_Resumed) == (null)) + { + _client.DevToolsEvent -= (OnResumed); + } + } + } + + private void OnResumed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Debugger.resumed")) + { + _Resumed?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _ScriptFailedToParse; + /// + /// Fired when virtual machine fails to parse the script. + /// + public event System.EventHandler ScriptFailedToParse + { + add + { + if ((_ScriptFailedToParse) == (null)) + { + _client.DevToolsEvent += (OnScriptFailedToParse); + } + + _ScriptFailedToParse += (value); + } + + remove + { + _ScriptFailedToParse -= (value); + if ((_ScriptFailedToParse) == (null)) + { + _client.DevToolsEvent -= (OnScriptFailedToParse); + } + } + } + + private void OnScriptFailedToParse(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Debugger.scriptFailedToParse")) + { + _ScriptFailedToParse?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ScriptParsed; + /// + /// 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 + { + if ((_ScriptParsed) == (null)) + { + _client.DevToolsEvent += (OnScriptParsed); + } + + _ScriptParsed += (value); + } + + remove + { + _ScriptParsed -= (value); + if ((_ScriptParsed) == (null)) + { + _client.DevToolsEvent -= (OnScriptParsed); + } + } + } + + private void OnScriptParsed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Debugger.scriptParsed")) + { + _ScriptParsed?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateContinueToLocation(CefSharp.DevTools.Debugger.Location location, string targetCallFrames = null); /// /// Continues execution until specific location is reached. @@ -30907,14 +40408,14 @@ namespace CefSharp.DevTools.Debugger return methodResult; } - partial void ValidateEnable(long? maxScriptsCacheSize = null); + 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 paramter is omitted. /// returns System.Threading.Tasks.Task<EnableResponse> - public async System.Threading.Tasks.Task EnableAsync(long? maxScriptsCacheSize = null) + public async System.Threading.Tasks.Task EnableAsync(double? maxScriptsCacheSize = null) { ValidateEnable(maxScriptsCacheSize); var dict = new System.Collections.Generic.Dictionary(); @@ -30927,7 +40428,7 @@ namespace CefSharp.DevTools.Debugger return methodResult.DeserializeJson(); } - partial void ValidateEvaluateOnCallFrame(string callFrameId, string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? throwOnSideEffect = null, long? timeout = null); + 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. /// @@ -30941,7 +40442,7 @@ namespace CefSharp.DevTools.Debugger /// 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 async System.Threading.Tasks.Task EvaluateOnCallFrameAsync(string callFrameId, string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? throwOnSideEffect = null, long? timeout = null) + public async System.Threading.Tasks.Task EvaluateOnCallFrameAsync(string callFrameId, string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? throwOnSideEffect = null, double? timeout = null) { ValidateEvaluateOnCallFrame(callFrameId, expression, objectGroup, includeCommandLineAPI, silent, returnByValue, generatePreview, throwOnSideEffect, timeout); var dict = new System.Collections.Generic.Dictionary(); @@ -31554,6 +41055,178 @@ namespace CefSharp.DevTools.HeapProfiler _client = (client); } + private System.EventHandler _AddHeapSnapshotChunk; + /// + /// AddHeapSnapshotChunk + /// + public event System.EventHandler AddHeapSnapshotChunk + { + add + { + if ((_AddHeapSnapshotChunk) == (null)) + { + _client.DevToolsEvent += (OnAddHeapSnapshotChunk); + } + + _AddHeapSnapshotChunk += (value); + } + + remove + { + _AddHeapSnapshotChunk -= (value); + if ((_AddHeapSnapshotChunk) == (null)) + { + _client.DevToolsEvent -= (OnAddHeapSnapshotChunk); + } + } + } + + private void OnAddHeapSnapshotChunk(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("HeapProfiler.addHeapSnapshotChunk")) + { + _AddHeapSnapshotChunk?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _HeapStatsUpdate; + /// + /// If heap objects tracking has been started then backend may send update for one or more fragments + /// + public event System.EventHandler HeapStatsUpdate + { + add + { + if ((_HeapStatsUpdate) == (null)) + { + _client.DevToolsEvent += (OnHeapStatsUpdate); + } + + _HeapStatsUpdate += (value); + } + + remove + { + _HeapStatsUpdate -= (value); + if ((_HeapStatsUpdate) == (null)) + { + _client.DevToolsEvent -= (OnHeapStatsUpdate); + } + } + } + + private void OnHeapStatsUpdate(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("HeapProfiler.heapStatsUpdate")) + { + _HeapStatsUpdate?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _LastSeenObjectId; + /// + /// 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 + { + if ((_LastSeenObjectId) == (null)) + { + _client.DevToolsEvent += (OnLastSeenObjectId); + } + + _LastSeenObjectId += (value); + } + + remove + { + _LastSeenObjectId -= (value); + if ((_LastSeenObjectId) == (null)) + { + _client.DevToolsEvent -= (OnLastSeenObjectId); + } + } + } + + private void OnLastSeenObjectId(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("HeapProfiler.lastSeenObjectId")) + { + _LastSeenObjectId?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ReportHeapSnapshotProgress; + /// + /// ReportHeapSnapshotProgress + /// + public event System.EventHandler ReportHeapSnapshotProgress + { + add + { + if ((_ReportHeapSnapshotProgress) == (null)) + { + _client.DevToolsEvent += (OnReportHeapSnapshotProgress); + } + + _ReportHeapSnapshotProgress += (value); + } + + remove + { + _ReportHeapSnapshotProgress -= (value); + if ((_ReportHeapSnapshotProgress) == (null)) + { + _client.DevToolsEvent -= (OnReportHeapSnapshotProgress); + } + } + } + + private void OnReportHeapSnapshotProgress(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("HeapProfiler.reportHeapSnapshotProgress")) + { + _ReportHeapSnapshotProgress?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ResetProfiles; + /// + /// ResetProfiles + /// + public event System.EventHandler ResetProfiles + { + add + { + if ((_ResetProfiles) == (null)) + { + _client.DevToolsEvent += (OnResetProfiles); + } + + _ResetProfiles += (value); + } + + remove + { + _ResetProfiles -= (value); + if ((_ResetProfiles) == (null)) + { + _client.DevToolsEvent -= (OnResetProfiles); + } + } + } + + private void OnResetProfiles(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("HeapProfiler.resetProfiles")) + { + _ResetProfiles?.Invoke(this, System.EventArgs.Empty); + } + } + partial void ValidateAddInspectedHeapObject(string heapObjectId); /// /// Enables console to refer to the node with given id via $x (see Command Line API for more details @@ -31650,13 +41323,13 @@ namespace CefSharp.DevTools.HeapProfiler return methodResult.DeserializeJson(); } - partial void ValidateStartSampling(long? samplingInterval = null); + partial void ValidateStartSampling(double? samplingInterval = null); /// /// StartSampling /// /// Average sample interval in bytes. Poisson distribution is used for the intervals. Thedefault value is 32768 bytes. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public async System.Threading.Tasks.Task StartSamplingAsync(long? samplingInterval = null) + public async System.Threading.Tasks.Task StartSamplingAsync(double? samplingInterval = null) { ValidateStartSampling(samplingInterval); var dict = new System.Collections.Generic.Dictionary(); @@ -31783,7 +41456,7 @@ namespace CefSharp.DevTools.Profiler /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] - public long Timestamp + public double Timestamp { get; private set; @@ -31834,7 +41507,7 @@ namespace CefSharp.DevTools.Profiler /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] - public long Timestamp + public double Timestamp { get; private set; @@ -31921,6 +41594,111 @@ namespace CefSharp.DevTools.Profiler _client = (client); } + private System.EventHandler _ConsoleProfileFinished; + /// + /// ConsoleProfileFinished + /// + public event System.EventHandler ConsoleProfileFinished + { + add + { + if ((_ConsoleProfileFinished) == (null)) + { + _client.DevToolsEvent += (OnConsoleProfileFinished); + } + + _ConsoleProfileFinished += (value); + } + + remove + { + _ConsoleProfileFinished -= (value); + if ((_ConsoleProfileFinished) == (null)) + { + _client.DevToolsEvent -= (OnConsoleProfileFinished); + } + } + } + + private void OnConsoleProfileFinished(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Profiler.consoleProfileFinished")) + { + _ConsoleProfileFinished?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ConsoleProfileStarted; + /// + /// Sent when new profile recording is started using console.profile() call. + /// + public event System.EventHandler ConsoleProfileStarted + { + add + { + if ((_ConsoleProfileStarted) == (null)) + { + _client.DevToolsEvent += (OnConsoleProfileStarted); + } + + _ConsoleProfileStarted += (value); + } + + remove + { + _ConsoleProfileStarted -= (value); + if ((_ConsoleProfileStarted) == (null)) + { + _client.DevToolsEvent -= (OnConsoleProfileStarted); + } + } + } + + private void OnConsoleProfileStarted(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Profiler.consoleProfileStarted")) + { + _ConsoleProfileStarted?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _PreciseCoverageDeltaUpdate; + /// + /// 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 immediatelly at a certain point in time. + /// + public event System.EventHandler PreciseCoverageDeltaUpdate + { + add + { + if ((_PreciseCoverageDeltaUpdate) == (null)) + { + _client.DevToolsEvent += (OnPreciseCoverageDeltaUpdate); + } + + _PreciseCoverageDeltaUpdate += (value); + } + + remove + { + _PreciseCoverageDeltaUpdate -= (value); + if ((_PreciseCoverageDeltaUpdate) == (null)) + { + _client.DevToolsEvent -= (OnPreciseCoverageDeltaUpdate); + } + } + } + + private void OnPreciseCoverageDeltaUpdate(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Profiler.preciseCoverageDeltaUpdate")) + { + _PreciseCoverageDeltaUpdate?.Invoke(this, args.DeserializeJson()); + } + } + /// /// Disable /// @@ -32306,7 +42084,7 @@ namespace CefSharp.DevTools.Runtime /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("usedSize")] - public long UsedSize + public double UsedSize { get; private set; @@ -32317,7 +42095,7 @@ namespace CefSharp.DevTools.Runtime /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("totalSize")] - public long TotalSize + public double TotalSize { get; private set; @@ -32472,6 +42250,279 @@ namespace CefSharp.DevTools.Runtime _client = (client); } + private System.EventHandler _BindingCalled; + /// + /// Notification is issued every time when binding is called. + /// + public event System.EventHandler BindingCalled + { + add + { + if ((_BindingCalled) == (null)) + { + _client.DevToolsEvent += (OnBindingCalled); + } + + _BindingCalled += (value); + } + + remove + { + _BindingCalled -= (value); + if ((_BindingCalled) == (null)) + { + _client.DevToolsEvent -= (OnBindingCalled); + } + } + } + + private void OnBindingCalled(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.bindingCalled")) + { + _BindingCalled?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ConsoleAPICalled; + /// + /// Issued when console API was called. + /// + public event System.EventHandler ConsoleAPICalled + { + add + { + if ((_ConsoleAPICalled) == (null)) + { + _client.DevToolsEvent += (OnConsoleAPICalled); + } + + _ConsoleAPICalled += (value); + } + + remove + { + _ConsoleAPICalled -= (value); + if ((_ConsoleAPICalled) == (null)) + { + _client.DevToolsEvent -= (OnConsoleAPICalled); + } + } + } + + private void OnConsoleAPICalled(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.consoleAPICalled")) + { + _ConsoleAPICalled?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ExceptionRevoked; + /// + /// Issued when unhandled exception was revoked. + /// + public event System.EventHandler ExceptionRevoked + { + add + { + if ((_ExceptionRevoked) == (null)) + { + _client.DevToolsEvent += (OnExceptionRevoked); + } + + _ExceptionRevoked += (value); + } + + remove + { + _ExceptionRevoked -= (value); + if ((_ExceptionRevoked) == (null)) + { + _client.DevToolsEvent -= (OnExceptionRevoked); + } + } + } + + private void OnExceptionRevoked(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.exceptionRevoked")) + { + _ExceptionRevoked?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ExceptionThrown; + /// + /// Issued when exception was thrown and unhandled. + /// + public event System.EventHandler ExceptionThrown + { + add + { + if ((_ExceptionThrown) == (null)) + { + _client.DevToolsEvent += (OnExceptionThrown); + } + + _ExceptionThrown += (value); + } + + remove + { + _ExceptionThrown -= (value); + if ((_ExceptionThrown) == (null)) + { + _client.DevToolsEvent -= (OnExceptionThrown); + } + } + } + + private void OnExceptionThrown(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.exceptionThrown")) + { + _ExceptionThrown?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ExecutionContextCreated; + /// + /// Issued when new execution context is created. + /// + public event System.EventHandler ExecutionContextCreated + { + add + { + if ((_ExecutionContextCreated) == (null)) + { + _client.DevToolsEvent += (OnExecutionContextCreated); + } + + _ExecutionContextCreated += (value); + } + + remove + { + _ExecutionContextCreated -= (value); + if ((_ExecutionContextCreated) == (null)) + { + _client.DevToolsEvent -= (OnExecutionContextCreated); + } + } + } + + private void OnExecutionContextCreated(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.executionContextCreated")) + { + _ExecutionContextCreated?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ExecutionContextDestroyed; + /// + /// Issued when execution context is destroyed. + /// + public event System.EventHandler ExecutionContextDestroyed + { + add + { + if ((_ExecutionContextDestroyed) == (null)) + { + _client.DevToolsEvent += (OnExecutionContextDestroyed); + } + + _ExecutionContextDestroyed += (value); + } + + remove + { + _ExecutionContextDestroyed -= (value); + if ((_ExecutionContextDestroyed) == (null)) + { + _client.DevToolsEvent -= (OnExecutionContextDestroyed); + } + } + } + + private void OnExecutionContextDestroyed(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.executionContextDestroyed")) + { + _ExecutionContextDestroyed?.Invoke(this, args.DeserializeJson()); + } + } + + private System.EventHandler _ExecutionContextsCleared; + /// + /// Issued when all executionContexts were cleared in browser + /// + public event System.EventHandler ExecutionContextsCleared + { + add + { + if ((_ExecutionContextsCleared) == (null)) + { + _client.DevToolsEvent += (OnExecutionContextsCleared); + } + + _ExecutionContextsCleared += (value); + } + + remove + { + _ExecutionContextsCleared -= (value); + if ((_ExecutionContextsCleared) == (null)) + { + _client.DevToolsEvent -= (OnExecutionContextsCleared); + } + } + } + + private void OnExecutionContextsCleared(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.executionContextsCleared")) + { + _ExecutionContextsCleared?.Invoke(this, System.EventArgs.Empty); + } + } + + private System.EventHandler _InspectRequested; + /// + /// Issued when object should be inspected (for example, as a result of inspect() command line API + /// call). + /// + public event System.EventHandler InspectRequested + { + add + { + if ((_InspectRequested) == (null)) + { + _client.DevToolsEvent += (OnInspectRequested); + } + + _InspectRequested += (value); + } + + remove + { + _InspectRequested -= (value); + if ((_InspectRequested) == (null)) + { + _client.DevToolsEvent -= (OnInspectRequested); + } + } + } + + private void OnInspectRequested(object sender, CefSharp.DevTools.DevToolsEventArgs args) + { + if ((args.EventName) == ("Runtime.inspectRequested")) + { + _InspectRequested?.Invoke(this, args.DeserializeJson()); + } + } + partial void ValidateAwaitPromise(string promiseObjectId, bool? returnByValue = null, bool? generatePreview = null); /// /// Add handler to promise with given promise object id. @@ -32629,7 +42680,7 @@ namespace CefSharp.DevTools.Runtime return methodResult; } - partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, long? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null); + 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); /// /// Evaluates expression on global object. /// @@ -32649,7 +42700,7 @@ namespace CefSharp.DevTools.Runtime /// 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 accross 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 accross processboundaries).This is mutually exclusive with `contextId`. /// returns System.Threading.Tasks.Task<EvaluateResponse> - public async System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, long? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null) + public async System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null) { ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId); var dict = new System.Collections.Generic.Dictionary(); diff --git a/CefSharp/DevTools/DevToolsClient.cs b/CefSharp/DevTools/DevToolsClient.cs index 39afa84de..b6bb8fee1 100644 --- a/CefSharp/DevTools/DevToolsClient.cs +++ b/CefSharp/DevTools/DevToolsClient.cs @@ -34,7 +34,7 @@ namespace CefSharp.DevTools /// /// DevToolsEvent /// - public EventHandler DevToolsEvent; + public event EventHandler DevToolsEvent; /// /// Capture the current so @@ -226,7 +226,7 @@ namespace CefSharp.DevTools { execute = () => { - var errorObj = methodResult.DeserializeJson(); + var errorObj = methodResult.DeserializeJson(ignoreSuccess: true); errorObj.MessageId = messageId; //Make sure continuation runs on Thread Pool diff --git a/CefSharp/DevTools/DevToolsDomainErrorResponse.cs b/CefSharp/DevTools/DevToolsDomainErrorResponse.cs index 4f19a35d9..e7c28a266 100644 --- a/CefSharp/DevTools/DevToolsDomainErrorResponse.cs +++ b/CefSharp/DevTools/DevToolsDomainErrorResponse.cs @@ -10,6 +10,7 @@ namespace CefSharp.DevTools /// Error Message parsed from JSON /// e.g. {"code":-32601,"message":"'Browser.getWindowForTarget' wasn't found"} /// + [DataContract] public class DevToolsDomainErrorResponse { /// diff --git a/CefSharp/DevTools/DevToolsDomainEventArgsBase.cs b/CefSharp/DevTools/DevToolsDomainEventArgsBase.cs new file mode 100644 index 000000000..55661cc6b --- /dev/null +++ b/CefSharp/DevTools/DevToolsDomainEventArgsBase.cs @@ -0,0 +1,25 @@ +// Copyright © 2021 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; +using System.Runtime.Serialization; + +namespace CefSharp.DevTools +{ + [DataContract] + public abstract class DevToolsDomainEventArgsBase : EventArgs + { +#if !NETCOREAPP + public static object StringToEnum(Type enumType, string input) + { + return DevToolsDomainEntityBase.StringToEnum(enumType, input); + } + + public static string EnumToString(Enum e) + { + return DevToolsDomainEntityBase.EnumToString(e); + } +#endif + } +} diff --git a/CefSharp/DevTools/DevToolsEventArgs.cs b/CefSharp/DevTools/DevToolsEventArgs.cs index d0f5110f8..60cd208bf 100644 --- a/CefSharp/DevTools/DevToolsEventArgs.cs +++ b/CefSharp/DevTools/DevToolsEventArgs.cs @@ -4,6 +4,11 @@ using System; +#if !NETCOREAPP +using System.IO; +using System.Runtime.Serialization.Json; +using System.Text; +#endif namespace CefSharp.DevTools { @@ -13,7 +18,7 @@ namespace CefSharp.DevTools public class DevToolsEventArgs : EventArgs { /// - /// Method + /// Event Name /// public string EventName { get; private set; } @@ -27,5 +32,30 @@ namespace CefSharp.DevTools EventName = eventName; ParametersAsJsonString = paramsAsJsonString; } + + internal T DeserializeJson() + { +#if NETCOREAPP + var options = new System.Text.Json.JsonSerializerOptions + { + PropertyNameCaseInsensitive = true, + IgnoreNullValues = true, + }; + + options.Converters.Add(new Internals.Json.JsonEnumConverterFactory()); + + return System.Text.Json.JsonSerializer.Deserialize(ParametersAsJsonString, options); +#else + var bytes = Encoding.UTF8.GetBytes(ParametersAsJsonString); + using (var ms = new MemoryStream(bytes)) + { + var settings = new DataContractJsonSerializerSettings(); + settings.UseSimpleDictionaryFormat = true; + + var dcs = new DataContractJsonSerializer(typeof(T), settings); + return (T)dcs.ReadObject(ms); + } +#endif + } } } diff --git a/CefSharp/DevTools/DevToolsMethodResponse.cs b/CefSharp/DevTools/DevToolsMethodResponse.cs index c84ef99ff..833e1f48e 100644 --- a/CefSharp/DevTools/DevToolsMethodResponse.cs +++ b/CefSharp/DevTools/DevToolsMethodResponse.cs @@ -28,9 +28,9 @@ namespace CefSharp.DevTools /// public string ResponseAsJsonString { get; set; } - internal T DeserializeJson() + internal T DeserializeJson(bool ignoreSuccess = false) { - if (Success) + if (Success || ignoreSuccess) { #if NETCOREAPP var options = new System.Text.Json.JsonSerializerOptions @@ -48,7 +48,10 @@ namespace CefSharp.DevTools var bytes = Encoding.UTF8.GetBytes(ResponseAsJsonString); using (var ms = new MemoryStream(bytes)) { - var dcs = new DataContractJsonSerializer(typeof(T)); + var settings = new DataContractJsonSerializerSettings(); + settings.UseSimpleDictionaryFormat = true; + + var dcs = new DataContractJsonSerializer(typeof(T), settings); return (T)dcs.ReadObject(ms); } #endif diff --git a/CefSharp/DevTools/Headers.cs b/CefSharp/DevTools/Headers.cs index ef7400231..166b0cd9d 100644 --- a/CefSharp/DevTools/Headers.cs +++ b/CefSharp/DevTools/Headers.cs @@ -2,16 +2,160 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. -using System.Collections.Specialized; +using System; +using System.Collections.Generic; +using System.Linq; namespace CefSharp.DevTools.Network { - //TODO: Properly implement this type - public class Headers : NameValueCollection + /// + /// Request / response headers as keys / values of JSON object. + /// + /// + /// CDP uses comma seperated values to store multiple header values. + /// Use or to get a string[] + /// for headers that have multiple values. + /// + /// Helper methods for dealing with comma separated header values based on https://github.com/dotnet/aspnetcore/blob/52eff90fbcfca39b7eb58baad597df6a99a542b0/src/Http/Http.Abstractions/src/Extensions/HeaderDictionaryExtensions.cs + public class Headers : Dictionary { - public NameValueCollection ToDictionary() + public Headers() : base(StringComparer.OrdinalIgnoreCase) + { + } + + public Dictionary ToDictionary() { return this; } + + /// + /// Gets an array of values for the specified key. Values are comma seperated and will be split into a string[]. + /// Quoted values will not be split, and the quotes will be removed. + /// + /// The header name. + /// the associated values from the dictionary separated into individual values, or null if the key is not present. + /// true if the Dictionary contains an element with the specified key; otherwise, false. + public bool TryGetValues(string key, out string[] values) + { + values = null; + string value; + + if (TryGetValue(key, out value)) + { + var list = new List(); + + var valueStartIndex = -1; + var valueEndIndex = -1; + var inQuote = false; + for (var i = 0; i < value.Length; i++) + { + var c = value[i]; + + if (c == '\"') + { + inQuote = !inQuote; + continue; + } + + if (!inQuote && char.IsWhiteSpace(c)) + { + continue; + } + + if (valueStartIndex == -1) + { + valueStartIndex = i; + } + + if (!inQuote && c == ',') + { + if (valueEndIndex == -1) + { + list.Add(string.Empty); + } + else + { + list.Add(value.Substring(valueStartIndex, valueEndIndex + 1 - valueStartIndex)); + } + valueStartIndex = -1; + valueEndIndex = -1; + continue; + } + + valueEndIndex = i; + } + if (valueEndIndex == -1) + { + list.Add(string.Empty); + } + else + { + list.Add(value.Substring(valueStartIndex, valueEndIndex + 1 - valueStartIndex)); + } + + values = list.ToArray(); + + return true; + } + + return false; + } + + /// + /// Get the associated values from the dictionary separated into individual values. + /// Quoted values will not be split, and the quotes will be removed. + /// + /// The header name. + /// the associated values from the dictionary separated into individual values, or null if the key is not present. + public string[] GetCommaSeparatedValues(string key) + { + string[] values; + + if (TryGetValues(key, out values)) + { + return values; + } + + return null; + } + + /// + /// Quotes any values containing commas, and then comma joins all of the values with any existing values. + /// + /// The header name. + /// The header values. + public void AppendCommaSeparatedValues(string key, params string[] values) + { + if (TryGetValue(key, out var existingValue)) + { + this[key] = existingValue + "," + string.Join(",", values.Select(QuoteIfNeeded)); + } + else + { + SetCommaSeparatedValues(key, values); + } + } + + /// + /// Quotes any values containing commas, and then comma joins all of the values. + /// + /// The header name. + /// The header values. + public void SetCommaSeparatedValues(string key, params string[] values) + { + this[key] = string.Join(",", values.Select(QuoteIfNeeded)); + } + + private static string QuoteIfNeeded(string value) + { + if (!string.IsNullOrEmpty(value) && + value.Contains(',') && + (value[0] != '"' || value[value.Length - 1] != '"')) + { + return "\"" + value + "\""; + } + + return value; + } } } diff --git a/CefSharp/DevTools/IDevToolsClient.cs b/CefSharp/DevTools/IDevToolsClient.cs index 510c3b3ec..771012a67 100644 --- a/CefSharp/DevTools/IDevToolsClient.cs +++ b/CefSharp/DevTools/IDevToolsClient.cs @@ -2,6 +2,7 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System; using System.Collections.Generic; using System.Threading.Tasks; @@ -12,6 +13,11 @@ namespace CefSharp.DevTools /// public interface IDevToolsClient { + /// + /// DevToolsEvent + /// + event EventHandler DevToolsEvent; + /// /// Execute a method call over the DevTools protocol. This method can be called on any thread. /// See the DevTools protocol documentation at https://chromedevtools.github.io/devtools-protocol/ for details