diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 6b4cf60bb..8ed7a2056 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/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 135.0.7049.52 +// CHROMIUM VERSION 136.0.7103.93 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -3046,7 +3046,12 @@ public enum SRIMessageSignatureError /// ValidationFailedSignatureMismatch /// [EnumMember(Value = ("ValidationFailedSignatureMismatch"))] - ValidationFailedSignatureMismatch + ValidationFailedSignatureMismatch, + /// + /// ValidationFailedIntegrityMismatch + /// + [EnumMember(Value = ("ValidationFailedIntegrityMismatch"))] + ValidationFailedIntegrityMismatch } /// @@ -3274,6 +3279,26 @@ internal string error set; } + /// + /// SignatureBase + /// + [DataMember(Name = ("signatureBase"), IsRequired = (true))] + public string SignatureBase + { + get; + set; + } + + /// + /// IntegrityAssertions + /// + [DataMember(Name = ("integrityAssertions"), IsRequired = (true))] + public string[] IntegrityAssertions + { + get; + set; + } + /// /// Request /// @@ -3838,7 +3863,12 @@ public enum FederatedAuthRequestIssueReason /// CorsError /// [EnumMember(Value = ("CorsError"))] - CorsError + CorsError, + /// + /// SuppressedBySegmentationPlatform + /// + [EnumMember(Value = ("SuppressedBySegmentationPlatform"))] + SuppressedBySegmentationPlatform } /// @@ -5498,6 +5528,11 @@ public enum PermissionType [EnumMember(Value = ("localFonts"))] LocalFonts, /// + /// localNetworkAccess + /// + [EnumMember(Value = ("localNetworkAccess"))] + LocalNetworkAccess, + /// /// midi /// [EnumMember(Value = ("midi"))] @@ -5792,6 +5827,23 @@ public System.Collections.Generic.IList Bucket } } + /// + /// PrivacySandboxAPI + /// + public enum PrivacySandboxAPI + { + /// + /// BiddingAndAuctionServices + /// + [EnumMember(Value = ("BiddingAndAuctionServices"))] + BiddingAndAuctionServices, + /// + /// TrustedKeyValue + /// + [EnumMember(Value = ("TrustedKeyValue"))] + TrustedKeyValue + } + /// /// Fired when page is about to start a download. /// @@ -11462,6 +11514,93 @@ public CefSharp.DevTools.DOMStorage.StorageId StorageId namespace CefSharp.DevTools.Emulation { + /// + /// SafeAreaInsets + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SafeAreaInsets : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Overrides safe-area-inset-top. + /// + [DataMember(Name = ("top"), IsRequired = (false))] + public int? Top + { + get; + set; + } + + /// + /// Overrides safe-area-max-inset-top. + /// + [DataMember(Name = ("topMax"), IsRequired = (false))] + public int? TopMax + { + get; + set; + } + + /// + /// Overrides safe-area-inset-left. + /// + [DataMember(Name = ("left"), IsRequired = (false))] + public int? Left + { + get; + set; + } + + /// + /// Overrides safe-area-max-inset-left. + /// + [DataMember(Name = ("leftMax"), IsRequired = (false))] + public int? LeftMax + { + get; + set; + } + + /// + /// Overrides safe-area-inset-bottom. + /// + [DataMember(Name = ("bottom"), IsRequired = (false))] + public int? Bottom + { + get; + set; + } + + /// + /// Overrides safe-area-max-inset-bottom. + /// + [DataMember(Name = ("bottomMax"), IsRequired = (false))] + public int? BottomMax + { + get; + set; + } + + /// + /// Overrides safe-area-inset-right. + /// + [DataMember(Name = ("right"), IsRequired = (false))] + public int? Right + { + get; + set; + } + + /// + /// Overrides safe-area-max-inset-right. + /// + [DataMember(Name = ("rightMax"), IsRequired = (false))] + public int? RightMax + { + get; + set; + } + } + /// /// Orientation type. /// @@ -16717,7 +16856,12 @@ public enum CookieBlockedReason /// SchemeMismatch /// [EnumMember(Value = ("SchemeMismatch"))] - SchemeMismatch + SchemeMismatch, + /// + /// AnonymousContext + /// + [EnumMember(Value = ("AnonymousContext"))] + AnonymousContext } /// @@ -17733,6 +17877,96 @@ public enum ContentEncoding Zstd } + /// + /// DirectSocketDnsQueryType + /// + public enum DirectSocketDnsQueryType + { + /// + /// ipv4 + /// + [EnumMember(Value = ("ipv4"))] + Ipv4, + /// + /// ipv6 + /// + [EnumMember(Value = ("ipv6"))] + Ipv6 + } + + /// + /// DirectTCPSocketOptions + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class DirectTCPSocketOptions : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// TCP_NODELAY option + /// + [DataMember(Name = ("noDelay"), IsRequired = (true))] + public bool NoDelay + { + get; + set; + } + + /// + /// Expected to be unsigned integer. + /// + [DataMember(Name = ("keepAliveDelay"), IsRequired = (false))] + public double? KeepAliveDelay + { + get; + set; + } + + /// + /// Expected to be unsigned integer. + /// + [DataMember(Name = ("sendBufferSize"), IsRequired = (false))] + public double? SendBufferSize + { + get; + set; + } + + /// + /// Expected to be unsigned integer. + /// + [DataMember(Name = ("receiveBufferSize"), IsRequired = (false))] + public double? ReceiveBufferSize + { + get; + set; + } + + /// + /// DnsQueryType + /// + public CefSharp.DevTools.Network.DirectSocketDnsQueryType? DnsQueryType + { + get + { + return (CefSharp.DevTools.Network.DirectSocketDnsQueryType? )(StringToEnum(typeof(CefSharp.DevTools.Network.DirectSocketDnsQueryType? ), dnsQueryType)); + } + + set + { + this.dnsQueryType = (EnumToString(value)); + } + } + + /// + /// DnsQueryType + /// + [DataMember(Name = ("dnsQueryType"), IsRequired = (false))] + internal string dnsQueryType + { + get; + set; + } + } + /// /// PrivateNetworkRequestPolicy /// @@ -17767,7 +18001,12 @@ public enum PrivateNetworkRequestPolicy /// PermissionBlock /// [EnumMember(Value = ("PermissionBlock"))] - PermissionBlock + PermissionBlock, + /// + /// PermissionWarn + /// + [EnumMember(Value = ("PermissionWarn"))] + PermissionWarn } /// @@ -19602,6 +19841,204 @@ public double Timestamp } } + /// + /// Fired upon direct_socket.TCPSocket creation. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DirectTCPSocketCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier + /// + [DataMember(Name = ("identifier"), IsRequired = (true))] + public string Identifier + { + get; + private set; + } + + /// + /// RemoteAddr + /// + [DataMember(Name = ("remoteAddr"), IsRequired = (true))] + public string RemoteAddr + { + get; + private set; + } + + /// + /// Unsigned int 16. + /// + [DataMember(Name = ("remotePort"), IsRequired = (true))] + public int RemotePort + { + get; + private set; + } + + /// + /// Options + /// + [DataMember(Name = ("options"), IsRequired = (true))] + public CefSharp.DevTools.Network.DirectTCPSocketOptions Options + { + get; + private set; + } + + /// + /// Timestamp + /// + [DataMember(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// Initiator + /// + [DataMember(Name = ("initiator"), IsRequired = (false))] + public CefSharp.DevTools.Network.Initiator Initiator + { + get; + private set; + } + } + + /// + /// Fired when direct_socket.TCPSocket connection is opened. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DirectTCPSocketOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier + /// + [DataMember(Name = ("identifier"), IsRequired = (true))] + public string Identifier + { + get; + private set; + } + + /// + /// RemoteAddr + /// + [DataMember(Name = ("remoteAddr"), IsRequired = (true))] + public string RemoteAddr + { + get; + private set; + } + + /// + /// Expected to be unsigned integer. + /// + [DataMember(Name = ("remotePort"), IsRequired = (true))] + public int RemotePort + { + get; + private set; + } + + /// + /// Timestamp + /// + [DataMember(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + + /// + /// LocalAddr + /// + [DataMember(Name = ("localAddr"), IsRequired = (false))] + public string LocalAddr + { + get; + private set; + } + + /// + /// Expected to be unsigned integer. + /// + [DataMember(Name = ("localPort"), IsRequired = (false))] + public int? LocalPort + { + get; + private set; + } + } + + /// + /// Fired when direct_socket.TCPSocket is aborted. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DirectTCPSocketAbortedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier + /// + [DataMember(Name = ("identifier"), IsRequired = (true))] + public string Identifier + { + get; + private set; + } + + /// + /// ErrorMessage + /// + [DataMember(Name = ("errorMessage"), IsRequired = (true))] + public string ErrorMessage + { + get; + private set; + } + + /// + /// Timestamp + /// + [DataMember(Name = ("timestamp"), IsRequired = (true))] + public double Timestamp + { + get; + private set; + } + } + + /// + /// Fired when direct_socket.TCPSocket is closed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DirectTCPSocketClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier + /// + [DataMember(Name = ("identifier"), IsRequired = (true))] + public string Identifier + { + get; + private set; + } + + /// + /// Timestamp + /// + [DataMember(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 @@ -21874,6 +22311,11 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("keyboard-map"))] KeyboardMap, /// + /// language-detector + /// + [EnumMember(Value = ("language-detector"))] + LanguageDetector, + /// /// local-fonts /// [EnumMember(Value = ("local-fonts"))] @@ -21944,6 +22386,11 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("publickey-credentials-get"))] PublickeyCredentialsGet, /// + /// rewriter + /// + [EnumMember(Value = ("rewriter"))] + Rewriter, + /// /// run-ad-auction /// [EnumMember(Value = ("run-ad-auction"))] @@ -21994,11 +22441,21 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("sub-apps"))] SubApps, /// + /// summarizer + /// + [EnumMember(Value = ("summarizer"))] + Summarizer, + /// /// sync-xhr /// [EnumMember(Value = ("sync-xhr"))] SyncXhr, /// + /// translator + /// + [EnumMember(Value = ("translator"))] + Translator, + /// /// unload /// [EnumMember(Value = ("unload"))] @@ -22039,6 +22496,11 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("window-management"))] WindowManagement, /// + /// writer + /// + [EnumMember(Value = ("writer"))] + Writer, + /// /// xr-spatial-tracking /// [EnumMember(Value = ("xr-spatial-tracking"))] @@ -25053,7 +25515,12 @@ public enum BackForwardCacheNotRestoredReason /// CacheControlNoStoreDeviceBoundSessionTerminated /// [EnumMember(Value = ("CacheControlNoStoreDeviceBoundSessionTerminated"))] - CacheControlNoStoreDeviceBoundSessionTerminated + CacheControlNoStoreDeviceBoundSessionTerminated, + /// + /// CacheLimitPruned + /// + [EnumMember(Value = ("CacheLimitPruned"))] + CacheLimitPruned } /// @@ -28043,115 +28510,112 @@ public enum InterestGroupAuctionFetchType } /// - /// Enum of shared storage access types. + /// Enum of shared storage access scopes. /// - public enum SharedStorageAccessType + public enum SharedStorageAccessScope { /// - /// documentAddModule - /// - [EnumMember(Value = ("documentAddModule"))] - DocumentAddModule, - /// - /// documentSelectURL - /// - [EnumMember(Value = ("documentSelectURL"))] - DocumentSelectURL, - /// - /// documentRun + /// window /// - [EnumMember(Value = ("documentRun"))] - DocumentRun, + [EnumMember(Value = ("window"))] + Window, /// - /// documentSet + /// sharedStorageWorklet /// - [EnumMember(Value = ("documentSet"))] - DocumentSet, + [EnumMember(Value = ("sharedStorageWorklet"))] + SharedStorageWorklet, /// - /// documentAppend + /// protectedAudienceWorklet /// - [EnumMember(Value = ("documentAppend"))] - DocumentAppend, + [EnumMember(Value = ("protectedAudienceWorklet"))] + ProtectedAudienceWorklet, /// - /// documentDelete + /// header /// - [EnumMember(Value = ("documentDelete"))] - DocumentDelete, + [EnumMember(Value = ("header"))] + Header + } + + /// + /// Enum of shared storage access methods. + /// + public enum SharedStorageAccessMethod + { /// - /// documentClear + /// addModule /// - [EnumMember(Value = ("documentClear"))] - DocumentClear, + [EnumMember(Value = ("addModule"))] + AddModule, /// - /// documentGet + /// createWorklet /// - [EnumMember(Value = ("documentGet"))] - DocumentGet, + [EnumMember(Value = ("createWorklet"))] + CreateWorklet, /// - /// workletSet + /// selectURL /// - [EnumMember(Value = ("workletSet"))] - WorkletSet, + [EnumMember(Value = ("selectURL"))] + SelectURL, /// - /// workletAppend + /// run /// - [EnumMember(Value = ("workletAppend"))] - WorkletAppend, + [EnumMember(Value = ("run"))] + Run, /// - /// workletDelete + /// batchUpdate /// - [EnumMember(Value = ("workletDelete"))] - WorkletDelete, + [EnumMember(Value = ("batchUpdate"))] + BatchUpdate, /// - /// workletClear + /// set /// - [EnumMember(Value = ("workletClear"))] - WorkletClear, + [EnumMember(Value = ("set"))] + Set, /// - /// workletGet + /// append /// - [EnumMember(Value = ("workletGet"))] - WorkletGet, + [EnumMember(Value = ("append"))] + Append, /// - /// workletKeys + /// delete /// - [EnumMember(Value = ("workletKeys"))] - WorkletKeys, + [EnumMember(Value = ("delete"))] + Delete, /// - /// workletEntries + /// clear /// - [EnumMember(Value = ("workletEntries"))] - WorkletEntries, + [EnumMember(Value = ("clear"))] + Clear, /// - /// workletLength + /// get /// - [EnumMember(Value = ("workletLength"))] - WorkletLength, + [EnumMember(Value = ("get"))] + Get, /// - /// workletRemainingBudget + /// keys /// - [EnumMember(Value = ("workletRemainingBudget"))] - WorkletRemainingBudget, + [EnumMember(Value = ("keys"))] + Keys, /// - /// headerSet + /// values /// - [EnumMember(Value = ("headerSet"))] - HeaderSet, + [EnumMember(Value = ("values"))] + Values, /// - /// headerAppend + /// entries /// - [EnumMember(Value = ("headerAppend"))] - HeaderAppend, + [EnumMember(Value = ("entries"))] + Entries, /// - /// headerDelete + /// length /// - [EnumMember(Value = ("headerDelete"))] - HeaderDelete, + [EnumMember(Value = ("length"))] + Length, /// - /// headerClear + /// remainingBudget /// - [EnumMember(Value = ("headerClear"))] - HeaderClear + [EnumMember(Value = ("remainingBudget"))] + RemainingBudget } /// @@ -30139,27 +30603,53 @@ public double AccessTime private set; } + /// + /// Enum value indicating the access scope. + /// + public CefSharp.DevTools.Storage.SharedStorageAccessScope Scope + { + get + { + return (CefSharp.DevTools.Storage.SharedStorageAccessScope)(StringToEnum(typeof(CefSharp.DevTools.Storage.SharedStorageAccessScope), scope)); + } + + set + { + this.scope = (EnumToString(value)); + } + } + + /// + /// Enum value indicating the access scope. + /// + [DataMember(Name = ("scope"), IsRequired = (true))] + internal string scope + { + get; + private set; + } + /// /// Enum value indicating the Shared Storage API method invoked. /// - public CefSharp.DevTools.Storage.SharedStorageAccessType Type + public CefSharp.DevTools.Storage.SharedStorageAccessMethod Method { get { - return (CefSharp.DevTools.Storage.SharedStorageAccessType)(StringToEnum(typeof(CefSharp.DevTools.Storage.SharedStorageAccessType), type)); + return (CefSharp.DevTools.Storage.SharedStorageAccessMethod)(StringToEnum(typeof(CefSharp.DevTools.Storage.SharedStorageAccessMethod), method)); } set { - this.type = (EnumToString(value)); + this.method = (EnumToString(value)); } } /// /// Enum value indicating the Shared Storage API method invoked. /// - [DataMember(Name = ("type"), IsRequired = (true))] - internal string type + [DataMember(Name = ("method"), IsRequired = (true))] + internal string method { get; private set; @@ -30176,7 +30666,7 @@ public string MainFrameId } /// - /// Serialized origin for the context that invoked the Shared Storage API. + /// Serialization of the origin owning the Shared Storage data. /// [DataMember(Name = ("ownerOrigin"), IsRequired = (true))] public string OwnerOrigin @@ -30185,6 +30675,16 @@ public string OwnerOrigin private set; } + /// + /// Serialization of the site owning the Shared Storage data. + /// + [DataMember(Name = ("ownerSite"), IsRequired = (true))] + public string OwnerSite + { + get; + private set; + } + /// /// The sub-parameters wrapped by `params` are all optional and their /// presence/absence depends on `type`. @@ -34675,6 +35175,11 @@ public enum PrefetchStatus [EnumMember(Value = ("PrefetchFailedNon2XX"))] PrefetchFailedNon2XX, /// + /// PrefetchEvictedAfterBrowsingDataRemoved + /// + [EnumMember(Value = ("PrefetchEvictedAfterBrowsingDataRemoved"))] + PrefetchEvictedAfterBrowsingDataRemoved, + /// /// PrefetchEvictedAfterCandidateRemoved /// [EnumMember(Value = ("PrefetchEvictedAfterCandidateRemoved"))] @@ -34750,6 +35255,21 @@ public enum PrefetchStatus [EnumMember(Value = ("PrefetchNotEligibleUserHasServiceWorker"))] PrefetchNotEligibleUserHasServiceWorker, /// + /// PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler + /// + [EnumMember(Value = ("PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler"))] + PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler, + /// + /// PrefetchNotEligibleRedirectFromServiceWorker + /// + [EnumMember(Value = ("PrefetchNotEligibleRedirectFromServiceWorker"))] + PrefetchNotEligibleRedirectFromServiceWorker, + /// + /// PrefetchNotEligibleRedirectToServiceWorker + /// + [EnumMember(Value = ("PrefetchNotEligibleRedirectToServiceWorker"))] + PrefetchNotEligibleRedirectToServiceWorker, + /// /// PrefetchNotEligibleBatterySaverEnabled /// [EnumMember(Value = ("PrefetchNotEligibleBatterySaverEnabled"))] @@ -35573,6 +36093,23 @@ public enum CentralState PoweredOn } + /// + /// Indicates the various types of GATT event. + /// + public enum GATTOperationType + { + /// + /// connection + /// + [EnumMember(Value = ("connection"))] + Connection, + /// + /// discovery + /// + [EnumMember(Value = ("discovery"))] + Discovery + } + /// /// Stores the manufacturer data /// @@ -35696,6 +36233,138 @@ public CefSharp.DevTools.BluetoothEmulation.ScanRecord ScanRecord set; } } + + /// + /// Describes the properties of a characteristic. This follows Bluetooth Core + /// Specification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CharacteristicProperties : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Broadcast + /// + [DataMember(Name = ("broadcast"), IsRequired = (false))] + public bool? Broadcast + { + get; + set; + } + + /// + /// Read + /// + [DataMember(Name = ("read"), IsRequired = (false))] + public bool? Read + { + get; + set; + } + + /// + /// WriteWithoutResponse + /// + [DataMember(Name = ("writeWithoutResponse"), IsRequired = (false))] + public bool? WriteWithoutResponse + { + get; + set; + } + + /// + /// Write + /// + [DataMember(Name = ("write"), IsRequired = (false))] + public bool? Write + { + get; + set; + } + + /// + /// Notify + /// + [DataMember(Name = ("notify"), IsRequired = (false))] + public bool? Notify + { + get; + set; + } + + /// + /// Indicate + /// + [DataMember(Name = ("indicate"), IsRequired = (false))] + public bool? Indicate + { + get; + set; + } + + /// + /// AuthenticatedSignedWrites + /// + [DataMember(Name = ("authenticatedSignedWrites"), IsRequired = (false))] + public bool? AuthenticatedSignedWrites + { + get; + set; + } + + /// + /// ExtendedProperties + /// + [DataMember(Name = ("extendedProperties"), IsRequired = (false))] + public bool? ExtendedProperties + { + get; + set; + } + } + + /// + /// Event for when a GATT operation of |type| to the peripheral with |address| + /// happened. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class GattOperationReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Address + /// + [DataMember(Name = ("address"), IsRequired = (true))] + public string Address + { + get; + private set; + } + + /// + /// Type + /// + public CefSharp.DevTools.BluetoothEmulation.GATTOperationType Type + { + get + { + return (CefSharp.DevTools.BluetoothEmulation.GATTOperationType)(StringToEnum(typeof(CefSharp.DevTools.BluetoothEmulation.GATTOperationType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Type + /// + [DataMember(Name = ("type"), IsRequired = (true))] + internal string type + { + get; + private set; + } + } } namespace CefSharp.DevTools.Debugger @@ -41530,6 +42199,33 @@ public System.Threading.Tasks.Task AddPrivacySandboxEnro dict.Add("url", url); return _client.ExecuteDevToolsMethodAsync("Browser.addPrivacySandboxEnrollmentOverride", dict); } + + partial void ValidateAddPrivacySandboxCoordinatorKeyConfig(CefSharp.DevTools.Browser.PrivacySandboxAPI api, string coordinatorOrigin, string keyConfig, string browserContextId = null); + /// + /// Configures encryption keys used with a given privacy sandbox API to talk + /// to a trusted coordinator. Since this is intended for test automation only, + /// coordinatorOrigin must be a .test domain. No existing coordinator + /// configuration for the origin may exist. + /// + /// api + /// coordinatorOrigin + /// keyConfig + /// BrowserContext to perform the action in. When omitted, default browsercontext is used. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task AddPrivacySandboxCoordinatorKeyConfigAsync(CefSharp.DevTools.Browser.PrivacySandboxAPI api, string coordinatorOrigin, string keyConfig, string browserContextId = null) + { + ValidateAddPrivacySandboxCoordinatorKeyConfig(api, coordinatorOrigin, keyConfig, browserContextId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("api", EnumToString(api)); + dict.Add("coordinatorOrigin", coordinatorOrigin); + dict.Add("keyConfig", keyConfig); + if (!(string.IsNullOrEmpty(browserContextId))) + { + dict.Add("browserContextId", browserContextId); + } + + return _client.ExecuteDevToolsMethodAsync("Browser.addPrivacySandboxCoordinatorKeyConfig", dict); + } } } @@ -46809,6 +47505,21 @@ public System.Threading.Tasks.Task SetDefaultBackgroundC return _client.ExecuteDevToolsMethodAsync("Emulation.setDefaultBackgroundColorOverride", dict); } + partial void ValidateSetSafeAreaInsetsOverride(CefSharp.DevTools.Emulation.SafeAreaInsets insets); + /// + /// Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the + /// respective variables to be undefined, even if previously overridden. + /// + /// insets + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetSafeAreaInsetsOverrideAsync(CefSharp.DevTools.Emulation.SafeAreaInsets insets) + { + ValidateSetSafeAreaInsetsOverride(insets); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("insets", insets.ToDictionary()); + return _client.ExecuteDevToolsMethodAsync("Emulation.setSafeAreaInsetsOverride", dict); + } + partial void ValidateSetDeviceMetricsOverride(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null); /// /// Overrides the values of device screen dimensions (window.screen.width, window.screen.height, @@ -46827,7 +47538,7 @@ public System.Threading.Tasks.Task SetDefaultBackgroundC /// Do not set visible view size, rely upon explicit setVisibleSize call. /// Screen orientation override. /// If set, the visible area of the page will be overridden to this viewport. This viewportchange is not observed by the page, e.g. viewport-relative elements do not change positions. - /// If set, the display feature of a multi-segment screen. If not set, multi-segment supportis turned-off. + /// If set, the display feature of a multi-segment screen. If not set, multi-segment supportis turned-off.Deprecated, use Emulation.setDisplayFeaturesOverride. /// If set, the posture of a foldable device. If not set the posture is setto continuous.Deprecated, use Emulation.setDevicePostureOverride. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null) @@ -46919,6 +47630,34 @@ public System.Threading.Tasks.Task ClearDevicePostureOve return _client.ExecuteDevToolsMethodAsync("Emulation.clearDevicePostureOverride", dict); } + partial void ValidateSetDisplayFeaturesOverride(System.Collections.Generic.IList features); + /// + /// Start using the given display features to pupulate the Viewport Segments API. + /// This override can also be set in setDeviceMetricsOverride(). + /// + /// features + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetDisplayFeaturesOverrideAsync(System.Collections.Generic.IList features) + { + ValidateSetDisplayFeaturesOverride(features); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("features", features.Select(x => x.ToDictionary())); + return _client.ExecuteDevToolsMethodAsync("Emulation.setDisplayFeaturesOverride", dict); + } + + /// + /// Clears the display features override set with either setDeviceMetricsOverride() + /// or setDisplayFeaturesOverride() and starts using display features from the + /// platform again. + /// Does nothing if no override is set. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ClearDisplayFeaturesOverrideAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Emulation.clearDisplayFeaturesOverride", dict); + } + partial void ValidateSetScrollbarsHidden(bool hidden); /// /// SetScrollbarsHidden @@ -50411,6 +51150,70 @@ public event System.EventHandler WebTransportClosed } } + /// + /// Fired upon direct_socket.TCPSocket creation. + /// + public event System.EventHandler DirectTCPSocketCreated + { + add + { + _client.AddEventHandler("Network.directTCPSocketCreated", value); + } + + remove + { + _client.RemoveEventHandler("Network.directTCPSocketCreated", value); + } + } + + /// + /// Fired when direct_socket.TCPSocket connection is opened. + /// + public event System.EventHandler DirectTCPSocketOpened + { + add + { + _client.AddEventHandler("Network.directTCPSocketOpened", value); + } + + remove + { + _client.RemoveEventHandler("Network.directTCPSocketOpened", value); + } + } + + /// + /// Fired when direct_socket.TCPSocket is aborted. + /// + public event System.EventHandler DirectTCPSocketAborted + { + add + { + _client.AddEventHandler("Network.directTCPSocketAborted", value); + } + + remove + { + _client.RemoveEventHandler("Network.directTCPSocketAborted", value); + } + } + + /// + /// Fired when direct_socket.TCPSocket is closed. + /// + public event System.EventHandler DirectTCPSocketClosed + { + add + { + _client.AddEventHandler("Network.directTCPSocketClosed", value); + } + + remove + { + _client.RemoveEventHandler("Network.directTCPSocketClosed", value); + } + } + /// /// Fired when additional information about a requestWillBeSent event is available from the /// network stack. Not every requestWillBeSent event will have an additional @@ -54014,19 +54817,25 @@ public System.Threading.Tasks.Task WaitForDebuggerAsync( return _client.ExecuteDevToolsMethodAsync("Page.waitForDebugger", dict); } - partial void ValidateSetInterceptFileChooserDialog(bool enabled); + partial void ValidateSetInterceptFileChooserDialog(bool enabled, bool? cancel = null); /// /// Intercept file chooser requests and transfer control to protocol clients. /// When file chooser interception is enabled, native file chooser dialog is not shown. /// Instead, a protocol event `Page.fileChooserOpened` is emitted. /// /// enabled + /// If true, cancels the dialog by emitting relevant events (if any)in addition to not showing it if the interception is enabled(default: false). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetInterceptFileChooserDialogAsync(bool enabled) + public System.Threading.Tasks.Task SetInterceptFileChooserDialogAsync(bool enabled, bool? cancel = null) { - ValidateSetInterceptFileChooserDialog(enabled); + ValidateSetInterceptFileChooserDialog(enabled, cancel); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); + if (cancel.HasValue) + { + dict.Add("cancel", cancel.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.setInterceptFileChooserDialog", dict); } @@ -58842,6 +59651,62 @@ public System.Threading.Tasks.Task ChangeAppUserSettings } } +namespace CefSharp.DevTools.BluetoothEmulation +{ + /// + /// AddServiceResponse + /// + [DataContract] + public class AddServiceResponse : DevToolsDomainResponseBase + { + [DataMember] + internal string serviceId + { + get; + set; + } + + /// + /// serviceId + /// + public string ServiceId + { + get + { + return serviceId; + } + } + } +} + +namespace CefSharp.DevTools.BluetoothEmulation +{ + /// + /// AddCharacteristicResponse + /// + [DataContract] + public class AddCharacteristicResponse : DevToolsDomainResponseBase + { + [DataMember] + internal string characteristicId + { + get; + set; + } + + /// + /// characteristicId + /// + public string CharacteristicId + { + get + { + return characteristicId; + } + } + } +} + namespace CefSharp.DevTools.BluetoothEmulation { using System.Linq; @@ -58862,20 +59727,53 @@ public BluetoothEmulationClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } - partial void ValidateEnable(CefSharp.DevTools.BluetoothEmulation.CentralState state); + /// + /// Event for when a GATT operation of |type| to the peripheral with |address| + /// happened. + /// + public event System.EventHandler GattOperationReceived + { + add + { + _client.AddEventHandler("BluetoothEmulation.gattOperationReceived", value); + } + + remove + { + _client.RemoveEventHandler("BluetoothEmulation.gattOperationReceived", value); + } + } + + partial void ValidateEnable(CefSharp.DevTools.BluetoothEmulation.CentralState state, bool leSupported); /// /// Enable the BluetoothEmulation domain. /// /// State of the simulated central. + /// If the simulated central supports low-energy. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task EnableAsync(CefSharp.DevTools.BluetoothEmulation.CentralState state) + public System.Threading.Tasks.Task EnableAsync(CefSharp.DevTools.BluetoothEmulation.CentralState state, bool leSupported) { - ValidateEnable(state); + ValidateEnable(state, leSupported); var dict = new System.Collections.Generic.Dictionary(); dict.Add("state", EnumToString(state)); + dict.Add("leSupported", leSupported); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.enable", dict); } + partial void ValidateSetSimulatedCentralState(CefSharp.DevTools.BluetoothEmulation.CentralState state); + /// + /// Set the state of the simulated central. + /// + /// State of the simulated central. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetSimulatedCentralStateAsync(CefSharp.DevTools.BluetoothEmulation.CentralState state) + { + ValidateSetSimulatedCentralState(state); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("state", EnumToString(state)); + return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.setSimulatedCentralState", dict); + } + /// /// Disable the BluetoothEmulation domain. /// @@ -58921,6 +59819,99 @@ public System.Threading.Tasks.Task SimulateAdvertisement dict.Add("entry", entry.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateAdvertisement", dict); } + + partial void ValidateSimulateGATTOperationResponse(string address, CefSharp.DevTools.BluetoothEmulation.GATTOperationType type, int code); + /// + /// Simulates the response code from the peripheral with |address| for a + /// GATT operation of |type|. The |code| value follows the HCI Error Codes from + /// Bluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes. + /// + /// address + /// type + /// code + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SimulateGATTOperationResponseAsync(string address, CefSharp.DevTools.BluetoothEmulation.GATTOperationType type, int code) + { + ValidateSimulateGATTOperationResponse(address, type, code); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("address", address); + dict.Add("type", EnumToString(type)); + dict.Add("code", code); + return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateGATTOperationResponse", dict); + } + + partial void ValidateAddService(string address, string serviceUuid); + /// + /// Adds a service with |serviceUuid| to the peripheral with |address|. + /// + /// address + /// serviceUuid + /// returns System.Threading.Tasks.Task<AddServiceResponse> + public System.Threading.Tasks.Task AddServiceAsync(string address, string serviceUuid) + { + ValidateAddService(address, serviceUuid); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("address", address); + dict.Add("serviceUuid", serviceUuid); + return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.addService", dict); + } + + partial void ValidateRemoveService(string address, string serviceId); + /// + /// Removes the service respresented by |serviceId| from the peripheral with + /// |address|. + /// + /// address + /// serviceId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task RemoveServiceAsync(string address, string serviceId) + { + ValidateRemoveService(address, serviceId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("address", address); + dict.Add("serviceId", serviceId); + return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.removeService", dict); + } + + partial void ValidateAddCharacteristic(string address, string serviceId, string characteristicUuid, CefSharp.DevTools.BluetoothEmulation.CharacteristicProperties properties); + /// + /// Adds a characteristic with |characteristicUuid| and |properties| to the + /// service represented by |serviceId| in the peripheral with |address|. + /// + /// address + /// serviceId + /// characteristicUuid + /// properties + /// returns System.Threading.Tasks.Task<AddCharacteristicResponse> + public System.Threading.Tasks.Task AddCharacteristicAsync(string address, string serviceId, string characteristicUuid, CefSharp.DevTools.BluetoothEmulation.CharacteristicProperties properties) + { + ValidateAddCharacteristic(address, serviceId, characteristicUuid, properties); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("address", address); + dict.Add("serviceId", serviceId); + dict.Add("characteristicUuid", characteristicUuid); + dict.Add("properties", properties.ToDictionary()); + return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.addCharacteristic", dict); + } + + partial void ValidateRemoveCharacteristic(string address, string serviceId, string characteristicId); + /// + /// Removes the characteristic respresented by |characteristicId| from the + /// service respresented by |serviceId| in the peripheral with |address|. + /// + /// address + /// serviceId + /// characteristicId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task RemoveCharacteristicAsync(string address, string serviceId, string characteristicId) + { + ValidateRemoveCharacteristic(address, serviceId, characteristicId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("address", address); + dict.Add("serviceId", serviceId); + dict.Add("characteristicId", characteristicId); + return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.removeCharacteristic", dict); + } } } diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 6ccbee7ed..e41a485f3 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/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 135.0.7049.52 +// CHROMIUM VERSION 136.0.7103.93 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -2765,7 +2765,12 @@ public enum SRIMessageSignatureError /// ValidationFailedSignatureMismatch /// [JsonPropertyName("ValidationFailedSignatureMismatch")] - ValidationFailedSignatureMismatch + ValidationFailedSignatureMismatch, + /// + /// ValidationFailedIntegrityMismatch + /// + [JsonPropertyName("ValidationFailedIntegrityMismatch")] + ValidationFailedIntegrityMismatch } /// @@ -2945,6 +2950,28 @@ public CefSharp.DevTools.Audits.SRIMessageSignatureError Error set; } + /// + /// SignatureBase + /// + [JsonPropertyName("signatureBase")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SignatureBase + { + get; + set; + } + + /// + /// IntegrityAssertions + /// + [JsonPropertyName("integrityAssertions")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] IntegrityAssertions + { + get; + set; + } + /// /// Request /// @@ -3461,7 +3488,12 @@ public enum FederatedAuthRequestIssueReason /// CorsError /// [JsonPropertyName("CorsError")] - CorsError + CorsError, + /// + /// SuppressedBySegmentationPlatform + /// + [JsonPropertyName("SuppressedBySegmentationPlatform")] + SuppressedBySegmentationPlatform } /// @@ -4964,6 +4996,11 @@ public enum PermissionType [JsonPropertyName("localFonts")] LocalFonts, /// + /// localNetworkAccess + /// + [JsonPropertyName("localNetworkAccess")] + LocalNetworkAccess, + /// /// midi /// [JsonPropertyName("midi")] @@ -5258,6 +5295,23 @@ public System.Collections.Generic.IList Bucket } } + /// + /// PrivacySandboxAPI + /// + public enum PrivacySandboxAPI + { + /// + /// BiddingAndAuctionServices + /// + [JsonPropertyName("BiddingAndAuctionServices")] + BiddingAndAuctionServices, + /// + /// TrustedKeyValue + /// + [JsonPropertyName("TrustedKeyValue")] + TrustedKeyValue + } + /// /// Fired when page is about to start a download. /// @@ -10697,6 +10751,92 @@ public CefSharp.DevTools.DOMStorage.StorageId StorageId namespace CefSharp.DevTools.Emulation { + /// + /// SafeAreaInsets + /// + public partial class SafeAreaInsets : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Overrides safe-area-inset-top. + /// + [JsonPropertyName("top")] + public int? Top + { + get; + set; + } + + /// + /// Overrides safe-area-max-inset-top. + /// + [JsonPropertyName("topMax")] + public int? TopMax + { + get; + set; + } + + /// + /// Overrides safe-area-inset-left. + /// + [JsonPropertyName("left")] + public int? Left + { + get; + set; + } + + /// + /// Overrides safe-area-max-inset-left. + /// + [JsonPropertyName("leftMax")] + public int? LeftMax + { + get; + set; + } + + /// + /// Overrides safe-area-inset-bottom. + /// + [JsonPropertyName("bottom")] + public int? Bottom + { + get; + set; + } + + /// + /// Overrides safe-area-max-inset-bottom. + /// + [JsonPropertyName("bottomMax")] + public int? BottomMax + { + get; + set; + } + + /// + /// Overrides safe-area-inset-right. + /// + [JsonPropertyName("right")] + public int? Right + { + get; + set; + } + + /// + /// Overrides safe-area-max-inset-right. + /// + [JsonPropertyName("rightMax")] + public int? RightMax + { + get; + set; + } + } + /// /// Orientation type. /// @@ -15530,7 +15670,12 @@ public enum CookieBlockedReason /// SchemeMismatch /// [JsonPropertyName("SchemeMismatch")] - SchemeMismatch + SchemeMismatch, + /// + /// AnonymousContext + /// + [JsonPropertyName("AnonymousContext")] + AnonymousContext } /// @@ -16359,6 +16504,79 @@ public enum ContentEncoding Zstd } + /// + /// DirectSocketDnsQueryType + /// + public enum DirectSocketDnsQueryType + { + /// + /// ipv4 + /// + [JsonPropertyName("ipv4")] + Ipv4, + /// + /// ipv6 + /// + [JsonPropertyName("ipv6")] + Ipv6 + } + + /// + /// DirectTCPSocketOptions + /// + public partial class DirectTCPSocketOptions : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// TCP_NODELAY option + /// + [JsonPropertyName("noDelay")] + public bool NoDelay + { + get; + set; + } + + /// + /// Expected to be unsigned integer. + /// + [JsonPropertyName("keepAliveDelay")] + public double? KeepAliveDelay + { + get; + set; + } + + /// + /// Expected to be unsigned integer. + /// + [JsonPropertyName("sendBufferSize")] + public double? SendBufferSize + { + get; + set; + } + + /// + /// Expected to be unsigned integer. + /// + [JsonPropertyName("receiveBufferSize")] + public double? ReceiveBufferSize + { + get; + set; + } + + /// + /// DnsQueryType + /// + [JsonPropertyName("dnsQueryType")] + public CefSharp.DevTools.Network.DirectSocketDnsQueryType? DnsQueryType + { + get; + set; + } + } + /// /// PrivateNetworkRequestPolicy /// @@ -16393,7 +16611,12 @@ public enum PrivateNetworkRequestPolicy /// PermissionBlock /// [JsonPropertyName("PermissionBlock")] - PermissionBlock + PermissionBlock, + /// + /// PermissionWarn + /// + [JsonPropertyName("PermissionWarn")] + PermissionWarn } /// @@ -18091,6 +18314,225 @@ public double Timestamp } } + /// + /// Fired upon direct_socket.TCPSocket creation. + /// + public class DirectTCPSocketCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier + /// + [JsonInclude] + [JsonPropertyName("identifier")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Identifier + { + get; + private set; + } + + /// + /// RemoteAddr + /// + [JsonInclude] + [JsonPropertyName("remoteAddr")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RemoteAddr + { + get; + private set; + } + + /// + /// Unsigned int 16. + /// + [JsonInclude] + [JsonPropertyName("remotePort")] + public int RemotePort + { + get; + private set; + } + + /// + /// Options + /// + [JsonInclude] + [JsonPropertyName("options")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Network.DirectTCPSocketOptions Options + { + get; + private set; + } + + /// + /// Timestamp + /// + [JsonInclude] + [JsonPropertyName("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// Initiator + /// + [JsonInclude] + [JsonPropertyName("initiator")] + public CefSharp.DevTools.Network.Initiator Initiator + { + get; + private set; + } + } + + /// + /// Fired when direct_socket.TCPSocket connection is opened. + /// + public class DirectTCPSocketOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier + /// + [JsonInclude] + [JsonPropertyName("identifier")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Identifier + { + get; + private set; + } + + /// + /// RemoteAddr + /// + [JsonInclude] + [JsonPropertyName("remoteAddr")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RemoteAddr + { + get; + private set; + } + + /// + /// Expected to be unsigned integer. + /// + [JsonInclude] + [JsonPropertyName("remotePort")] + public int RemotePort + { + get; + private set; + } + + /// + /// Timestamp + /// + [JsonInclude] + [JsonPropertyName("timestamp")] + public double Timestamp + { + get; + private set; + } + + /// + /// LocalAddr + /// + [JsonInclude] + [JsonPropertyName("localAddr")] + public string LocalAddr + { + get; + private set; + } + + /// + /// Expected to be unsigned integer. + /// + [JsonInclude] + [JsonPropertyName("localPort")] + public int? LocalPort + { + get; + private set; + } + } + + /// + /// Fired when direct_socket.TCPSocket is aborted. + /// + public class DirectTCPSocketAbortedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier + /// + [JsonInclude] + [JsonPropertyName("identifier")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Identifier + { + get; + private set; + } + + /// + /// ErrorMessage + /// + [JsonInclude] + [JsonPropertyName("errorMessage")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ErrorMessage + { + get; + private set; + } + + /// + /// Timestamp + /// + [JsonInclude] + [JsonPropertyName("timestamp")] + public double Timestamp + { + get; + private set; + } + } + + /// + /// Fired when direct_socket.TCPSocket is closed. + /// + public class DirectTCPSocketClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Identifier + /// + [JsonInclude] + [JsonPropertyName("identifier")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Identifier + { + get; + private set; + } + + /// + /// Timestamp + /// + [JsonInclude] + [JsonPropertyName("timestamp")] + public double Timestamp + { + get; + private set; + } + } + /// /// Fired when additional information about a requestWillBeSent event is available from the /// network stack. Not every requestWillBeSent event will have an additional @@ -20275,6 +20717,11 @@ public enum PermissionsPolicyFeature [JsonPropertyName("keyboard-map")] KeyboardMap, /// + /// language-detector + /// + [JsonPropertyName("language-detector")] + LanguageDetector, + /// /// local-fonts /// [JsonPropertyName("local-fonts")] @@ -20345,6 +20792,11 @@ public enum PermissionsPolicyFeature [JsonPropertyName("publickey-credentials-get")] PublickeyCredentialsGet, /// + /// rewriter + /// + [JsonPropertyName("rewriter")] + Rewriter, + /// /// run-ad-auction /// [JsonPropertyName("run-ad-auction")] @@ -20395,11 +20847,21 @@ public enum PermissionsPolicyFeature [JsonPropertyName("sub-apps")] SubApps, /// + /// summarizer + /// + [JsonPropertyName("summarizer")] + Summarizer, + /// /// sync-xhr /// [JsonPropertyName("sync-xhr")] SyncXhr, /// + /// translator + /// + [JsonPropertyName("translator")] + Translator, + /// /// unload /// [JsonPropertyName("unload")] @@ -20440,6 +20902,11 @@ public enum PermissionsPolicyFeature [JsonPropertyName("window-management")] WindowManagement, /// + /// writer + /// + [JsonPropertyName("writer")] + Writer, + /// /// xr-spatial-tracking /// [JsonPropertyName("xr-spatial-tracking")] @@ -23305,7 +23772,12 @@ public enum BackForwardCacheNotRestoredReason /// CacheControlNoStoreDeviceBoundSessionTerminated /// [JsonPropertyName("CacheControlNoStoreDeviceBoundSessionTerminated")] - CacheControlNoStoreDeviceBoundSessionTerminated + CacheControlNoStoreDeviceBoundSessionTerminated, + /// + /// CacheLimitPruned + /// + [JsonPropertyName("CacheLimitPruned")] + CacheLimitPruned } /// @@ -26054,115 +26526,112 @@ public enum InterestGroupAuctionFetchType } /// - /// Enum of shared storage access types. + /// Enum of shared storage access scopes. /// - public enum SharedStorageAccessType + public enum SharedStorageAccessScope { /// - /// documentAddModule - /// - [JsonPropertyName("documentAddModule")] - DocumentAddModule, - /// - /// documentSelectURL - /// - [JsonPropertyName("documentSelectURL")] - DocumentSelectURL, - /// - /// documentRun + /// window /// - [JsonPropertyName("documentRun")] - DocumentRun, + [JsonPropertyName("window")] + Window, /// - /// documentSet + /// sharedStorageWorklet /// - [JsonPropertyName("documentSet")] - DocumentSet, + [JsonPropertyName("sharedStorageWorklet")] + SharedStorageWorklet, /// - /// documentAppend + /// protectedAudienceWorklet /// - [JsonPropertyName("documentAppend")] - DocumentAppend, + [JsonPropertyName("protectedAudienceWorklet")] + ProtectedAudienceWorklet, /// - /// documentDelete + /// header /// - [JsonPropertyName("documentDelete")] - DocumentDelete, + [JsonPropertyName("header")] + Header + } + + /// + /// Enum of shared storage access methods. + /// + public enum SharedStorageAccessMethod + { /// - /// documentClear + /// addModule /// - [JsonPropertyName("documentClear")] - DocumentClear, + [JsonPropertyName("addModule")] + AddModule, /// - /// documentGet + /// createWorklet /// - [JsonPropertyName("documentGet")] - DocumentGet, + [JsonPropertyName("createWorklet")] + CreateWorklet, /// - /// workletSet + /// selectURL /// - [JsonPropertyName("workletSet")] - WorkletSet, + [JsonPropertyName("selectURL")] + SelectURL, /// - /// workletAppend + /// run /// - [JsonPropertyName("workletAppend")] - WorkletAppend, + [JsonPropertyName("run")] + Run, /// - /// workletDelete + /// batchUpdate /// - [JsonPropertyName("workletDelete")] - WorkletDelete, + [JsonPropertyName("batchUpdate")] + BatchUpdate, /// - /// workletClear + /// set /// - [JsonPropertyName("workletClear")] - WorkletClear, + [JsonPropertyName("set")] + Set, /// - /// workletGet + /// append /// - [JsonPropertyName("workletGet")] - WorkletGet, + [JsonPropertyName("append")] + Append, /// - /// workletKeys + /// delete /// - [JsonPropertyName("workletKeys")] - WorkletKeys, + [JsonPropertyName("delete")] + Delete, /// - /// workletEntries + /// clear /// - [JsonPropertyName("workletEntries")] - WorkletEntries, + [JsonPropertyName("clear")] + Clear, /// - /// workletLength + /// get /// - [JsonPropertyName("workletLength")] - WorkletLength, + [JsonPropertyName("get")] + Get, /// - /// workletRemainingBudget + /// keys /// - [JsonPropertyName("workletRemainingBudget")] - WorkletRemainingBudget, + [JsonPropertyName("keys")] + Keys, /// - /// headerSet + /// values /// - [JsonPropertyName("headerSet")] - HeaderSet, + [JsonPropertyName("values")] + Values, /// - /// headerAppend + /// entries /// - [JsonPropertyName("headerAppend")] - HeaderAppend, + [JsonPropertyName("entries")] + Entries, /// - /// headerDelete + /// length /// - [JsonPropertyName("headerDelete")] - HeaderDelete, + [JsonPropertyName("length")] + Length, /// - /// headerClear + /// remainingBudget /// - [JsonPropertyName("headerClear")] - HeaderClear + [JsonPropertyName("remainingBudget")] + RemainingBudget } /// @@ -28111,12 +28580,23 @@ public double AccessTime private set; } + /// + /// Enum value indicating the access scope. + /// + [JsonInclude] + [JsonPropertyName("scope")] + public CefSharp.DevTools.Storage.SharedStorageAccessScope Scope + { + get; + private set; + } + /// /// Enum value indicating the Shared Storage API method invoked. /// [JsonInclude] - [JsonPropertyName("type")] - public CefSharp.DevTools.Storage.SharedStorageAccessType Type + [JsonPropertyName("method")] + public CefSharp.DevTools.Storage.SharedStorageAccessMethod Method { get; private set; @@ -28135,7 +28615,7 @@ public string MainFrameId } /// - /// Serialized origin for the context that invoked the Shared Storage API. + /// Serialization of the origin owning the Shared Storage data. /// [JsonInclude] [JsonPropertyName("ownerOrigin")] @@ -28146,6 +28626,18 @@ public string OwnerOrigin private set; } + /// + /// Serialization of the site owning the Shared Storage data. + /// + [JsonInclude] + [JsonPropertyName("ownerSite")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string OwnerSite + { + get; + private set; + } + /// /// The sub-parameters wrapped by `params` are all optional and their /// presence/absence depends on `type`. @@ -32344,6 +32836,11 @@ public enum PrefetchStatus [JsonPropertyName("PrefetchFailedNon2XX")] PrefetchFailedNon2XX, /// + /// PrefetchEvictedAfterBrowsingDataRemoved + /// + [JsonPropertyName("PrefetchEvictedAfterBrowsingDataRemoved")] + PrefetchEvictedAfterBrowsingDataRemoved, + /// /// PrefetchEvictedAfterCandidateRemoved /// [JsonPropertyName("PrefetchEvictedAfterCandidateRemoved")] @@ -32419,6 +32916,21 @@ public enum PrefetchStatus [JsonPropertyName("PrefetchNotEligibleUserHasServiceWorker")] PrefetchNotEligibleUserHasServiceWorker, /// + /// PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler + /// + [JsonPropertyName("PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler")] + PrefetchNotEligibleUserHasServiceWorkerNoFetchHandler, + /// + /// PrefetchNotEligibleRedirectFromServiceWorker + /// + [JsonPropertyName("PrefetchNotEligibleRedirectFromServiceWorker")] + PrefetchNotEligibleRedirectFromServiceWorker, + /// + /// PrefetchNotEligibleRedirectToServiceWorker + /// + [JsonPropertyName("PrefetchNotEligibleRedirectToServiceWorker")] + PrefetchNotEligibleRedirectToServiceWorker, + /// /// PrefetchNotEligibleBatterySaverEnabled /// [JsonPropertyName("PrefetchNotEligibleBatterySaverEnabled")] @@ -33190,6 +33702,23 @@ public enum CentralState PoweredOn } + /// + /// Indicates the various types of GATT event. + /// + public enum GATTOperationType + { + /// + /// connection + /// + [JsonPropertyName("connection")] + Connection, + /// + /// discovery + /// + [JsonPropertyName("discovery")] + Discovery + } + /// /// Stores the manufacturer data /// @@ -33313,6 +33842,123 @@ public CefSharp.DevTools.BluetoothEmulation.ScanRecord ScanRecord set; } } + + /// + /// Describes the properties of a characteristic. This follows Bluetooth Core + /// Specification BT 4.2 Vol 3 Part G 3.3.1. Characteristic Properties. + /// + public partial class CharacteristicProperties : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Broadcast + /// + [JsonPropertyName("broadcast")] + public bool? Broadcast + { + get; + set; + } + + /// + /// Read + /// + [JsonPropertyName("read")] + public bool? Read + { + get; + set; + } + + /// + /// WriteWithoutResponse + /// + [JsonPropertyName("writeWithoutResponse")] + public bool? WriteWithoutResponse + { + get; + set; + } + + /// + /// Write + /// + [JsonPropertyName("write")] + public bool? Write + { + get; + set; + } + + /// + /// Notify + /// + [JsonPropertyName("notify")] + public bool? Notify + { + get; + set; + } + + /// + /// Indicate + /// + [JsonPropertyName("indicate")] + public bool? Indicate + { + get; + set; + } + + /// + /// AuthenticatedSignedWrites + /// + [JsonPropertyName("authenticatedSignedWrites")] + public bool? AuthenticatedSignedWrites + { + get; + set; + } + + /// + /// ExtendedProperties + /// + [JsonPropertyName("extendedProperties")] + public bool? ExtendedProperties + { + get; + set; + } + } + + /// + /// Event for when a GATT operation of |type| to the peripheral with |address| + /// happened. + /// + public class GattOperationReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Address + /// + [JsonInclude] + [JsonPropertyName("address")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Address + { + get; + private set; + } + + /// + /// Type + /// + [JsonInclude] + [JsonPropertyName("type")] + public CefSharp.DevTools.BluetoothEmulation.GATTOperationType Type + { + get; + private set; + } + } } namespace CefSharp.DevTools.Debugger @@ -38806,6 +39452,33 @@ public System.Threading.Tasks.Task AddPrivacySandboxEnro dict.Add("url", url); return _client.ExecuteDevToolsMethodAsync("Browser.addPrivacySandboxEnrollmentOverride", dict); } + + partial void ValidateAddPrivacySandboxCoordinatorKeyConfig(CefSharp.DevTools.Browser.PrivacySandboxAPI api, string coordinatorOrigin, string keyConfig, string browserContextId = null); + /// + /// Configures encryption keys used with a given privacy sandbox API to talk + /// to a trusted coordinator. Since this is intended for test automation only, + /// coordinatorOrigin must be a .test domain. No existing coordinator + /// configuration for the origin may exist. + /// + /// api + /// coordinatorOrigin + /// keyConfig + /// BrowserContext to perform the action in. When omitted, default browsercontext is used. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task AddPrivacySandboxCoordinatorKeyConfigAsync(CefSharp.DevTools.Browser.PrivacySandboxAPI api, string coordinatorOrigin, string keyConfig, string browserContextId = null) + { + ValidateAddPrivacySandboxCoordinatorKeyConfig(api, coordinatorOrigin, keyConfig, browserContextId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("api", EnumToString(api)); + dict.Add("coordinatorOrigin", coordinatorOrigin); + dict.Add("keyConfig", keyConfig); + if (!(string.IsNullOrEmpty(browserContextId))) + { + dict.Add("browserContextId", browserContextId); + } + + return _client.ExecuteDevToolsMethodAsync("Browser.addPrivacySandboxCoordinatorKeyConfig", dict); + } } } @@ -43390,6 +44063,21 @@ public System.Threading.Tasks.Task SetDefaultBackgroundC return _client.ExecuteDevToolsMethodAsync("Emulation.setDefaultBackgroundColorOverride", dict); } + partial void ValidateSetSafeAreaInsetsOverride(CefSharp.DevTools.Emulation.SafeAreaInsets insets); + /// + /// Overrides the values for env(safe-area-inset-*) and env(safe-area-max-inset-*). Unset values will cause the + /// respective variables to be undefined, even if previously overridden. + /// + /// insets + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetSafeAreaInsetsOverrideAsync(CefSharp.DevTools.Emulation.SafeAreaInsets insets) + { + ValidateSetSafeAreaInsetsOverride(insets); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("insets", insets.ToDictionary()); + return _client.ExecuteDevToolsMethodAsync("Emulation.setSafeAreaInsetsOverride", dict); + } + partial void ValidateSetDeviceMetricsOverride(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null); /// /// Overrides the values of device screen dimensions (window.screen.width, window.screen.height, @@ -43408,7 +44096,7 @@ public System.Threading.Tasks.Task SetDefaultBackgroundC /// Do not set visible view size, rely upon explicit setVisibleSize call. /// Screen orientation override. /// If set, the visible area of the page will be overridden to this viewport. This viewportchange is not observed by the page, e.g. viewport-relative elements do not change positions. - /// If set, the display feature of a multi-segment screen. If not set, multi-segment supportis turned-off. + /// If set, the display feature of a multi-segment screen. If not set, multi-segment supportis turned-off.Deprecated, use Emulation.setDisplayFeaturesOverride. /// If set, the posture of a foldable device. If not set the posture is setto continuous.Deprecated, use Emulation.setDevicePostureOverride. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null) @@ -43500,6 +44188,34 @@ public System.Threading.Tasks.Task ClearDevicePostureOve return _client.ExecuteDevToolsMethodAsync("Emulation.clearDevicePostureOverride", dict); } + partial void ValidateSetDisplayFeaturesOverride(System.Collections.Generic.IList features); + /// + /// Start using the given display features to pupulate the Viewport Segments API. + /// This override can also be set in setDeviceMetricsOverride(). + /// + /// features + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetDisplayFeaturesOverrideAsync(System.Collections.Generic.IList features) + { + ValidateSetDisplayFeaturesOverride(features); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("features", features.Select(x => x.ToDictionary())); + return _client.ExecuteDevToolsMethodAsync("Emulation.setDisplayFeaturesOverride", dict); + } + + /// + /// Clears the display features override set with either setDeviceMetricsOverride() + /// or setDisplayFeaturesOverride() and starts using display features from the + /// platform again. + /// Does nothing if no override is set. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ClearDisplayFeaturesOverrideAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Emulation.clearDisplayFeaturesOverride", dict); + } + partial void ValidateSetScrollbarsHidden(bool hidden); /// /// SetScrollbarsHidden @@ -46682,6 +47398,70 @@ public event System.EventHandler WebTransportClosed } } + /// + /// Fired upon direct_socket.TCPSocket creation. + /// + public event System.EventHandler DirectTCPSocketCreated + { + add + { + _client.AddEventHandler("Network.directTCPSocketCreated", value); + } + + remove + { + _client.RemoveEventHandler("Network.directTCPSocketCreated", value); + } + } + + /// + /// Fired when direct_socket.TCPSocket connection is opened. + /// + public event System.EventHandler DirectTCPSocketOpened + { + add + { + _client.AddEventHandler("Network.directTCPSocketOpened", value); + } + + remove + { + _client.RemoveEventHandler("Network.directTCPSocketOpened", value); + } + } + + /// + /// Fired when direct_socket.TCPSocket is aborted. + /// + public event System.EventHandler DirectTCPSocketAborted + { + add + { + _client.AddEventHandler("Network.directTCPSocketAborted", value); + } + + remove + { + _client.RemoveEventHandler("Network.directTCPSocketAborted", value); + } + } + + /// + /// Fired when direct_socket.TCPSocket is closed. + /// + public event System.EventHandler DirectTCPSocketClosed + { + add + { + _client.AddEventHandler("Network.directTCPSocketClosed", value); + } + + remove + { + _client.RemoveEventHandler("Network.directTCPSocketClosed", value); + } + } + /// /// Fired when additional information about a requestWillBeSent event is available from the /// network stack. Not every requestWillBeSent event will have an additional @@ -50012,19 +50792,25 @@ public System.Threading.Tasks.Task WaitForDebuggerAsync( return _client.ExecuteDevToolsMethodAsync("Page.waitForDebugger", dict); } - partial void ValidateSetInterceptFileChooserDialog(bool enabled); + partial void ValidateSetInterceptFileChooserDialog(bool enabled, bool? cancel = null); /// /// Intercept file chooser requests and transfer control to protocol clients. /// When file chooser interception is enabled, native file chooser dialog is not shown. /// Instead, a protocol event `Page.fileChooserOpened` is emitted. /// /// enabled + /// If true, cancels the dialog by emitting relevant events (if any)in addition to not showing it if the interception is enabled(default: false). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetInterceptFileChooserDialogAsync(bool enabled) + public System.Threading.Tasks.Task SetInterceptFileChooserDialogAsync(bool enabled, bool? cancel = null) { - ValidateSetInterceptFileChooserDialog(enabled); + ValidateSetInterceptFileChooserDialog(enabled, cancel); var dict = new System.Collections.Generic.Dictionary(); dict.Add("enabled", enabled); + if (cancel.HasValue) + { + dict.Add("cancel", cancel.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.setInterceptFileChooserDialog", dict); } @@ -54497,6 +55283,46 @@ public System.Threading.Tasks.Task ChangeAppUserSettings } } +namespace CefSharp.DevTools.BluetoothEmulation +{ + /// + /// AddServiceResponse + /// + public class AddServiceResponse : DevToolsDomainResponseBase + { + /// + /// serviceId + /// + [JsonInclude] + [JsonPropertyName("serviceId")] + public string ServiceId + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.BluetoothEmulation +{ + /// + /// AddCharacteristicResponse + /// + public class AddCharacteristicResponse : DevToolsDomainResponseBase + { + /// + /// characteristicId + /// + [JsonInclude] + [JsonPropertyName("characteristicId")] + public string CharacteristicId + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.BluetoothEmulation { using System.Linq; @@ -54517,20 +55343,53 @@ public BluetoothEmulationClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } - partial void ValidateEnable(CefSharp.DevTools.BluetoothEmulation.CentralState state); + /// + /// Event for when a GATT operation of |type| to the peripheral with |address| + /// happened. + /// + public event System.EventHandler GattOperationReceived + { + add + { + _client.AddEventHandler("BluetoothEmulation.gattOperationReceived", value); + } + + remove + { + _client.RemoveEventHandler("BluetoothEmulation.gattOperationReceived", value); + } + } + + partial void ValidateEnable(CefSharp.DevTools.BluetoothEmulation.CentralState state, bool leSupported); /// /// Enable the BluetoothEmulation domain. /// /// State of the simulated central. + /// If the simulated central supports low-energy. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task EnableAsync(CefSharp.DevTools.BluetoothEmulation.CentralState state) + public System.Threading.Tasks.Task EnableAsync(CefSharp.DevTools.BluetoothEmulation.CentralState state, bool leSupported) { - ValidateEnable(state); + ValidateEnable(state, leSupported); var dict = new System.Collections.Generic.Dictionary(); dict.Add("state", EnumToString(state)); + dict.Add("leSupported", leSupported); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.enable", dict); } + partial void ValidateSetSimulatedCentralState(CefSharp.DevTools.BluetoothEmulation.CentralState state); + /// + /// Set the state of the simulated central. + /// + /// State of the simulated central. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetSimulatedCentralStateAsync(CefSharp.DevTools.BluetoothEmulation.CentralState state) + { + ValidateSetSimulatedCentralState(state); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("state", EnumToString(state)); + return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.setSimulatedCentralState", dict); + } + /// /// Disable the BluetoothEmulation domain. /// @@ -54576,6 +55435,99 @@ public System.Threading.Tasks.Task SimulateAdvertisement dict.Add("entry", entry.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateAdvertisement", dict); } + + partial void ValidateSimulateGATTOperationResponse(string address, CefSharp.DevTools.BluetoothEmulation.GATTOperationType type, int code); + /// + /// Simulates the response code from the peripheral with |address| for a + /// GATT operation of |type|. The |code| value follows the HCI Error Codes from + /// Bluetooth Core Specification Vol 2 Part D 1.3 List Of Error Codes. + /// + /// address + /// type + /// code + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SimulateGATTOperationResponseAsync(string address, CefSharp.DevTools.BluetoothEmulation.GATTOperationType type, int code) + { + ValidateSimulateGATTOperationResponse(address, type, code); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("address", address); + dict.Add("type", EnumToString(type)); + dict.Add("code", code); + return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateGATTOperationResponse", dict); + } + + partial void ValidateAddService(string address, string serviceUuid); + /// + /// Adds a service with |serviceUuid| to the peripheral with |address|. + /// + /// address + /// serviceUuid + /// returns System.Threading.Tasks.Task<AddServiceResponse> + public System.Threading.Tasks.Task AddServiceAsync(string address, string serviceUuid) + { + ValidateAddService(address, serviceUuid); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("address", address); + dict.Add("serviceUuid", serviceUuid); + return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.addService", dict); + } + + partial void ValidateRemoveService(string address, string serviceId); + /// + /// Removes the service respresented by |serviceId| from the peripheral with + /// |address|. + /// + /// address + /// serviceId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task RemoveServiceAsync(string address, string serviceId) + { + ValidateRemoveService(address, serviceId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("address", address); + dict.Add("serviceId", serviceId); + return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.removeService", dict); + } + + partial void ValidateAddCharacteristic(string address, string serviceId, string characteristicUuid, CefSharp.DevTools.BluetoothEmulation.CharacteristicProperties properties); + /// + /// Adds a characteristic with |characteristicUuid| and |properties| to the + /// service represented by |serviceId| in the peripheral with |address|. + /// + /// address + /// serviceId + /// characteristicUuid + /// properties + /// returns System.Threading.Tasks.Task<AddCharacteristicResponse> + public System.Threading.Tasks.Task AddCharacteristicAsync(string address, string serviceId, string characteristicUuid, CefSharp.DevTools.BluetoothEmulation.CharacteristicProperties properties) + { + ValidateAddCharacteristic(address, serviceId, characteristicUuid, properties); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("address", address); + dict.Add("serviceId", serviceId); + dict.Add("characteristicUuid", characteristicUuid); + dict.Add("properties", properties.ToDictionary()); + return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.addCharacteristic", dict); + } + + partial void ValidateRemoveCharacteristic(string address, string serviceId, string characteristicId); + /// + /// Removes the characteristic respresented by |characteristicId| from the + /// service respresented by |serviceId| in the peripheral with |address|. + /// + /// address + /// serviceId + /// characteristicId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task RemoveCharacteristicAsync(string address, string serviceId, string characteristicId) + { + ValidateRemoveCharacteristic(address, serviceId, characteristicId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("address", address); + dict.Add("serviceId", serviceId); + dict.Add("characteristicId", characteristicId); + return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.removeCharacteristic", dict); + } } } diff --git a/CefSharp/Enums/CefErrorCode.cs b/CefSharp/Enums/CefErrorCode.cs index 57370cba1..7f5405cf8 100644 --- a/CefSharp/Enums/CefErrorCode.cs +++ b/CefSharp/Enums/CefErrorCode.cs @@ -201,6 +201,11 @@ public enum CefErrorCode /// NetworkAccessRevoked = -33, + /// + /// The request was blocked by fingerprinting protections. + /// + BlockedByFingerprintingProtection = -34, + /// /// A connection was closed (corresponding to a TCP FIN). /// @@ -789,11 +794,7 @@ public enum CefErrorCode /// CertificateTransparencyRequired = -214, - /// - /// The certificate chained to a legacy Symantec root that is no longer trusted. - /// https://g.co/chrome/symantecpkicerts - /// - CertSymantecLegacy = -215, + // Error -215 was removed (CERT_SYMANTEC_LEGACY) // -216 was QUIC_CERT_ROOT_NOT_KNOWN which has been renumbered to not be in the // certificate error range. @@ -807,6 +808,12 @@ public enum CefErrorCode // -218 was SSL_OBSOLETE_VERSION which is not longer used. TLS 1.0/1.1 instead // cause SSL_VERSION_OR_CIPHER_MISMATCH now. + /// + /// The certificate is self signed and it's being used for either an RFC1918 IP + /// literal URL, or a url ending in .local. + /// + CertSelfSignedLocalNetwork = -219, + // Add new certificate error codes here. // // Update the value of CERT_END whenever you add a new certificate error @@ -815,7 +822,7 @@ public enum CefErrorCode /// /// The value immediately past the last certificate error code. /// - CertEnd = -219, + CertEnd = -220, /// /// The URL is invalid. @@ -1104,6 +1111,11 @@ public enum CefErrorCode /// PacScriptTerminated = -367, + /// + /// Signals that the request requires the IPP proxy. + /// + ProxyRequired = -368, + // Obsolete. Kept here to avoid reuse. // Request is throttled because of a Backoff header. // See: crbug.com/486891. @@ -1208,9 +1220,7 @@ public enum CefErrorCode DictionaryLoadFailed = -387, /// - /// The "content-dictionary" response header is unexpected. This is used both - /// when there is no "content-dictionary" response header and when the received - /// "content-dictionary" response header does not match the expected value. + /// The header of dictionary compressed stream does not match the expected value. /// UnexpectedContentDictionaryHeader = -388, diff --git a/CefSharp/IJavascriptObjectRepository.cs b/CefSharp/IJavascriptObjectRepository.cs index b9faf16d6..72f80a70f 100644 --- a/CefSharp/IJavascriptObjectRepository.cs +++ b/CefSharp/IJavascriptObjectRepository.cs @@ -31,8 +31,6 @@ public interface IJavascriptObjectRepository : IDisposable /// Objects binding is now initiated in Javascript through the CefSharp.BindObjectAsync /// function (returns a Promise). /// For more detailed examples see https://github.com/cefsharp/CefSharp/issues/2246 - /// The equivilient to RegisterJsObject is isAsync = false - /// The equivilient RegisterAsyncJsObject is isAsync = true /// /// object name /// the object that will be bound in javascript @@ -41,8 +39,9 @@ public interface IJavascriptObjectRepository : IDisposable /// if true the object will be registered for async communication, /// only methods will be exposed and when called from javascript will return a Promise to be awaited. /// This method is newer and recommended for everyone starting out as it is faster and more reliable. - /// If false then methods and properties will be registered, this method relies on a WCF service to communicate. - /// If you are targeting .Net Core then you can only use isAsync = true as Microsoft has chosen not to support WCF. + /// If false then methods and properties will be registered, this method relies on a WCF service to communicate, + /// which is only available when targeting the .NET Framework. + /// This parameter is not available when targeting .NET Core or .NET 5+, where only async binding is supported. /// #endif /// binding options, by default method/property names are camelCased, you can control this diff --git a/appveyor.yml b/appveyor.yml index df3206923..44468a302 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 136.1.40-CI{build} +version: 136.1.40-RCI{build} clone_depth: 10