diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs
index 8ed7a2056..0e79ef6a6 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 136.0.7103.93
+// CHROMIUM VERSION 137.0.7151.69
using System.Runtime.Serialization;
namespace CefSharp.DevTools.Accessibility
@@ -5740,7 +5740,12 @@ public enum BrowserCommandId
/// closeTabSearch
///
[EnumMember(Value = ("closeTabSearch"))]
- CloseTabSearch
+ CloseTabSearch,
+ ///
+ /// openGlic
+ ///
+ [EnumMember(Value = ("openGlic"))]
+ OpenGlic
}
///
@@ -15687,7 +15692,12 @@ public enum ServiceWorkerRouterSource
/// race-network-and-fetch-handler
///
[EnumMember(Value = ("race-network-and-fetch-handler"))]
- RaceNetworkAndFetchHandler
+ RaceNetworkAndFetchHandler,
+ ///
+ /// race-network-and-cache
+ ///
+ [EnumMember(Value = ("race-network-and-cache"))]
+ RaceNetworkAndCache
}
///
@@ -20039,6 +20049,122 @@ public double Timestamp
}
}
+ ///
+ /// Fired when data is sent to tcp direct socket stream.
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public class DirectTCPSocketChunkSentEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase
+ {
+ ///
+ /// Identifier
+ ///
+ [DataMember(Name = ("identifier"), IsRequired = (true))]
+ public string Identifier
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// Data
+ ///
+ [DataMember(Name = ("data"), IsRequired = (true))]
+ public byte[] Data
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// Timestamp
+ ///
+ [DataMember(Name = ("timestamp"), IsRequired = (true))]
+ public double Timestamp
+ {
+ get;
+ private set;
+ }
+ }
+
+ ///
+ /// Fired when data is received from tcp direct socket stream.
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public class DirectTCPSocketChunkReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase
+ {
+ ///
+ /// Identifier
+ ///
+ [DataMember(Name = ("identifier"), IsRequired = (true))]
+ public string Identifier
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// Data
+ ///
+ [DataMember(Name = ("data"), IsRequired = (true))]
+ public byte[] Data
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// Timestamp
+ ///
+ [DataMember(Name = ("timestamp"), IsRequired = (true))]
+ public double Timestamp
+ {
+ get;
+ private set;
+ }
+ }
+
+ ///
+ /// Fired when there is an error
+ /// when writing to tcp direct socket stream.
+ /// For example, if user writes illegal type like string
+ /// instead of ArrayBuffer or ArrayBufferView.
+ /// There's no reporting for reading, because
+ /// we cannot know errors on the other side.
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public class DirectTCPSocketChunkErrorEventArgs : 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 additional information about a requestWillBeSent event is available from the
/// network stack. Not every requestWillBeSent event will have an additional
@@ -22002,6 +22128,7 @@ public enum GatedAPIFeatures
///
/// All Permissions Policy features. This enum should match the one defined
/// in services/network/public/cpp/permissions_policy/permissions_policy_features.json5.
+ /// LINT.IfChange(PermissionsPolicyFeature)
///
public enum PermissionsPolicyFeature
{
@@ -22206,6 +22333,11 @@ public enum PermissionsPolicyFeature
[EnumMember(Value = ("deferred-fetch-minimal"))]
DeferredFetchMinimal,
///
+ /// device-attributes
+ ///
+ [EnumMember(Value = ("device-attributes"))]
+ DeviceAttributes,
+ ///
/// digital-credentials-get
///
[EnumMember(Value = ("digital-credentials-get"))]
@@ -22321,6 +22453,11 @@ public enum PermissionsPolicyFeature
[EnumMember(Value = ("local-fonts"))]
LocalFonts,
///
+ /// local-network-access
+ ///
+ [EnumMember(Value = ("local-network-access"))]
+ LocalNetworkAccess,
+ ///
/// magnetometer
///
[EnumMember(Value = ("magnetometer"))]
@@ -22386,6 +22523,11 @@ public enum PermissionsPolicyFeature
[EnumMember(Value = ("publickey-credentials-get"))]
PublickeyCredentialsGet,
///
+ /// record-ad-auction-events
+ ///
+ [EnumMember(Value = ("record-ad-auction-events"))]
+ RecordAdAuctionEvents,
+ ///
/// rewriter
///
[EnumMember(Value = ("rewriter"))]
@@ -25517,10 +25659,15 @@ public enum BackForwardCacheNotRestoredReason
[EnumMember(Value = ("CacheControlNoStoreDeviceBoundSessionTerminated"))]
CacheControlNoStoreDeviceBoundSessionTerminated,
///
- /// CacheLimitPruned
+ /// CacheLimitPrunedOnModerateMemoryPressure
///
- [EnumMember(Value = ("CacheLimitPruned"))]
- CacheLimitPruned
+ [EnumMember(Value = ("CacheLimitPrunedOnModerateMemoryPressure"))]
+ CacheLimitPrunedOnModerateMemoryPressure,
+ ///
+ /// CacheLimitPrunedOnCriticalMemoryPressure
+ ///
+ [EnumMember(Value = ("CacheLimitPrunedOnCriticalMemoryPressure"))]
+ CacheLimitPrunedOnCriticalMemoryPressure
}
///
@@ -26427,6 +26574,16 @@ internal string state
[System.Runtime.Serialization.DataContractAttribute]
public class JavascriptDialogClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase
{
+ ///
+ /// Frame id.
+ ///
+ [DataMember(Name = ("frameId"), IsRequired = (true))]
+ public string FrameId
+ {
+ get;
+ private set;
+ }
+
///
/// Whether dialog was confirmed.
///
@@ -26465,6 +26622,16 @@ public string Url
private set;
}
+ ///
+ /// Frame id.
+ ///
+ [DataMember(Name = ("frameId"), IsRequired = (true))]
+ public string FrameId
+ {
+ get;
+ private set;
+ }
+
///
/// Message that will be displayed by the dialog.
///
@@ -28693,6 +28860,54 @@ public int BytesUsed
}
}
+ ///
+ /// Represents a dictionary object passed in as privateAggregationConfig to
+ /// run or selectURL.
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public partial class SharedStoragePrivateAggregationConfig : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// The chosen aggregation service deployment.
+ ///
+ [DataMember(Name = ("aggregationCoordinatorOrigin"), IsRequired = (false))]
+ public string AggregationCoordinatorOrigin
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// The context ID provided.
+ ///
+ [DataMember(Name = ("contextId"), IsRequired = (false))]
+ public string ContextId
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Configures the maximum size allowed for filtering IDs.
+ ///
+ [DataMember(Name = ("filteringIdMaxBytes"), IsRequired = (true))]
+ public int FilteringIdMaxBytes
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// The limit on the number of contributions in the final report.
+ ///
+ [DataMember(Name = ("maxContributions"), IsRequired = (false))]
+ public int? MaxContributions
+ {
+ get;
+ set;
+ }
+ }
+
///
/// Pair of reporting metadata details for a candidate URL for `selectURL()`.
///
@@ -28756,7 +28971,8 @@ public partial class SharedStorageAccessParams : CefSharp.DevTools.DevToolsDomai
{
///
/// Spec of the module script URL.
- /// Present only for SharedStorageAccessType.documentAddModule.
+ /// Present only for SharedStorageAccessMethods: addModule and
+ /// createWorklet.
///
[DataMember(Name = ("scriptSourceUrl"), IsRequired = (false))]
public string ScriptSourceUrl
@@ -28765,10 +28981,21 @@ public string ScriptSourceUrl
set;
}
+ ///
+ /// String denoting "context-origin", "script-origin", or a custom
+ /// origin to be used as the worklet's data origin.
+ /// Present only for SharedStorageAccessMethod: createWorklet.
+ ///
+ [DataMember(Name = ("dataOrigin"), IsRequired = (false))]
+ public string DataOrigin
+ {
+ get;
+ set;
+ }
+
///
/// Name of the registered operation to be run.
- /// Present only for SharedStorageAccessType.documentRun and
- /// SharedStorageAccessType.documentSelectURL.
+ /// Present only for SharedStorageAccessMethods: run and selectURL.
///
[DataMember(Name = ("operationName"), IsRequired = (false))]
public string OperationName
@@ -28777,10 +29004,33 @@ public string OperationName
set;
}
+ ///
+ /// Whether or not to keep the worket alive for future run or selectURL
+ /// calls.
+ /// Present only for SharedStorageAccessMethods: run and selectURL.
+ ///
+ [DataMember(Name = ("keepAlive"), IsRequired = (false))]
+ public bool? KeepAlive
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Configures the private aggregation options.
+ /// Present only for SharedStorageAccessMethods: run and selectURL.
+ ///
+ [DataMember(Name = ("privateAggregationConfig"), IsRequired = (false))]
+ public CefSharp.DevTools.Storage.SharedStoragePrivateAggregationConfig PrivateAggregationConfig
+ {
+ get;
+ set;
+ }
+
///
/// The operation's serialized data in bytes (converted to a string).
- /// Present only for SharedStorageAccessType.documentRun and
- /// SharedStorageAccessType.documentSelectURL.
+ /// Present only for SharedStorageAccessMethods: run and selectURL.
+ /// TODO(crbug.com/401011862): Consider updating this parameter to binary.
///
[DataMember(Name = ("serializedData"), IsRequired = (false))]
public string SerializedData
@@ -28791,7 +29041,7 @@ public string SerializedData
///
/// Array of candidate URLs' specs, along with any associated metadata.
- /// Present only for SharedStorageAccessType.documentSelectURL.
+ /// Present only for SharedStorageAccessMethod: selectURL.
///
[DataMember(Name = ("urlsWithMetadata"), IsRequired = (false))]
public System.Collections.Generic.IList UrlsWithMetadata
@@ -28800,18 +29050,21 @@ public System.Collections.Generic.IList
+ /// Spec of the URN:UUID generated for a selectURL call.
+ /// Present only for SharedStorageAccessMethod: selectURL.
+ ///
+ [DataMember(Name = ("urnUuid"), IsRequired = (false))]
+ public string UrnUuid
+ {
+ get;
+ set;
+ }
+
///
/// Key for a specific entry in an origin's shared storage.
- /// Present only for SharedStorageAccessType.documentSet,
- /// SharedStorageAccessType.documentAppend,
- /// SharedStorageAccessType.documentDelete,
- /// SharedStorageAccessType.workletSet,
- /// SharedStorageAccessType.workletAppend,
- /// SharedStorageAccessType.workletDelete,
- /// SharedStorageAccessType.workletGet,
- /// SharedStorageAccessType.headerSet,
- /// SharedStorageAccessType.headerAppend, and
- /// SharedStorageAccessType.headerDelete.
+ /// Present only for SharedStorageAccessMethods: set, append, delete, and
+ /// get.
///
[DataMember(Name = ("key"), IsRequired = (false))]
public string Key
@@ -28822,12 +29075,7 @@ public string Key
///
/// Value for a specific entry in an origin's shared storage.
- /// Present only for SharedStorageAccessType.documentSet,
- /// SharedStorageAccessType.documentAppend,
- /// SharedStorageAccessType.workletSet,
- /// SharedStorageAccessType.workletAppend,
- /// SharedStorageAccessType.headerSet, and
- /// SharedStorageAccessType.headerAppend.
+ /// Present only for SharedStorageAccessMethods: set and append.
///
[DataMember(Name = ("value"), IsRequired = (false))]
public string Value
@@ -28838,9 +29086,7 @@ public string Value
///
/// Whether or not to set an entry for a key if that key is already present.
- /// Present only for SharedStorageAccessType.documentSet,
- /// SharedStorageAccessType.workletSet, and
- /// SharedStorageAccessType.headerSet.
+ /// Present only for SharedStorageAccessMethod: set.
///
[DataMember(Name = ("ignoreIfPresent"), IsRequired = (false))]
public bool? IgnoreIfPresent
@@ -28848,6 +29094,56 @@ public bool? IgnoreIfPresent
get;
set;
}
+
+ ///
+ /// If the method is called on a worklet, or as part of
+ /// a worklet script, it will have an ID for the associated worklet.
+ /// Present only for SharedStorageAccessMethods: addModule, createWorklet,
+ /// run, selectURL, and any other SharedStorageAccessMethod when the
+ /// SharedStorageAccessScope is worklet.
+ ///
+ [DataMember(Name = ("workletId"), IsRequired = (false))]
+ public string WorkletId
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Name of the lock to be acquired, if present.
+ /// Optionally present only for SharedStorageAccessMethods: batchUpdate,
+ /// set, append, delete, and clear.
+ ///
+ [DataMember(Name = ("withLock"), IsRequired = (false))]
+ public string WithLock
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// If the method has been called as part of a batchUpdate, then this
+ /// number identifies the batch to which it belongs.
+ /// Optionally present only for SharedStorageAccessMethods:
+ /// batchUpdate (required), set, append, delete, and clear.
+ ///
+ [DataMember(Name = ("batchUpdateId"), IsRequired = (false))]
+ public string BatchUpdateId
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Number of modifier methods sent in batch.
+ /// Present only for SharedStorageAccessMethod: batchUpdate.
+ ///
+ [DataMember(Name = ("batchSize"), IsRequired = (false))]
+ public int? BatchSize
+ {
+ get;
+ set;
+ }
}
///
@@ -29298,6 +29594,33 @@ public double MaxEventStates
}
}
+ ///
+ /// AttributionReportingNamedBudgetDef
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public partial class AttributionReportingNamedBudgetDef : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// Name
+ ///
+ [DataMember(Name = ("name"), IsRequired = (true))]
+ public string Name
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Budget
+ ///
+ [DataMember(Name = ("budget"), IsRequired = (true))]
+ public int Budget
+ {
+ get;
+ set;
+ }
+ }
+
///
/// AttributionReportingSourceRegistration
///
@@ -29515,6 +29838,36 @@ public int MaxEventLevelReports
get;
set;
}
+
+ ///
+ /// NamedBudgets
+ ///
+ [DataMember(Name = ("namedBudgets"), IsRequired = (true))]
+ public System.Collections.Generic.IList NamedBudgets
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// DebugReporting
+ ///
+ [DataMember(Name = ("debugReporting"), IsRequired = (true))]
+ public bool DebugReporting
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// EventLevelEpsilon
+ ///
+ [DataMember(Name = ("eventLevelEpsilon"), IsRequired = (true))]
+ public double EventLevelEpsilon
+ {
+ get;
+ set;
+ }
}
///
@@ -29797,6 +30150,33 @@ public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters
}
}
+ ///
+ /// AttributionReportingNamedBudgetCandidate
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public partial class AttributionReportingNamedBudgetCandidate : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// Name
+ ///
+ [DataMember(Name = ("name"), IsRequired = (false))]
+ public string Name
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Filters
+ ///
+ [DataMember(Name = ("filters"), IsRequired = (true))]
+ public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters
+ {
+ get;
+ set;
+ }
+ }
+
///
/// AttributionReportingTriggerRegistration
///
@@ -29948,6 +30328,16 @@ public string[] Scopes
get;
set;
}
+
+ ///
+ /// NamedBudgets
+ ///
+ [DataMember(Name = ("namedBudgets"), IsRequired = (true))]
+ public System.Collections.Generic.IList NamedBudgets
+ {
+ get;
+ set;
+ }
}
///
@@ -36110,6 +36500,55 @@ public enum GATTOperationType
Discovery
}
+ ///
+ /// Indicates the various types of characteristic write.
+ ///
+ public enum CharacteristicWriteType
+ {
+ ///
+ /// write-default-deprecated
+ ///
+ [EnumMember(Value = ("write-default-deprecated"))]
+ WriteDefaultDeprecated,
+ ///
+ /// write-with-response
+ ///
+ [EnumMember(Value = ("write-with-response"))]
+ WriteWithResponse,
+ ///
+ /// write-without-response
+ ///
+ [EnumMember(Value = ("write-without-response"))]
+ WriteWithoutResponse
+ }
+
+ ///
+ /// Indicates the various types of characteristic operation.
+ ///
+ public enum CharacteristicOperationType
+ {
+ ///
+ /// read
+ ///
+ [EnumMember(Value = ("read"))]
+ Read,
+ ///
+ /// write
+ ///
+ [EnumMember(Value = ("write"))]
+ Write,
+ ///
+ /// subscribe-to-notifications
+ ///
+ [EnumMember(Value = ("subscribe-to-notifications"))]
+ SubscribeToNotifications,
+ ///
+ /// unsubscribe-from-notifications
+ ///
+ [EnumMember(Value = ("unsubscribe-from-notifications"))]
+ UnsubscribeFromNotifications
+ }
+
///
/// Stores the manufacturer data
///
@@ -36365,6 +36804,87 @@ internal string type
private set;
}
}
+
+ ///
+ /// Event for when a characteristic operation of |type| to the characteristic
+ /// respresented by |characteristicId| happened. |data| and |writeType| is
+ /// expected to exist when |type| is write.
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public class CharacteristicOperationReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase
+ {
+ ///
+ /// CharacteristicId
+ ///
+ [DataMember(Name = ("characteristicId"), IsRequired = (true))]
+ public string CharacteristicId
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// Type
+ ///
+ public CefSharp.DevTools.BluetoothEmulation.CharacteristicOperationType Type
+ {
+ get
+ {
+ return (CefSharp.DevTools.BluetoothEmulation.CharacteristicOperationType)(StringToEnum(typeof(CefSharp.DevTools.BluetoothEmulation.CharacteristicOperationType), type));
+ }
+
+ set
+ {
+ this.type = (EnumToString(value));
+ }
+ }
+
+ ///
+ /// Type
+ ///
+ [DataMember(Name = ("type"), IsRequired = (true))]
+ internal string type
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// Data
+ ///
+ [DataMember(Name = ("data"), IsRequired = (false))]
+ public byte[] Data
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// WriteType
+ ///
+ public CefSharp.DevTools.BluetoothEmulation.CharacteristicWriteType? WriteType
+ {
+ get
+ {
+ return (CefSharp.DevTools.BluetoothEmulation.CharacteristicWriteType? )(StringToEnum(typeof(CefSharp.DevTools.BluetoothEmulation.CharacteristicWriteType? ), writeType));
+ }
+
+ set
+ {
+ this.writeType = (EnumToString(value));
+ }
+ }
+
+ ///
+ /// WriteType
+ ///
+ [DataMember(Name = ("writeType"), IsRequired = (false))]
+ internal string writeType
+ {
+ get;
+ private set;
+ }
+ }
}
namespace CefSharp.DevTools.Debugger
@@ -37232,7 +37752,7 @@ public string Hash
}
///
- /// For Wasm modules, the content of the `build_id` custom section.
+ /// For Wasm modules, the content of the `build_id` custom section. For JavaScript the `debugId` magic comment.
///
[DataMember(Name = ("buildId"), IsRequired = (true))]
public string BuildId
@@ -37436,7 +37956,7 @@ public string Hash
}
///
- /// For Wasm modules, the content of the `build_id` custom section.
+ /// For Wasm modules, the content of the `build_id` custom section. For JavaScript the `debugId` magic comment.
///
[DataMember(Name = ("buildId"), IsRequired = (true))]
public string BuildId
@@ -43596,6 +44116,11 @@ public System.Threading.Tasks.Task GetComputedS
/// For example, a value of '1em' is evaluated according to the computed
/// 'font-size' of the element and a value 'calc(1px + 2px)' will be
/// resolved to '3px'.
+ /// If the `propertyName` was specified the `values` are resolved as if
+ /// they were property's declaration. If a value cannot be parsed according
+ /// to the provided property syntax, the value is parsed using combined
+ /// syntax as if null `propertyName` was provided. If the value cannot be
+ /// resolved even then, return the provided value without any changes.
///
/// Substitution functions (var()/env()/attr()) and cascade-dependentkeywords (revert/revert-layer) do not work.
/// Id of the node in whose context the expression is evaluated
@@ -47744,18 +48269,22 @@ public System.Threading.Tasks.Task SetEmulatedVisionDefi
return _client.ExecuteDevToolsMethodAsync("Emulation.setEmulatedVisionDeficiency", dict);
}
- partial void ValidateSetGeolocationOverride(double? latitude = null, double? longitude = null, double? accuracy = null);
+ partial void ValidateSetGeolocationOverride(double? latitude = null, double? longitude = null, double? accuracy = null, double? altitude = null, double? altitudeAccuracy = null, double? heading = null, double? speed = null);
///
- /// Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
- /// unavailable.
+ /// Overrides the Geolocation Position or Error. Omitting latitude, longitude or
+ /// accuracy emulates position unavailable.
///
/// Mock latitude
/// Mock longitude
/// Mock accuracy
+ /// Mock altitude
+ /// Mock altitudeAccuracy
+ /// Mock heading
+ /// Mock speed
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
- public System.Threading.Tasks.Task SetGeolocationOverrideAsync(double? latitude = null, double? longitude = null, double? accuracy = null)
+ public System.Threading.Tasks.Task SetGeolocationOverrideAsync(double? latitude = null, double? longitude = null, double? accuracy = null, double? altitude = null, double? altitudeAccuracy = null, double? heading = null, double? speed = null)
{
- ValidateSetGeolocationOverride(latitude, longitude, accuracy);
+ ValidateSetGeolocationOverride(latitude, longitude, accuracy, altitude, altitudeAccuracy, heading, speed);
var dict = new System.Collections.Generic.Dictionary();
if (latitude.HasValue)
{
@@ -47772,6 +48301,26 @@ public System.Threading.Tasks.Task SetGeolocationOverrid
dict.Add("accuracy", accuracy.Value);
}
+ if (altitude.HasValue)
+ {
+ dict.Add("altitude", altitude.Value);
+ }
+
+ if (altitudeAccuracy.HasValue)
+ {
+ dict.Add("altitudeAccuracy", altitudeAccuracy.Value);
+ }
+
+ if (heading.HasValue)
+ {
+ dict.Add("heading", heading.Value);
+ }
+
+ if (speed.HasValue)
+ {
+ dict.Add("speed", speed.Value);
+ }
+
return _client.ExecuteDevToolsMethodAsync("Emulation.setGeolocationOverride", dict);
}
@@ -48088,6 +48637,21 @@ public System.Threading.Tasks.Task SetAutomationOverride
dict.Add("enabled", enabled);
return _client.ExecuteDevToolsMethodAsync("Emulation.setAutomationOverride", dict);
}
+
+ partial void ValidateSetSmallViewportHeightDifferenceOverride(int difference);
+ ///
+ /// Allows overriding the difference between the small and large viewport sizes, which determine the
+ /// value of the `svh` and `lvh` unit, respectively. Only supported for top-level frames.
+ ///
+ /// This will cause an element of size 100svh to be `difference` pixels smaller than an elementof size 100lvh.
+ /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
+ public System.Threading.Tasks.Task SetSmallViewportHeightDifferenceOverrideAsync(int difference)
+ {
+ ValidateSetSmallViewportHeightDifferenceOverride(difference);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("difference", difference);
+ return _client.ExecuteDevToolsMethodAsync("Emulation.setSmallViewportHeightDifferenceOverride", dict);
+ }
}
}
@@ -51214,6 +51778,59 @@ public event System.EventHandler DirectTCPSocket
}
}
+ ///
+ /// Fired when data is sent to tcp direct socket stream.
+ ///
+ public event System.EventHandler DirectTCPSocketChunkSent
+ {
+ add
+ {
+ _client.AddEventHandler("Network.directTCPSocketChunkSent", value);
+ }
+
+ remove
+ {
+ _client.RemoveEventHandler("Network.directTCPSocketChunkSent", value);
+ }
+ }
+
+ ///
+ /// Fired when data is received from tcp direct socket stream.
+ ///
+ public event System.EventHandler DirectTCPSocketChunkReceived
+ {
+ add
+ {
+ _client.AddEventHandler("Network.directTCPSocketChunkReceived", value);
+ }
+
+ remove
+ {
+ _client.RemoveEventHandler("Network.directTCPSocketChunkReceived", value);
+ }
+ }
+
+ ///
+ /// Fired when there is an error
+ /// when writing to tcp direct socket stream.
+ /// For example, if user writes illegal type like string
+ /// instead of ArrayBuffer or ArrayBufferView.
+ /// There's no reporting for reading, because
+ /// we cannot know errors on the other side.
+ ///
+ public event System.EventHandler DirectTCPSocketChunkError
+ {
+ add
+ {
+ _client.AddEventHandler("Network.directTCPSocketChunkError", value);
+ }
+
+ remove
+ {
+ _client.RemoveEventHandler("Network.directTCPSocketChunkError", value);
+ }
+ }
+
///
/// Fired when additional information about a requestWillBeSent event is available from the
/// network stack. Not every requestWillBeSent event will have an additional
@@ -52944,26 +53561,26 @@ public string RecommendedId
namespace CefSharp.DevTools.Page
{
///
- /// GetAdScriptIdResponse
+ /// GetAdScriptAncestryIdsResponse
///
[DataContract]
- public class GetAdScriptIdResponse : DevToolsDomainResponseBase
+ public class GetAdScriptAncestryIdsResponse : DevToolsDomainResponseBase
{
[DataMember]
- internal CefSharp.DevTools.Page.AdScriptId adScriptId
+ internal System.Collections.Generic.IList adScriptAncestryIds
{
get;
set;
}
///
- /// adScriptId
+ /// adScriptAncestryIds
///
- public CefSharp.DevTools.Page.AdScriptId AdScriptId
+ public System.Collections.Generic.IList AdScriptAncestryIds
{
get
{
- return adScriptId;
+ return adScriptAncestryIds;
}
}
}
@@ -54139,18 +54756,18 @@ public System.Threading.Tasks.Task GetAppIdAsync()
return _client.ExecuteDevToolsMethodAsync("Page.getAppId", dict);
}
- partial void ValidateGetAdScriptId(string frameId);
+ partial void ValidateGetAdScriptAncestryIds(string frameId);
///
- /// GetAdScriptId
+ /// GetAdScriptAncestryIds
///
/// frameId
- /// returns System.Threading.Tasks.Task<GetAdScriptIdResponse>
- public System.Threading.Tasks.Task GetAdScriptIdAsync(string frameId)
+ /// returns System.Threading.Tasks.Task<GetAdScriptAncestryIdsResponse>
+ public System.Threading.Tasks.Task GetAdScriptAncestryIdsAsync(string frameId)
{
- ValidateGetAdScriptId(frameId);
+ ValidateGetAdScriptAncestryIds(frameId);
var dict = new System.Collections.Generic.Dictionary();
dict.Add("frameId", frameId);
- return _client.ExecuteDevToolsMethodAsync("Page.getAdScriptId", dict);
+ return _client.ExecuteDevToolsMethodAsync("Page.getAdScriptAncestryIds", dict);
}
///
@@ -56501,6 +57118,24 @@ public System.Threading.Tasks.Task("Storage.getAffectedUrlsForThirdPartyCookieMetadata", dict);
}
+
+ partial void ValidateSetProtectedAudienceKAnonymity(string owner, string name, byte[][] hashes);
+ ///
+ /// SetProtectedAudienceKAnonymity
+ ///
+ /// owner
+ /// name
+ /// hashes
+ /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
+ public System.Threading.Tasks.Task SetProtectedAudienceKAnonymityAsync(string owner, string name, byte[][] hashes)
+ {
+ ValidateSetProtectedAudienceKAnonymity(owner, name, hashes);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("owner", owner);
+ dict.Add("name", name);
+ dict.Add("hashes", ToBase64String(hashes));
+ return _client.ExecuteDevToolsMethodAsync("Storage.setProtectedAudienceKAnonymity", dict);
+ }
}
}
@@ -57193,7 +57828,7 @@ public System.Threading.Tasks.Task GetBrowserContext
return _client.ExecuteDevToolsMethodAsync("Target.getBrowserContexts", dict);
}
- partial void ValidateCreateTarget(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null);
+ partial void ValidateCreateTarget(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null);
///
/// Creates a new page.
///
@@ -57208,10 +57843,11 @@ public System.Threading.Tasks.Task GetBrowserContext
/// Whether to create a new Window or Tab (false by default, not supported by headless shell).
/// Whether to create the target in background or foreground (false by default, not supportedby headless shell).
/// Whether to create the target of type "tab".
+ /// Whether to create a hidden target. The hidden target is observable via protocol, but notpresent in the tab UI strip. Cannot be created with `forTab: true`, `newWindow: true` or`background: false`. The life-time of the tab is limited to the life-time of the session.
/// returns System.Threading.Tasks.Task<CreateTargetResponse>
- public System.Threading.Tasks.Task CreateTargetAsync(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null)
+ public System.Threading.Tasks.Task CreateTargetAsync(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null)
{
- ValidateCreateTarget(url, left, top, width, height, windowState, browserContextId, enableBeginFrameControl, newWindow, background, forTab);
+ ValidateCreateTarget(url, left, top, width, height, windowState, browserContextId, enableBeginFrameControl, newWindow, background, forTab, hidden);
var dict = new System.Collections.Generic.Dictionary();
dict.Add("url", url);
if (left.HasValue)
@@ -57264,6 +57900,11 @@ public System.Threading.Tasks.Task CreateTargetAsync(strin
dict.Add("forTab", forTab.Value);
}
+ if (hidden.HasValue)
+ {
+ dict.Add("hidden", hidden.Value);
+ }
+
return _client.ExecuteDevToolsMethodAsync("Target.createTarget", dict);
}
@@ -57344,11 +57985,14 @@ public System.Threading.Tasks.Task GetTargetsAsync(System.Co
partial void ValidateSetAutoAttach(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null, System.Collections.Generic.IList filter = null);
///
- /// Controls whether to automatically attach to new targets which are considered to be related to
- /// this one. When turned on, attaches to all existing related targets as well. When turned off,
+ /// Controls whether to automatically attach to new targets which are considered
+ /// to be directly related to this one (for example, iframes or workers).
+ /// When turned on, attaches to all existing related targets as well. When turned off,
/// automatically detaches from all currently attached targets.
/// This also clears all targets added by `autoAttachRelated` from the list of targets to watch
/// for creation of related targets.
+ /// You might want to call this recursively for auto-attached targets to attach
+ /// to all available targets.
///
/// Whether to auto-attach to related targets.
/// Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`to run paused targets.
@@ -59707,6 +60351,34 @@ public string CharacteristicId
}
}
+namespace CefSharp.DevTools.BluetoothEmulation
+{
+ ///
+ /// AddDescriptorResponse
+ ///
+ [DataContract]
+ public class AddDescriptorResponse : DevToolsDomainResponseBase
+ {
+ [DataMember]
+ internal string descriptorId
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// descriptorId
+ ///
+ public string DescriptorId
+ {
+ get
+ {
+ return descriptorId;
+ }
+ }
+ }
+}
+
namespace CefSharp.DevTools.BluetoothEmulation
{
using System.Linq;
@@ -59744,6 +60416,24 @@ public event System.EventHandler GattOperationRe
}
}
+ ///
+ /// Event for when a characteristic operation of |type| to the characteristic
+ /// respresented by |characteristicId| happened. |data| and |writeType| is
+ /// expected to exist when |type| is write.
+ ///
+ public event System.EventHandler CharacteristicOperationReceived
+ {
+ add
+ {
+ _client.AddEventHandler("BluetoothEmulation.characteristicOperationReceived", value);
+ }
+
+ remove
+ {
+ _client.RemoveEventHandler("BluetoothEmulation.characteristicOperationReceived", value);
+ }
+ }
+
partial void ValidateEnable(CefSharp.DevTools.BluetoothEmulation.CentralState state, bool leSupported);
///
/// Enable the BluetoothEmulation domain.
@@ -59840,6 +60530,34 @@ public System.Threading.Tasks.Task SimulateGATTOperation
return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateGATTOperationResponse", dict);
}
+ partial void ValidateSimulateCharacteristicOperationResponse(string characteristicId, CefSharp.DevTools.BluetoothEmulation.CharacteristicOperationType type, int code, byte[] data = null);
+ ///
+ /// Simulates the response from the characteristic with |characteristicId| for a
+ /// characteristic operation of |type|. The |code| value follows the Error
+ /// Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response.
+ /// The |data| is expected to exist when simulating a successful read operation
+ /// response.
+ ///
+ /// characteristicId
+ /// type
+ /// code
+ /// data
+ /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
+ public System.Threading.Tasks.Task SimulateCharacteristicOperationResponseAsync(string characteristicId, CefSharp.DevTools.BluetoothEmulation.CharacteristicOperationType type, int code, byte[] data = null)
+ {
+ ValidateSimulateCharacteristicOperationResponse(characteristicId, type, code, data);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("characteristicId", characteristicId);
+ dict.Add("type", EnumToString(type));
+ dict.Add("code", code);
+ if ((data) != (null))
+ {
+ dict.Add("data", ToBase64String(data));
+ }
+
+ return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateCharacteristicOperationResponse", dict);
+ }
+
partial void ValidateAddService(string address, string serviceUuid);
///
/// Adds a service with |serviceUuid| to the peripheral with |address|.
@@ -59856,62 +60574,84 @@ public System.Threading.Tasks.Task AddServiceAsync(string ad
return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.addService", dict);
}
- partial void ValidateRemoveService(string address, string serviceId);
+ partial void ValidateRemoveService(string serviceId);
///
- /// Removes the service respresented by |serviceId| from the peripheral with
- /// |address|.
+ /// Removes the service respresented by |serviceId| from the simulated central.
///
- /// address
/// serviceId
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
- public System.Threading.Tasks.Task RemoveServiceAsync(string address, string serviceId)
+ public System.Threading.Tasks.Task RemoveServiceAsync(string serviceId)
{
- ValidateRemoveService(address, serviceId);
+ ValidateRemoveService(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);
+ partial void ValidateAddCharacteristic(string serviceId, string characteristicUuid, CefSharp.DevTools.BluetoothEmulation.CharacteristicProperties properties);
///
/// Adds a characteristic with |characteristicUuid| and |properties| to the
- /// service represented by |serviceId| in the peripheral with |address|.
+ /// service represented by |serviceId|.
///
- /// 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)
+ public System.Threading.Tasks.Task AddCharacteristicAsync(string serviceId, string characteristicUuid, CefSharp.DevTools.BluetoothEmulation.CharacteristicProperties properties)
{
- ValidateAddCharacteristic(address, serviceId, characteristicUuid, properties);
+ ValidateAddCharacteristic(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);
+ partial void ValidateRemoveCharacteristic(string characteristicId);
///
/// Removes the characteristic respresented by |characteristicId| from the
- /// service respresented by |serviceId| in the peripheral with |address|.
+ /// simulated central.
///
- /// address
- /// serviceId
/// characteristicId
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
- public System.Threading.Tasks.Task RemoveCharacteristicAsync(string address, string serviceId, string characteristicId)
+ public System.Threading.Tasks.Task RemoveCharacteristicAsync(string characteristicId)
{
- ValidateRemoveCharacteristic(address, serviceId, characteristicId);
+ ValidateRemoveCharacteristic(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);
}
+
+ partial void ValidateAddDescriptor(string characteristicId, string descriptorUuid);
+ ///
+ /// Adds a descriptor with |descriptorUuid| to the characteristic respresented
+ /// by |characteristicId|.
+ ///
+ /// characteristicId
+ /// descriptorUuid
+ /// returns System.Threading.Tasks.Task<AddDescriptorResponse>
+ public System.Threading.Tasks.Task AddDescriptorAsync(string characteristicId, string descriptorUuid)
+ {
+ ValidateAddDescriptor(characteristicId, descriptorUuid);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("characteristicId", characteristicId);
+ dict.Add("descriptorUuid", descriptorUuid);
+ return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.addDescriptor", dict);
+ }
+
+ partial void ValidateRemoveDescriptor(string descriptorId);
+ ///
+ /// Removes the descriptor with |descriptorId| from the simulated central.
+ ///
+ /// descriptorId
+ /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
+ public System.Threading.Tasks.Task RemoveDescriptorAsync(string descriptorId)
+ {
+ ValidateRemoveDescriptor(descriptorId);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("descriptorId", descriptorId);
+ return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.removeDescriptor", dict);
+ }
}
}
diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs
index e41a485f3..e1fac5539 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 136.0.7103.93
+// CHROMIUM VERSION 137.0.7151.69
using System.Text.Json.Serialization;
namespace CefSharp.DevTools.Accessibility
@@ -5208,7 +5208,12 @@ public enum BrowserCommandId
/// closeTabSearch
///
[JsonPropertyName("closeTabSearch")]
- CloseTabSearch
+ CloseTabSearch,
+ ///
+ /// openGlic
+ ///
+ [JsonPropertyName("openGlic")]
+ OpenGlic
}
///
@@ -14656,7 +14661,12 @@ public enum ServiceWorkerRouterSource
/// race-network-and-fetch-handler
///
[JsonPropertyName("race-network-and-fetch-handler")]
- RaceNetworkAndFetchHandler
+ RaceNetworkAndFetchHandler,
+ ///
+ /// race-network-and-cache
+ ///
+ [JsonPropertyName("race-network-and-cache")]
+ RaceNetworkAndCache
}
///
@@ -18533,6 +18543,134 @@ public double Timestamp
}
}
+ ///
+ /// Fired when data is sent to tcp direct socket stream.
+ ///
+ public class DirectTCPSocketChunkSentEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase
+ {
+ ///
+ /// Identifier
+ ///
+ [JsonInclude]
+ [JsonPropertyName("identifier")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public string Identifier
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// Data
+ ///
+ [JsonInclude]
+ [JsonPropertyName("data")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public byte[] Data
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// Timestamp
+ ///
+ [JsonInclude]
+ [JsonPropertyName("timestamp")]
+ public double Timestamp
+ {
+ get;
+ private set;
+ }
+ }
+
+ ///
+ /// Fired when data is received from tcp direct socket stream.
+ ///
+ public class DirectTCPSocketChunkReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase
+ {
+ ///
+ /// Identifier
+ ///
+ [JsonInclude]
+ [JsonPropertyName("identifier")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public string Identifier
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// Data
+ ///
+ [JsonInclude]
+ [JsonPropertyName("data")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public byte[] Data
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// Timestamp
+ ///
+ [JsonInclude]
+ [JsonPropertyName("timestamp")]
+ public double Timestamp
+ {
+ get;
+ private set;
+ }
+ }
+
+ ///
+ /// Fired when there is an error
+ /// when writing to tcp direct socket stream.
+ /// For example, if user writes illegal type like string
+ /// instead of ArrayBuffer or ArrayBufferView.
+ /// There's no reporting for reading, because
+ /// we cannot know errors on the other side.
+ ///
+ public class DirectTCPSocketChunkErrorEventArgs : 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 additional information about a requestWillBeSent event is available from the
/// network stack. Not every requestWillBeSent event will have an additional
@@ -20408,6 +20546,7 @@ public enum GatedAPIFeatures
///
/// All Permissions Policy features. This enum should match the one defined
/// in services/network/public/cpp/permissions_policy/permissions_policy_features.json5.
+ /// LINT.IfChange(PermissionsPolicyFeature)
///
public enum PermissionsPolicyFeature
{
@@ -20612,6 +20751,11 @@ public enum PermissionsPolicyFeature
[JsonPropertyName("deferred-fetch-minimal")]
DeferredFetchMinimal,
///
+ /// device-attributes
+ ///
+ [JsonPropertyName("device-attributes")]
+ DeviceAttributes,
+ ///
/// digital-credentials-get
///
[JsonPropertyName("digital-credentials-get")]
@@ -20727,6 +20871,11 @@ public enum PermissionsPolicyFeature
[JsonPropertyName("local-fonts")]
LocalFonts,
///
+ /// local-network-access
+ ///
+ [JsonPropertyName("local-network-access")]
+ LocalNetworkAccess,
+ ///
/// magnetometer
///
[JsonPropertyName("magnetometer")]
@@ -20792,6 +20941,11 @@ public enum PermissionsPolicyFeature
[JsonPropertyName("publickey-credentials-get")]
PublickeyCredentialsGet,
///
+ /// record-ad-auction-events
+ ///
+ [JsonPropertyName("record-ad-auction-events")]
+ RecordAdAuctionEvents,
+ ///
/// rewriter
///
[JsonPropertyName("rewriter")]
@@ -23774,10 +23928,15 @@ public enum BackForwardCacheNotRestoredReason
[JsonPropertyName("CacheControlNoStoreDeviceBoundSessionTerminated")]
CacheControlNoStoreDeviceBoundSessionTerminated,
///
- /// CacheLimitPruned
+ /// CacheLimitPrunedOnModerateMemoryPressure
+ ///
+ [JsonPropertyName("CacheLimitPrunedOnModerateMemoryPressure")]
+ CacheLimitPrunedOnModerateMemoryPressure,
+ ///
+ /// CacheLimitPrunedOnCriticalMemoryPressure
///
- [JsonPropertyName("CacheLimitPruned")]
- CacheLimitPruned
+ [JsonPropertyName("CacheLimitPrunedOnCriticalMemoryPressure")]
+ CacheLimitPrunedOnCriticalMemoryPressure
}
///
@@ -24566,6 +24725,18 @@ public CefSharp.DevTools.Page.DownloadProgressState State
///
public class JavascriptDialogClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase
{
+ ///
+ /// Frame id.
+ ///
+ [JsonInclude]
+ [JsonPropertyName("frameId")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public string FrameId
+ {
+ get;
+ private set;
+ }
+
///
/// Whether dialog was confirmed.
///
@@ -24608,6 +24779,18 @@ public string Url
private set;
}
+ ///
+ /// Frame id.
+ ///
+ [JsonInclude]
+ [JsonPropertyName("frameId")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public string FrameId
+ {
+ get;
+ private set;
+ }
+
///
/// Message that will be displayed by the dialog.
///
@@ -26709,6 +26892,53 @@ public int BytesUsed
}
}
+ ///
+ /// Represents a dictionary object passed in as privateAggregationConfig to
+ /// run or selectURL.
+ ///
+ public partial class SharedStoragePrivateAggregationConfig : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// The chosen aggregation service deployment.
+ ///
+ [JsonPropertyName("aggregationCoordinatorOrigin")]
+ public string AggregationCoordinatorOrigin
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// The context ID provided.
+ ///
+ [JsonPropertyName("contextId")]
+ public string ContextId
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Configures the maximum size allowed for filtering IDs.
+ ///
+ [JsonPropertyName("filteringIdMaxBytes")]
+ public int FilteringIdMaxBytes
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// The limit on the number of contributions in the final report.
+ ///
+ [JsonPropertyName("maxContributions")]
+ public int? MaxContributions
+ {
+ get;
+ set;
+ }
+ }
+
///
/// Pair of reporting metadata details for a candidate URL for `selectURL()`.
///
@@ -26773,7 +27003,8 @@ public partial class SharedStorageAccessParams : CefSharp.DevTools.DevToolsDomai
{
///
/// Spec of the module script URL.
- /// Present only for SharedStorageAccessType.documentAddModule.
+ /// Present only for SharedStorageAccessMethods: addModule and
+ /// createWorklet.
///
[JsonPropertyName("scriptSourceUrl")]
public string ScriptSourceUrl
@@ -26782,10 +27013,21 @@ public string ScriptSourceUrl
set;
}
+ ///
+ /// String denoting "context-origin", "script-origin", or a custom
+ /// origin to be used as the worklet's data origin.
+ /// Present only for SharedStorageAccessMethod: createWorklet.
+ ///
+ [JsonPropertyName("dataOrigin")]
+ public string DataOrigin
+ {
+ get;
+ set;
+ }
+
///
/// Name of the registered operation to be run.
- /// Present only for SharedStorageAccessType.documentRun and
- /// SharedStorageAccessType.documentSelectURL.
+ /// Present only for SharedStorageAccessMethods: run and selectURL.
///
[JsonPropertyName("operationName")]
public string OperationName
@@ -26794,10 +27036,33 @@ public string OperationName
set;
}
+ ///
+ /// Whether or not to keep the worket alive for future run or selectURL
+ /// calls.
+ /// Present only for SharedStorageAccessMethods: run and selectURL.
+ ///
+ [JsonPropertyName("keepAlive")]
+ public bool? KeepAlive
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Configures the private aggregation options.
+ /// Present only for SharedStorageAccessMethods: run and selectURL.
+ ///
+ [JsonPropertyName("privateAggregationConfig")]
+ public CefSharp.DevTools.Storage.SharedStoragePrivateAggregationConfig PrivateAggregationConfig
+ {
+ get;
+ set;
+ }
+
///
/// The operation's serialized data in bytes (converted to a string).
- /// Present only for SharedStorageAccessType.documentRun and
- /// SharedStorageAccessType.documentSelectURL.
+ /// Present only for SharedStorageAccessMethods: run and selectURL.
+ /// TODO(crbug.com/401011862): Consider updating this parameter to binary.
///
[JsonPropertyName("serializedData")]
public string SerializedData
@@ -26808,7 +27073,7 @@ public string SerializedData
///
/// Array of candidate URLs' specs, along with any associated metadata.
- /// Present only for SharedStorageAccessType.documentSelectURL.
+ /// Present only for SharedStorageAccessMethod: selectURL.
///
[JsonPropertyName("urlsWithMetadata")]
public System.Collections.Generic.IList UrlsWithMetadata
@@ -26817,18 +27082,21 @@ public System.Collections.Generic.IList
+ /// Spec of the URN:UUID generated for a selectURL call.
+ /// Present only for SharedStorageAccessMethod: selectURL.
+ ///
+ [JsonPropertyName("urnUuid")]
+ public string UrnUuid
+ {
+ get;
+ set;
+ }
+
///
/// Key for a specific entry in an origin's shared storage.
- /// Present only for SharedStorageAccessType.documentSet,
- /// SharedStorageAccessType.documentAppend,
- /// SharedStorageAccessType.documentDelete,
- /// SharedStorageAccessType.workletSet,
- /// SharedStorageAccessType.workletAppend,
- /// SharedStorageAccessType.workletDelete,
- /// SharedStorageAccessType.workletGet,
- /// SharedStorageAccessType.headerSet,
- /// SharedStorageAccessType.headerAppend, and
- /// SharedStorageAccessType.headerDelete.
+ /// Present only for SharedStorageAccessMethods: set, append, delete, and
+ /// get.
///
[JsonPropertyName("key")]
public string Key
@@ -26839,12 +27107,7 @@ public string Key
///
/// Value for a specific entry in an origin's shared storage.
- /// Present only for SharedStorageAccessType.documentSet,
- /// SharedStorageAccessType.documentAppend,
- /// SharedStorageAccessType.workletSet,
- /// SharedStorageAccessType.workletAppend,
- /// SharedStorageAccessType.headerSet, and
- /// SharedStorageAccessType.headerAppend.
+ /// Present only for SharedStorageAccessMethods: set and append.
///
[JsonPropertyName("value")]
public string Value
@@ -26855,9 +27118,7 @@ public string Value
///
/// Whether or not to set an entry for a key if that key is already present.
- /// Present only for SharedStorageAccessType.documentSet,
- /// SharedStorageAccessType.workletSet, and
- /// SharedStorageAccessType.headerSet.
+ /// Present only for SharedStorageAccessMethod: set.
///
[JsonPropertyName("ignoreIfPresent")]
public bool? IgnoreIfPresent
@@ -26865,6 +27126,56 @@ public bool? IgnoreIfPresent
get;
set;
}
+
+ ///
+ /// If the method is called on a worklet, or as part of
+ /// a worklet script, it will have an ID for the associated worklet.
+ /// Present only for SharedStorageAccessMethods: addModule, createWorklet,
+ /// run, selectURL, and any other SharedStorageAccessMethod when the
+ /// SharedStorageAccessScope is worklet.
+ ///
+ [JsonPropertyName("workletId")]
+ public string WorkletId
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Name of the lock to be acquired, if present.
+ /// Optionally present only for SharedStorageAccessMethods: batchUpdate,
+ /// set, append, delete, and clear.
+ ///
+ [JsonPropertyName("withLock")]
+ public string WithLock
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// If the method has been called as part of a batchUpdate, then this
+ /// number identifies the batch to which it belongs.
+ /// Optionally present only for SharedStorageAccessMethods:
+ /// batchUpdate (required), set, append, delete, and clear.
+ ///
+ [JsonPropertyName("batchUpdateId")]
+ public string BatchUpdateId
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Number of modifier methods sent in batch.
+ /// Present only for SharedStorageAccessMethod: batchUpdate.
+ ///
+ [JsonPropertyName("batchSize")]
+ public int? BatchSize
+ {
+ get;
+ set;
+ }
}
///
@@ -27304,6 +27615,33 @@ public double MaxEventStates
}
}
+ ///
+ /// AttributionReportingNamedBudgetDef
+ ///
+ public partial class AttributionReportingNamedBudgetDef : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// Name
+ ///
+ [JsonPropertyName("name")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public string Name
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Budget
+ ///
+ [JsonPropertyName("budget")]
+ public int Budget
+ {
+ get;
+ set;
+ }
+ }
+
///
/// AttributionReportingSourceRegistration
///
@@ -27498,6 +27836,37 @@ public int MaxEventLevelReports
get;
set;
}
+
+ ///
+ /// NamedBudgets
+ ///
+ [JsonPropertyName("namedBudgets")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public System.Collections.Generic.IList NamedBudgets
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// DebugReporting
+ ///
+ [JsonPropertyName("debugReporting")]
+ public bool DebugReporting
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// EventLevelEpsilon
+ ///
+ [JsonPropertyName("eventLevelEpsilon")]
+ public double EventLevelEpsilon
+ {
+ get;
+ set;
+ }
}
///
@@ -27786,6 +28155,33 @@ public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters
}
}
+ ///
+ /// AttributionReportingNamedBudgetCandidate
+ ///
+ public partial class AttributionReportingNamedBudgetCandidate : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// Name
+ ///
+ [JsonPropertyName("name")]
+ public string Name
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Filters
+ ///
+ [JsonPropertyName("filters")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public CefSharp.DevTools.Storage.AttributionReportingFilterPair Filters
+ {
+ get;
+ set;
+ }
+ }
+
///
/// AttributionReportingTriggerRegistration
///
@@ -27927,6 +28323,17 @@ public string[] Scopes
get;
set;
}
+
+ ///
+ /// NamedBudgets
+ ///
+ [JsonPropertyName("namedBudgets")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public System.Collections.Generic.IList NamedBudgets
+ {
+ get;
+ set;
+ }
}
///
@@ -33719,6 +34126,55 @@ public enum GATTOperationType
Discovery
}
+ ///
+ /// Indicates the various types of characteristic write.
+ ///
+ public enum CharacteristicWriteType
+ {
+ ///
+ /// write-default-deprecated
+ ///
+ [JsonPropertyName("write-default-deprecated")]
+ WriteDefaultDeprecated,
+ ///
+ /// write-with-response
+ ///
+ [JsonPropertyName("write-with-response")]
+ WriteWithResponse,
+ ///
+ /// write-without-response
+ ///
+ [JsonPropertyName("write-without-response")]
+ WriteWithoutResponse
+ }
+
+ ///
+ /// Indicates the various types of characteristic operation.
+ ///
+ public enum CharacteristicOperationType
+ {
+ ///
+ /// read
+ ///
+ [JsonPropertyName("read")]
+ Read,
+ ///
+ /// write
+ ///
+ [JsonPropertyName("write")]
+ Write,
+ ///
+ /// subscribe-to-notifications
+ ///
+ [JsonPropertyName("subscribe-to-notifications")]
+ SubscribeToNotifications,
+ ///
+ /// unsubscribe-from-notifications
+ ///
+ [JsonPropertyName("unsubscribe-from-notifications")]
+ UnsubscribeFromNotifications
+ }
+
///
/// Stores the manufacturer data
///
@@ -33959,6 +34415,59 @@ public CefSharp.DevTools.BluetoothEmulation.GATTOperationType Type
private set;
}
}
+
+ ///
+ /// Event for when a characteristic operation of |type| to the characteristic
+ /// respresented by |characteristicId| happened. |data| and |writeType| is
+ /// expected to exist when |type| is write.
+ ///
+ public class CharacteristicOperationReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase
+ {
+ ///
+ /// CharacteristicId
+ ///
+ [JsonInclude]
+ [JsonPropertyName("characteristicId")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public string CharacteristicId
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// Type
+ ///
+ [JsonInclude]
+ [JsonPropertyName("type")]
+ public CefSharp.DevTools.BluetoothEmulation.CharacteristicOperationType Type
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// Data
+ ///
+ [JsonInclude]
+ [JsonPropertyName("data")]
+ public byte[] Data
+ {
+ get;
+ private set;
+ }
+
+ ///
+ /// WriteType
+ ///
+ [JsonInclude]
+ [JsonPropertyName("writeType")]
+ public CefSharp.DevTools.BluetoothEmulation.CharacteristicWriteType? WriteType
+ {
+ get;
+ private set;
+ }
+ }
}
namespace CefSharp.DevTools.Debugger
@@ -34788,7 +35297,7 @@ public string Hash
}
///
- /// For Wasm modules, the content of the `build_id` custom section.
+ /// For Wasm modules, the content of the `build_id` custom section. For JavaScript the `debugId` magic comment.
///
[JsonInclude]
[JsonPropertyName("buildId")]
@@ -34997,7 +35506,7 @@ public string Hash
}
///
- /// For Wasm modules, the content of the `build_id` custom section.
+ /// For Wasm modules, the content of the `build_id` custom section. For JavaScript the `debugId` magic comment.
///
[JsonInclude]
[JsonPropertyName("buildId")]
@@ -40500,6 +41009,11 @@ public System.Threading.Tasks.Task GetComputedS
/// For example, a value of '1em' is evaluated according to the computed
/// 'font-size' of the element and a value 'calc(1px + 2px)' will be
/// resolved to '3px'.
+ /// If the `propertyName` was specified the `values` are resolved as if
+ /// they were property's declaration. If a value cannot be parsed according
+ /// to the provided property syntax, the value is parsed using combined
+ /// syntax as if null `propertyName` was provided. If the value cannot be
+ /// resolved even then, return the provided value without any changes.
///
/// Substitution functions (var()/env()/attr()) and cascade-dependentkeywords (revert/revert-layer) do not work.
/// Id of the node in whose context the expression is evaluated
@@ -44302,18 +44816,22 @@ public System.Threading.Tasks.Task SetEmulatedVisionDefi
return _client.ExecuteDevToolsMethodAsync("Emulation.setEmulatedVisionDeficiency", dict);
}
- partial void ValidateSetGeolocationOverride(double? latitude = null, double? longitude = null, double? accuracy = null);
+ partial void ValidateSetGeolocationOverride(double? latitude = null, double? longitude = null, double? accuracy = null, double? altitude = null, double? altitudeAccuracy = null, double? heading = null, double? speed = null);
///
- /// Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
- /// unavailable.
+ /// Overrides the Geolocation Position or Error. Omitting latitude, longitude or
+ /// accuracy emulates position unavailable.
///
/// Mock latitude
/// Mock longitude
/// Mock accuracy
+ /// Mock altitude
+ /// Mock altitudeAccuracy
+ /// Mock heading
+ /// Mock speed
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
- public System.Threading.Tasks.Task SetGeolocationOverrideAsync(double? latitude = null, double? longitude = null, double? accuracy = null)
+ public System.Threading.Tasks.Task SetGeolocationOverrideAsync(double? latitude = null, double? longitude = null, double? accuracy = null, double? altitude = null, double? altitudeAccuracy = null, double? heading = null, double? speed = null)
{
- ValidateSetGeolocationOverride(latitude, longitude, accuracy);
+ ValidateSetGeolocationOverride(latitude, longitude, accuracy, altitude, altitudeAccuracy, heading, speed);
var dict = new System.Collections.Generic.Dictionary();
if (latitude.HasValue)
{
@@ -44330,6 +44848,26 @@ public System.Threading.Tasks.Task SetGeolocationOverrid
dict.Add("accuracy", accuracy.Value);
}
+ if (altitude.HasValue)
+ {
+ dict.Add("altitude", altitude.Value);
+ }
+
+ if (altitudeAccuracy.HasValue)
+ {
+ dict.Add("altitudeAccuracy", altitudeAccuracy.Value);
+ }
+
+ if (heading.HasValue)
+ {
+ dict.Add("heading", heading.Value);
+ }
+
+ if (speed.HasValue)
+ {
+ dict.Add("speed", speed.Value);
+ }
+
return _client.ExecuteDevToolsMethodAsync("Emulation.setGeolocationOverride", dict);
}
@@ -44646,6 +45184,21 @@ public System.Threading.Tasks.Task SetAutomationOverride
dict.Add("enabled", enabled);
return _client.ExecuteDevToolsMethodAsync("Emulation.setAutomationOverride", dict);
}
+
+ partial void ValidateSetSmallViewportHeightDifferenceOverride(int difference);
+ ///
+ /// Allows overriding the difference between the small and large viewport sizes, which determine the
+ /// value of the `svh` and `lvh` unit, respectively. Only supported for top-level frames.
+ ///
+ /// This will cause an element of size 100svh to be `difference` pixels smaller than an elementof size 100lvh.
+ /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
+ public System.Threading.Tasks.Task SetSmallViewportHeightDifferenceOverrideAsync(int difference)
+ {
+ ValidateSetSmallViewportHeightDifferenceOverride(difference);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("difference", difference);
+ return _client.ExecuteDevToolsMethodAsync("Emulation.setSmallViewportHeightDifferenceOverride", dict);
+ }
}
}
@@ -47462,6 +48015,59 @@ public event System.EventHandler DirectTCPSocket
}
}
+ ///
+ /// Fired when data is sent to tcp direct socket stream.
+ ///
+ public event System.EventHandler DirectTCPSocketChunkSent
+ {
+ add
+ {
+ _client.AddEventHandler("Network.directTCPSocketChunkSent", value);
+ }
+
+ remove
+ {
+ _client.RemoveEventHandler("Network.directTCPSocketChunkSent", value);
+ }
+ }
+
+ ///
+ /// Fired when data is received from tcp direct socket stream.
+ ///
+ public event System.EventHandler DirectTCPSocketChunkReceived
+ {
+ add
+ {
+ _client.AddEventHandler("Network.directTCPSocketChunkReceived", value);
+ }
+
+ remove
+ {
+ _client.RemoveEventHandler("Network.directTCPSocketChunkReceived", value);
+ }
+ }
+
+ ///
+ /// Fired when there is an error
+ /// when writing to tcp direct socket stream.
+ /// For example, if user writes illegal type like string
+ /// instead of ArrayBuffer or ArrayBufferView.
+ /// There's no reporting for reading, because
+ /// we cannot know errors on the other side.
+ ///
+ public event System.EventHandler DirectTCPSocketChunkError
+ {
+ add
+ {
+ _client.AddEventHandler("Network.directTCPSocketChunkError", value);
+ }
+
+ remove
+ {
+ _client.RemoveEventHandler("Network.directTCPSocketChunkError", value);
+ }
+ }
+
///
/// Fired when additional information about a requestWillBeSent event is available from the
/// network stack. Not every requestWillBeSent event will have an additional
@@ -49077,16 +49683,16 @@ public string RecommendedId
namespace CefSharp.DevTools.Page
{
///
- /// GetAdScriptIdResponse
+ /// GetAdScriptAncestryIdsResponse
///
- public class GetAdScriptIdResponse : DevToolsDomainResponseBase
+ public class GetAdScriptAncestryIdsResponse : DevToolsDomainResponseBase
{
///
- /// adScriptId
+ /// adScriptAncestryIds
///
[JsonInclude]
- [JsonPropertyName("adScriptId")]
- public CefSharp.DevTools.Page.AdScriptId AdScriptId
+ [JsonPropertyName("adScriptAncestryIds")]
+ public System.Collections.Generic.IList AdScriptAncestryIds
{
get;
private set;
@@ -50114,18 +50720,18 @@ public System.Threading.Tasks.Task GetAppIdAsync()
return _client.ExecuteDevToolsMethodAsync("Page.getAppId", dict);
}
- partial void ValidateGetAdScriptId(string frameId);
+ partial void ValidateGetAdScriptAncestryIds(string frameId);
///
- /// GetAdScriptId
+ /// GetAdScriptAncestryIds
///
/// frameId
- /// returns System.Threading.Tasks.Task<GetAdScriptIdResponse>
- public System.Threading.Tasks.Task GetAdScriptIdAsync(string frameId)
+ /// returns System.Threading.Tasks.Task<GetAdScriptAncestryIdsResponse>
+ public System.Threading.Tasks.Task GetAdScriptAncestryIdsAsync(string frameId)
{
- ValidateGetAdScriptId(frameId);
+ ValidateGetAdScriptAncestryIds(frameId);
var dict = new System.Collections.Generic.Dictionary();
dict.Add("frameId", frameId);
- return _client.ExecuteDevToolsMethodAsync("Page.getAdScriptId", dict);
+ return _client.ExecuteDevToolsMethodAsync("Page.getAdScriptAncestryIds", dict);
}
///
@@ -52351,6 +52957,24 @@ public System.Threading.Tasks.Task("Storage.getAffectedUrlsForThirdPartyCookieMetadata", dict);
}
+
+ partial void ValidateSetProtectedAudienceKAnonymity(string owner, string name, byte[][] hashes);
+ ///
+ /// SetProtectedAudienceKAnonymity
+ ///
+ /// owner
+ /// name
+ /// hashes
+ /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
+ public System.Threading.Tasks.Task SetProtectedAudienceKAnonymityAsync(string owner, string name, byte[][] hashes)
+ {
+ ValidateSetProtectedAudienceKAnonymity(owner, name, hashes);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("owner", owner);
+ dict.Add("name", name);
+ dict.Add("hashes", ToBase64String(hashes));
+ return _client.ExecuteDevToolsMethodAsync("Storage.setProtectedAudienceKAnonymity", dict);
+ }
}
}
@@ -52934,7 +53558,7 @@ public System.Threading.Tasks.Task GetBrowserContext
return _client.ExecuteDevToolsMethodAsync("Target.getBrowserContexts", dict);
}
- partial void ValidateCreateTarget(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null);
+ partial void ValidateCreateTarget(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null);
///
/// Creates a new page.
///
@@ -52949,10 +53573,11 @@ public System.Threading.Tasks.Task GetBrowserContext
/// Whether to create a new Window or Tab (false by default, not supported by headless shell).
/// Whether to create the target in background or foreground (false by default, not supportedby headless shell).
/// Whether to create the target of type "tab".
+ /// Whether to create a hidden target. The hidden target is observable via protocol, but notpresent in the tab UI strip. Cannot be created with `forTab: true`, `newWindow: true` or`background: false`. The life-time of the tab is limited to the life-time of the session.
/// returns System.Threading.Tasks.Task<CreateTargetResponse>
- public System.Threading.Tasks.Task CreateTargetAsync(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null)
+ public System.Threading.Tasks.Task CreateTargetAsync(string url, int? left = null, int? top = null, int? width = null, int? height = null, CefSharp.DevTools.Target.WindowState? windowState = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null, bool? hidden = null)
{
- ValidateCreateTarget(url, left, top, width, height, windowState, browserContextId, enableBeginFrameControl, newWindow, background, forTab);
+ ValidateCreateTarget(url, left, top, width, height, windowState, browserContextId, enableBeginFrameControl, newWindow, background, forTab, hidden);
var dict = new System.Collections.Generic.Dictionary();
dict.Add("url", url);
if (left.HasValue)
@@ -53005,6 +53630,11 @@ public System.Threading.Tasks.Task CreateTargetAsync(strin
dict.Add("forTab", forTab.Value);
}
+ if (hidden.HasValue)
+ {
+ dict.Add("hidden", hidden.Value);
+ }
+
return _client.ExecuteDevToolsMethodAsync("Target.createTarget", dict);
}
@@ -53085,11 +53715,14 @@ public System.Threading.Tasks.Task GetTargetsAsync(System.Co
partial void ValidateSetAutoAttach(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null, System.Collections.Generic.IList filter = null);
///
- /// Controls whether to automatically attach to new targets which are considered to be related to
- /// this one. When turned on, attaches to all existing related targets as well. When turned off,
+ /// Controls whether to automatically attach to new targets which are considered
+ /// to be directly related to this one (for example, iframes or workers).
+ /// When turned on, attaches to all existing related targets as well. When turned off,
/// automatically detaches from all currently attached targets.
/// This also clears all targets added by `autoAttachRelated` from the list of targets to watch
/// for creation of related targets.
+ /// You might want to call this recursively for auto-attached targets to attach
+ /// to all available targets.
///
/// Whether to auto-attach to related targets.
/// Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`to run paused targets.
@@ -55323,6 +55956,26 @@ public string CharacteristicId
}
}
+namespace CefSharp.DevTools.BluetoothEmulation
+{
+ ///
+ /// AddDescriptorResponse
+ ///
+ public class AddDescriptorResponse : DevToolsDomainResponseBase
+ {
+ ///
+ /// descriptorId
+ ///
+ [JsonInclude]
+ [JsonPropertyName("descriptorId")]
+ public string DescriptorId
+ {
+ get;
+ private set;
+ }
+ }
+}
+
namespace CefSharp.DevTools.BluetoothEmulation
{
using System.Linq;
@@ -55360,6 +56013,24 @@ public event System.EventHandler GattOperationRe
}
}
+ ///
+ /// Event for when a characteristic operation of |type| to the characteristic
+ /// respresented by |characteristicId| happened. |data| and |writeType| is
+ /// expected to exist when |type| is write.
+ ///
+ public event System.EventHandler CharacteristicOperationReceived
+ {
+ add
+ {
+ _client.AddEventHandler("BluetoothEmulation.characteristicOperationReceived", value);
+ }
+
+ remove
+ {
+ _client.RemoveEventHandler("BluetoothEmulation.characteristicOperationReceived", value);
+ }
+ }
+
partial void ValidateEnable(CefSharp.DevTools.BluetoothEmulation.CentralState state, bool leSupported);
///
/// Enable the BluetoothEmulation domain.
@@ -55456,6 +56127,34 @@ public System.Threading.Tasks.Task SimulateGATTOperation
return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateGATTOperationResponse", dict);
}
+ partial void ValidateSimulateCharacteristicOperationResponse(string characteristicId, CefSharp.DevTools.BluetoothEmulation.CharacteristicOperationType type, int code, byte[] data = null);
+ ///
+ /// Simulates the response from the characteristic with |characteristicId| for a
+ /// characteristic operation of |type|. The |code| value follows the Error
+ /// Codes from Bluetooth Core Specification Vol 3 Part F 3.4.1.1 Error Response.
+ /// The |data| is expected to exist when simulating a successful read operation
+ /// response.
+ ///
+ /// characteristicId
+ /// type
+ /// code
+ /// data
+ /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
+ public System.Threading.Tasks.Task SimulateCharacteristicOperationResponseAsync(string characteristicId, CefSharp.DevTools.BluetoothEmulation.CharacteristicOperationType type, int code, byte[] data = null)
+ {
+ ValidateSimulateCharacteristicOperationResponse(characteristicId, type, code, data);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("characteristicId", characteristicId);
+ dict.Add("type", EnumToString(type));
+ dict.Add("code", code);
+ if ((data) != (null))
+ {
+ dict.Add("data", ToBase64String(data));
+ }
+
+ return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.simulateCharacteristicOperationResponse", dict);
+ }
+
partial void ValidateAddService(string address, string serviceUuid);
///
/// Adds a service with |serviceUuid| to the peripheral with |address|.
@@ -55472,62 +56171,84 @@ public System.Threading.Tasks.Task AddServiceAsync(string ad
return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.addService", dict);
}
- partial void ValidateRemoveService(string address, string serviceId);
+ partial void ValidateRemoveService(string serviceId);
///
- /// Removes the service respresented by |serviceId| from the peripheral with
- /// |address|.
+ /// Removes the service respresented by |serviceId| from the simulated central.
///
- /// address
/// serviceId
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
- public System.Threading.Tasks.Task RemoveServiceAsync(string address, string serviceId)
+ public System.Threading.Tasks.Task RemoveServiceAsync(string serviceId)
{
- ValidateRemoveService(address, serviceId);
+ ValidateRemoveService(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);
+ partial void ValidateAddCharacteristic(string serviceId, string characteristicUuid, CefSharp.DevTools.BluetoothEmulation.CharacteristicProperties properties);
///
/// Adds a characteristic with |characteristicUuid| and |properties| to the
- /// service represented by |serviceId| in the peripheral with |address|.
+ /// service represented by |serviceId|.
///
- /// 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)
+ public System.Threading.Tasks.Task AddCharacteristicAsync(string serviceId, string characteristicUuid, CefSharp.DevTools.BluetoothEmulation.CharacteristicProperties properties)
{
- ValidateAddCharacteristic(address, serviceId, characteristicUuid, properties);
+ ValidateAddCharacteristic(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);
+ partial void ValidateRemoveCharacteristic(string characteristicId);
///
/// Removes the characteristic respresented by |characteristicId| from the
- /// service respresented by |serviceId| in the peripheral with |address|.
+ /// simulated central.
///
- /// address
- /// serviceId
/// characteristicId
/// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
- public System.Threading.Tasks.Task RemoveCharacteristicAsync(string address, string serviceId, string characteristicId)
+ public System.Threading.Tasks.Task RemoveCharacteristicAsync(string characteristicId)
{
- ValidateRemoveCharacteristic(address, serviceId, characteristicId);
+ ValidateRemoveCharacteristic(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);
}
+
+ partial void ValidateAddDescriptor(string characteristicId, string descriptorUuid);
+ ///
+ /// Adds a descriptor with |descriptorUuid| to the characteristic respresented
+ /// by |characteristicId|.
+ ///
+ /// characteristicId
+ /// descriptorUuid
+ /// returns System.Threading.Tasks.Task<AddDescriptorResponse>
+ public System.Threading.Tasks.Task AddDescriptorAsync(string characteristicId, string descriptorUuid)
+ {
+ ValidateAddDescriptor(characteristicId, descriptorUuid);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("characteristicId", characteristicId);
+ dict.Add("descriptorUuid", descriptorUuid);
+ return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.addDescriptor", dict);
+ }
+
+ partial void ValidateRemoveDescriptor(string descriptorId);
+ ///
+ /// Removes the descriptor with |descriptorId| from the simulated central.
+ ///
+ /// descriptorId
+ /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
+ public System.Threading.Tasks.Task RemoveDescriptorAsync(string descriptorId)
+ {
+ ValidateRemoveDescriptor(descriptorId);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("descriptorId", descriptorId);
+ return _client.ExecuteDevToolsMethodAsync("BluetoothEmulation.removeDescriptor", dict);
+ }
}
}
diff --git a/CefSharp.Core/DevTools/DevToolsDomainBase.cs b/CefSharp.Core/DevTools/DevToolsDomainBase.cs
index 7c20d6e71..0e13c7a89 100644
--- a/CefSharp.Core/DevTools/DevToolsDomainBase.cs
+++ b/CefSharp.Core/DevTools/DevToolsDomainBase.cs
@@ -138,5 +138,10 @@ protected string ToBase64String(byte[] bytes)
{
return Convert.ToBase64String(bytes);
}
+
+ protected string ToBase64String(byte[][] bytes)
+ {
+ throw new NotImplementedException("Not currently supported.");
+ }
}
}
diff --git a/appveyor.yml b/appveyor.yml
index 5b735d10e..924eb1d57 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,4 +1,4 @@
-version: 137.0.100-CI{build}
+version: 137.0.100-RCI{build}
clone_depth: 10