diff --git a/source/ChromeDevTools/ChromeProcess.cs b/source/ChromeDevTools/ChromeProcess.cs deleted file mode 100644 index 97181b30..00000000 --- a/source/ChromeDevTools/ChromeProcess.cs +++ /dev/null @@ -1,59 +0,0 @@ -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Net; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; - -namespace MasterDevs.ChromeDevTools -{ - public class ChromeProcess : IChromeProcess - { - public DirectoryInfo UserDirectory { get; set; } - - public Process Process { get; set; } - - public string RemoteDebuggingUri { get; set; } - - public void Dispose() - { - Process.Kill(); - try - { - UserDirectory.Delete(true); - } - catch - { - Thread.Sleep(500); // i'm being lazy because i'm tired - UserDirectory.Delete(true); - } - } - - public async Task GetSessions() - { - var remoteSessionUrls = new List(); - var webClient = new HttpClient(); - var uriBuilder = new UriBuilder(RemoteDebuggingUri); - uriBuilder.Path = "/json"; - var remoteSessions = await webClient.GetStringAsync(uriBuilder.Uri); - using (var stringReader = new StringReader(remoteSessions)) - using (var jsonReader = new JsonTextReader(stringReader)) - { - var sessionsObject = JToken.ReadFrom(jsonReader) as JArray; - foreach (var sessionObject in sessionsObject) - { - var sessionUrl = sessionObject["webSocketDebuggerUrl"].GetSafeString(); - if (!String.IsNullOrEmpty(sessionUrl)) - { - remoteSessionUrls.Add(sessionUrl); - } - } - } - return remoteSessionUrls.ToArray(); - } - } -} \ No newline at end of file diff --git a/source/ChromeDevTools/ChromeProcessFactory.cs b/source/ChromeDevTools/ChromeProcessFactory.cs index ba30cdcc..85017bf1 100644 --- a/source/ChromeDevTools/ChromeProcessFactory.cs +++ b/source/ChromeDevTools/ChromeProcessFactory.cs @@ -1,25 +1,42 @@ -using System.Diagnostics; +using System; +using System.Collections.Generic; +using System.Diagnostics; using System.IO; namespace MasterDevs.ChromeDevTools { public class ChromeProcessFactory : IChromeProcessFactory { - public IChromeProcess Create(int port) + public IDirectoryCleaner DirectoryCleaner { get; set; } + public string ChromePath { get; } + + public ChromeProcessFactory(IDirectoryCleaner directoryCleaner, string chromePath = @"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") + { + DirectoryCleaner = directoryCleaner; + ChromePath = chromePath; + } + + public IChromeProcess Create(int port, bool headless) { string path = Path.GetRandomFileName(); var directoryInfo = Directory.CreateDirectory(Path.Combine(Path.GetTempPath(), path)); - var remoteDebuggingArg = "--remote-debugging-port=" + port; - var userDirectoryArg = "--user-data-dir=\"" + directoryInfo.FullName + "\""; - var chromeProcessArgs = remoteDebuggingArg + " " + userDirectoryArg + " --bwsi --no-first-run"; - var processStartInfo = new ProcessStartInfo(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", chromeProcessArgs); - var chromeProcess = Process.Start(processStartInfo); - return new ChromeProcess + var remoteDebuggingArg = $"--remote-debugging-port={port}"; + var userDirectoryArg = $"--user-data-dir=\"{directoryInfo.FullName}\""; + const string headlessArg = "--headless --disable-gpu"; + var chromeProcessArgs = new List { - Process = chromeProcess, - UserDirectory = directoryInfo, - RemoteDebuggingUri = "http://localhost:" + port + remoteDebuggingArg, + userDirectoryArg, + "--bwsi", + "--no-first-run" }; + if (headless) + chromeProcessArgs.Add(headlessArg); + var processStartInfo = new ProcessStartInfo(ChromePath, string.Join(" ", chromeProcessArgs)); + var chromeProcess = Process.Start(processStartInfo); + + string remoteDebuggingUrl = "http://localhost:" + port; + return new LocalChromeProcess(new Uri(remoteDebuggingUrl), () => DirectoryCleaner.Delete(directoryInfo), chromeProcess); } } } \ No newline at end of file diff --git a/source/ChromeDevTools/ChromeSession.cs b/source/ChromeDevTools/ChromeSession.cs index 7c0d7cef..c8d6971f 100644 --- a/source/ChromeDevTools/ChromeSession.cs +++ b/source/ChromeDevTools/ChromeSession.cs @@ -81,10 +81,23 @@ public Task SendAsync(CancellationToken cancellationToken) return SendCommand(command, cancellationToken); } - public Task SendAsync(T parameter, CancellationToken cancellationToken) + public Task> SendAsync(ICommand parameter, CancellationToken cancellationToken) { var command = _commandFactory.Create(parameter); - return SendCommand(command, cancellationToken); + var task = SendCommand(command, cancellationToken); + return CastTaskResult>(task); + } + + private Task CastTaskResult(Task task) where TDerived: TBase + { + var tcs = new TaskCompletionSource(); + task.ContinueWith(t => tcs.SetResult((TDerived)t.Result), + TaskContinuationOptions.OnlyOnRanToCompletion); + task.ContinueWith(t => tcs.SetException(t.Exception.InnerExceptions), + TaskContinuationOptions.OnlyOnFaulted); + task.ContinueWith(t => tcs.SetCanceled(), + TaskContinuationOptions.OnlyOnCanceled); + return tcs.Task; } public void Subscribe(Action handler) where T : class diff --git a/source/ChromeDevTools/ChromeSessionExtensions.cs b/source/ChromeDevTools/ChromeSessionExtensions.cs index b0817f80..667890c0 100644 --- a/source/ChromeDevTools/ChromeSessionExtensions.cs +++ b/source/ChromeDevTools/ChromeSessionExtensions.cs @@ -5,9 +5,9 @@ namespace MasterDevs.ChromeDevTools { public static class ChromeSessionExtensions { - public static Task SendAsync(this IChromeSession session, T parameter) + public static Task> SendAsync(this IChromeSession session, ICommand parameter) { - return session.SendAsync(parameter, CancellationToken.None); + return session.SendAsync(parameter, CancellationToken.None); } public static Task SendAsync(this IChromeSession session) diff --git a/source/ChromeDevTools/ChromeSessionFactory.cs b/source/ChromeDevTools/ChromeSessionFactory.cs index 4aa60b63..36facc27 100644 --- a/source/ChromeDevTools/ChromeSessionFactory.cs +++ b/source/ChromeDevTools/ChromeSessionFactory.cs @@ -3,6 +3,11 @@ namespace MasterDevs.ChromeDevTools { public class ChromeSessionFactory : IChromeSessionFactory { + public IChromeSession Create(ChromeSessionInfo sessionInfo) + { + return Create(sessionInfo.WebSocketDebuggerUrl); + } + public IChromeSession Create(string endpointUrl) { // Sometimes binding to localhost might resolve wrong AddressFamily, force IPv4 diff --git a/source/ChromeDevTools/ChromeSessionInfo.cs b/source/ChromeDevTools/ChromeSessionInfo.cs new file mode 100644 index 00000000..c08553f5 --- /dev/null +++ b/source/ChromeDevTools/ChromeSessionInfo.cs @@ -0,0 +1,14 @@ +namespace MasterDevs.ChromeDevTools +{ + public class ChromeSessionInfo + { + public string Description { get; set; } + + public string DevtoolsFrontendUrl { get; set; } + public string Id { get; set; } + public string Title { get; set; } + public string Type { get; set; } + public string Url { get; set; } + public string WebSocketDebuggerUrl { get; set; } + } +} \ No newline at end of file diff --git a/source/ChromeDevTools/IChromeProcess.cs b/source/ChromeDevTools/IChromeProcess.cs index a6ee6e57..b6d62423 100644 --- a/source/ChromeDevTools/IChromeProcess.cs +++ b/source/ChromeDevTools/IChromeProcess.cs @@ -1,18 +1,14 @@ using System; -using System.Diagnostics; -using System.IO; using System.Threading.Tasks; namespace MasterDevs.ChromeDevTools { public interface IChromeProcess : IDisposable { - Task GetSessions(); + Task GetSessionInfo(); - DirectoryInfo UserDirectory { get; } + Task StartNewSession(); - Process Process { get; } - - string RemoteDebuggingUri { get; } + Uri RemoteDebuggingUri { get; } } } \ No newline at end of file diff --git a/source/ChromeDevTools/IChromeProcessFactory.cs b/source/ChromeDevTools/IChromeProcessFactory.cs index ddf57955..fcac1ce2 100644 --- a/source/ChromeDevTools/IChromeProcessFactory.cs +++ b/source/ChromeDevTools/IChromeProcessFactory.cs @@ -2,6 +2,6 @@ { public interface IChromeProcessFactory { - IChromeProcess Create(int port); + IChromeProcess Create(int port, bool headless); } } \ No newline at end of file diff --git a/source/ChromeDevTools/IChromeSession.cs b/source/ChromeDevTools/IChromeSession.cs index e5ae25f6..ef5d88e8 100644 --- a/source/ChromeDevTools/IChromeSession.cs +++ b/source/ChromeDevTools/IChromeSession.cs @@ -4,9 +4,13 @@ namespace MasterDevs.ChromeDevTools { + public interface ICommand + { + + } public interface IChromeSession { - Task SendAsync(T parameter, CancellationToken cancellationToken); + Task> SendAsync(ICommand parameter, CancellationToken cancellationToken); Task SendAsync(CancellationToken cancellationToken); diff --git a/source/ChromeDevTools/IDirectoryCleaner.cs b/source/ChromeDevTools/IDirectoryCleaner.cs new file mode 100644 index 00000000..d27977c8 --- /dev/null +++ b/source/ChromeDevTools/IDirectoryCleaner.cs @@ -0,0 +1,9 @@ +using System.IO; + +namespace MasterDevs.ChromeDevTools +{ + public interface IDirectoryCleaner + { + void Delete(DirectoryInfo dir); + } +} \ No newline at end of file diff --git a/source/ChromeDevTools/LocalChromeProcess.cs b/source/ChromeDevTools/LocalChromeProcess.cs new file mode 100644 index 00000000..10ae6357 --- /dev/null +++ b/source/ChromeDevTools/LocalChromeProcess.cs @@ -0,0 +1,28 @@ +using System; +using System.Diagnostics; + +namespace MasterDevs.ChromeDevTools +{ + public class LocalChromeProcess : RemoteChromeProcess + { + public LocalChromeProcess(Uri remoteDebuggingUri, Action disposeUserDirectory, Process process) + : base(remoteDebuggingUri) + { + DisposeUserDirectory = disposeUserDirectory; + Process = process; + } + + public Action DisposeUserDirectory { get; set; } + public Process Process { get; set; } + + public override void Dispose() + { + base.Dispose(); + + Process.Kill(); + Process.WaitForExit(); +// Process.Close(); + DisposeUserDirectory(); + } + } +} \ No newline at end of file diff --git a/source/ChromeDevTools/MasterDevs.ChromeDevTools.csproj b/source/ChromeDevTools/MasterDevs.ChromeDevTools.csproj index 7d03ee8b..edd8226b 100644 --- a/source/ChromeDevTools/MasterDevs.ChromeDevTools.csproj +++ b/source/ChromeDevTools/MasterDevs.ChromeDevTools.csproj @@ -60,10 +60,12 @@ - + + + @@ -90,7 +92,9 @@ + + diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXGlobalStates.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXGlobalStates.cs index 97e25e2a..bd022a46 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXGlobalStates.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXGlobalStates.cs @@ -15,5 +15,7 @@ public enum AXGlobalStates Hidden, HiddenRoot, Invalid, + Keyshortcuts, + Roledescription, } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXNode.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXNode.cs index e9e8770b..12b11478 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXNode.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXNode.cs @@ -15,8 +15,18 @@ public class AXNode /// public string NodeId { get; set; } /// + /// Gets or sets Whether this node is ignored for accessibility + /// + public bool Ignored { get; set; } + /// + /// Gets or sets Collection of reasons why this node is hidden. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public AXProperty[] IgnoredReasons { get; set; } + /// /// Gets or sets This Node's role, whether explicit or implicit. /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public AXValue Role { get; set; } /// /// Gets or sets The accessible name for this Node. @@ -34,13 +44,19 @@ public class AXNode [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public AXValue Value { get; set; } /// - /// Gets or sets Help. + /// Gets or sets All other properties + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public AXProperty[] Properties { get; set; } + /// + /// Gets or sets IDs for each of this node's child nodes. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public AXValue Help { get; set; } + public string[] ChildIds { get; set; } /// - /// Gets or sets All other properties + /// Gets or sets The backend ID for the associated DOM node, if any. /// - public AXProperty[] Properties { get; set; } + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? BackendDOMNodeId { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXPropertySource.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXPropertySource.cs deleted file mode 100644 index c6aee5ff..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXPropertySource.cs +++ /dev/null @@ -1,40 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Accessibility -{ - /// - /// A single source for a computed AX property. - /// - [SupportedBy("Chrome")] - public class AXPropertySource - { - /// - /// Gets or sets The name/label of this source. - /// - public string Name { get; set; } - /// - /// Gets or sets What type of source this is. - /// - public AXPropertySourceType SourceType { get; set; } - /// - /// Gets or sets The value of this property source. - /// - public object Value { get; set; } - /// - /// Gets or sets What type the value should be interpreted as. - /// - public AXValueType Type { get; set; } - /// - /// Gets or sets Whether the value for this property is invalid. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? Invalid { get; set; } - /// - /// Gets or sets Reason for the value being invalid, if it is. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string InvalidReason { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXRelatedNode.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXRelatedNode.cs index a71fea1a..986ccbd0 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXRelatedNode.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXRelatedNode.cs @@ -10,14 +10,19 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Accessibility [SupportedBy("Chrome")] public class AXRelatedNode { + /// + /// Gets or sets The BackendNodeId of the related DOM node. + /// + public long BackendDOMNodeId { get; set; } /// /// Gets or sets The IDRef value provided, if any. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string Idref { get; set; } /// - /// Gets or sets The BackendNodeId of the related node. + /// Gets or sets The text alternative of this node in the current context. /// - public long BackendNodeId { get; set; } + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Text { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXRelationshipAttributes.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXRelationshipAttributes.cs index b9a77e6a..d9623f2a 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXRelationshipAttributes.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXRelationshipAttributes.cs @@ -12,9 +12,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Accessibility{ public enum AXRelationshipAttributes { Activedescendant, - Flowto, Controls, Describedby, + Details, + Errormessage, + Flowto, Labelledby, Owns, } diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValue.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValue.cs index faa253ea..d6a7050f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValue.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValue.cs @@ -20,19 +20,14 @@ public class AXValue [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public object Value { get; set; } /// - /// Gets or sets The related node value, if any. + /// Gets or sets One or more related nodes, if applicable. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public AXRelatedNode RelatedNodeValue { get; set; } - /// - /// Gets or sets Multiple relted nodes, if applicable. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public AXRelatedNode[] RelatedNodeArrayValue { get; set; } + public AXRelatedNode[] RelatedNodes { get; set; } /// /// Gets or sets The sources which contributed to the computation of this property. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public AXPropertySource[] Sources { get; set; } + public AXValueSource[] Sources { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueNativeSourceType.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueNativeSourceType.cs new file mode 100644 index 00000000..91e68f51 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueNativeSourceType.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Accessibility{ + /// + /// Enum of possible native property sources (as a subtype of a particular AXValueSourceType). + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AXValueNativeSourceType + { + Figcaption, + Label, + Labelfor, + Labelwrapped, + Legend, + Tablecaption, + Title, + Other, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueSource.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueSource.cs new file mode 100644 index 00000000..7a87fc5c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueSource.cs @@ -0,0 +1,58 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Accessibility +{ + /// + /// A single source for a computed AX property. + /// + [SupportedBy("Chrome")] + public class AXValueSource + { + /// + /// Gets or sets What type of source this is. + /// + public AXValueSourceType Type { get; set; } + /// + /// Gets or sets The value of this property source. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public AXValue Value { get; set; } + /// + /// Gets or sets The name of the relevant attribute, if any. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Attribute { get; set; } + /// + /// Gets or sets The value of the relevant attribute, if any. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public AXValue AttributeValue { get; set; } + /// + /// Gets or sets Whether this source is superseded by a higher priority source. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? Superseded { get; set; } + /// + /// Gets or sets The native markup source for this value, e.g. a + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public AXValueNativeSourceType NativeSource { get; set; } + /// + /// Gets or sets The value, such as a node or node list, of the native source. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public AXValue NativeSourceValue { get; set; } + /// + /// Gets or sets Whether the value for this property is invalid. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? Invalid { get; set; } + /// + /// Gets or sets Reason for the value being invalid, if it is. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string InvalidReason { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXPropertySourceType.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueSourceType.cs similarity index 81% rename from source/ChromeDevTools/Protocol/Chrome/Accessibility/AXPropertySourceType.cs rename to source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueSourceType.cs index 86e7d840..84afdece 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXPropertySourceType.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueSourceType.cs @@ -9,10 +9,13 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Accessibility{ /// Enum of possible property sources. /// [JsonConverter(typeof(StringEnumConverter))] - public enum AXPropertySourceType + public enum AXValueSourceType { Attribute, Implicit, Style, + Contents, + Placeholder, + RelatedElement, } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueType.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueType.cs index e3e2bca0..672f5af8 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueType.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXValueType.cs @@ -17,12 +17,16 @@ public enum AXValueType Idref, IdrefList, Integer, + Node, + NodeList, Number, String, + ComputedString, Token, TokenList, DomRelation, Role, InternalRole, + ValueUndefined, } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXWidgetStates.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXWidgetStates.cs index 210cf0dc..9d83c7ac 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXWidgetStates.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Accessibility/AXWidgetStates.cs @@ -13,6 +13,7 @@ public enum AXWidgetStates { Checked, Expanded, + Modal, Pressed, Selected, } diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/GetAXNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/GetAXNodeCommand.cs deleted file mode 100644 index 80e70cfb..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Accessibility/GetAXNodeCommand.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Accessibility -{ - /// - /// Fetches the accessibility node for this DOM node, if it exists. - /// - [Command(ProtocolName.Accessibility.GetAXNode)] - [SupportedBy("Chrome")] - public class GetAXNodeCommand - { - /// - /// Gets or sets ID of node to get accessibility node for. - /// - public long NodeId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/GetAXNodeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/GetAXNodeCommandResponse.cs deleted file mode 100644 index e83341d7..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Accessibility/GetAXNodeCommandResponse.cs +++ /dev/null @@ -1,20 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Accessibility -{ - /// - /// Fetches the accessibility node for this DOM node, if it exists. - /// - [CommandResponse(ProtocolName.Accessibility.GetAXNode)] - [SupportedBy("Chrome")] - public class GetAXNodeCommandResponse - { - /// - /// Gets or sets The Accessibility.AXNode for this DOM node, if it exists. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public AXNode AccessibilityNode { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/GetPartialAXTreeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/GetPartialAXTreeCommand.cs new file mode 100644 index 00000000..9e979669 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Accessibility/GetPartialAXTreeCommand.cs @@ -0,0 +1,24 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Accessibility +{ + /// + /// Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists. + /// + [Command(ProtocolName.Accessibility.GetPartialAXTree)] + [SupportedBy("Chrome")] + public class GetPartialAXTreeCommand: ICommand + { + /// + /// Gets or sets ID of node to get the partial accessibility tree for. + /// + public long NodeId { get; set; } + /// + /// Gets or sets Whether to fetch this nodes ancestors, siblings and children. Defaults to true. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? FetchRelatives { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Accessibility/GetPartialAXTreeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Accessibility/GetPartialAXTreeCommandResponse.cs new file mode 100644 index 00000000..8c3c2dda --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Accessibility/GetPartialAXTreeCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Accessibility +{ + /// + /// Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists. + /// + [CommandResponse(ProtocolName.Accessibility.GetPartialAXTree)] + [SupportedBy("Chrome")] + public class GetPartialAXTreeCommandResponse + { + /// + /// Gets or sets The Accessibility.AXNode for this DOM node, if it exists, plus its ancestors, siblings and children, if requested. + /// + public AXNode[] Nodes { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/Animation.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/Animation.cs new file mode 100644 index 00000000..55c60906 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/Animation.cs @@ -0,0 +1,55 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Animation instance. + /// + [SupportedBy("Chrome")] + public class Animation + { + /// + /// Gets or sets Animation's id. + /// + public string Id { get; set; } + /// + /// Gets or sets Animation's name. + /// + public string Name { get; set; } + /// + /// Gets or sets Animation's internal paused state. + /// + public bool PausedState { get; set; } + /// + /// Gets or sets Animation's play state. + /// + public string PlayState { get; set; } + /// + /// Gets or sets Animation's playback rate. + /// + public double PlaybackRate { get; set; } + /// + /// Gets or sets Animation's start time. + /// + public double StartTime { get; set; } + /// + /// Gets or sets Animation's current time. + /// + public double CurrentTime { get; set; } + /// + /// Gets or sets Animation's source animation node. + /// + public AnimationEffect Source { get; set; } + /// + /// Gets or sets Animation type of Animation. + /// + public string Type { get; set; } + /// + /// Gets or sets A unique ID for Animation representing the sources that triggered this CSS animation/transition. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string CssId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationCanceledEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationCanceledEvent.cs new file mode 100644 index 00000000..b87737b1 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationCanceledEvent.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Event for when an animation has been cancelled. + /// + [Event(ProtocolName.Animation.AnimationCanceled)] + [SupportedBy("Chrome")] + public class AnimationCanceledEvent + { + /// + /// Gets or sets Id of the animation that was cancelled. + /// + public string Id { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationCreatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationCreatedEvent.cs new file mode 100644 index 00000000..dda0e617 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationCreatedEvent.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Event for each animation that has been created. + /// + [Event(ProtocolName.Animation.AnimationCreated)] + [SupportedBy("Chrome")] + public class AnimationCreatedEvent + { + /// + /// Gets or sets Id of the animation that was created. + /// + public string Id { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationNode.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationEffect.cs similarity index 52% rename from source/ChromeDevTools/Protocol/Chrome/Animation/AnimationNode.cs rename to source/ChromeDevTools/Protocol/Chrome/Animation/AnimationEffect.cs index d14a3932..1df786e3 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationNode.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationEffect.cs @@ -5,58 +5,50 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation { /// - /// AnimationNode instance + /// AnimationEffect instance /// [SupportedBy("Chrome")] - public class AnimationNode + public class AnimationEffect { /// - /// Gets or sets AnimationNode's delay. + /// Gets or sets AnimationEffect's delay. /// public double Delay { get; set; } /// - /// Gets or sets AnimationNode's end delay. + /// Gets or sets AnimationEffect's end delay. /// public double EndDelay { get; set; } /// - /// Gets or sets AnimationNode's playbackRate. - /// - public double PlaybackRate { get; set; } - /// - /// Gets or sets AnimationNode's iteration start. + /// Gets or sets AnimationEffect's iteration start. /// public double IterationStart { get; set; } /// - /// Gets or sets AnimationNode's iterations. + /// Gets or sets AnimationEffect's iterations. /// public double Iterations { get; set; } /// - /// Gets or sets AnimationNode's iteration duration. + /// Gets or sets AnimationEffect's iteration duration. /// public double Duration { get; set; } /// - /// Gets or sets AnimationNode's playback direction. + /// Gets or sets AnimationEffect's playback direction. /// public string Direction { get; set; } /// - /// Gets or sets AnimationNode's fill mode. + /// Gets or sets AnimationEffect's fill mode. /// public string Fill { get; set; } /// - /// Gets or sets AnimationNode's name. - /// - public string Name { get; set; } - /// - /// Gets or sets AnimationNode's target node. + /// Gets or sets AnimationEffect's target node. /// public long BackendNodeId { get; set; } /// - /// Gets or sets AnimationNode's keyframes. + /// Gets or sets AnimationEffect's keyframes. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public KeyframesRule KeyframesRule { get; set; } /// - /// Gets or sets AnimationNode's timing function. + /// Gets or sets AnimationEffect's timing function. /// public string Easing { get; set; } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationPlayer.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationPlayer.cs deleted file mode 100644 index 0530e402..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationPlayer.cs +++ /dev/null @@ -1,46 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation -{ - /// - /// AnimationPlayer instance. - /// - [SupportedBy("Chrome")] - public class AnimationPlayer - { - /// - /// Gets or sets AnimationPlayer's id. - /// - public string Id { get; set; } - /// - /// Gets or sets AnimationPlayer's internal paused state. - /// - public bool PausedState { get; set; } - /// - /// Gets or sets AnimationPlayer's play state. - /// - public string PlayState { get; set; } - /// - /// Gets or sets AnimationPlayer's playback rate. - /// - public double PlaybackRate { get; set; } - /// - /// Gets or sets AnimationPlayer's start time. - /// - public double StartTime { get; set; } - /// - /// Gets or sets AnimationPlayer's current time. - /// - public double CurrentTime { get; set; } - /// - /// Gets or sets AnimationPlayer's source animation node. - /// - public AnimationNode Source { get; set; } - /// - /// Gets or sets Animation type of AnimationPlayer. - /// - public string Type { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationPlayerCanceledEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationPlayerCanceledEvent.cs deleted file mode 100644 index 9371e788..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationPlayerCanceledEvent.cs +++ /dev/null @@ -1,17 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation -{ - /// - /// Event for AnimationPlayers in the frontend that have been cancelled. - /// - [Event(ProtocolName.Animation.AnimationPlayerCanceled)] - [SupportedBy("Chrome")] - public class AnimationPlayerCanceledEvent - { - /// - /// Gets or sets Id of the AnimationPlayer that was cancelled. - /// - public string PlayerId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationPlayerCreatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationPlayerCreatedEvent.cs deleted file mode 100644 index 4b29a0bc..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationPlayerCreatedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation -{ - /// - /// Event for each animation player that has been created. - /// - [Event(ProtocolName.Animation.AnimationPlayerCreated)] - [SupportedBy("Chrome")] - public class AnimationPlayerCreatedEvent - { - /// - /// Gets or sets AnimationPlayer that was created. - /// - public AnimationPlayer Player { get; set; } - /// - /// Gets or sets Whether the timeline should be reset. - /// - public bool ResetTimeline { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationStartedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationStartedEvent.cs new file mode 100644 index 00000000..293a9bf3 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/AnimationStartedEvent.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Event for animation that has been started. + /// + [Event(ProtocolName.Animation.AnimationStarted)] + [SupportedBy("Chrome")] + public class AnimationStartedEvent + { + /// + /// Gets or sets Animation that was started. + /// + public Animation Animation { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/SetCurrentTimeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/DisableCommand.cs similarity index 58% rename from source/ChromeDevTools/Protocol/Chrome/Animation/SetCurrentTimeCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Animation/DisableCommand.cs index 21cd6f3e..1a6fbdb1 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/SetCurrentTimeCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/DisableCommand.cs @@ -5,11 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation { /// - /// Sets the current time of the document timeline. + /// Disables animation domain notifications. /// - [CommandResponse(ProtocolName.Animation.SetCurrentTime)] + [Command(ProtocolName.Animation.Disable)] [SupportedBy("Chrome")] - public class SetCurrentTimeCommandResponse + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/DisableCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/DisableCommandResponse.cs similarity index 54% rename from source/ChromeDevTools/Protocol/Chrome/Canvas/DisableCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Animation/DisableCommandResponse.cs index c9a9bde1..d219dae7 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/DisableCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/DisableCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation { /// - /// Disables Canvas inspection. + /// Disables animation domain notifications. /// - [CommandResponse(ProtocolName.Canvas.Disable)] + [CommandResponse(ProtocolName.Animation.Disable)] [SupportedBy("Chrome")] public class DisableCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/EnableCommand.cs index 8c28819d..a1b2b4eb 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation /// [Command(ProtocolName.Animation.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/GetAnimationPlayersForNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/GetAnimationPlayersForNodeCommand.cs deleted file mode 100644 index b119b43d..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/GetAnimationPlayersForNodeCommand.cs +++ /dev/null @@ -1,23 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation -{ - /// - /// Returns animation players relevant to the node. - /// - [Command(ProtocolName.Animation.GetAnimationPlayersForNode)] - [SupportedBy("Chrome")] - public class GetAnimationPlayersForNodeCommand - { - /// - /// Gets or sets Id of the node to get animation players for. - /// - public long NodeId { get; set; } - /// - /// Gets or sets Include animations from elements subtree. - /// - public bool IncludeSubtreeAnimations { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/GetAnimationPlayersForNodeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/GetAnimationPlayersForNodeCommandResponse.cs deleted file mode 100644 index a963d5c4..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/GetAnimationPlayersForNodeCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation -{ - /// - /// Returns animation players relevant to the node. - /// - [CommandResponse(ProtocolName.Animation.GetAnimationPlayersForNode)] - [SupportedBy("Chrome")] - public class GetAnimationPlayersForNodeCommandResponse - { - /// - /// Gets or sets Array of animation players. - /// - public AnimationPlayer[] AnimationPlayers { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/GetCurrentTimeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/GetCurrentTimeCommand.cs new file mode 100644 index 00000000..06c868f7 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/GetCurrentTimeCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Returns the current time of the an animation. + /// + [Command(ProtocolName.Animation.GetCurrentTime)] + [SupportedBy("Chrome")] + public class GetCurrentTimeCommand: ICommand + { + /// + /// Gets or sets Id of animation. + /// + public string Id { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/SetCurrentTimeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/GetCurrentTimeCommandResponse.cs similarity index 59% rename from source/ChromeDevTools/Protocol/Chrome/Animation/SetCurrentTimeCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Animation/GetCurrentTimeCommandResponse.cs index a33f7bb0..9b895539 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/SetCurrentTimeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/GetCurrentTimeCommandResponse.cs @@ -5,14 +5,14 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation { /// - /// Sets the current time of the document timeline. + /// Returns the current time of the an animation. /// - [Command(ProtocolName.Animation.SetCurrentTime)] + [CommandResponse(ProtocolName.Animation.GetCurrentTime)] [SupportedBy("Chrome")] - public class SetCurrentTimeCommand + public class GetCurrentTimeCommandResponse { /// - /// Gets or sets Current time for the page animation timeline + /// Gets or sets Current time of the page. /// public double CurrentTime { get; set; } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/GetPlaybackRateCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/GetPlaybackRateCommand.cs index c3769a50..39db814c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/GetPlaybackRateCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/GetPlaybackRateCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation /// [Command(ProtocolName.Animation.GetPlaybackRate)] [SupportedBy("Chrome")] - public class GetPlaybackRateCommand + public class GetPlaybackRateCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/KeyframeStyle.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/KeyframeStyle.cs index 447d89b7..1aa6abf6 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/KeyframeStyle.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/KeyframeStyle.cs @@ -15,7 +15,7 @@ public class KeyframeStyle /// public string Offset { get; set; } /// - /// Gets or sets AnimationNode's timing function. + /// Gets or sets AnimationEffect's timing function. /// public string Easing { get; set; } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/ReleaseAnimationsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/ReleaseAnimationsCommand.cs new file mode 100644 index 00000000..0e0bd6d2 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/ReleaseAnimationsCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Releases a set of animations to no longer be manipulated. + /// + [Command(ProtocolName.Animation.ReleaseAnimations)] + [SupportedBy("Chrome")] + public class ReleaseAnimationsCommand: ICommand + { + /// + /// Gets or sets List of animation ids to seek. + /// + public string[] Animations { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/ReleaseAnimationsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/ReleaseAnimationsCommandResponse.cs new file mode 100644 index 00000000..8b52f71f --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/ReleaseAnimationsCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Releases a set of animations to no longer be manipulated. + /// + [CommandResponse(ProtocolName.Animation.ReleaseAnimations)] + [SupportedBy("Chrome")] + public class ReleaseAnimationsCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/ResolveAnimationCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/ResolveAnimationCommand.cs new file mode 100644 index 00000000..25a0ceeb --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/ResolveAnimationCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Gets the remote object of the Animation. + /// + [Command(ProtocolName.Animation.ResolveAnimation)] + [SupportedBy("Chrome")] + public class ResolveAnimationCommand: ICommand + { + /// + /// Gets or sets Animation id. + /// + public string AnimationId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/ResolveAnimationCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/ResolveAnimationCommandResponse.cs new file mode 100644 index 00000000..418c601f --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/ResolveAnimationCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Gets the remote object of the Animation. + /// + [CommandResponse(ProtocolName.Animation.ResolveAnimation)] + [SupportedBy("Chrome")] + public class ResolveAnimationCommandResponse + { + /// + /// Gets or sets Corresponding remote object. + /// + public Runtime.RemoteObject RemoteObject { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/SeekAnimationsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/SeekAnimationsCommand.cs new file mode 100644 index 00000000..adff95bb --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/SeekAnimationsCommand.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Seek a set of animations to a particular time within each animation. + /// + [Command(ProtocolName.Animation.SeekAnimations)] + [SupportedBy("Chrome")] + public class SeekAnimationsCommand: ICommand + { + /// + /// Gets or sets List of animation ids to seek. + /// + public string[] Animations { get; set; } + /// + /// Gets or sets Set the current time of each animation. + /// + public double CurrentTime { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/SeekAnimationsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/SeekAnimationsCommandResponse.cs new file mode 100644 index 00000000..3e8b7265 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/SeekAnimationsCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Seek a set of animations to a particular time within each animation. + /// + [CommandResponse(ProtocolName.Animation.SeekAnimations)] + [SupportedBy("Chrome")] + public class SeekAnimationsCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/SetPausedCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/SetPausedCommand.cs new file mode 100644 index 00000000..53c44d93 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/SetPausedCommand.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Sets the paused state of a set of animations. + /// + [Command(ProtocolName.Animation.SetPaused)] + [SupportedBy("Chrome")] + public class SetPausedCommand: ICommand + { + /// + /// Gets or sets Animations to set the pause state of. + /// + public string[] Animations { get; set; } + /// + /// Gets or sets Paused state to set to. + /// + public bool Paused { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/SetPausedCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/SetPausedCommandResponse.cs new file mode 100644 index 00000000..7c2f6739 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/SetPausedCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation +{ + /// + /// Sets the paused state of a set of animations. + /// + [CommandResponse(ProtocolName.Animation.SetPaused)] + [SupportedBy("Chrome")] + public class SetPausedCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/SetPlaybackRateCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/SetPlaybackRateCommand.cs index 651aeba5..4aa7c4a1 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/SetPlaybackRateCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/SetPlaybackRateCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation /// [Command(ProtocolName.Animation.SetPlaybackRate)] [SupportedBy("Chrome")] - public class SetPlaybackRateCommand + public class SetPlaybackRateCommand: ICommand { /// /// Gets or sets Playback rate for animations on page diff --git a/source/ChromeDevTools/Protocol/Chrome/Animation/SetTimingCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Animation/SetTimingCommand.cs index bd885a3d..7ee3e5a8 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Animation/SetTimingCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Animation/SetTimingCommand.cs @@ -9,12 +9,12 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Animation /// [Command(ProtocolName.Animation.SetTiming)] [SupportedBy("Chrome")] - public class SetTimingCommand + public class SetTimingCommand: ICommand { /// - /// Gets or sets AnimationPlayer id. + /// Gets or sets Animation id. /// - public string PlayerId { get; set; } + public string AnimationId { get; set; } /// /// Gets or sets Duration of the animation. /// diff --git a/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/EnableCommand.cs index ffff30c9..fe564db6 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ApplicationCache /// [Command(ProtocolName.ApplicationCache.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/GetApplicationCacheForFrameCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/GetApplicationCacheForFrameCommand.cs index 6dca4b43..4dfb8718 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/GetApplicationCacheForFrameCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/GetApplicationCacheForFrameCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ApplicationCache /// [Command(ProtocolName.ApplicationCache.GetApplicationCacheForFrame)] [SupportedBy("Chrome")] - public class GetApplicationCacheForFrameCommand + public class GetApplicationCacheForFrameCommand: ICommand { /// /// Gets or sets Identifier of the frame containing document whose application cache is retrieved. diff --git a/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/GetFramesWithManifestsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/GetFramesWithManifestsCommand.cs index 0cd1f98d..2d766a50 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/GetFramesWithManifestsCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/GetFramesWithManifestsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ApplicationCache /// [Command(ProtocolName.ApplicationCache.GetFramesWithManifests)] [SupportedBy("Chrome")] - public class GetFramesWithManifestsCommand + public class GetFramesWithManifestsCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/GetManifestForFrameCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/GetManifestForFrameCommand.cs index 5faa27ee..9c83755f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/GetManifestForFrameCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ApplicationCache/GetManifestForFrameCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ApplicationCache /// [Command(ProtocolName.ApplicationCache.GetManifestForFrame)] [SupportedBy("Chrome")] - public class GetManifestForFrameCommand + public class GetManifestForFrameCommand: ICommand { /// /// Gets or sets Identifier of the frame containing document whose manifest is retrieved. diff --git a/source/ChromeDevTools/Protocol/Chrome/Browser/Bounds.cs b/source/ChromeDevTools/Protocol/Chrome/Browser/Bounds.cs new file mode 100644 index 00000000..58d0cedb --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Browser/Bounds.cs @@ -0,0 +1,39 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Browser +{ + /// + /// Browser window bounds information + /// + [SupportedBy("Chrome")] + public class Bounds + { + /// + /// Gets or sets The offset from the left edge of the screen to the window in pixels. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Left { get; set; } + /// + /// Gets or sets The offset from the top edge of the screen to the window in pixels. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Top { get; set; } + /// + /// Gets or sets The window width in pixels. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Width { get; set; } + /// + /// Gets or sets The window height in pixels. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Height { get; set; } + /// + /// Gets or sets The window state. Default to normal. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public WindowState WindowState { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Browser/GetWindowBoundsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Browser/GetWindowBoundsCommand.cs new file mode 100644 index 00000000..baefafe2 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Browser/GetWindowBoundsCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Browser +{ + /// + /// Get position and size of the browser window. + /// + [Command(ProtocolName.Browser.GetWindowBounds)] + [SupportedBy("Chrome")] + public class GetWindowBoundsCommand: ICommand + { + /// + /// Gets or sets Browser window id. + /// + public long WindowId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Browser/GetWindowBoundsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Browser/GetWindowBoundsCommandResponse.cs new file mode 100644 index 00000000..c7c028be --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Browser/GetWindowBoundsCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Browser +{ + /// + /// Get position and size of the browser window. + /// + [CommandResponse(ProtocolName.Browser.GetWindowBounds)] + [SupportedBy("Chrome")] + public class GetWindowBoundsCommandResponse + { + /// + /// Gets or sets Bounds information of the window. When window state is 'minimized', the restored window position and size are returned. + /// + public Bounds Bounds { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Browser/GetWindowForTargetCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Browser/GetWindowForTargetCommand.cs new file mode 100644 index 00000000..cf8bd760 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Browser/GetWindowForTargetCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Browser +{ + /// + /// Get the browser window that contains the devtools target. + /// + [Command(ProtocolName.Browser.GetWindowForTarget)] + [SupportedBy("Chrome")] + public class GetWindowForTargetCommand: ICommand + { + /// + /// Gets or sets Devtools agent host id. + /// + public string TargetId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Browser/GetWindowForTargetCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Browser/GetWindowForTargetCommandResponse.cs new file mode 100644 index 00000000..3c50de89 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Browser/GetWindowForTargetCommandResponse.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Browser +{ + /// + /// Get the browser window that contains the devtools target. + /// + [CommandResponse(ProtocolName.Browser.GetWindowForTarget)] + [SupportedBy("Chrome")] + public class GetWindowForTargetCommandResponse + { + /// + /// Gets or sets Browser window id. + /// + public long WindowId { get; set; } + /// + /// Gets or sets Bounds information of the window. When window state is 'minimized', the restored window position and size are returned. + /// + public Bounds Bounds { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Browser/SetWindowBoundsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Browser/SetWindowBoundsCommand.cs new file mode 100644 index 00000000..f1b8829b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Browser/SetWindowBoundsCommand.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Browser +{ + /// + /// Set position and/or size of the browser window. + /// + [Command(ProtocolName.Browser.SetWindowBounds)] + [SupportedBy("Chrome")] + public class SetWindowBoundsCommand: ICommand + { + /// + /// Gets or sets Browser window id. + /// + public long WindowId { get; set; } + /// + /// Gets or sets New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged. + /// + public Bounds Bounds { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Browser/SetWindowBoundsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Browser/SetWindowBoundsCommandResponse.cs new file mode 100644 index 00000000..20e1c12c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Browser/SetWindowBoundsCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Browser +{ + /// + /// Set position and/or size of the browser window. + /// + [CommandResponse(ProtocolName.Browser.SetWindowBounds)] + [SupportedBy("Chrome")] + public class SetWindowBoundsCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Browser/WindowState.cs b/source/ChromeDevTools/Protocol/Chrome/Browser/WindowState.cs new file mode 100644 index 00000000..104f3a24 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Browser/WindowState.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Browser{ + /// + /// The state of the browser window. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum WindowState + { + Normal, + Minimized, + Maximized, + Fullscreen, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/AddRuleCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/AddRuleCommand.cs index ba3998c0..b4cc84b1 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/AddRuleCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/AddRuleCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.AddRule)] [SupportedBy("Chrome")] - public class AddRuleCommand + public class AddRuleCommand: ICommand { /// /// Gets or sets The css style sheet identifier where a new rule should be inserted. diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/CSSKeyframeRule.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/CSSKeyframeRule.cs new file mode 100644 index 00000000..460ad6ea --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/CSSKeyframeRule.cs @@ -0,0 +1,31 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// CSS keyframe rule representation. + /// + [SupportedBy("Chrome")] + public class CSSKeyframeRule + { + /// + /// Gets or sets The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string StyleSheetId { get; set; } + /// + /// Gets or sets Parent stylesheet's origin. + /// + public StyleSheetOrigin Origin { get; set; } + /// + /// Gets or sets Associated key text. + /// + public Value KeyText { get; set; } + /// + /// Gets or sets Associated style declaration. + /// + public CSSStyle Style { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/CSSKeyframesRule.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/CSSKeyframesRule.cs new file mode 100644 index 00000000..3357022b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/CSSKeyframesRule.cs @@ -0,0 +1,22 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// CSS keyframes rule representation. + /// + [SupportedBy("Chrome")] + public class CSSKeyframesRule + { + /// + /// Gets or sets Animation name. + /// + public Value AnimationName { get; set; } + /// + /// Gets or sets List of keyframes. + /// + public CSSKeyframeRule[] Keyframes { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/CSSMedia.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/CSSMedia.cs index 20f2a00b..f532fe43 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/CSSMedia.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/CSSMedia.cs @@ -32,7 +32,7 @@ public class CSSMedia /// Gets or sets Identifier of the stylesheet containing this object (if exists). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string ParentStyleSheetId { get; set; } + public string StyleSheetId { get; set; } /// /// Gets or sets Array of media queries. /// diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/CSSStyleSheetHeader.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/CSSStyleSheetHeader.cs index 5944a4c6..6787728b 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/CSSStyleSheetHeader.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/CSSStyleSheetHeader.cs @@ -61,5 +61,9 @@ public class CSSStyleSheetHeader /// Gets or sets Column offset of the stylesheet within the resource (zero based). /// public double StartColumn { get; set; } + /// + /// Gets or sets Size of the content (in characters). + /// + public double Length { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/CollectClassNamesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/CollectClassNamesCommand.cs new file mode 100644 index 00000000..da408eca --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/CollectClassNamesCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Returns all class names from specified stylesheet. + /// + [Command(ProtocolName.CSS.CollectClassNames)] + [SupportedBy("Chrome")] + public class CollectClassNamesCommand: ICommand + { + /// + /// Gets or sets StyleSheetId + /// + public string StyleSheetId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/CollectClassNamesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/CollectClassNamesCommandResponse.cs new file mode 100644 index 00000000..4130459e --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/CollectClassNamesCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Returns all class names from specified stylesheet. + /// + [CommandResponse(ProtocolName.CSS.CollectClassNames)] + [SupportedBy("Chrome")] + public class CollectClassNamesCommandResponse + { + /// + /// Gets or sets Class name list. + /// + public string[] ClassNames { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/ComputedStyle.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/ComputedStyle.cs new file mode 100644 index 00000000..0921ea1b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/ComputedStyle.cs @@ -0,0 +1,18 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// A subset of the full ComputedStyle as defined by the request whitelist. + /// + [SupportedBy("Chrome")] + public class ComputedStyle + { + /// + /// Gets or sets Properties + /// + public CSSComputedStyleProperty[] Properties { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/CreateStyleSheetCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/CreateStyleSheetCommand.cs index 26b472d5..30e8b019 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/CreateStyleSheetCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/CreateStyleSheetCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.CreateStyleSheet)] [SupportedBy("Chrome")] - public class CreateStyleSheetCommand + public class CreateStyleSheetCommand: ICommand { /// /// Gets or sets Identifier of the frame where "via-inspector" stylesheet should be created. diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/DisableCommand.cs index 7d08df8a..6e8fb95e 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/EnableCommand.cs index c0d53df9..73c7a75e 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/FontsUpdatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/FontsUpdatedEvent.cs new file mode 100644 index 00000000..cf9505a0 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/FontsUpdatedEvent.cs @@ -0,0 +1,13 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Fires whenever a web font gets loaded. + /// + [Event(ProtocolName.CSS.FontsUpdated)] + [SupportedBy("Chrome")] + public class FontsUpdatedEvent + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/ForcePseudoStateCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/ForcePseudoStateCommand.cs index 74007097..cd3f05ff 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/ForcePseudoStateCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/ForcePseudoStateCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.ForcePseudoState)] [SupportedBy("Chrome")] - public class ForcePseudoStateCommand + public class ForcePseudoStateCommand: ICommand { /// /// Gets or sets The element id for which to force the pseudo state. diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/GetBackgroundColorsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/GetBackgroundColorsCommand.cs new file mode 100644 index 00000000..d04e602d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/GetBackgroundColorsCommand.cs @@ -0,0 +1,16 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + [Command(ProtocolName.CSS.GetBackgroundColors)] + [SupportedBy("Chrome")] + public class GetBackgroundColorsCommand: ICommand + { + /// + /// Gets or sets Id of the node to get background colors for. + /// + public long NodeId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/GetBackgroundColorsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/GetBackgroundColorsCommandResponse.cs new file mode 100644 index 00000000..acae4135 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/GetBackgroundColorsCommandResponse.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + [CommandResponse(ProtocolName.CSS.GetBackgroundColors)] + [SupportedBy("Chrome")] + public class GetBackgroundColorsCommandResponse + { + /// + /// Gets or sets The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string[] BackgroundColors { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/GetComputedStyleForNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/GetComputedStyleForNodeCommand.cs index 9247eafb..e303d901 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/GetComputedStyleForNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/GetComputedStyleForNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.GetComputedStyleForNode)] [SupportedBy("Chrome")] - public class GetComputedStyleForNodeCommand + public class GetComputedStyleForNodeCommand: ICommand { /// /// Gets or sets NodeId diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/GetInlineStylesForNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/GetInlineStylesForNodeCommand.cs index 1437f8ab..c31633e9 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/GetInlineStylesForNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/GetInlineStylesForNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.GetInlineStylesForNode)] [SupportedBy("Chrome")] - public class GetInlineStylesForNodeCommand + public class GetInlineStylesForNodeCommand: ICommand { /// /// Gets or sets NodeId diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/GetLayoutTreeAndStylesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/GetLayoutTreeAndStylesCommand.cs new file mode 100644 index 00000000..f7d11dda --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/GetLayoutTreeAndStylesCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// For the main document and any content documents, return the LayoutTreeNodes and a whitelisted subset of the computed style. It only returns pushed nodes, on way to pull all nodes is to call DOM.getDocument with a depth of -1. + /// + [Command(ProtocolName.CSS.GetLayoutTreeAndStyles)] + [SupportedBy("Chrome")] + public class GetLayoutTreeAndStylesCommand: ICommand + { + /// + /// Gets or sets Whitelist of computed styles to return. + /// + public string[] ComputedStyleWhitelist { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/GetLayoutTreeAndStylesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/GetLayoutTreeAndStylesCommandResponse.cs new file mode 100644 index 00000000..e83cc296 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/GetLayoutTreeAndStylesCommandResponse.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// For the main document and any content documents, return the LayoutTreeNodes and a whitelisted subset of the computed style. It only returns pushed nodes, on way to pull all nodes is to call DOM.getDocument with a depth of -1. + /// + [CommandResponse(ProtocolName.CSS.GetLayoutTreeAndStyles)] + [SupportedBy("Chrome")] + public class GetLayoutTreeAndStylesCommandResponse + { + /// + /// Gets or sets LayoutTreeNodes + /// + public LayoutTreeNode[] LayoutTreeNodes { get; set; } + /// + /// Gets or sets ComputedStyles + /// + public ComputedStyle[] ComputedStyles { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/GetMatchedStylesForNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/GetMatchedStylesForNodeCommand.cs index 315b8253..3b8bda19 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/GetMatchedStylesForNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/GetMatchedStylesForNodeCommand.cs @@ -9,21 +9,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.GetMatchedStylesForNode)] [SupportedBy("Chrome")] - public class GetMatchedStylesForNodeCommand + public class GetMatchedStylesForNodeCommand: ICommand { /// /// Gets or sets NodeId /// public long NodeId { get; set; } - /// - /// Gets or sets Whether to exclude pseudo styles (default: false). - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? ExcludePseudo { get; set; } - /// - /// Gets or sets Whether to exclude inherited styles (default: false). - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? ExcludeInherited { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/GetMatchedStylesForNodeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/GetMatchedStylesForNodeCommandResponse.cs index be70f684..5b57feb0 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/GetMatchedStylesForNodeCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/GetMatchedStylesForNodeCommandResponse.cs @@ -11,6 +11,16 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS [SupportedBy("Chrome")] public class GetMatchedStylesForNodeCommandResponse { + /// + /// Gets or sets Inline style for the specified DOM node. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public CSSStyle InlineStyle { get; set; } + /// + /// Gets or sets Attribute-defined element style (e.g. resulting from "width=20 height=100%"). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public CSSStyle AttributesStyle { get; set; } /// /// Gets or sets CSS rules matching this node, from all applicable stylesheets. /// @@ -20,11 +30,16 @@ public class GetMatchedStylesForNodeCommandResponse /// Gets or sets Pseudo style matches for this node. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public PseudoIdMatches[] PseudoElements { get; set; } + public PseudoElementMatches[] PseudoElements { get; set; } /// /// Gets or sets A chain of inherited styles (from the immediate node parent up to the DOM tree root). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public InheritedStyleEntry[] Inherited { get; set; } + /// + /// Gets or sets A list of CSS keyframed animations matching this node. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public CSSKeyframesRule[] CssKeyframesRules { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/GetMediaQueriesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/GetMediaQueriesCommand.cs index fea14f36..00087630 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/GetMediaQueriesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/GetMediaQueriesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.GetMediaQueries)] [SupportedBy("Chrome")] - public class GetMediaQueriesCommand + public class GetMediaQueriesCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/GetPlatformFontsForNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/GetPlatformFontsForNodeCommand.cs index f1c0a848..cff0f3e4 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/GetPlatformFontsForNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/GetPlatformFontsForNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.GetPlatformFontsForNode)] [SupportedBy("Chrome")] - public class GetPlatformFontsForNodeCommand + public class GetPlatformFontsForNodeCommand: ICommand { /// /// Gets or sets NodeId diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/GetPlatformFontsForNodeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/GetPlatformFontsForNodeCommandResponse.cs index b1a7608e..2f8184f8 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/GetPlatformFontsForNodeCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/GetPlatformFontsForNodeCommandResponse.cs @@ -11,10 +11,6 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS [SupportedBy("Chrome")] public class GetPlatformFontsForNodeCommandResponse { - /// - /// Gets or sets Font family name which is determined by computed style. - /// - public string CssFamilyName { get; set; } /// /// Gets or sets Usage statistics for every employed platform font. /// diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/GetStyleSheetTextCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/GetStyleSheetTextCommand.cs index 229c292c..9a999053 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/GetStyleSheetTextCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/GetStyleSheetTextCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.GetStyleSheetText)] [SupportedBy("Chrome")] - public class GetStyleSheetTextCommand + public class GetStyleSheetTextCommand: ICommand { /// /// Gets or sets StyleSheetId diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/InlineTextBox.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/InlineTextBox.cs new file mode 100644 index 00000000..6c31f39d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/InlineTextBox.cs @@ -0,0 +1,26 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions. + /// + [SupportedBy("Chrome")] + public class InlineTextBox + { + /// + /// Gets or sets The absolute position bounding box. + /// + public DOM.Rect BoundingBox { get; set; } + /// + /// Gets or sets The starting index in characters, for this post layout textbox substring. + /// + public long StartCharacterIndex { get; set; } + /// + /// Gets or sets The number of characters in this post layout textbox substring. + /// + public long NumCharacters { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/LayoutTreeNode.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/LayoutTreeNode.cs new file mode 100644 index 00000000..49bb3224 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/LayoutTreeNode.cs @@ -0,0 +1,37 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Details of an element in the DOM tree with a LayoutObject. + /// + [SupportedBy("Chrome")] + public class LayoutTreeNode + { + /// + /// Gets or sets The id of the related DOM node matching one from DOM.GetDocument. + /// + public long NodeId { get; set; } + /// + /// Gets or sets The absolute position bounding box. + /// + public DOM.Rect BoundingBox { get; set; } + /// + /// Gets or sets Contents of the LayoutText if any + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string LayoutText { get; set; } + /// + /// Gets or sets The post layout inline text nodes, if any. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public InlineTextBox[] InlineTextNodes { get; set; } + /// + /// Gets or sets Index into the computedStyles array returned by getLayoutTreeAndStyles. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? StyleIndex { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/PlatformFontUsage.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/PlatformFontUsage.cs index 0adf8901..e87037d0 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/PlatformFontUsage.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/PlatformFontUsage.cs @@ -15,6 +15,10 @@ public class PlatformFontUsage /// public string FamilyName { get; set; } /// + /// Gets or sets Indicates if the font was downloaded or resolved locally. + /// + public bool IsCustomFont { get; set; } + /// /// Gets or sets Amount of glyphs that were rendered with this font. /// public double GlyphCount { get; set; } diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/PseudoIdMatches.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/PseudoElementMatches.cs similarity index 70% rename from source/ChromeDevTools/Protocol/Chrome/CSS/PseudoIdMatches.cs rename to source/ChromeDevTools/Protocol/Chrome/CSS/PseudoElementMatches.cs index 57bc395f..c96e752a 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/PseudoIdMatches.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/PseudoElementMatches.cs @@ -8,12 +8,12 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// CSS rule collection for a single pseudo style. /// [SupportedBy("Chrome")] - public class PseudoIdMatches + public class PseudoElementMatches { /// - /// Gets or sets Pseudo style identifier (see enum PseudoId in ComputedStyleConstants.h). + /// Gets or sets Pseudo element type. /// - public long PseudoId { get; set; } + public DOM.PseudoType PseudoType { get; set; } /// /// Gets or sets Matches of CSS rules applicable to the pseudo style. /// diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/RuleUsage.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/RuleUsage.cs new file mode 100644 index 00000000..57d6499b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/RuleUsage.cs @@ -0,0 +1,30 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// CSS coverage information. + /// + [SupportedBy("Chrome")] + public class RuleUsage + { + /// + /// Gets or sets The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from. + /// + public string StyleSheetId { get; set; } + /// + /// Gets or sets Offset of the start of the rule (including selector) from the beginning of the stylesheet. + /// + public double StartOffset { get; set; } + /// + /// Gets or sets Offset of the end of the rule body from the beginning of the stylesheet. + /// + public double EndOffset { get; set; } + /// + /// Gets or sets Indicates whether the rule was actually used by some element in the page. + /// + public bool Used { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SelectorList.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SelectorList.cs index 7a23b673..6107aee5 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/SelectorList.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/SelectorList.cs @@ -13,7 +13,7 @@ public class SelectorList /// /// Gets or sets Selectors in the list. /// - public Selector[] Selectors { get; set; } + public Value[] Selectors { get; set; } /// /// Gets or sets Rule selector text. /// diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetEffectivePropertyValueForNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetEffectivePropertyValueForNodeCommand.cs new file mode 100644 index 00000000..699b9779 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/SetEffectivePropertyValueForNodeCommand.cs @@ -0,0 +1,27 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Find a rule with the given active property for the given node and set the new value for this property + /// + [Command(ProtocolName.CSS.SetEffectivePropertyValueForNode)] + [SupportedBy("Chrome")] + public class SetEffectivePropertyValueForNodeCommand: ICommand + { + /// + /// Gets or sets The element id for which to set property. + /// + public long NodeId { get; set; } + /// + /// Gets or sets PropertyName + /// + public string PropertyName { get; set; } + /// + /// Gets or sets Value + /// + public string Value { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetEffectivePropertyValueForNodeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetEffectivePropertyValueForNodeCommandResponse.cs new file mode 100644 index 00000000..ce0121f6 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/SetEffectivePropertyValueForNodeCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Find a rule with the given active property for the given node and set the new value for this property + /// + [CommandResponse(ProtocolName.CSS.SetEffectivePropertyValueForNode)] + [SupportedBy("Chrome")] + public class SetEffectivePropertyValueForNodeCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetKeyframeKeyCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetKeyframeKeyCommand.cs new file mode 100644 index 00000000..0284cad0 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/SetKeyframeKeyCommand.cs @@ -0,0 +1,27 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Modifies the keyframe rule key text. + /// + [Command(ProtocolName.CSS.SetKeyframeKey)] + [SupportedBy("Chrome")] + public class SetKeyframeKeyCommand: ICommand + { + /// + /// Gets or sets StyleSheetId + /// + public string StyleSheetId { get; set; } + /// + /// Gets or sets Range + /// + public SourceRange Range { get; set; } + /// + /// Gets or sets KeyText + /// + public string KeyText { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetKeyframeKeyCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetKeyframeKeyCommandResponse.cs new file mode 100644 index 00000000..88c0aa46 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/SetKeyframeKeyCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Modifies the keyframe rule key text. + /// + [CommandResponse(ProtocolName.CSS.SetKeyframeKey)] + [SupportedBy("Chrome")] + public class SetKeyframeKeyCommandResponse + { + /// + /// Gets or sets The resulting key text after modification. + /// + public Value KeyText { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetMediaTextCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetMediaTextCommand.cs index 7439107f..cae0a861 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/SetMediaTextCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/SetMediaTextCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.SetMediaText)] [SupportedBy("Chrome")] - public class SetMediaTextCommand + public class SetMediaTextCommand: ICommand { /// /// Gets or sets StyleSheetId diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetPropertyTextCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetPropertyTextCommand.cs deleted file mode 100644 index 38143062..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/SetPropertyTextCommand.cs +++ /dev/null @@ -1,27 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS -{ - /// - /// Either replaces a property identified by styleSheetId and range with text or inserts a new property text at the position identified by an empty range. - /// - [Command(ProtocolName.CSS.SetPropertyText)] - [SupportedBy("Chrome")] - public class SetPropertyTextCommand - { - /// - /// Gets or sets StyleSheetId - /// - public string StyleSheetId { get; set; } - /// - /// Gets or sets Either a source range of the property to be edited or an empty range representing a position for the property insertion. - /// - public SourceRange Range { get; set; } - /// - /// Gets or sets Text - /// - public string Text { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetPropertyTextCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetPropertyTextCommandResponse.cs deleted file mode 100644 index 5536ef37..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/SetPropertyTextCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS -{ - /// - /// Either replaces a property identified by styleSheetId and range with text or inserts a new property text at the position identified by an empty range. - /// - [CommandResponse(ProtocolName.CSS.SetPropertyText)] - [SupportedBy("Chrome")] - public class SetPropertyTextCommandResponse - { - /// - /// Gets or sets The resulting style after the property text modification. - /// - public CSSStyle Style { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetRuleSelectorCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetRuleSelectorCommand.cs index 2fb444b8..09ec4c87 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/SetRuleSelectorCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/SetRuleSelectorCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.SetRuleSelector)] [SupportedBy("Chrome")] - public class SetRuleSelectorCommand + public class SetRuleSelectorCommand: ICommand { /// /// Gets or sets StyleSheetId diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetRuleSelectorCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetRuleSelectorCommandResponse.cs index 5f37509d..96efee74 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/SetRuleSelectorCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/SetRuleSelectorCommandResponse.cs @@ -12,8 +12,8 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS public class SetRuleSelectorCommandResponse { /// - /// Gets or sets The resulting rule after the selector modification. + /// Gets or sets The resulting selector list after modification. /// - public CSSRule Rule { get; set; } + public SelectorList SelectorList { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleSheetTextCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleSheetTextCommand.cs index 0522008c..02149afc 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleSheetTextCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleSheetTextCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// [Command(ProtocolName.CSS.SetStyleSheetText)] [SupportedBy("Chrome")] - public class SetStyleSheetTextCommand + public class SetStyleSheetTextCommand: ICommand { /// /// Gets or sets StyleSheetId diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleSheetTextCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleSheetTextCommandResponse.cs index b7e35d98..9ee94e08 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleSheetTextCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleSheetTextCommandResponse.cs @@ -11,5 +11,10 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS [SupportedBy("Chrome")] public class SetStyleSheetTextCommandResponse { + /// + /// Gets or sets URL of source map associated with script (if any). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string SourceMapURL { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleTextsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleTextsCommand.cs new file mode 100644 index 00000000..c41d83dc --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleTextsCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Applies specified style edits one after another in the given order. + /// + [Command(ProtocolName.CSS.SetStyleTexts)] + [SupportedBy("Chrome")] + public class SetStyleTextsCommand: ICommand + { + /// + /// Gets or sets Edits + /// + public StyleDeclarationEdit[] Edits { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleTextsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleTextsCommandResponse.cs new file mode 100644 index 00000000..a843c39c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/SetStyleTextsCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Applies specified style edits one after another in the given order. + /// + [CommandResponse(ProtocolName.CSS.SetStyleTexts)] + [SupportedBy("Chrome")] + public class SetStyleTextsCommandResponse + { + /// + /// Gets or sets The resulting styles after modification. + /// + public CSSStyle[] Styles { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/ShorthandEntry.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/ShorthandEntry.cs index 76a21c1c..dd9c49cd 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/ShorthandEntry.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/ShorthandEntry.cs @@ -18,5 +18,10 @@ public class ShorthandEntry /// Gets or sets Shorthand value. /// public string Value { get; set; } + /// + /// Gets or sets Whether the property has "!important" annotation (implies false if absent). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? Important { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/StartRuleUsageTrackingCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/StartRuleUsageTrackingCommand.cs new file mode 100644 index 00000000..06970030 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/StartRuleUsageTrackingCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Enables the selector recording. + /// + [Command(ProtocolName.CSS.StartRuleUsageTracking)] + [SupportedBy("Chrome")] + public class StartRuleUsageTrackingCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/StartRuleUsageTrackingCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/StartRuleUsageTrackingCommandResponse.cs new file mode 100644 index 00000000..f96bb330 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/StartRuleUsageTrackingCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Enables the selector recording. + /// + [CommandResponse(ProtocolName.CSS.StartRuleUsageTracking)] + [SupportedBy("Chrome")] + public class StartRuleUsageTrackingCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/StopRuleUsageTrackingCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/StopRuleUsageTrackingCommand.cs new file mode 100644 index 00000000..d1fb1b3d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/StopRuleUsageTrackingCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// The list of rules with an indication of whether these were used + /// + [Command(ProtocolName.CSS.StopRuleUsageTracking)] + [SupportedBy("Chrome")] + public class StopRuleUsageTrackingCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/StopRuleUsageTrackingCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/StopRuleUsageTrackingCommandResponse.cs new file mode 100644 index 00000000..9cfe35a8 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/StopRuleUsageTrackingCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// The list of rules with an indication of whether these were used + /// + [CommandResponse(ProtocolName.CSS.StopRuleUsageTracking)] + [SupportedBy("Chrome")] + public class StopRuleUsageTrackingCommandResponse + { + /// + /// Gets or sets RuleUsage + /// + public RuleUsage[] RuleUsage { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/StyleDeclarationEdit.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/StyleDeclarationEdit.cs new file mode 100644 index 00000000..fadf2c14 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/StyleDeclarationEdit.cs @@ -0,0 +1,26 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// A descriptor of operation to mutate style declaration text. + /// + [SupportedBy("Chrome")] + public class StyleDeclarationEdit + { + /// + /// Gets or sets The css style sheet identifier. + /// + public string StyleSheetId { get; set; } + /// + /// Gets or sets The range of the style text in the enclosing stylesheet. + /// + public SourceRange Range { get; set; } + /// + /// Gets or sets New style text. + /// + public string Text { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/TakeCoverageDeltaCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/TakeCoverageDeltaCommand.cs new file mode 100644 index 00000000..50f9115c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/TakeCoverageDeltaCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation) + /// + [Command(ProtocolName.CSS.TakeCoverageDelta)] + [SupportedBy("Chrome")] + public class TakeCoverageDeltaCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/TakeCoverageDeltaCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/TakeCoverageDeltaCommandResponse.cs new file mode 100644 index 00000000..7cee6016 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/TakeCoverageDeltaCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS +{ + /// + /// Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation) + /// + [CommandResponse(ProtocolName.CSS.TakeCoverageDelta)] + [SupportedBy("Chrome")] + public class TakeCoverageDeltaCommandResponse + { + /// + /// Gets or sets Coverage + /// + public RuleUsage[] Coverage { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CSS/Selector.cs b/source/ChromeDevTools/Protocol/Chrome/CSS/Value.cs similarity index 73% rename from source/ChromeDevTools/Protocol/Chrome/CSS/Selector.cs rename to source/ChromeDevTools/Protocol/Chrome/CSS/Value.cs index 3abfb80e..d92c80a3 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CSS/Selector.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CSS/Value.cs @@ -8,14 +8,14 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS /// Data for a simple selector (these are delimited by commas in a selector list). /// [SupportedBy("Chrome")] - public class Selector + public class Value { /// - /// Gets or sets Selector text. + /// Gets or sets Value text. /// - public string Value { get; set; } + public string Text { get; set; } /// - /// Gets or sets Selector range in the underlying resource (if available). + /// Gets or sets Value range in the underlying resource (if available). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public SourceRange Range { get; set; } diff --git a/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DataEntry.cs b/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DataEntry.cs index 32371cc6..aaf5bf3a 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DataEntry.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DataEntry.cs @@ -11,11 +11,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CacheStorage public class DataEntry { /// - /// Gets or sets JSON-stringified request object. + /// Gets or sets Request url spec. /// public string Request { get; set; } /// - /// Gets or sets JSON-stringified response object. + /// Gets or sets Response stataus text. /// public string Response { get; set; } } diff --git a/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DeleteCacheCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DeleteCacheCommand.cs index 7471b1db..f2d627e9 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DeleteCacheCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DeleteCacheCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CacheStorage /// [Command(ProtocolName.CacheStorage.DeleteCache)] [SupportedBy("Chrome")] - public class DeleteCacheCommand + public class DeleteCacheCommand: ICommand { /// /// Gets or sets Id of cache for deletion. diff --git a/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DeleteEntryCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DeleteEntryCommand.cs new file mode 100644 index 00000000..4abbab32 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DeleteEntryCommand.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CacheStorage +{ + /// + /// Deletes a cache entry. + /// + [Command(ProtocolName.CacheStorage.DeleteEntry)] + [SupportedBy("Chrome")] + public class DeleteEntryCommand: ICommand + { + /// + /// Gets or sets Id of cache where the entry will be deleted. + /// + public string CacheId { get; set; } + /// + /// Gets or sets URL spec of the request. + /// + public string Request { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DeleteEntryCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DeleteEntryCommandResponse.cs new file mode 100644 index 00000000..ed4708c2 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/CacheStorage/DeleteEntryCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CacheStorage +{ + /// + /// Deletes a cache entry. + /// + [CommandResponse(ProtocolName.CacheStorage.DeleteEntry)] + [SupportedBy("Chrome")] + public class DeleteEntryCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/CacheStorage/RequestCacheNamesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CacheStorage/RequestCacheNamesCommand.cs index 616de725..f1a0eb80 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CacheStorage/RequestCacheNamesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CacheStorage/RequestCacheNamesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CacheStorage /// [Command(ProtocolName.CacheStorage.RequestCacheNames)] [SupportedBy("Chrome")] - public class RequestCacheNamesCommand + public class RequestCacheNamesCommand: ICommand { /// /// Gets or sets Security origin. diff --git a/source/ChromeDevTools/Protocol/Chrome/CacheStorage/RequestEntriesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/CacheStorage/RequestEntriesCommand.cs index 878856f1..4bddb419 100644 --- a/source/ChromeDevTools/Protocol/Chrome/CacheStorage/RequestEntriesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/CacheStorage/RequestEntriesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CacheStorage /// [Command(ProtocolName.CacheStorage.RequestEntries)] [SupportedBy("Chrome")] - public class RequestEntriesCommand + public class RequestEntriesCommand: ICommand { /// /// Gets or sets ID of cache to get entries from. diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/Call.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/Call.cs deleted file mode 100644 index 71d72dba..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/Call.cs +++ /dev/null @@ -1,68 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// - /// - [SupportedBy("Chrome")] - public class Call - { - /// - /// Gets or sets ContextId - /// - public string ContextId { get; set; } - /// - /// Gets or sets FunctionName - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string FunctionName { get; set; } - /// - /// Gets or sets Arguments - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public CallArgument[] Arguments { get; set; } - /// - /// Gets or sets Result - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public CallArgument Result { get; set; } - /// - /// Gets or sets IsDrawingCall - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? IsDrawingCall { get; set; } - /// - /// Gets or sets IsFrameEndCall - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? IsFrameEndCall { get; set; } - /// - /// Gets or sets Property - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Property { get; set; } - /// - /// Gets or sets Value - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public CallArgument Value { get; set; } - /// - /// Gets or sets SourceURL - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string SourceURL { get; set; } - /// - /// Gets or sets LineNumber - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? LineNumber { get; set; } - /// - /// Gets or sets ColumnNumber - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? ColumnNumber { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/CallArgument.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/CallArgument.cs deleted file mode 100644 index 4275208c..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/CallArgument.cs +++ /dev/null @@ -1,43 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// - /// - [SupportedBy("Chrome")] - public class CallArgument - { - /// - /// Gets or sets String representation of the object. - /// - public string Description { get; set; } - /// - /// Gets or sets Enum name, if any, that stands for the value (for example, a WebGL enum name). - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string EnumName { get; set; } - /// - /// Gets or sets Resource identifier. Specified for Resource objects only. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string ResourceId { get; set; } - /// - /// Gets or sets Object type. Specified for non Resource objects only. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Type { get; set; } - /// - /// Gets or sets Object subtype hint. Specified for object type values only. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Subtype { get; set; } - /// - /// Gets or sets The RemoteObject, if requested. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Runtime.RemoteObject RemoteObject { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/CaptureFrameCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/CaptureFrameCommand.cs deleted file mode 100644 index 6ffc545e..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/CaptureFrameCommand.cs +++ /dev/null @@ -1,20 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Starts (or continues) a canvas frame capturing which will be stopped automatically after the next frame is prepared. - /// - [Command(ProtocolName.Canvas.CaptureFrame)] - [SupportedBy("Chrome")] - public class CaptureFrameCommand - { - /// - /// Gets or sets Identifier of the frame containing document whose canvases are to be captured. If omitted, main frame is assumed. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string FrameId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/CaptureFrameCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/CaptureFrameCommandResponse.cs deleted file mode 100644 index f8b11978..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/CaptureFrameCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Starts (or continues) a canvas frame capturing which will be stopped automatically after the next frame is prepared. - /// - [CommandResponse(ProtocolName.Canvas.CaptureFrame)] - [SupportedBy("Chrome")] - public class CaptureFrameCommandResponse - { - /// - /// Gets or sets Identifier of the trace log containing captured canvas calls. - /// - public string TraceLogId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/ContextCreatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/ContextCreatedEvent.cs deleted file mode 100644 index 388fcf82..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/ContextCreatedEvent.cs +++ /dev/null @@ -1,17 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Fired when a canvas context has been created in the given frame. The context may not be instrumented (see hasUninstrumentedCanvases command). - /// - [Event(ProtocolName.Canvas.ContextCreated)] - [SupportedBy("Chrome")] - public class ContextCreatedEvent - { - /// - /// Gets or sets Identifier of the frame containing a canvas with a context. - /// - public string FrameId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/DisableCommand.cs deleted file mode 100644 index c673832b..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/DisableCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Disables Canvas inspection. - /// - [Command(ProtocolName.Canvas.Disable)] - [SupportedBy("Chrome")] - public class DisableCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/DropTraceLogCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/DropTraceLogCommand.cs deleted file mode 100644 index 09384754..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/DropTraceLogCommand.cs +++ /dev/null @@ -1,16 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - [Command(ProtocolName.Canvas.DropTraceLog)] - [SupportedBy("Chrome")] - public class DropTraceLogCommand - { - /// - /// Gets or sets TraceLogId - /// - public string TraceLogId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/DropTraceLogCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/DropTraceLogCommandResponse.cs deleted file mode 100644 index 6e7360d0..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/DropTraceLogCommandResponse.cs +++ /dev/null @@ -1,12 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - [CommandResponse(ProtocolName.Canvas.DropTraceLog)] - [SupportedBy("Chrome")] - public class DropTraceLogCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/EnableCommand.cs deleted file mode 100644 index be2d04a5..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/EnableCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Enables Canvas inspection. - /// - [Command(ProtocolName.Canvas.Enable)] - [SupportedBy("Chrome")] - public class EnableCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/EvaluateTraceLogCallArgumentCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/EvaluateTraceLogCallArgumentCommand.cs deleted file mode 100644 index 0e960904..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/EvaluateTraceLogCallArgumentCommand.cs +++ /dev/null @@ -1,32 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Evaluates a given trace call argument or its result. - /// - [Command(ProtocolName.Canvas.EvaluateTraceLogCallArgument)] - [SupportedBy("Chrome")] - public class EvaluateTraceLogCallArgumentCommand - { - /// - /// Gets or sets TraceLogId - /// - public string TraceLogId { get; set; } - /// - /// Gets or sets Index of the call to evaluate on (zero based). - /// - public long CallIndex { get; set; } - /// - /// Gets or sets Index of the argument to evaluate (zero based). Provide -1 to evaluate call result. - /// - public long ArgumentIndex { get; set; } - /// - /// Gets or sets String object group name to put result into (allows rapid releasing resulting object handles using Runtime.releaseObjectGroup). - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string ObjectGroup { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/EvaluateTraceLogCallArgumentCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/EvaluateTraceLogCallArgumentCommandResponse.cs deleted file mode 100644 index da274cc2..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/EvaluateTraceLogCallArgumentCommandResponse.cs +++ /dev/null @@ -1,25 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Evaluates a given trace call argument or its result. - /// - [CommandResponse(ProtocolName.Canvas.EvaluateTraceLogCallArgument)] - [SupportedBy("Chrome")] - public class EvaluateTraceLogCallArgumentCommandResponse - { - /// - /// Gets or sets Object wrapper for the evaluation result. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Runtime.RemoteObject Result { get; set; } - /// - /// Gets or sets State of the Resource object. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public ResourceState ResourceState { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/GetResourceStateCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/GetResourceStateCommand.cs deleted file mode 100644 index d7bff830..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/GetResourceStateCommand.cs +++ /dev/null @@ -1,20 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - [Command(ProtocolName.Canvas.GetResourceState)] - [SupportedBy("Chrome")] - public class GetResourceStateCommand - { - /// - /// Gets or sets TraceLogId - /// - public string TraceLogId { get; set; } - /// - /// Gets or sets ResourceId - /// - public string ResourceId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/GetResourceStateCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/GetResourceStateCommandResponse.cs deleted file mode 100644 index 796e7ab5..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/GetResourceStateCommandResponse.cs +++ /dev/null @@ -1,16 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - [CommandResponse(ProtocolName.Canvas.GetResourceState)] - [SupportedBy("Chrome")] - public class GetResourceStateCommandResponse - { - /// - /// Gets or sets ResourceState - /// - public ResourceState ResourceState { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/GetTraceLogCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/GetTraceLogCommand.cs deleted file mode 100644 index de963387..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/GetTraceLogCommand.cs +++ /dev/null @@ -1,26 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - [Command(ProtocolName.Canvas.GetTraceLog)] - [SupportedBy("Chrome")] - public class GetTraceLogCommand - { - /// - /// Gets or sets TraceLogId - /// - public string TraceLogId { get; set; } - /// - /// Gets or sets StartOffset - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? StartOffset { get; set; } - /// - /// Gets or sets MaxLength - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? MaxLength { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/GetTraceLogCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/GetTraceLogCommandResponse.cs deleted file mode 100644 index 4fa29157..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/GetTraceLogCommandResponse.cs +++ /dev/null @@ -1,16 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - [CommandResponse(ProtocolName.Canvas.GetTraceLog)] - [SupportedBy("Chrome")] - public class GetTraceLogCommandResponse - { - /// - /// Gets or sets TraceLog - /// - public TraceLog TraceLog { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/HasUninstrumentedCanvasesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/HasUninstrumentedCanvasesCommand.cs deleted file mode 100644 index 2ac3ffe7..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/HasUninstrumentedCanvasesCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Checks if there is any uninstrumented canvas in the inspected page. - /// - [Command(ProtocolName.Canvas.HasUninstrumentedCanvases)] - [SupportedBy("Chrome")] - public class HasUninstrumentedCanvasesCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/HasUninstrumentedCanvasesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/HasUninstrumentedCanvasesCommandResponse.cs deleted file mode 100644 index dd24ea0c..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/HasUninstrumentedCanvasesCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Checks if there is any uninstrumented canvas in the inspected page. - /// - [CommandResponse(ProtocolName.Canvas.HasUninstrumentedCanvases)] - [SupportedBy("Chrome")] - public class HasUninstrumentedCanvasesCommandResponse - { - /// - /// Gets or sets Result - /// - public bool Result { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/ReplayTraceLogCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/ReplayTraceLogCommand.cs deleted file mode 100644 index 34fc5703..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/ReplayTraceLogCommand.cs +++ /dev/null @@ -1,20 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - [Command(ProtocolName.Canvas.ReplayTraceLog)] - [SupportedBy("Chrome")] - public class ReplayTraceLogCommand - { - /// - /// Gets or sets TraceLogId - /// - public string TraceLogId { get; set; } - /// - /// Gets or sets Last call index in the trace log to replay (zero based). - /// - public long StepNo { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/ReplayTraceLogCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/ReplayTraceLogCommandResponse.cs deleted file mode 100644 index 16ec6f5b..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/ReplayTraceLogCommandResponse.cs +++ /dev/null @@ -1,20 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - [CommandResponse(ProtocolName.Canvas.ReplayTraceLog)] - [SupportedBy("Chrome")] - public class ReplayTraceLogCommandResponse - { - /// - /// Gets or sets ResourceState - /// - public ResourceState ResourceState { get; set; } - /// - /// Gets or sets Replay time (in milliseconds). - /// - public double ReplayTime { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/ResourceState.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/ResourceState.cs deleted file mode 100644 index 37d45894..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/ResourceState.cs +++ /dev/null @@ -1,32 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Resource state. - /// - [SupportedBy("Chrome")] - public class ResourceState - { - /// - /// Gets or sets Id - /// - public string Id { get; set; } - /// - /// Gets or sets TraceLogId - /// - public string TraceLogId { get; set; } - /// - /// Gets or sets Describes current Resource state. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public ResourceStateDescriptor[] Descriptors { get; set; } - /// - /// Gets or sets Screenshot image data URL. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string ImageURL { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/ResourceStateDescriptor.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/ResourceStateDescriptor.cs deleted file mode 100644 index 7b9ca5c0..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/ResourceStateDescriptor.cs +++ /dev/null @@ -1,38 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Resource state descriptor. - /// - [SupportedBy("Chrome")] - public class ResourceStateDescriptor - { - /// - /// Gets or sets State name. - /// - public string Name { get; set; } - /// - /// Gets or sets String representation of the enum value, if name stands for an enum. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string EnumValueForName { get; set; } - /// - /// Gets or sets The value associated with the particular state. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public CallArgument Value { get; set; } - /// - /// Gets or sets Array of values associated with the particular state. Either value or values will be specified. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public ResourceStateDescriptor[] Values { get; set; } - /// - /// Gets or sets True iff the given values items stand for an array rather than a list of grouped states. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? IsArray { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/StartCapturingCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/StartCapturingCommand.cs deleted file mode 100644 index f898829e..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/StartCapturingCommand.cs +++ /dev/null @@ -1,20 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Starts (or continues) consecutive canvas frames capturing. The capturing is stopped by the corresponding stopCapturing command. - /// - [Command(ProtocolName.Canvas.StartCapturing)] - [SupportedBy("Chrome")] - public class StartCapturingCommand - { - /// - /// Gets or sets Identifier of the frame containing document whose canvases are to be captured. If omitted, main frame is assumed. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string FrameId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/StartCapturingCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/StartCapturingCommandResponse.cs deleted file mode 100644 index 3cab6c72..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/StartCapturingCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Starts (or continues) consecutive canvas frames capturing. The capturing is stopped by the corresponding stopCapturing command. - /// - [CommandResponse(ProtocolName.Canvas.StartCapturing)] - [SupportedBy("Chrome")] - public class StartCapturingCommandResponse - { - /// - /// Gets or sets Identifier of the trace log containing captured canvas calls. - /// - public string TraceLogId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/StopCapturingCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/StopCapturingCommand.cs deleted file mode 100644 index 0dcb94a4..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/StopCapturingCommand.cs +++ /dev/null @@ -1,16 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - [Command(ProtocolName.Canvas.StopCapturing)] - [SupportedBy("Chrome")] - public class StopCapturingCommand - { - /// - /// Gets or sets TraceLogId - /// - public string TraceLogId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/StopCapturingCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/StopCapturingCommandResponse.cs deleted file mode 100644 index 22f72e07..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/StopCapturingCommandResponse.cs +++ /dev/null @@ -1,12 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - [CommandResponse(ProtocolName.Canvas.StopCapturing)] - [SupportedBy("Chrome")] - public class StopCapturingCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/TraceLog.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/TraceLog.cs deleted file mode 100644 index 0ac0af4b..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/TraceLog.cs +++ /dev/null @@ -1,38 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// - /// - [SupportedBy("Chrome")] - public class TraceLog - { - /// - /// Gets or sets Id - /// - public string Id { get; set; } - /// - /// Gets or sets Calls - /// - public Call[] Calls { get; set; } - /// - /// Gets or sets Contexts - /// - public CallArgument[] Contexts { get; set; } - /// - /// Gets or sets StartOffset - /// - public long StartOffset { get; set; } - /// - /// Gets or sets Alive - /// - public bool Alive { get; set; } - /// - /// Gets or sets TotalAvailableCalls - /// - public double TotalAvailableCalls { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/TraceLogsRemovedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Canvas/TraceLogsRemovedEvent.cs deleted file mode 100644 index be7e7273..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/TraceLogsRemovedEvent.cs +++ /dev/null @@ -1,23 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas -{ - /// - /// Fired when a set of trace logs were removed from the backend. If no parameters are given, all trace logs were removed. - /// - [Event(ProtocolName.Canvas.TraceLogsRemoved)] - [SupportedBy("Chrome")] - public class TraceLogsRemovedEvent - { - /// - /// Gets or sets If given, trace logs from the given frame were removed. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string FrameId { get; set; } - /// - /// Gets or sets If given, trace log with the given ID was removed. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string TraceLogId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Console/AsyncStackTrace.cs b/source/ChromeDevTools/Protocol/Chrome/Console/AsyncStackTrace.cs deleted file mode 100644 index 6bc8dbcf..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Console/AsyncStackTrace.cs +++ /dev/null @@ -1,28 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Console -{ - /// - /// Asynchronous JavaScript call stack. - /// - [SupportedBy("Chrome")] - public class AsyncStackTrace - { - /// - /// Gets or sets Call frames of the stack trace. - /// - public CallFrame[] CallFrames { get; set; } - /// - /// Gets or sets String label of this stack trace. For async traces this may be a name of the function that initiated the async call. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Description { get; set; } - /// - /// Gets or sets Next asynchronous stack trace, if any. - /// - [JsonProperty("asyncStackTrace")] - public AsyncStackTrace AsyncStackTraceChild { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Console/ClearMessagesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Console/ClearMessagesCommand.cs index 400f9eb5..d123bc57 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Console/ClearMessagesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Console/ClearMessagesCommand.cs @@ -5,11 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Console { /// - /// Clears console messages collected in the browser. + /// Does nothing. /// [Command(ProtocolName.Console.ClearMessages)] [SupportedBy("Chrome")] - public class ClearMessagesCommand + public class ClearMessagesCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Console/ClearMessagesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Console/ClearMessagesCommandResponse.cs index 95a2094d..f9d5a628 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Console/ClearMessagesCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Console/ClearMessagesCommandResponse.cs @@ -5,7 +5,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Console { /// - /// Clears console messages collected in the browser. + /// Does nothing. /// [CommandResponse(ProtocolName.Console.ClearMessages)] [SupportedBy("Chrome")] diff --git a/source/ChromeDevTools/Protocol/Chrome/Console/ConsoleMessage.cs b/source/ChromeDevTools/Protocol/Chrome/Console/ConsoleMessage.cs index 4ea75481..659878df 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Console/ConsoleMessage.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Console/ConsoleMessage.cs @@ -23,63 +23,19 @@ public class ConsoleMessage /// public string Text { get; set; } /// - /// Gets or sets Console message type. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Type { get; set; } - /// - /// Gets or sets Script ID of the message origin. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string ScriptId { get; set; } - /// /// Gets or sets URL of the message origin. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string Url { get; set; } /// - /// Gets or sets Line number in the resource that generated this message. + /// Gets or sets Line number in the resource that generated this message (1-based). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public long? Line { get; set; } /// - /// Gets or sets Column number in the resource that generated this message. + /// Gets or sets Column number in the resource that generated this message (1-based). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public long? Column { get; set; } - /// - /// Gets or sets Repeat count for repeated messages. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? RepeatCount { get; set; } - /// - /// Gets or sets Message parameters in case of the formatted message. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Runtime.RemoteObject[] Parameters { get; set; } - /// - /// Gets or sets JavaScript stack trace for assertions and error messages. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public CallFrame[] StackTrace { get; set; } - /// - /// Gets or sets Asynchronous JavaScript stack trace that preceded this message, if available. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public AsyncStackTrace AsyncStackTrace { get; set; } - /// - /// Gets or sets Identifier of the network request associated with this message. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string NetworkRequestId { get; set; } - /// - /// Gets or sets Timestamp, when this message was fired. - /// - public double Timestamp { get; set; } - /// - /// Gets or sets Identifier of the context where this message was created - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? ExecutionContextId { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Console/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Console/DisableCommand.cs index 24ebcf98..88056d92 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Console/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Console/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Console /// [Command(ProtocolName.Console.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Console/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Console/EnableCommand.cs index 7e98dd7b..b88c9140 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Console/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Console/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Console /// [Command(ProtocolName.Console.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Console/MessageRepeatCountUpdatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Console/MessageRepeatCountUpdatedEvent.cs deleted file mode 100644 index e608bce2..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Console/MessageRepeatCountUpdatedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Console -{ - /// - /// Is not issued. Will be gone in the future versions of the protocol. - /// - [Event(ProtocolName.Console.MessageRepeatCountUpdated)] - [SupportedBy("Chrome")] - public class MessageRepeatCountUpdatedEvent - { - /// - /// Gets or sets New repeat count value. - /// - public long Count { get; set; } - /// - /// Gets or sets Timestamp of most recent message in batch. - /// - public double Timestamp { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Console/MessagesClearedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Console/MessagesClearedEvent.cs deleted file mode 100644 index 31166480..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Console/MessagesClearedEvent.cs +++ /dev/null @@ -1,13 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Console -{ - /// - /// Issued when console is cleared. This happens either upon clearMessages command or after page navigation. - /// - [Event(ProtocolName.Console.MessagesCleared)] - [SupportedBy("Chrome")] - public class MessagesClearedEvent - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/CollectClassNamesFromSubtreeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/CollectClassNamesFromSubtreeCommand.cs new file mode 100644 index 00000000..0e6767fd --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/CollectClassNamesFromSubtreeCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +{ + /// + /// Collects class names for the node with given id and all of it's child nodes. + /// + [Command(ProtocolName.DOM.CollectClassNamesFromSubtree)] + [SupportedBy("Chrome")] + public class CollectClassNamesFromSubtreeCommand: ICommand + { + /// + /// Gets or sets Id of the node to collect class names. + /// + public long NodeId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/CollectClassNamesFromSubtreeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/CollectClassNamesFromSubtreeCommandResponse.cs new file mode 100644 index 00000000..4158d5f1 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/CollectClassNamesFromSubtreeCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +{ + /// + /// Collects class names for the node with given id and all of it's child nodes. + /// + [CommandResponse(ProtocolName.DOM.CollectClassNamesFromSubtree)] + [SupportedBy("Chrome")] + public class CollectClassNamesFromSubtreeCommandResponse + { + /// + /// Gets or sets Class name list. + /// + public string[] ClassNames { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/CopyToCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/CopyToCommand.cs index d9857fdc..1dd4acb7 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/CopyToCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/CopyToCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.CopyTo)] [SupportedBy("Chrome")] - public class CopyToCommand + public class CopyToCommand: ICommand { /// /// Gets or sets Id of the node to copy. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/DisableCommand.cs index 82931bd1..fa4b32cf 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/DiscardSearchResultsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/DiscardSearchResultsCommand.cs index 6283ea64..33268db9 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/DiscardSearchResultsCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/DiscardSearchResultsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.DiscardSearchResults)] [SupportedBy("Chrome")] - public class DiscardSearchResultsCommand + public class DiscardSearchResultsCommand: ICommand { /// /// Gets or sets Unique search session identifier. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/EnableCommand.cs index 9334d2b9..1ba5d183 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/EventListener.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/EventListener.cs deleted file mode 100644 index 83ddbf52..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/EventListener.cs +++ /dev/null @@ -1,39 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM -{ - /// - /// DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type. - /// - [SupportedBy("Chrome")] - public class EventListener - { - /// - /// Gets or sets EventListener's type. - /// - public string Type { get; set; } - /// - /// Gets or sets EventListener's useCapture. - /// - public bool UseCapture { get; set; } - /// - /// Gets or sets EventListener's isAttribute. - /// - public bool IsAttribute { get; set; } - /// - /// Gets or sets Target DOMNode id. - /// - public long NodeId { get; set; } - /// - /// Gets or sets Handler code location. - /// - public Debugger.Location Location { get; set; } - /// - /// Gets or sets Event handler function value. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Runtime.RemoteObject Handler { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/FocusCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/FocusCommand.cs index ef3e41ab..cb2c6db8 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/FocusCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/FocusCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.Focus)] [SupportedBy("Chrome")] - public class FocusCommand + public class FocusCommand: ICommand { /// /// Gets or sets Id of the node to focus. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetAttributesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/GetAttributesCommand.cs index 214beab7..5a5a3d06 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/GetAttributesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/GetAttributesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.GetAttributes)] [SupportedBy("Chrome")] - public class GetAttributesCommand + public class GetAttributesCommand: ICommand { /// /// Gets or sets Id of the node to retrieve attibutes for. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetBoxModelCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/GetBoxModelCommand.cs index 9c2d8b81..684fcec5 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/GetBoxModelCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/GetBoxModelCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.GetBoxModel)] [SupportedBy("Chrome")] - public class GetBoxModelCommand + public class GetBoxModelCommand: ICommand { /// /// Gets or sets Id of the node to get box model for. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetDocumentCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/GetDocumentCommand.cs index f5481576..e1a7d097 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/GetDocumentCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/GetDocumentCommand.cs @@ -5,11 +5,21 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM { /// - /// Returns the root DOM node to the caller. + /// Returns the root DOM node (and optionally the subtree) to the caller. /// [Command(ProtocolName.DOM.GetDocument)] [SupportedBy("Chrome")] - public class GetDocumentCommand + public class GetDocumentCommand: ICommand { + /// + /// Gets or sets The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Depth { get; set; } + /// + /// Gets or sets Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? Pierce { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetDocumentCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/GetDocumentCommandResponse.cs index bf91bddb..900ef727 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/GetDocumentCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/GetDocumentCommandResponse.cs @@ -5,7 +5,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM { /// - /// Returns the root DOM node to the caller. + /// Returns the root DOM node (and optionally the subtree) to the caller. /// [CommandResponse(ProtocolName.DOM.GetDocument)] [SupportedBy("Chrome")] diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetEventListenersForNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/GetEventListenersForNodeCommand.cs deleted file mode 100644 index b717a8aa..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/GetEventListenersForNodeCommand.cs +++ /dev/null @@ -1,24 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM -{ - /// - /// Returns event listeners relevant to the node. - /// - [Command(ProtocolName.DOM.GetEventListenersForNode)] - [SupportedBy("Chrome")] - public class GetEventListenersForNodeCommand - { - /// - /// Gets or sets Id of the node to get listeners for. - /// - public long NodeId { get; set; } - /// - /// Gets or sets Symbolic group name for handler value. Handler value is not returned without this parameter specified. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string ObjectGroup { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetEventListenersForNodeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/GetEventListenersForNodeCommandResponse.cs deleted file mode 100644 index 8540f948..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/GetEventListenersForNodeCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM -{ - /// - /// Returns event listeners relevant to the node. - /// - [CommandResponse(ProtocolName.DOM.GetEventListenersForNode)] - [SupportedBy("Chrome")] - public class GetEventListenersForNodeCommandResponse - { - /// - /// Gets or sets Array of relevant listeners. - /// - public EventListener[] Listeners { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetFlattenedDocumentCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/GetFlattenedDocumentCommand.cs new file mode 100644 index 00000000..f8d62eee --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/GetFlattenedDocumentCommand.cs @@ -0,0 +1,25 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +{ + /// + /// Returns the root DOM node (and optionally the subtree) to the caller. + /// + [Command(ProtocolName.DOM.GetFlattenedDocument)] + [SupportedBy("Chrome")] + public class GetFlattenedDocumentCommand: ICommand + { + /// + /// Gets or sets The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Depth { get; set; } + /// + /// Gets or sets Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? Pierce { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetFlattenedDocumentCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/GetFlattenedDocumentCommandResponse.cs new file mode 100644 index 00000000..7fc36610 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/GetFlattenedDocumentCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +{ + /// + /// Returns the root DOM node (and optionally the subtree) to the caller. + /// + [CommandResponse(ProtocolName.DOM.GetFlattenedDocument)] + [SupportedBy("Chrome")] + public class GetFlattenedDocumentCommandResponse + { + /// + /// Gets or sets Resulting node. + /// + public Node[] Nodes { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetNodeForLocationCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/GetNodeForLocationCommand.cs index 7f9b51dd..37202b7d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/GetNodeForLocationCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/GetNodeForLocationCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.GetNodeForLocation)] [SupportedBy("Chrome")] - public class GetNodeForLocationCommand + public class GetNodeForLocationCommand: ICommand { /// /// Gets or sets X coordinate. @@ -19,5 +19,10 @@ public class GetNodeForLocationCommand /// Gets or sets Y coordinate. /// public long Y { get; set; } + /// + /// Gets or sets False to skip to the nearest non-UA shadow root ancestor (default: false). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? IncludeUserAgentShadowDOM { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetOuterHTMLCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/GetOuterHTMLCommand.cs index 279c92b5..d8229db4 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/GetOuterHTMLCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/GetOuterHTMLCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.GetOuterHTML)] [SupportedBy("Chrome")] - public class GetOuterHTMLCommand + public class GetOuterHTMLCommand: ICommand { /// /// Gets or sets Id of the node to get markup for. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetRelayoutBoundaryCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/GetRelayoutBoundaryCommand.cs index 4a8da01f..f092478b 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/GetRelayoutBoundaryCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/GetRelayoutBoundaryCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.GetRelayoutBoundary)] [SupportedBy("Chrome")] - public class GetRelayoutBoundaryCommand + public class GetRelayoutBoundaryCommand: ICommand { /// /// Gets or sets Id of the node. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetSearchResultsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/GetSearchResultsCommand.cs index 984d4933..38110c7e 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/GetSearchResultsCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/GetSearchResultsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.GetSearchResults)] [SupportedBy("Chrome")] - public class GetSearchResultsCommand + public class GetSearchResultsCommand: ICommand { /// /// Gets or sets Unique search session identifier. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/HideHighlightCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/HideHighlightCommand.cs index 2fd36b5f..0e668d70 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/HideHighlightCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/HideHighlightCommand.cs @@ -5,11 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM { /// - /// Hides DOM node highlight. + /// Hides any highlight. /// [Command(ProtocolName.DOM.HideHighlight)] [SupportedBy("Chrome")] - public class HideHighlightCommand + public class HideHighlightCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/HideHighlightCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/HideHighlightCommandResponse.cs index df2135a8..2a747849 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/HideHighlightCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/HideHighlightCommandResponse.cs @@ -5,7 +5,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM { /// - /// Hides DOM node highlight. + /// Hides any highlight. /// [CommandResponse(ProtocolName.DOM.HideHighlight)] [SupportedBy("Chrome")] diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightNodeCommand.cs index 36955d19..9c6087cd 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightNodeCommand.cs @@ -5,30 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM { /// - /// Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified. + /// Highlights DOM node. /// [Command(ProtocolName.DOM.HighlightNode)] [SupportedBy("Chrome")] - public class HighlightNodeCommand + public class HighlightNodeCommand: ICommand { - /// - /// Gets or sets A descriptor for the highlight appearance. - /// - public HighlightConfig HighlightConfig { get; set; } - /// - /// Gets or sets Identifier of the node to highlight. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? NodeId { get; set; } - /// - /// Gets or sets Identifier of the backend node to highlight. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? BackendNodeId { get; set; } - /// - /// Gets or sets JavaScript object id of the node to be highlighted. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string ObjectId { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightNodeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightNodeCommandResponse.cs index b136f0bc..88a1866c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightNodeCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightNodeCommandResponse.cs @@ -5,7 +5,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM { /// - /// Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified. + /// Highlights DOM node. /// [CommandResponse(ProtocolName.DOM.HighlightNode)] [SupportedBy("Chrome")] diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightRectCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightRectCommand.cs index da0a0c0d..dfb034ad 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightRectCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightRectCommand.cs @@ -5,37 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM { /// - /// Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. + /// Highlights given rectangle. /// [Command(ProtocolName.DOM.HighlightRect)] [SupportedBy("Chrome")] - public class HighlightRectCommand + public class HighlightRectCommand: ICommand { - /// - /// Gets or sets X coordinate - /// - public long X { get; set; } - /// - /// Gets or sets Y coordinate - /// - public long Y { get; set; } - /// - /// Gets or sets Rectangle width - /// - public long Width { get; set; } - /// - /// Gets or sets Rectangle height - /// - public long Height { get; set; } - /// - /// Gets or sets The highlight fill color (default: transparent). - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA Color { get; set; } - /// - /// Gets or sets The highlight outline color (default: transparent). - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA OutlineColor { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightRectCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightRectCommandResponse.cs index b377ab80..06a0d1be 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightRectCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightRectCommandResponse.cs @@ -5,7 +5,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM { /// - /// Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. + /// Highlights given rectangle. /// [CommandResponse(ProtocolName.DOM.HighlightRect)] [SupportedBy("Chrome")] diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/MarkUndoableStateCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/MarkUndoableStateCommand.cs index 4516516d..88dc65c2 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/MarkUndoableStateCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/MarkUndoableStateCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.MarkUndoableState)] [SupportedBy("Chrome")] - public class MarkUndoableStateCommand + public class MarkUndoableStateCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/MoveToCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/MoveToCommand.cs index 4f30c312..ba0d5691 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/MoveToCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/MoveToCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.MoveTo)] [SupportedBy("Chrome")] - public class MoveToCommand + public class MoveToCommand: ICommand { /// /// Gets or sets Id of the node to move. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/Node.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/Node.cs index 99bf6fb3..74fdff1a 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/Node.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/Node.cs @@ -15,6 +15,15 @@ public class Node /// public long NodeId { get; set; } /// + /// Gets or sets The id of the parent node if any. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? ParentId { get; set; } + /// + /// Gets or sets The BackendNodeId for this node. + /// + public long BackendNodeId { get; set; } + /// /// Gets or sets Node's nodeType. /// public long NodeType { get; set; } @@ -130,5 +139,10 @@ public class Node /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public BackendNode[] DistributedNodes { get; set; } + /// + /// Gets or sets Whether the node is SVG. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? IsSVG { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/PerformSearchCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/PerformSearchCommand.cs index 8462063c..15de5f7d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/PerformSearchCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/PerformSearchCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.PerformSearch)] [SupportedBy("Chrome")] - public class PerformSearchCommand + public class PerformSearchCommand: ICommand { /// /// Gets or sets Plain text or query selector or XPath search query. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/PushNodeByPathToFrontendCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/PushNodeByPathToFrontendCommand.cs index 4c18a672..83091b39 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/PushNodeByPathToFrontendCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/PushNodeByPathToFrontendCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.PushNodeByPathToFrontend)] [SupportedBy("Chrome")] - public class PushNodeByPathToFrontendCommand + public class PushNodeByPathToFrontendCommand: ICommand { /// /// Gets or sets Path to node in the proprietary format. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/PushNodesByBackendIdsToFrontendCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/PushNodesByBackendIdsToFrontendCommand.cs index 4fa0a09f..bc65bf57 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/PushNodesByBackendIdsToFrontendCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/PushNodesByBackendIdsToFrontendCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.PushNodesByBackendIdsToFrontend)] [SupportedBy("Chrome")] - public class PushNodesByBackendIdsToFrontendCommand + public class PushNodesByBackendIdsToFrontendCommand: ICommand { /// /// Gets or sets The array of backend node ids. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/QuerySelectorAllCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/QuerySelectorAllCommand.cs index 3b4bb84b..ae75d2c7 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/QuerySelectorAllCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/QuerySelectorAllCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.QuerySelectorAll)] [SupportedBy("Chrome")] - public class QuerySelectorAllCommand + public class QuerySelectorAllCommand: ICommand { /// /// Gets or sets Id of the node to query upon. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/QuerySelectorCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/QuerySelectorCommand.cs index 83d94423..b98abf28 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/QuerySelectorCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/QuerySelectorCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.QuerySelector)] [SupportedBy("Chrome")] - public class QuerySelectorCommand + public class QuerySelectorCommand: ICommand { /// /// Gets or sets Id of the node to query upon. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/RedoCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/RedoCommand.cs index f4633d13..17ce3b36 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/RedoCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/RedoCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.Redo)] [SupportedBy("Chrome")] - public class RedoCommand + public class RedoCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/RemoveAttributeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/RemoveAttributeCommand.cs index e37d0f44..ddf20009 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/RemoveAttributeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/RemoveAttributeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.RemoveAttribute)] [SupportedBy("Chrome")] - public class RemoveAttributeCommand + public class RemoveAttributeCommand: ICommand { /// /// Gets or sets Id of the element to remove attribute from. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/RemoveNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/RemoveNodeCommand.cs index 1460cefb..91cd80ff 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/RemoveNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/RemoveNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.RemoveNode)] [SupportedBy("Chrome")] - public class RemoveNodeCommand + public class RemoveNodeCommand: ICommand { /// /// Gets or sets Id of the node to remove. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/RequestChildNodesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/RequestChildNodesCommand.cs index 9d526fa4..828e2b0f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/RequestChildNodesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/RequestChildNodesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.RequestChildNodes)] [SupportedBy("Chrome")] - public class RequestChildNodesCommand + public class RequestChildNodesCommand: ICommand { /// /// Gets or sets Id of the node to get children for. @@ -20,5 +20,10 @@ public class RequestChildNodesCommand /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public long? Depth { get; set; } + /// + /// Gets or sets Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? Pierce { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/RequestNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/RequestNodeCommand.cs index ee26ae93..531cb66c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/RequestNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/RequestNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.RequestNode)] [SupportedBy("Chrome")] - public class RequestNodeCommand + public class RequestNodeCommand: ICommand { /// /// Gets or sets JavaScript object id to convert into node. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/ResolveNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/ResolveNodeCommand.cs index 830c5a04..4ef0a9d3 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/ResolveNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/ResolveNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.ResolveNode)] [SupportedBy("Chrome")] - public class ResolveNodeCommand + public class ResolveNodeCommand: ICommand { /// /// Gets or sets Id of the node to resolve. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/SetAttributeValueCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/SetAttributeValueCommand.cs index 2366dbd4..f8e4b24c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/SetAttributeValueCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/SetAttributeValueCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.SetAttributeValue)] [SupportedBy("Chrome")] - public class SetAttributeValueCommand + public class SetAttributeValueCommand: ICommand { /// /// Gets or sets Id of the element to set attribute for. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/SetAttributesAsTextCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/SetAttributesAsTextCommand.cs index ab329a03..e172e4af 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/SetAttributesAsTextCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/SetAttributesAsTextCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.SetAttributesAsText)] [SupportedBy("Chrome")] - public class SetAttributesAsTextCommand + public class SetAttributesAsTextCommand: ICommand { /// /// Gets or sets Id of the element to set attributes for. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/SetFileInputFilesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/SetFileInputFilesCommand.cs index d5d7b769..e704426c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/SetFileInputFilesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/SetFileInputFilesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.SetFileInputFiles)] [SupportedBy("Chrome")] - public class SetFileInputFilesCommand + public class SetFileInputFilesCommand: ICommand { /// /// Gets or sets Id of the file input node to set files for. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/SetInspectedNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/SetInspectedNodeCommand.cs index 382b261a..5a49586c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/SetInspectedNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/SetInspectedNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.SetInspectedNode)] [SupportedBy("Chrome")] - public class SetInspectedNodeCommand + public class SetInspectedNodeCommand: ICommand { /// /// Gets or sets DOM node id to be accessible by means of $x command line API. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/SetNodeNameCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/SetNodeNameCommand.cs index 71b11a41..3bd41828 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/SetNodeNameCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/SetNodeNameCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.SetNodeName)] [SupportedBy("Chrome")] - public class SetNodeNameCommand + public class SetNodeNameCommand: ICommand { /// /// Gets or sets Id of the node to set name for. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/SetNodeValueCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/SetNodeValueCommand.cs index f8440560..5bda04db 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/SetNodeValueCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/SetNodeValueCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.SetNodeValue)] [SupportedBy("Chrome")] - public class SetNodeValueCommand + public class SetNodeValueCommand: ICommand { /// /// Gets or sets Id of the node to set value for. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/SetOuterHTMLCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/SetOuterHTMLCommand.cs index 1c1fd49b..42027609 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/SetOuterHTMLCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/SetOuterHTMLCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.SetOuterHTML)] [SupportedBy("Chrome")] - public class SetOuterHTMLCommand + public class SetOuterHTMLCommand: ICommand { /// /// Gets or sets Id of the node to set markup for. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/ShadowRootType.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/ShadowRootType.cs index 3746acf2..87cc8819 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/ShadowRootType.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/ShadowRootType.cs @@ -13,6 +13,7 @@ public enum ShadowRootType { [EnumMember(Value = "user-agent")] User_agent, - Author, + Open, + Closed, } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/UndoCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOM/UndoCommand.cs index 0694c1e7..e030e1aa 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/UndoCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOM/UndoCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM /// [Command(ProtocolName.DOM.Undo)] [SupportedBy("Chrome")] - public class UndoCommand + public class UndoCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/EventListener.cs b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/EventListener.cs new file mode 100644 index 00000000..3070f1af --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/EventListener.cs @@ -0,0 +1,57 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger +{ + /// + /// Object event listener. + /// + [SupportedBy("Chrome")] + public class EventListener + { + /// + /// Gets or sets EventListener's type. + /// + public string Type { get; set; } + /// + /// Gets or sets EventListener's useCapture. + /// + public bool UseCapture { get; set; } + /// + /// Gets or sets EventListener's passive flag. + /// + public bool Passive { get; set; } + /// + /// Gets or sets EventListener's once flag. + /// + public bool Once { get; set; } + /// + /// Gets or sets Script id of the handler code. + /// + public string ScriptId { get; set; } + /// + /// Gets or sets Line number in the script (0-based). + /// + public long LineNumber { get; set; } + /// + /// Gets or sets Column number in the script (0-based). + /// + public long ColumnNumber { get; set; } + /// + /// Gets or sets Event handler function value. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public Runtime.RemoteObject Handler { get; set; } + /// + /// Gets or sets Event original handler function value. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public Runtime.RemoteObject OriginalHandler { get; set; } + /// + /// Gets or sets Node the listener is added to (if any). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? BackendNodeId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/GetEventListenersCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/GetEventListenersCommand.cs new file mode 100644 index 00000000..bc1e9bb3 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/GetEventListenersCommand.cs @@ -0,0 +1,29 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger +{ + /// + /// Returns event listeners of the given object. + /// + [Command(ProtocolName.DOMDebugger.GetEventListeners)] + [SupportedBy("Chrome")] + public class GetEventListenersCommand: ICommand + { + /// + /// Gets or sets Identifier of the object to return listeners for. + /// + public string ObjectId { get; set; } + /// + /// Gets or sets The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Depth { get; set; } + /// + /// Gets or sets Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Reports listeners for all contexts if pierce is enabled. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? Pierce { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/GetEventListenersCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/GetEventListenersCommandResponse.cs similarity index 75% rename from source/ChromeDevTools/Protocol/Chrome/Runtime/GetEventListenersCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/DOMDebugger/GetEventListenersCommandResponse.cs index 05ef85de..fb04af87 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/GetEventListenersCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/GetEventListenersCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger { /// /// Returns event listeners of the given object. /// - [CommandResponse(ProtocolName.Runtime.GetEventListeners)] + [CommandResponse(ProtocolName.DOMDebugger.GetEventListeners)] [SupportedBy("Chrome")] public class GetEventListenersCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveDOMBreakpointCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveDOMBreakpointCommand.cs index 3e974126..d9fb68cc 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveDOMBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveDOMBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger /// [Command(ProtocolName.DOMDebugger.RemoveDOMBreakpoint)] [SupportedBy("Chrome")] - public class RemoveDOMBreakpointCommand + public class RemoveDOMBreakpointCommand: ICommand { /// /// Gets or sets Identifier of the node to remove breakpoint from. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveEventListenerBreakpointCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveEventListenerBreakpointCommand.cs index 9007ca53..66569c1c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveEventListenerBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveEventListenerBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger /// [Command(ProtocolName.DOMDebugger.RemoveEventListenerBreakpoint)] [SupportedBy("Chrome")] - public class RemoveEventListenerBreakpointCommand + public class RemoveEventListenerBreakpointCommand: ICommand { /// /// Gets or sets Event name. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveInstrumentationBreakpointCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveInstrumentationBreakpointCommand.cs index 170fab42..0961571d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveInstrumentationBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveInstrumentationBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger /// [Command(ProtocolName.DOMDebugger.RemoveInstrumentationBreakpoint)] [SupportedBy("Chrome")] - public class RemoveInstrumentationBreakpointCommand + public class RemoveInstrumentationBreakpointCommand: ICommand { /// /// Gets or sets Instrumentation name to stop on. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveXHRBreakpointCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveXHRBreakpointCommand.cs index 6708f25c..c44d4c2b 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveXHRBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/RemoveXHRBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger /// [Command(ProtocolName.DOMDebugger.RemoveXHRBreakpoint)] [SupportedBy("Chrome")] - public class RemoveXHRBreakpointCommand + public class RemoveXHRBreakpointCommand: ICommand { /// /// Gets or sets Resource URL substring. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetDOMBreakpointCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetDOMBreakpointCommand.cs index 7bc2ede3..96108d3d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetDOMBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetDOMBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger /// [Command(ProtocolName.DOMDebugger.SetDOMBreakpoint)] [SupportedBy("Chrome")] - public class SetDOMBreakpointCommand + public class SetDOMBreakpointCommand: ICommand { /// /// Gets or sets Identifier of the node to set breakpoint on. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetEventListenerBreakpointCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetEventListenerBreakpointCommand.cs index 13e2f386..8950005c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetEventListenerBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetEventListenerBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger /// [Command(ProtocolName.DOMDebugger.SetEventListenerBreakpoint)] [SupportedBy("Chrome")] - public class SetEventListenerBreakpointCommand + public class SetEventListenerBreakpointCommand: ICommand { /// /// Gets or sets DOM Event name to stop on (any DOM event will do). diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetInstrumentationBreakpointCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetInstrumentationBreakpointCommand.cs index 985ca8d3..f68cffb3 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetInstrumentationBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetInstrumentationBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger /// [Command(ProtocolName.DOMDebugger.SetInstrumentationBreakpoint)] [SupportedBy("Chrome")] - public class SetInstrumentationBreakpointCommand + public class SetInstrumentationBreakpointCommand: ICommand { /// /// Gets or sets Instrumentation name to stop on. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetXHRBreakpointCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetXHRBreakpointCommand.cs index f543fbd5..aff208c8 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetXHRBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMDebugger/SetXHRBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger /// [Command(ProtocolName.DOMDebugger.SetXHRBreakpoint)] [SupportedBy("Chrome")] - public class SetXHRBreakpointCommand + public class SetXHRBreakpointCommand: ICommand { /// /// Gets or sets Resource URL substring. All XHRs having this substring in the URL will get stopped upon. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMStorage/ClearCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/ClearCommand.cs new file mode 100644 index 00000000..b1b327c1 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/ClearCommand.cs @@ -0,0 +1,16 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMStorage +{ + [Command(ProtocolName.DOMStorage.Clear)] + [SupportedBy("Chrome")] + public class ClearCommand: ICommand + { + /// + /// Gets or sets StorageId + /// + public StorageId StorageId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMStorage/ClearCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/ClearCommandResponse.cs new file mode 100644 index 00000000..50c70172 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/ClearCommandResponse.cs @@ -0,0 +1,12 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMStorage +{ + [CommandResponse(ProtocolName.DOMStorage.Clear)] + [SupportedBy("Chrome")] + public class ClearCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMStorage/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/DisableCommand.cs index 9ba51da7..1add3ce0 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMStorage/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMStorage /// [Command(ProtocolName.DOMStorage.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMStorage/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/EnableCommand.cs index 4a4a2c23..cf1732d2 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMStorage/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMStorage /// [Command(ProtocolName.DOMStorage.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMStorage/GetDOMStorageItemsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/GetDOMStorageItemsCommand.cs index 15e30214..606e8217 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMStorage/GetDOMStorageItemsCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/GetDOMStorageItemsCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMStorage { [Command(ProtocolName.DOMStorage.GetDOMStorageItems)] [SupportedBy("Chrome")] - public class GetDOMStorageItemsCommand + public class GetDOMStorageItemsCommand: ICommand { /// /// Gets or sets StorageId diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMStorage/RemoveDOMStorageItemCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/RemoveDOMStorageItemCommand.cs index 21a1f4be..a39bfd09 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMStorage/RemoveDOMStorageItemCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/RemoveDOMStorageItemCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMStorage { [Command(ProtocolName.DOMStorage.RemoveDOMStorageItem)] [SupportedBy("Chrome")] - public class RemoveDOMStorageItemCommand + public class RemoveDOMStorageItemCommand: ICommand { /// /// Gets or sets StorageId diff --git a/source/ChromeDevTools/Protocol/Chrome/DOMStorage/SetDOMStorageItemCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/SetDOMStorageItemCommand.cs index 0ab17981..ebdb11fa 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOMStorage/SetDOMStorageItemCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DOMStorage/SetDOMStorageItemCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMStorage { [Command(ProtocolName.DOMStorage.SetDOMStorageItem)] [SupportedBy("Chrome")] - public class SetDOMStorageItemCommand + public class SetDOMStorageItemCommand: ICommand { /// /// Gets or sets StorageId diff --git a/source/ChromeDevTools/Protocol/Chrome/Database/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Database/DisableCommand.cs index 8d1cea2e..e9cd9fba 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Database/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Database/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Database /// [Command(ProtocolName.Database.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Database/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Database/EnableCommand.cs index 01c7d1bd..5d3352ee 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Database/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Database/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Database /// [Command(ProtocolName.Database.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Database/ExecuteSQLCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Database/ExecuteSQLCommand.cs index 327d6c45..0350d8ef 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Database/ExecuteSQLCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Database/ExecuteSQLCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Database { [Command(ProtocolName.Database.ExecuteSQL)] [SupportedBy("Chrome")] - public class ExecuteSQLCommand + public class ExecuteSQLCommand: ICommand { /// /// Gets or sets DatabaseId diff --git a/source/ChromeDevTools/Protocol/Chrome/Database/GetDatabaseTableNamesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Database/GetDatabaseTableNamesCommand.cs index 37c8bd7e..f9049ee3 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Database/GetDatabaseTableNamesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Database/GetDatabaseTableNamesCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Database { [Command(ProtocolName.Database.GetDatabaseTableNames)] [SupportedBy("Chrome")] - public class GetDatabaseTableNamesCommand + public class GetDatabaseTableNamesCommand: ICommand { /// /// Gets or sets DatabaseId diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/AsyncOperation.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/AsyncOperation.cs deleted file mode 100644 index 95db90de..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/AsyncOperation.cs +++ /dev/null @@ -1,32 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Information about the async operation. - /// - [SupportedBy("Chrome")] - public class AsyncOperation - { - /// - /// Gets or sets Unique id of the async operation. - /// - public long Id { get; set; } - /// - /// Gets or sets String description of the async operation. - /// - public string Description { get; set; } - /// - /// Gets or sets Stack trace where async operation was scheduled. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Console.CallFrame[] StackTrace { get; set; } - /// - /// Gets or sets Asynchronous stack trace where async operation was scheduled, if available. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Console.AsyncStackTrace AsyncStackTrace { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/AsyncOperationCompletedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/AsyncOperationCompletedEvent.cs deleted file mode 100644 index 5c4c61d7..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/AsyncOperationCompletedEvent.cs +++ /dev/null @@ -1,17 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Fired when an async operation is completed (while in a debugger stepping session). - /// - [Event(ProtocolName.Debugger.AsyncOperationCompleted)] - [SupportedBy("Chrome")] - public class AsyncOperationCompletedEvent - { - /// - /// Gets or sets ID of the async operation that was completed. - /// - public long Id { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/AsyncOperationStartedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/AsyncOperationStartedEvent.cs deleted file mode 100644 index d108ab4d..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/AsyncOperationStartedEvent.cs +++ /dev/null @@ -1,17 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Fired when an async operation is scheduled (while in a debugger stepping session). - /// - [Event(ProtocolName.Debugger.AsyncOperationStarted)] - [SupportedBy("Chrome")] - public class AsyncOperationStartedEvent - { - /// - /// Gets or sets Information about the async operation. - /// - public AsyncOperation Operation { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/FunctionDetails.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/BreakLocation.cs similarity index 51% rename from source/ChromeDevTools/Protocol/Chrome/Debugger/FunctionDetails.cs rename to source/ChromeDevTools/Protocol/Chrome/Debugger/BreakLocation.cs index eb6b876e..73f41312 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/FunctionDetails.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/BreakLocation.cs @@ -5,28 +5,28 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger { /// - /// Information about the function. + /// /// [SupportedBy("Chrome")] - public class FunctionDetails + public class BreakLocation { /// - /// Gets or sets Location of the function, none for native functions. + /// Gets or sets Script identifier as reported in the Debugger.scriptParsed. /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Location Location { get; set; } + public string ScriptId { get; set; } /// - /// Gets or sets Name of the function. + /// Gets or sets Line number in the script (0-based). /// - public string FunctionName { get; set; } + public long LineNumber { get; set; } /// - /// Gets or sets Whether this is a generator function. + /// Gets or sets Column number in the script (0-based). /// - public bool IsGenerator { get; set; } + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? ColumnNumber { get; set; } /// - /// Gets or sets Scope chain for this closure. + /// Gets or sets Type /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Scope[] ScopeChain { get; set; } + public string Type { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/CanSetScriptSourceCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/CanSetScriptSourceCommand.cs deleted file mode 100644 index 4def6f2d..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/CanSetScriptSourceCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Always returns true. - /// - [Command(ProtocolName.Debugger.CanSetScriptSource)] - [SupportedBy("Chrome")] - public class CanSetScriptSourceCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/CanSetScriptSourceCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/CanSetScriptSourceCommandResponse.cs deleted file mode 100644 index 2c273136..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/CanSetScriptSourceCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Always returns true. - /// - [CommandResponse(ProtocolName.Debugger.CanSetScriptSource)] - [SupportedBy("Chrome")] - public class CanSetScriptSourceCommandResponse - { - /// - /// Gets or sets True if setScriptSource is supported. - /// - public bool Result { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/CollectionEntry.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/CollectionEntry.cs deleted file mode 100644 index 85975e32..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/CollectionEntry.cs +++ /dev/null @@ -1,23 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Collection entry. - /// - [SupportedBy("Chrome")] - public class CollectionEntry - { - /// - /// Gets or sets Entry key of a map-like collection, otherwise not provided. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Runtime.RemoteObject Key { get; set; } - /// - /// Gets or sets Entry value. - /// - public Runtime.RemoteObject Value { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/ContinueToLocationCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/ContinueToLocationCommand.cs index 642c31f4..fd011cea 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/ContinueToLocationCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/ContinueToLocationCommand.cs @@ -9,16 +9,16 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.ContinueToLocation)] [SupportedBy("Chrome")] - public class ContinueToLocationCommand + public class ContinueToLocationCommand: ICommand { /// /// Gets or sets Location to continue to. /// public Location Location { get; set; } /// - /// Gets or sets Allows breakpoints at the intemediate positions inside statements. + /// Gets or sets TargetCallFrames /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? InterstatementLocation { get; set; } + public string TargetCallFrames { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/DisableCommand.cs index be4789a5..3c4f1dae 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/DisablePromiseTrackerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/DisablePromiseTrackerCommand.cs deleted file mode 100644 index 850f3812..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/DisablePromiseTrackerCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Disables promise tracking. - /// - [Command(ProtocolName.Debugger.DisablePromiseTracker)] - [SupportedBy("Chrome")] - public class DisablePromiseTrackerCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/DisablePromiseTrackerCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/DisablePromiseTrackerCommandResponse.cs deleted file mode 100644 index f3270b58..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/DisablePromiseTrackerCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Disables promise tracking. - /// - [CommandResponse(ProtocolName.Debugger.DisablePromiseTracker)] - [SupportedBy("Chrome")] - public class DisablePromiseTrackerCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/EnableCommand.cs index 7303c6d3..dd7e1ece 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/EnablePromiseTrackerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/EnablePromiseTrackerCommand.cs deleted file mode 100644 index 9fa809a8..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/EnablePromiseTrackerCommand.cs +++ /dev/null @@ -1,20 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Enables promise tracking, information about Promises created or updated will now be stored on the backend. - /// - [Command(ProtocolName.Debugger.EnablePromiseTracker)] - [SupportedBy("Chrome")] - public class EnablePromiseTrackerCommand - { - /// - /// Gets or sets Whether to capture stack traces for promise creation and settlement events (default: false). - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? CaptureStacks { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/EnablePromiseTrackerCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/EnablePromiseTrackerCommandResponse.cs deleted file mode 100644 index efeece1e..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/EnablePromiseTrackerCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Enables promise tracking, information about Promises created or updated will now be stored on the backend. - /// - [CommandResponse(ProtocolName.Debugger.EnablePromiseTracker)] - [SupportedBy("Chrome")] - public class EnablePromiseTrackerCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/EvaluateOnCallFrameCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/EvaluateOnCallFrameCommand.cs index 4f23eb28..620709e0 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/EvaluateOnCallFrameCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/EvaluateOnCallFrameCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.EvaluateOnCallFrame)] [SupportedBy("Chrome")] - public class EvaluateOnCallFrameCommand + public class EvaluateOnCallFrameCommand: ICommand { /// /// Gets or sets Call frame identifier to evaluate on. @@ -30,10 +30,10 @@ public class EvaluateOnCallFrameCommand [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public bool? IncludeCommandLineAPI { get; set; } /// - /// Gets or sets Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state. + /// Gets or sets In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? DoNotPauseOnExceptionsAndMuteConsole { get; set; } + public bool? Silent { get; set; } /// /// Gets or sets Whether the result is expected to be a JSON object that should be sent by value. /// @@ -44,5 +44,10 @@ public class EvaluateOnCallFrameCommand /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public bool? GeneratePreview { get; set; } + /// + /// Gets or sets Whether to throw an exception if side effect cannot be ruled out during evaluation. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? ThrowOnSideEffect { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/EvaluateOnCallFrameCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/EvaluateOnCallFrameCommandResponse.cs index 7f7f7667..018f9cea 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/EvaluateOnCallFrameCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/EvaluateOnCallFrameCommandResponse.cs @@ -16,14 +16,9 @@ public class EvaluateOnCallFrameCommandResponse /// public Runtime.RemoteObject Result { get; set; } /// - /// Gets or sets True if the result was thrown during the evaluation. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? WasThrown { get; set; } - /// /// Gets or sets Exception details. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public ExceptionDetails ExceptionDetails { get; set; } + public Runtime.ExceptionDetails ExceptionDetails { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/ExceptionDetails.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/ExceptionDetails.cs deleted file mode 100644 index b481d2ae..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/ExceptionDetails.cs +++ /dev/null @@ -1,43 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Detailed information on exception (or error) that was thrown during script compilation or execution. - /// - [SupportedBy("Chrome")] - public class ExceptionDetails - { - /// - /// Gets or sets Exception text. - /// - public string Text { get; set; } - /// - /// Gets or sets URL of the message origin. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Url { get; set; } - /// - /// Gets or sets Script ID of the message origin. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string ScriptId { get; set; } - /// - /// Gets or sets Line number in the resource that generated this message. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? Line { get; set; } - /// - /// Gets or sets Column number in the resource that generated this message. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? Column { get; set; } - /// - /// Gets or sets JavaScript stack trace for assertions and error messages. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Console.CallFrame[] StackTrace { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/FlushAsyncOperationEventsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/FlushAsyncOperationEventsCommand.cs deleted file mode 100644 index d8436cd7..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/FlushAsyncOperationEventsCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Fires pending asyncOperationStarted events (if any), as if a debugger stepping session has just been started. - /// - [Command(ProtocolName.Debugger.FlushAsyncOperationEvents)] - [SupportedBy("Chrome")] - public class FlushAsyncOperationEventsCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/FlushAsyncOperationEventsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/FlushAsyncOperationEventsCommandResponse.cs deleted file mode 100644 index ba46bc74..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/FlushAsyncOperationEventsCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Fires pending asyncOperationStarted events (if any), as if a debugger stepping session has just been started. - /// - [CommandResponse(ProtocolName.Debugger.FlushAsyncOperationEvents)] - [SupportedBy("Chrome")] - public class FlushAsyncOperationEventsCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GeneratorObjectDetails.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GeneratorObjectDetails.cs deleted file mode 100644 index 7e7f00eb..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GeneratorObjectDetails.cs +++ /dev/null @@ -1,31 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Information about the generator object. - /// - [SupportedBy("Chrome")] - public class GeneratorObjectDetails - { - /// - /// Gets or sets Generator function. - /// - public Runtime.RemoteObject Function { get; set; } - /// - /// Gets or sets Name of the generator function. - /// - public string FunctionName { get; set; } - /// - /// Gets or sets Current generator object status. - /// - public string Status { get; set; } - /// - /// Gets or sets If suspended, location where generator function was suspended (e.g. location of the last 'yield'). Otherwise, location of the generator function. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Location Location { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetBacktraceCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetBacktraceCommand.cs deleted file mode 100644 index e55e6171..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetBacktraceCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Returns call stack including variables changed since VM was paused. VM must be paused. - /// - [Command(ProtocolName.Debugger.GetBacktrace)] - [SupportedBy("Chrome")] - public class GetBacktraceCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetBacktraceCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetBacktraceCommandResponse.cs deleted file mode 100644 index 56d99cb9..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetBacktraceCommandResponse.cs +++ /dev/null @@ -1,24 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Returns call stack including variables changed since VM was paused. VM must be paused. - /// - [CommandResponse(ProtocolName.Debugger.GetBacktrace)] - [SupportedBy("Chrome")] - public class GetBacktraceCommandResponse - { - /// - /// Gets or sets Call stack the virtual machine stopped on. - /// - public CallFrame[] CallFrames { get; set; } - /// - /// Gets or sets Async stack trace, if any. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public StackTrace AsyncStackTrace { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetCollectionEntriesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetCollectionEntriesCommandResponse.cs deleted file mode 100644 index 14251d29..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetCollectionEntriesCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Returns entries of given collection. - /// - [CommandResponse(ProtocolName.Debugger.GetCollectionEntries)] - [SupportedBy("Chrome")] - public class GetCollectionEntriesCommandResponse - { - /// - /// Gets or sets Array of collection entries. - /// - public CollectionEntry[] Entries { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetFunctionDetailsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetFunctionDetailsCommand.cs deleted file mode 100644 index af920c25..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetFunctionDetailsCommand.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Returns detailed information on given function. - /// - [Command(ProtocolName.Debugger.GetFunctionDetails)] - [SupportedBy("Chrome")] - public class GetFunctionDetailsCommand - { - /// - /// Gets or sets Id of the function to get details for. - /// - public string FunctionId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetFunctionDetailsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetFunctionDetailsCommandResponse.cs deleted file mode 100644 index 510c66c2..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetFunctionDetailsCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Returns detailed information on given function. - /// - [CommandResponse(ProtocolName.Debugger.GetFunctionDetails)] - [SupportedBy("Chrome")] - public class GetFunctionDetailsCommandResponse - { - /// - /// Gets or sets Information about the function. - /// - public FunctionDetails Details { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetGeneratorObjectDetailsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetGeneratorObjectDetailsCommand.cs deleted file mode 100644 index ed06491d..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetGeneratorObjectDetailsCommand.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Returns detailed information on given generator object. - /// - [Command(ProtocolName.Debugger.GetGeneratorObjectDetails)] - [SupportedBy("Chrome")] - public class GetGeneratorObjectDetailsCommand - { - /// - /// Gets or sets Id of the generator object to get details for. - /// - public string ObjectId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetGeneratorObjectDetailsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetGeneratorObjectDetailsCommandResponse.cs deleted file mode 100644 index 4a6c37ab..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetGeneratorObjectDetailsCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Returns detailed information on given generator object. - /// - [CommandResponse(ProtocolName.Debugger.GetGeneratorObjectDetails)] - [SupportedBy("Chrome")] - public class GetGeneratorObjectDetailsCommandResponse - { - /// - /// Gets or sets Information about the generator object. - /// - public GeneratorObjectDetails Details { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPossibleBreakpointsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPossibleBreakpointsCommand.cs new file mode 100644 index 00000000..75c124b2 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPossibleBreakpointsCommand.cs @@ -0,0 +1,29 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger +{ + /// + /// Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. + /// + [Command(ProtocolName.Debugger.GetPossibleBreakpoints)] + [SupportedBy("Chrome")] + public class GetPossibleBreakpointsCommand: ICommand + { + /// + /// Gets or sets Start of range to search possible breakpoint locations in. + /// + public Location Start { get; set; } + /// + /// Gets or sets End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public Location End { get; set; } + /// + /// Gets or sets Only consider locations which are in the same (non-nested) function as start. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? RestrictToFunction { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPossibleBreakpointsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPossibleBreakpointsCommandResponse.cs new file mode 100644 index 00000000..a638224d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPossibleBreakpointsCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger +{ + /// + /// Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. + /// + [CommandResponse(ProtocolName.Debugger.GetPossibleBreakpoints)] + [SupportedBy("Chrome")] + public class GetPossibleBreakpointsCommandResponse + { + /// + /// Gets or sets List of the possible breakpoint locations. + /// + public BreakLocation[] Locations { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPromiseByIdCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPromiseByIdCommand.cs deleted file mode 100644 index 06135f86..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPromiseByIdCommand.cs +++ /dev/null @@ -1,24 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Returns Promise with specified ID. - /// - [Command(ProtocolName.Debugger.GetPromiseById)] - [SupportedBy("Chrome")] - public class GetPromiseByIdCommand - { - /// - /// Gets or sets PromiseId - /// - public long PromiseId { get; set; } - /// - /// Gets or sets Symbolic group name that can be used to release multiple objects. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string ObjectGroup { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPromiseByIdCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPromiseByIdCommandResponse.cs deleted file mode 100644 index 61f84da4..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPromiseByIdCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Returns Promise with specified ID. - /// - [CommandResponse(ProtocolName.Debugger.GetPromiseById)] - [SupportedBy("Chrome")] - public class GetPromiseByIdCommandResponse - { - /// - /// Gets or sets Object wrapper for Promise with specified ID, if any. - /// - public Runtime.RemoteObject Promise { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPromisesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPromisesCommand.cs deleted file mode 100644 index 5804ca2d..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPromisesCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Returns detailed information about all Promises that were created or updated after the enablePromiseTracker command, and have not been garbage collected yet. - /// - [Command(ProtocolName.Debugger.GetPromises)] - [SupportedBy("Chrome")] - public class GetPromisesCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPromisesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPromisesCommandResponse.cs deleted file mode 100644 index 2ca56745..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetPromisesCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Returns detailed information about all Promises that were created or updated after the enablePromiseTracker command, and have not been garbage collected yet. - /// - [CommandResponse(ProtocolName.Debugger.GetPromises)] - [SupportedBy("Chrome")] - public class GetPromisesCommandResponse - { - /// - /// Gets or sets Information about stored promises. - /// - public PromiseDetails[] Promises { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetScriptSourceCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetScriptSourceCommand.cs index 5873ee4b..a031353e 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetScriptSourceCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetScriptSourceCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.GetScriptSource)] [SupportedBy("Chrome")] - public class GetScriptSourceCommand + public class GetScriptSourceCommand: ICommand { /// /// Gets or sets Id of the script to get source for. diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetStepInPositionsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetStepInPositionsCommand.cs deleted file mode 100644 index 1d76aed4..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetStepInPositionsCommand.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Lists all positions where step-in is possible for a current statement in a specified call frame - /// - [Command(ProtocolName.Debugger.GetStepInPositions)] - [SupportedBy("Chrome")] - public class GetStepInPositionsCommand - { - /// - /// Gets or sets Id of a call frame where the current statement should be analized - /// - public string CallFrameId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetStepInPositionsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GetStepInPositionsCommandResponse.cs deleted file mode 100644 index 80d67193..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetStepInPositionsCommandResponse.cs +++ /dev/null @@ -1,20 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Lists all positions where step-in is possible for a current statement in a specified call frame - /// - [CommandResponse(ProtocolName.Debugger.GetStepInPositions)] - [SupportedBy("Chrome")] - public class GetStepInPositionsCommandResponse - { - /// - /// Gets or sets experimental - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Location[] StepInPositions { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GlobalObjectClearedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/GlobalObjectClearedEvent.cs deleted file mode 100644 index 25a4e379..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GlobalObjectClearedEvent.cs +++ /dev/null @@ -1,13 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload. - /// - [Event(ProtocolName.Debugger.GlobalObjectCleared)] - [SupportedBy("Chrome")] - public class GlobalObjectClearedEvent - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/PauseCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/PauseCommand.cs index 03702957..ecbab66a 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/PauseCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/PauseCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.Pause)] [SupportedBy("Chrome")] - public class PauseCommand + public class PauseCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/PausedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/PausedEvent.cs index 8f17fb56..fc7d6cb9 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/PausedEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/PausedEvent.cs @@ -31,6 +31,6 @@ public class PausedEvent /// Gets or sets Async stack trace, if any. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public StackTrace AsyncStackTrace { get; set; } + public Runtime.StackTrace AsyncStackTrace { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/PromiseDetails.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/PromiseDetails.cs deleted file mode 100644 index 311ccf3a..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/PromiseDetails.cs +++ /dev/null @@ -1,62 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Information about the promise. - /// - [SupportedBy("Chrome")] - public class PromiseDetails - { - /// - /// Gets or sets Unique id of the promise. - /// - public long Id { get; set; } - /// - /// Gets or sets Status of the promise. - /// - public string Status { get; set; } - /// - /// Gets or sets Id of the parent promise. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? ParentId { get; set; } - /// - /// Gets or sets Top call frame on promise creation. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Console.CallFrame CallFrame { get; set; } - /// - /// Gets or sets Creation time of the promise. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public double CreationTime { get; set; } - /// - /// Gets or sets Settlement time of the promise. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public double SettlementTime { get; set; } - /// - /// Gets or sets JavaScript stack trace on promise creation. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Console.CallFrame[] CreationStack { get; set; } - /// - /// Gets or sets JavaScript asynchronous stack trace on promise creation, if available. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Console.AsyncStackTrace AsyncCreationStack { get; set; } - /// - /// Gets or sets JavaScript stack trace on promise settlement. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Console.CallFrame[] SettlementStack { get; set; } - /// - /// Gets or sets JavaScript asynchronous stack trace on promise settlement, if available. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Console.AsyncStackTrace AsyncSettlementStack { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/PromiseUpdatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/PromiseUpdatedEvent.cs deleted file mode 100644 index 6bb1d8fd..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/PromiseUpdatedEvent.cs +++ /dev/null @@ -1,21 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Fired when a Promise is created, updated or garbage collected. - /// - [Event(ProtocolName.Debugger.PromiseUpdated)] - [SupportedBy("Chrome")] - public class PromiseUpdatedEvent - { - /// - /// Gets or sets Type of the event. - /// - public string EventType { get; set; } - /// - /// Gets or sets Information about the updated Promise. - /// - public PromiseDetails Promise { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/RemoveAsyncOperationBreakpointCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/RemoveAsyncOperationBreakpointCommand.cs deleted file mode 100644 index 1bd8d992..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/RemoveAsyncOperationBreakpointCommand.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Removes AsyncOperation breakpoint. - /// - [Command(ProtocolName.Debugger.RemoveAsyncOperationBreakpoint)] - [SupportedBy("Chrome")] - public class RemoveAsyncOperationBreakpointCommand - { - /// - /// Gets or sets ID of the async operation to remove breakpoint for. - /// - public long OperationId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/RemoveAsyncOperationBreakpointCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/RemoveAsyncOperationBreakpointCommandResponse.cs deleted file mode 100644 index c4380d21..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/RemoveAsyncOperationBreakpointCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Removes AsyncOperation breakpoint. - /// - [CommandResponse(ProtocolName.Debugger.RemoveAsyncOperationBreakpoint)] - [SupportedBy("Chrome")] - public class RemoveAsyncOperationBreakpointCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/RemoveBreakpointCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/RemoveBreakpointCommand.cs index 99a401e2..c841b84f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/RemoveBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/RemoveBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.RemoveBreakpoint)] [SupportedBy("Chrome")] - public class RemoveBreakpointCommand + public class RemoveBreakpointCommand: ICommand { /// /// Gets or sets BreakpointId diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/RestartFrameCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/RestartFrameCommand.cs index bad86b73..c11f5e86 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/RestartFrameCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/RestartFrameCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.RestartFrame)] [SupportedBy("Chrome")] - public class RestartFrameCommand + public class RestartFrameCommand: ICommand { /// /// Gets or sets Call frame identifier to evaluate on. diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/RestartFrameCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/RestartFrameCommandResponse.cs index 3df7b7b5..8d621088 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/RestartFrameCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/RestartFrameCommandResponse.cs @@ -16,13 +16,9 @@ public class RestartFrameCommandResponse /// public CallFrame[] CallFrames { get; set; } /// - /// Gets or sets VM-specific description. - /// - public object Result { get; set; } - /// /// Gets or sets Async stack trace, if any. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public StackTrace AsyncStackTrace { get; set; } + public Runtime.StackTrace AsyncStackTrace { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/ResumeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/ResumeCommand.cs index e3a14838..7b484111 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/ResumeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/ResumeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.Resume)] [SupportedBy("Chrome")] - public class ResumeCommand + public class ResumeCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/RunScriptCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/RunScriptCommand.cs deleted file mode 100644 index 5c786b7e..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/RunScriptCommand.cs +++ /dev/null @@ -1,34 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Runs script with given id in a given context. - /// - [Command(ProtocolName.Debugger.RunScript)] - [SupportedBy("Chrome")] - public class RunScriptCommand - { - /// - /// Gets or sets Id of the script to run. - /// - public string ScriptId { get; set; } - /// - /// Gets or sets Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? ExecutionContextId { get; set; } - /// - /// Gets or sets Symbolic group name that can be used to release multiple objects. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string ObjectGroup { get; set; } - /// - /// Gets or sets Specifies whether script run should stop on exceptions and mute console. Overrides setPauseOnException state. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? DoNotPauseOnExceptionsAndMuteConsole { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/ScheduleStepIntoAsyncCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/ScheduleStepIntoAsyncCommand.cs new file mode 100644 index 00000000..24082448 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/ScheduleStepIntoAsyncCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger +{ + /// + /// Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. + /// + [Command(ProtocolName.Debugger.ScheduleStepIntoAsync)] + [SupportedBy("Chrome")] + public class ScheduleStepIntoAsyncCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/ScheduleStepIntoAsyncCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/ScheduleStepIntoAsyncCommandResponse.cs new file mode 100644 index 00000000..e6e5967d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/ScheduleStepIntoAsyncCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger +{ + /// + /// Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. + /// + [CommandResponse(ProtocolName.Debugger.ScheduleStepIntoAsync)] + [SupportedBy("Chrome")] + public class ScheduleStepIntoAsyncCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/Scope.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/Scope.cs index 58a0d7f2..45f6ebc2 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/Scope.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/Scope.cs @@ -18,5 +18,20 @@ public class Scope /// Gets or sets Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties. /// public Runtime.RemoteObject Object { get; set; } + /// + /// Gets or sets Name + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Name { get; set; } + /// + /// Gets or sets Location in the source code where scope starts + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public Location StartLocation { get; set; } + /// + /// Gets or sets Location in the source code where scope ends + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public Location EndLocation { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/ScriptFailedToParseEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/ScriptFailedToParseEvent.cs index e963b42b..a776ff47 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/ScriptFailedToParseEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/ScriptFailedToParseEvent.cs @@ -34,15 +34,18 @@ public class ScriptFailedToParseEvent /// public long EndColumn { get; set; } /// - /// Gets or sets Determines whether this script is a user extension script. + /// Gets or sets Specifies script creation context. /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? IsContentScript { get; set; } + public long ExecutionContextId { get; set; } + /// + /// Gets or sets Content hash of the script. + /// + public string Hash { get; set; } /// - /// Gets or sets Determines whether this script is an internal script. + /// Gets or sets Embedder-specific auxiliary data. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? IsInternalScript { get; set; } + public object ExecutionContextAuxData { get; set; } /// /// Gets or sets URL of source map associated with script (if any). /// @@ -53,5 +56,20 @@ public class ScriptFailedToParseEvent /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public bool? HasSourceURL { get; set; } + /// + /// Gets or sets True, if this script is ES6 module. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? IsModule { get; set; } + /// + /// Gets or sets This script length. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Length { get; set; } + /// + /// Gets or sets JavaScript top stack frame of where the script parsed event was triggered if available. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public Runtime.StackTrace StackTrace { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/ScriptParsedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/ScriptParsedEvent.cs index bb537161..bf7dbea2 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/ScriptParsedEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/ScriptParsedEvent.cs @@ -34,15 +34,23 @@ public class ScriptParsedEvent /// public long EndColumn { get; set; } /// - /// Gets or sets Determines whether this script is a user extension script. + /// Gets or sets Specifies script creation context. + /// + public long ExecutionContextId { get; set; } + /// + /// Gets or sets Content hash of the script. + /// + public string Hash { get; set; } + /// + /// Gets or sets Embedder-specific auxiliary data. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? IsContentScript { get; set; } + public object ExecutionContextAuxData { get; set; } /// - /// Gets or sets Determines whether this script is an internal script. + /// Gets or sets True, if this script is generated as a result of the live edit operation. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? IsInternalScript { get; set; } + public bool? IsLiveEdit { get; set; } /// /// Gets or sets URL of source map associated with script (if any). /// @@ -53,5 +61,20 @@ public class ScriptParsedEvent /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public bool? HasSourceURL { get; set; } + /// + /// Gets or sets True, if this script is ES6 module. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? IsModule { get; set; } + /// + /// Gets or sets This script length. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Length { get; set; } + /// + /// Gets or sets JavaScript top stack frame of where the script parsed event was triggered if available. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public Runtime.StackTrace StackTrace { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetCollectionEntriesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/ScriptPosition.cs similarity index 51% rename from source/ChromeDevTools/Protocol/Chrome/Debugger/GetCollectionEntriesCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Debugger/ScriptPosition.cs index b5c990f5..d80265c6 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/GetCollectionEntriesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/ScriptPosition.cs @@ -5,15 +5,18 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger { /// - /// Returns entries of given collection. + /// Location in the source code. /// - [Command(ProtocolName.Debugger.GetCollectionEntries)] [SupportedBy("Chrome")] - public class GetCollectionEntriesCommand + public class ScriptPosition { /// - /// Gets or sets Id of the collection to get entries for. + /// Gets or sets LineNumber /// - public string ObjectId { get; set; } + public long LineNumber { get; set; } + /// + /// Gets or sets ColumnNumber + /// + public long ColumnNumber { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SearchInContentCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SearchInContentCommand.cs index f5d7e228..8f123898 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SearchInContentCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SearchInContentCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.SearchInContent)] [SupportedBy("Chrome")] - public class SearchInContentCommand + public class SearchInContentCommand: ICommand { /// /// Gets or sets Id of the script to search in. diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetAsyncCallStackDepthCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetAsyncCallStackDepthCommand.cs index dcdb20df..314240db 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetAsyncCallStackDepthCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetAsyncCallStackDepthCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.SetAsyncCallStackDepth)] [SupportedBy("Chrome")] - public class SetAsyncCallStackDepthCommand + public class SetAsyncCallStackDepthCommand: ICommand { /// /// Gets or sets Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default). diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetAsyncOperationBreakpointCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetAsyncOperationBreakpointCommand.cs deleted file mode 100644 index 8767bec8..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetAsyncOperationBreakpointCommand.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Sets breakpoint on AsyncOperation callback handler. - /// - [Command(ProtocolName.Debugger.SetAsyncOperationBreakpoint)] - [SupportedBy("Chrome")] - public class SetAsyncOperationBreakpointCommand - { - /// - /// Gets or sets ID of the async operation to set breakpoint for. - /// - public long OperationId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetAsyncOperationBreakpointCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetAsyncOperationBreakpointCommandResponse.cs deleted file mode 100644 index 63c807b5..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetAsyncOperationBreakpointCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Sets breakpoint on AsyncOperation callback handler. - /// - [CommandResponse(ProtocolName.Debugger.SetAsyncOperationBreakpoint)] - [SupportedBy("Chrome")] - public class SetAsyncOperationBreakpointCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBlackboxPatternsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBlackboxPatternsCommand.cs new file mode 100644 index 00000000..33de1549 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBlackboxPatternsCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger +{ + /// + /// Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. + /// + [Command(ProtocolName.Debugger.SetBlackboxPatterns)] + [SupportedBy("Chrome")] + public class SetBlackboxPatternsCommand: ICommand + { + /// + /// Gets or sets Array of regexps that will be used to check script url for blackbox state. + /// + public string[] Patterns { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBlackboxPatternsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBlackboxPatternsCommandResponse.cs new file mode 100644 index 00000000..845823e0 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBlackboxPatternsCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger +{ + /// + /// Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. + /// + [CommandResponse(ProtocolName.Debugger.SetBlackboxPatterns)] + [SupportedBy("Chrome")] + public class SetBlackboxPatternsCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBlackboxedRangesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBlackboxedRangesCommand.cs new file mode 100644 index 00000000..4a662caf --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBlackboxedRangesCommand.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger +{ + /// + /// Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. + /// + [Command(ProtocolName.Debugger.SetBlackboxedRanges)] + [SupportedBy("Chrome")] + public class SetBlackboxedRangesCommand: ICommand + { + /// + /// Gets or sets Id of the script. + /// + public string ScriptId { get; set; } + /// + /// Gets or sets Positions + /// + public ScriptPosition[] Positions { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBlackboxedRangesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBlackboxedRangesCommandResponse.cs new file mode 100644 index 00000000..5328b563 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBlackboxedRangesCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger +{ + /// + /// Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. + /// + [CommandResponse(ProtocolName.Debugger.SetBlackboxedRanges)] + [SupportedBy("Chrome")] + public class SetBlackboxedRangesCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBreakpointByUrlCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBreakpointByUrlCommand.cs index 5f0c8992..da7207fc 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBreakpointByUrlCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBreakpointByUrlCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.SetBreakpointByUrl)] [SupportedBy("Chrome")] - public class SetBreakpointByUrlCommand + public class SetBreakpointByUrlCommand: ICommand { /// /// Gets or sets Line number to set breakpoint at. diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBreakpointCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBreakpointCommand.cs index 5cafedd0..09a2dcf3 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.SetBreakpoint)] [SupportedBy("Chrome")] - public class SetBreakpointCommand + public class SetBreakpointCommand: ICommand { /// /// Gets or sets Location to set breakpoint in. diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBreakpointsActiveCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBreakpointsActiveCommand.cs index acdb2c85..b93daf0f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBreakpointsActiveCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetBreakpointsActiveCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.SetBreakpointsActive)] [SupportedBy("Chrome")] - public class SetBreakpointsActiveCommand + public class SetBreakpointsActiveCommand: ICommand { /// /// Gets or sets New value for breakpoints active state. diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetPauseOnExceptionsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetPauseOnExceptionsCommand.cs index 480b053e..815e85d4 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetPauseOnExceptionsCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetPauseOnExceptionsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.SetPauseOnExceptions)] [SupportedBy("Chrome")] - public class SetPauseOnExceptionsCommand + public class SetPauseOnExceptionsCommand: ICommand { /// /// Gets or sets Pause on exceptions mode. diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetScriptSourceCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetScriptSourceCommand.cs index b1b9a3d4..8af5fae1 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetScriptSourceCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetScriptSourceCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.SetScriptSource)] [SupportedBy("Chrome")] - public class SetScriptSourceCommand + public class SetScriptSourceCommand: ICommand { /// /// Gets or sets Id of the script to edit. @@ -20,9 +20,9 @@ public class SetScriptSourceCommand /// public string ScriptSource { get; set; } /// - /// Gets or sets If true the change will not actually be applied. Preview mode may be used to get result description without actually modifying the code. + /// Gets or sets If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? Preview { get; set; } + public bool? DryRun { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetScriptSourceCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetScriptSourceCommandResponse.cs index 6fc0b8c9..33a9acdd 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetScriptSourceCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetScriptSourceCommandResponse.cs @@ -17,14 +17,19 @@ public class SetScriptSourceCommandResponse [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public CallFrame[] CallFrames { get; set; } /// - /// Gets or sets VM-specific description of the changes applied. + /// Gets or sets Whether current call stack was modified after applying the changes. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public object Result { get; set; } + public bool? StackChanged { get; set; } /// /// Gets or sets Async stack trace, if any. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public StackTrace AsyncStackTrace { get; set; } + public Runtime.StackTrace AsyncStackTrace { get; set; } + /// + /// Gets or sets Exception details if any. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public Runtime.ExceptionDetails ExceptionDetails { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetScriptSourceError.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetScriptSourceError.cs deleted file mode 100644 index 1c14f6da..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetScriptSourceError.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Error data for setScriptSource command. compileError is a case type for uncompilable script source error. - /// - [SupportedBy("Chrome")] - public class SetScriptSourceError - { - /// - /// Gets or sets CompileError - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public object CompileError { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetSkipAllPausesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetSkipAllPausesCommand.cs index 4bebcd75..f8a05b47 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetSkipAllPausesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetSkipAllPausesCommand.cs @@ -9,11 +9,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.SetSkipAllPauses)] [SupportedBy("Chrome")] - public class SetSkipAllPausesCommand + public class SetSkipAllPausesCommand: ICommand { /// /// Gets or sets New value for skip pauses state. /// - public bool Skipped { get; set; } + public bool Skip { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetVariableValueCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetVariableValueCommand.cs index d515cc4f..580406b7 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetVariableValueCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetVariableValueCommand.cs @@ -5,11 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger { /// - /// Changes value of variable in a callframe or a closure. Either callframe or function must be specified. Object-based scopes are not supported and must be mutated manually. + /// Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. /// [Command(ProtocolName.Debugger.SetVariableValue)] [SupportedBy("Chrome")] - public class SetVariableValueCommand + public class SetVariableValueCommand: ICommand { /// /// Gets or sets 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually. @@ -26,12 +26,6 @@ public class SetVariableValueCommand /// /// Gets or sets Id of callframe that holds variable. /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string CallFrameId { get; set; } - /// - /// Gets or sets Object id of closure (function) that holds variable. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string FunctionObjectId { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetVariableValueCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetVariableValueCommandResponse.cs index 01b6d161..0d83753a 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SetVariableValueCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/SetVariableValueCommandResponse.cs @@ -5,7 +5,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger { /// - /// Changes value of variable in a callframe or a closure. Either callframe or function must be specified. Object-based scopes are not supported and must be mutated manually. + /// Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. /// [CommandResponse(ProtocolName.Debugger.SetVariableValue)] [SupportedBy("Chrome")] diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SkipStackFramesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SkipStackFramesCommand.cs deleted file mode 100644 index 59882937..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SkipStackFramesCommand.cs +++ /dev/null @@ -1,25 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Makes backend skip steps in the sources with names matching given pattern. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. - /// - [Command(ProtocolName.Debugger.SkipStackFrames)] - [SupportedBy("Chrome")] - public class SkipStackFramesCommand - { - /// - /// Gets or sets Regular expression defining the scripts to ignore while stepping. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Script { get; set; } - /// - /// Gets or sets True, if all content scripts should be ignored. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? SkipContentScripts { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/SkipStackFramesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/SkipStackFramesCommandResponse.cs deleted file mode 100644 index c9ea0d1e..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/SkipStackFramesCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Makes backend skip steps in the sources with names matching given pattern. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. - /// - [CommandResponse(ProtocolName.Debugger.SkipStackFrames)] - [SupportedBy("Chrome")] - public class SkipStackFramesCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/StepIntoAsyncCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/StepIntoAsyncCommand.cs deleted file mode 100644 index 8eb8649e..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/StepIntoAsyncCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Steps into the first async operation handler that was scheduled by or after the current statement. - /// - [Command(ProtocolName.Debugger.StepIntoAsync)] - [SupportedBy("Chrome")] - public class StepIntoAsyncCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/StepIntoAsyncCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/StepIntoAsyncCommandResponse.cs deleted file mode 100644 index f74ddff0..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/StepIntoAsyncCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger -{ - /// - /// Steps into the first async operation handler that was scheduled by or after the current statement. - /// - [CommandResponse(ProtocolName.Debugger.StepIntoAsync)] - [SupportedBy("Chrome")] - public class StepIntoAsyncCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/StepIntoCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/StepIntoCommand.cs index f7263b35..607694c5 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/StepIntoCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/StepIntoCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.StepInto)] [SupportedBy("Chrome")] - public class StepIntoCommand + public class StepIntoCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/StepOutCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/StepOutCommand.cs index 5b65d4a0..3e49c2fe 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/StepOutCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/StepOutCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.StepOut)] [SupportedBy("Chrome")] - public class StepOutCommand + public class StepOutCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/StepOverCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Debugger/StepOverCommand.cs index 65daa3e2..bfecf2e2 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/StepOverCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Debugger/StepOverCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger /// [Command(ProtocolName.Debugger.StepOver)] [SupportedBy("Chrome")] - public class StepOverCommand + public class StepOverCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DeviceOrientation/ClearDeviceOrientationOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DeviceOrientation/ClearDeviceOrientationOverrideCommand.cs index 62bf4f5a..95bae6a1 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DeviceOrientation/ClearDeviceOrientationOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DeviceOrientation/ClearDeviceOrientationOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DeviceOrientation /// [Command(ProtocolName.DeviceOrientation.ClearDeviceOrientationOverride)] [SupportedBy("Chrome")] - public class ClearDeviceOrientationOverrideCommand + public class ClearDeviceOrientationOverrideCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DeviceOrientation/SetDeviceOrientationOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/DeviceOrientation/SetDeviceOrientationOverrideCommand.cs index 3af33ab0..bb9b4c04 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DeviceOrientation/SetDeviceOrientationOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/DeviceOrientation/SetDeviceOrientationOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DeviceOrientation /// [Command(ProtocolName.DeviceOrientation.SetDeviceOrientationOverride)] [SupportedBy("Chrome")] - public class SetDeviceOrientationOverrideCommand + public class SetDeviceOrientationOverrideCommand: ICommand { /// /// Gets or sets Mock alpha diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/CanEmulateCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/CanEmulateCommand.cs index 139ccb7c..498e7ddd 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/CanEmulateCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/CanEmulateCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation /// [Command(ProtocolName.Emulation.CanEmulate)] [SupportedBy("Chrome")] - public class CanEmulateCommand + public class CanEmulateCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/ClearDeviceMetricsOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/ClearDeviceMetricsOverrideCommand.cs index 20e690f3..e77d07b5 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/ClearDeviceMetricsOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/ClearDeviceMetricsOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation /// [Command(ProtocolName.Emulation.ClearDeviceMetricsOverride)] [SupportedBy("Chrome")] - public class ClearDeviceMetricsOverrideCommand + public class ClearDeviceMetricsOverrideCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/ClearGeolocationOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/ClearGeolocationOverrideCommand.cs index ce05f831..459febd9 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/ClearGeolocationOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/ClearGeolocationOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation /// [Command(ProtocolName.Emulation.ClearGeolocationOverride)] [SupportedBy("Chrome")] - public class ClearGeolocationOverrideCommand + public class ClearGeolocationOverrideCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/ForceViewportCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/ForceViewportCommand.cs new file mode 100644 index 00000000..f33be9cd --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/ForceViewportCommand.cs @@ -0,0 +1,27 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Overrides the visible area of the page. The change is hidden from the page, i.e. the observable scroll position and page scale does not change. In effect, the command moves the specified area of the page into the top-left corner of the frame. + /// + [Command(ProtocolName.Emulation.ForceViewport)] + [SupportedBy("Chrome")] + public class ForceViewportCommand: ICommand + { + /// + /// Gets or sets X coordinate of top-left corner of the area (CSS pixels). + /// + public double X { get; set; } + /// + /// Gets or sets Y coordinate of top-left corner of the area (CSS pixels). + /// + public double Y { get; set; } + /// + /// Gets or sets Scale to apply to the area (relative to a page scale of 1.0). + /// + public double Scale { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/ForceViewportCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/ForceViewportCommandResponse.cs new file mode 100644 index 00000000..8e99770a --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/ForceViewportCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Overrides the visible area of the page. The change is hidden from the page, i.e. the observable scroll position and page scale does not change. In effect, the command moves the specified area of the page into the top-left corner of the frame. + /// + [CommandResponse(ProtocolName.Emulation.ForceViewport)] + [SupportedBy("Chrome")] + public class ForceViewportCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetScrollAndPageScaleFactorCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetPageScaleFactorCommand.cs similarity index 50% rename from source/ChromeDevTools/Protocol/Chrome/Emulation/ResetScrollAndPageScaleFactorCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Emulation/ResetPageScaleFactorCommand.cs index bf5c02fc..a8658e8c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetScrollAndPageScaleFactorCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetPageScaleFactorCommand.cs @@ -5,11 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation { /// - /// Requests that scroll offsets and page scale factor are reset to initial values. + /// Requests that page scale factor is reset to initial values. /// - [CommandResponse(ProtocolName.Emulation.ResetScrollAndPageScaleFactor)] + [Command(ProtocolName.Emulation.ResetPageScaleFactor)] [SupportedBy("Chrome")] - public class ResetScrollAndPageScaleFactorCommandResponse + public class ResetPageScaleFactorCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetScrollAndPageScaleFactorCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetPageScaleFactorCommandResponse.cs similarity index 52% rename from source/ChromeDevTools/Protocol/Chrome/Emulation/ResetScrollAndPageScaleFactorCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Emulation/ResetPageScaleFactorCommandResponse.cs index aad69b72..79efddea 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetScrollAndPageScaleFactorCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetPageScaleFactorCommandResponse.cs @@ -5,11 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation { /// - /// Requests that scroll offsets and page scale factor are reset to initial values. + /// Requests that page scale factor is reset to initial values. /// - [Command(ProtocolName.Emulation.ResetScrollAndPageScaleFactor)] + [CommandResponse(ProtocolName.Emulation.ResetPageScaleFactor)] [SupportedBy("Chrome")] - public class ResetScrollAndPageScaleFactorCommand + public class ResetPageScaleFactorCommandResponse { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetViewportCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetViewportCommand.cs new file mode 100644 index 00000000..551178ed --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetViewportCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Resets the visible area of the page to the original viewport, undoing any effects of the forceViewport command. + /// + [Command(ProtocolName.Emulation.ResetViewport)] + [SupportedBy("Chrome")] + public class ResetViewportCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetViewportCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetViewportCommandResponse.cs new file mode 100644 index 00000000..8a044f88 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/ResetViewportCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Resets the visible area of the page to the original viewport, undoing any effects of the forceViewport command. + /// + [CommandResponse(ProtocolName.Emulation.ResetViewport)] + [SupportedBy("Chrome")] + public class ResetViewportCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/ScreenOrientation.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/ScreenOrientation.cs new file mode 100644 index 00000000..f32aa553 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/ScreenOrientation.cs @@ -0,0 +1,22 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Screen orientation. + /// + [SupportedBy("Chrome")] + public class ScreenOrientation + { + /// + /// Gets or sets Orientation type. + /// + public string Type { get; set; } + /// + /// Gets or sets Orientation angle. + /// + public long Angle { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetCPUThrottlingRateCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetCPUThrottlingRateCommand.cs new file mode 100644 index 00000000..4effc0b7 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetCPUThrottlingRateCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Enables CPU throttling to emulate slow CPUs. + /// + [Command(ProtocolName.Emulation.SetCPUThrottlingRate)] + [SupportedBy("Chrome")] + public class SetCPUThrottlingRateCommand: ICommand + { + /// + /// Gets or sets Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc). + /// + public double Rate { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetCPUThrottlingRateCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetCPUThrottlingRateCommandResponse.cs new file mode 100644 index 00000000..c003b348 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetCPUThrottlingRateCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Enables CPU throttling to emulate slow CPUs. + /// + [CommandResponse(ProtocolName.Emulation.SetCPUThrottlingRate)] + [SupportedBy("Chrome")] + public class SetCPUThrottlingRateCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetDefaultBackgroundColorOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetDefaultBackgroundColorOverrideCommand.cs new file mode 100644 index 00000000..75a4548e --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetDefaultBackgroundColorOverrideCommand.cs @@ -0,0 +1,20 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one. + /// + [Command(ProtocolName.Emulation.SetDefaultBackgroundColorOverride)] + [SupportedBy("Chrome")] + public class SetDefaultBackgroundColorOverrideCommand: ICommand + { + /// + /// Gets or sets RGBA of the default background color. If not specified, any existing override will be cleared. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public DOM.RGBA Color { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetDefaultBackgroundColorOverrideCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetDefaultBackgroundColorOverrideCommandResponse.cs new file mode 100644 index 00000000..b56cc282 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetDefaultBackgroundColorOverrideCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one. + /// + [CommandResponse(ProtocolName.Emulation.SetDefaultBackgroundColorOverride)] + [SupportedBy("Chrome")] + public class SetDefaultBackgroundColorOverrideCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetDeviceMetricsOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetDeviceMetricsOverrideCommand.cs index f9f82e25..22cc8ae3 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetDeviceMetricsOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetDeviceMetricsOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation /// [Command(ProtocolName.Emulation.SetDeviceMetricsOverride)] [SupportedBy("Chrome")] - public class SetDeviceMetricsOverrideCommand + public class SetDeviceMetricsOverrideCommand: ICommand { /// /// Gets or sets Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. @@ -37,14 +37,39 @@ public class SetDeviceMetricsOverrideCommand [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public double Scale { get; set; } /// - /// Gets or sets X offset to shift resulting view image by. Ignored in |fitWindow| mode. + /// Gets or sets Not used. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public double OffsetX { get; set; } /// - /// Gets or sets Y offset to shift resulting view image by. Ignored in |fitWindow| mode. + /// Gets or sets Not used. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public double OffsetY { get; set; } + /// + /// Gets or sets Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? ScreenWidth { get; set; } + /// + /// Gets or sets Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? ScreenHeight { get; set; } + /// + /// Gets or sets Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? PositionX { get; set; } + /// + /// Gets or sets Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? PositionY { get; set; } + /// + /// Gets or sets Screen orientation override. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public ScreenOrientation ScreenOrientation { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetEmulatedMediaCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetEmulatedMediaCommand.cs index c59bf52e..2b941b60 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetEmulatedMediaCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetEmulatedMediaCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation /// [Command(ProtocolName.Emulation.SetEmulatedMedia)] [SupportedBy("Chrome")] - public class SetEmulatedMediaCommand + public class SetEmulatedMediaCommand: ICommand { /// /// Gets or sets Media type to emulate. Empty string disables the override. diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetGeolocationOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetGeolocationOverrideCommand.cs index d1ddbeb8..3ce41231 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetGeolocationOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetGeolocationOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation /// [Command(ProtocolName.Emulation.SetGeolocationOverride)] [SupportedBy("Chrome")] - public class SetGeolocationOverrideCommand + public class SetGeolocationOverrideCommand: ICommand { /// /// Gets or sets Mock latitude diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetPageScaleFactorCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetPageScaleFactorCommand.cs index bc0b8837..f0e57f7b 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetPageScaleFactorCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetPageScaleFactorCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation /// [Command(ProtocolName.Emulation.SetPageScaleFactor)] [SupportedBy("Chrome")] - public class SetPageScaleFactorCommand + public class SetPageScaleFactorCommand: ICommand { /// /// Gets or sets Page scale factor. diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetScriptExecutionDisabledCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetScriptExecutionDisabledCommand.cs index 8c56471f..bad31db4 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetScriptExecutionDisabledCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetScriptExecutionDisabledCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation /// [Command(ProtocolName.Emulation.SetScriptExecutionDisabled)] [SupportedBy("Chrome")] - public class SetScriptExecutionDisabledCommand + public class SetScriptExecutionDisabledCommand: ICommand { /// /// Gets or sets Whether script execution should be disabled in the page. diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetTouchEmulationEnabledCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetTouchEmulationEnabledCommand.cs index b050c23e..cfa269b9 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetTouchEmulationEnabledCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetTouchEmulationEnabledCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation /// [Command(ProtocolName.Emulation.SetTouchEmulationEnabled)] [SupportedBy("Chrome")] - public class SetTouchEmulationEnabledCommand + public class SetTouchEmulationEnabledCommand: ICommand { /// /// Gets or sets Whether the touch event emulation should be enabled. diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetVirtualTimePolicyCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetVirtualTimePolicyCommand.cs new file mode 100644 index 00000000..5ee5996f --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetVirtualTimePolicyCommand.cs @@ -0,0 +1,24 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget. + /// + [Command(ProtocolName.Emulation.SetVirtualTimePolicy)] + [SupportedBy("Chrome")] + public class SetVirtualTimePolicyCommand: ICommand + { + /// + /// Gets or sets Policy + /// + public string Policy { get; set; } + /// + /// Gets or sets If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Budget { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetVirtualTimePolicyCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetVirtualTimePolicyCommandResponse.cs new file mode 100644 index 00000000..93e68a75 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetVirtualTimePolicyCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget. + /// + [CommandResponse(ProtocolName.Emulation.SetVirtualTimePolicy)] + [SupportedBy("Chrome")] + public class SetVirtualTimePolicyCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetVisibleSizeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetVisibleSizeCommand.cs new file mode 100644 index 00000000..28efd57c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetVisibleSizeCommand.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android. + /// + [Command(ProtocolName.Emulation.SetVisibleSize)] + [SupportedBy("Chrome")] + public class SetVisibleSizeCommand: ICommand + { + /// + /// Gets or sets Frame width (DIP). + /// + public long Width { get; set; } + /// + /// Gets or sets Frame height (DIP). + /// + public long Height { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/SetVisibleSizeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetVisibleSizeCommandResponse.cs new file mode 100644 index 00000000..034134d2 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/SetVisibleSizeCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android. + /// + [CommandResponse(ProtocolName.Emulation.SetVisibleSize)] + [SupportedBy("Chrome")] + public class SetVisibleSizeCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/Viewport.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/Viewport.cs deleted file mode 100644 index 9fce93b1..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/Viewport.cs +++ /dev/null @@ -1,42 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation -{ - /// - /// Visible page viewport - /// - [SupportedBy("Chrome")] - public class Viewport - { - /// - /// Gets or sets X scroll offset in CSS pixels. - /// - public double ScrollX { get; set; } - /// - /// Gets or sets Y scroll offset in CSS pixels. - /// - public double ScrollY { get; set; } - /// - /// Gets or sets Contents width in CSS pixels. - /// - public double ContentsWidth { get; set; } - /// - /// Gets or sets Contents height in CSS pixels. - /// - public double ContentsHeight { get; set; } - /// - /// Gets or sets Page scale factor. - /// - public double PageScaleFactor { get; set; } - /// - /// Gets or sets Minimum page scale factor. - /// - public double MinimumPageScaleFactor { get; set; } - /// - /// Gets or sets Maximum page scale factor. - /// - public double MaximumPageScaleFactor { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/ViewportChangedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/ViewportChangedEvent.cs deleted file mode 100644 index 7c875883..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Emulation/ViewportChangedEvent.cs +++ /dev/null @@ -1,17 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation -{ - /// - /// Fired when a visible page viewport has changed. Only fired when device metrics are overridden. - /// - [Event(ProtocolName.Emulation.ViewportChanged)] - [SupportedBy("Chrome")] - public class ViewportChangedEvent - { - /// - /// Gets or sets Viewport description. - /// - public Viewport Viewport { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/VirtualTimeBudgetExpiredEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/VirtualTimeBudgetExpiredEvent.cs new file mode 100644 index 00000000..15d2a7c6 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/VirtualTimeBudgetExpiredEvent.cs @@ -0,0 +1,13 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation +{ + /// + /// Notification sent after the virual time budget for the current VirtualTimePolicy has run out. + /// + [Event(ProtocolName.Emulation.VirtualTimeBudgetExpired)] + [SupportedBy("Chrome")] + public class VirtualTimeBudgetExpiredEvent + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Emulation/VirtualTimePolicy.cs b/source/ChromeDevTools/Protocol/Chrome/Emulation/VirtualTimePolicy.cs new file mode 100644 index 00000000..9f172946 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Emulation/VirtualTimePolicy.cs @@ -0,0 +1,18 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Emulation{ + /// + /// advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum VirtualTimePolicy + { + Advance, + Pause, + PauseIfNetworkFetchesPending, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/DeleteEntryCommand.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/DeleteEntryCommand.cs deleted file mode 100644 index 7741ae92..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/DeleteEntryCommand.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Deletes specified entry. If the entry is a directory, the agent deletes children recursively. - /// - [Command(ProtocolName.FileSystem.DeleteEntry)] - [SupportedBy("Chrome")] - public class DeleteEntryCommand - { - /// - /// Gets or sets URL of the entry to delete. - /// - public string Url { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/DeleteEntryCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/DeleteEntryCommandResponse.cs deleted file mode 100644 index afb35070..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/DeleteEntryCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Deletes specified entry. If the entry is a directory, the agent deletes children recursively. - /// - [CommandResponse(ProtocolName.FileSystem.DeleteEntry)] - [SupportedBy("Chrome")] - public class DeleteEntryCommandResponse - { - /// - /// Gets or sets 0, if no error. Otherwise errorCode is set to FileError::ErrorCode value. - /// - public long ErrorCode { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/DisableCommand.cs deleted file mode 100644 index daf475d5..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/DisableCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Disables events from backend. - /// - [Command(ProtocolName.FileSystem.Disable)] - [SupportedBy("Chrome")] - public class DisableCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/EnableCommand.cs deleted file mode 100644 index 2adf9a3a..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/EnableCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Enables events from backend. - /// - [Command(ProtocolName.FileSystem.Enable)] - [SupportedBy("Chrome")] - public class EnableCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/Entry.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/Entry.cs deleted file mode 100644 index 8988af25..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/Entry.cs +++ /dev/null @@ -1,41 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Represents a browser side file or directory. - /// - [SupportedBy("Chrome")] - public class Entry - { - /// - /// Gets or sets filesystem: URL for the entry. - /// - public string Url { get; set; } - /// - /// Gets or sets The name of the file or directory. - /// - public string Name { get; set; } - /// - /// Gets or sets True if the entry is a directory. - /// - public bool IsDirectory { get; set; } - /// - /// Gets or sets MIME type of the entry, available for a file only. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string MimeType { get; set; } - /// - /// Gets or sets ResourceType of the entry, available for a file only. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Page.ResourceType ResourceType { get; set; } - /// - /// Gets or sets True if the entry is a text file. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? IsTextFile { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/Metadata.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/Metadata.cs deleted file mode 100644 index 909b1cc2..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/Metadata.cs +++ /dev/null @@ -1,22 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Represents metadata of a file or entry. - /// - [SupportedBy("Chrome")] - public class Metadata - { - /// - /// Gets or sets Modification time. - /// - public double ModificationTime { get; set; } - /// - /// Gets or sets File size. This field is always zero for directories. - /// - public double Size { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestDirectoryContentCommand.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestDirectoryContentCommand.cs deleted file mode 100644 index abc47564..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestDirectoryContentCommand.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Returns content of the directory. - /// - [Command(ProtocolName.FileSystem.RequestDirectoryContent)] - [SupportedBy("Chrome")] - public class RequestDirectoryContentCommand - { - /// - /// Gets or sets URL of the directory that the frontend is requesting to read from. - /// - public string Url { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestDirectoryContentCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestDirectoryContentCommandResponse.cs deleted file mode 100644 index 0e0424b8..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestDirectoryContentCommandResponse.cs +++ /dev/null @@ -1,24 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Returns content of the directory. - /// - [CommandResponse(ProtocolName.FileSystem.RequestDirectoryContent)] - [SupportedBy("Chrome")] - public class RequestDirectoryContentCommandResponse - { - /// - /// Gets or sets 0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value. - /// - public long ErrorCode { get; set; } - /// - /// Gets or sets Contains all entries on directory if the command completed successfully. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Entry[] Entries { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestFileContentCommand.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestFileContentCommand.cs deleted file mode 100644 index 6cbbb2dc..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestFileContentCommand.cs +++ /dev/null @@ -1,38 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Returns content of the file. Result should be sliced into [start, end). - /// - [Command(ProtocolName.FileSystem.RequestFileContent)] - [SupportedBy("Chrome")] - public class RequestFileContentCommand - { - /// - /// Gets or sets URL of the file that the frontend is requesting to read from. - /// - public string Url { get; set; } - /// - /// Gets or sets True if the content should be read as text, otherwise the result will be returned as base64 encoded text. - /// - public bool ReadAsText { get; set; } - /// - /// Gets or sets Specifies the start of range to read. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? Start { get; set; } - /// - /// Gets or sets Specifies the end of range to read exclusively. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? End { get; set; } - /// - /// Gets or sets Overrides charset of the content when content is served as text. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Charset { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestFileContentCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestFileContentCommandResponse.cs deleted file mode 100644 index 01768977..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestFileContentCommandResponse.cs +++ /dev/null @@ -1,29 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Returns content of the file. Result should be sliced into [start, end). - /// - [CommandResponse(ProtocolName.FileSystem.RequestFileContent)] - [SupportedBy("Chrome")] - public class RequestFileContentCommandResponse - { - /// - /// Gets or sets 0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value. - /// - public long ErrorCode { get; set; } - /// - /// Gets or sets Content of the file. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Content { get; set; } - /// - /// Gets or sets Charset of the content if it is served as text. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Charset { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestFileSystemRootCommand.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestFileSystemRootCommand.cs deleted file mode 100644 index 787d301f..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestFileSystemRootCommand.cs +++ /dev/null @@ -1,23 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Returns root directory of the FileSystem, if exists. - /// - [Command(ProtocolName.FileSystem.RequestFileSystemRoot)] - [SupportedBy("Chrome")] - public class RequestFileSystemRootCommand - { - /// - /// Gets or sets Security origin of requesting FileSystem. One of frames in current page needs to have this security origin. - /// - public string Origin { get; set; } - /// - /// Gets or sets FileSystem type of requesting FileSystem. - /// - public string Type { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestFileSystemRootCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestFileSystemRootCommandResponse.cs deleted file mode 100644 index 9b97eb91..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestFileSystemRootCommandResponse.cs +++ /dev/null @@ -1,24 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Returns root directory of the FileSystem, if exists. - /// - [CommandResponse(ProtocolName.FileSystem.RequestFileSystemRoot)] - [SupportedBy("Chrome")] - public class RequestFileSystemRootCommandResponse - { - /// - /// Gets or sets 0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value. - /// - public long ErrorCode { get; set; } - /// - /// Gets or sets Contains root of the requested FileSystem if the command completed successfully. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Entry Root { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestMetadataCommand.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestMetadataCommand.cs deleted file mode 100644 index b83385fa..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestMetadataCommand.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Returns metadata of the entry. - /// - [Command(ProtocolName.FileSystem.RequestMetadata)] - [SupportedBy("Chrome")] - public class RequestMetadataCommand - { - /// - /// Gets or sets URL of the entry that the frontend is requesting to get metadata from. - /// - public string Url { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestMetadataCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestMetadataCommandResponse.cs deleted file mode 100644 index 2e52e73f..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/RequestMetadataCommandResponse.cs +++ /dev/null @@ -1,24 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem -{ - /// - /// Returns metadata of the entry. - /// - [CommandResponse(ProtocolName.FileSystem.RequestMetadata)] - [SupportedBy("Chrome")] - public class RequestMetadataCommandResponse - { - /// - /// Gets or sets 0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value. - /// - public long ErrorCode { get; set; } - /// - /// Gets or sets Contains metadata of the entry if the command completed successfully. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Metadata Metadata { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/AddInspectedHeapObjectCommand.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/AddInspectedHeapObjectCommand.cs index 7c1cd1b9..61c67503 100644 --- a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/AddInspectedHeapObjectCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/AddInspectedHeapObjectCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler /// [Command(ProtocolName.HeapProfiler.AddInspectedHeapObject)] [SupportedBy("Chrome")] - public class AddInspectedHeapObjectCommand + public class AddInspectedHeapObjectCommand: ICommand { /// /// Gets or sets Heap snapshot object id to be accessible by means of $x command line API. diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/CollectGarbageCommand.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/CollectGarbageCommand.cs index 8709d0a0..cc559b1d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/CollectGarbageCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/CollectGarbageCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler { [Command(ProtocolName.HeapProfiler.CollectGarbage)] [SupportedBy("Chrome")] - public class CollectGarbageCommand + public class CollectGarbageCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/DisableCommand.cs index 8607df57..fdeb4c1d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/DisableCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler { [Command(ProtocolName.HeapProfiler.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/EnableCommand.cs index a67d1fa8..f8ab1559 100644 --- a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/EnableCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler { [Command(ProtocolName.HeapProfiler.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/GetHeapObjectIdCommand.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/GetHeapObjectIdCommand.cs index 3a0549f3..b2d840ee 100644 --- a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/GetHeapObjectIdCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/GetHeapObjectIdCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler { [Command(ProtocolName.HeapProfiler.GetHeapObjectId)] [SupportedBy("Chrome")] - public class GetHeapObjectIdCommand + public class GetHeapObjectIdCommand: ICommand { /// /// Gets or sets Identifier of the object to get heap object id for. diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/GetObjectByHeapObjectIdCommand.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/GetObjectByHeapObjectIdCommand.cs index e94afc86..7b45fdf8 100644 --- a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/GetObjectByHeapObjectIdCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/GetObjectByHeapObjectIdCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler { [Command(ProtocolName.HeapProfiler.GetObjectByHeapObjectId)] [SupportedBy("Chrome")] - public class GetObjectByHeapObjectIdCommand + public class GetObjectByHeapObjectIdCommand: ICommand { /// /// Gets or sets ObjectId diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/LastSeenObjectIdEvent.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/LastSeenObjectIdEvent.cs index f0ac185b..95652d7f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/LastSeenObjectIdEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/LastSeenObjectIdEvent.cs @@ -3,7 +3,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler { /// - /// If heap objects tracking has been started then backend regulary sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + /// If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. /// [Event(ProtocolName.HeapProfiler.LastSeenObjectId)] [SupportedBy("Chrome")] diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/SamplingHeapProfile.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/SamplingHeapProfile.cs new file mode 100644 index 00000000..fdf3f795 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/SamplingHeapProfile.cs @@ -0,0 +1,18 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler +{ + /// + /// Profile. + /// + [SupportedBy("Chrome")] + public class SamplingHeapProfile + { + /// + /// Gets or sets Head + /// + public SamplingHeapProfileNode Head { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/SamplingHeapProfileNode.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/SamplingHeapProfileNode.cs new file mode 100644 index 00000000..18c2f804 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/SamplingHeapProfileNode.cs @@ -0,0 +1,26 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler +{ + /// + /// Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes. + /// + [SupportedBy("Chrome")] + public class SamplingHeapProfileNode + { + /// + /// Gets or sets Function location. + /// + public Runtime.CallFrame CallFrame { get; set; } + /// + /// Gets or sets Allocations size in bytes for the node excluding children. + /// + public double SelfSize { get; set; } + /// + /// Gets or sets Child nodes. + /// + public SamplingHeapProfileNode[] Children { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StartSamplingCommand.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StartSamplingCommand.cs new file mode 100644 index 00000000..0cb0c1d4 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StartSamplingCommand.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler +{ + [Command(ProtocolName.HeapProfiler.StartSampling)] + [SupportedBy("Chrome")] + public class StartSamplingCommand: ICommand + { + /// + /// Gets or sets Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public double SamplingInterval { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StartSamplingCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StartSamplingCommandResponse.cs new file mode 100644 index 00000000..52b6e8aa --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StartSamplingCommandResponse.cs @@ -0,0 +1,12 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler +{ + [CommandResponse(ProtocolName.HeapProfiler.StartSampling)] + [SupportedBy("Chrome")] + public class StartSamplingCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StartTrackingHeapObjectsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StartTrackingHeapObjectsCommand.cs index c82d34f3..c502f7f2 100644 --- a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StartTrackingHeapObjectsCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StartTrackingHeapObjectsCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler { [Command(ProtocolName.HeapProfiler.StartTrackingHeapObjects)] [SupportedBy("Chrome")] - public class StartTrackingHeapObjectsCommand + public class StartTrackingHeapObjectsCommand: ICommand { /// /// Gets or sets TrackAllocations diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StopSamplingCommand.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StopSamplingCommand.cs new file mode 100644 index 00000000..8ea24dfc --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StopSamplingCommand.cs @@ -0,0 +1,12 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler +{ + [Command(ProtocolName.HeapProfiler.StopSampling)] + [SupportedBy("Chrome")] + public class StopSamplingCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StopSamplingCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StopSamplingCommandResponse.cs new file mode 100644 index 00000000..f5753856 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StopSamplingCommandResponse.cs @@ -0,0 +1,16 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler +{ + [CommandResponse(ProtocolName.HeapProfiler.StopSampling)] + [SupportedBy("Chrome")] + public class StopSamplingCommandResponse + { + /// + /// Gets or sets Recorded sampling heap profile. + /// + public SamplingHeapProfile Profile { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StopTrackingHeapObjectsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StopTrackingHeapObjectsCommand.cs index a806cb90..a24b2159 100644 --- a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StopTrackingHeapObjectsCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/StopTrackingHeapObjectsCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler { [Command(ProtocolName.HeapProfiler.StopTrackingHeapObjects)] [SupportedBy("Chrome")] - public class StopTrackingHeapObjectsCommand + public class StopTrackingHeapObjectsCommand: ICommand { /// /// Gets or sets If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped. diff --git a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/TakeHeapSnapshotCommand.cs b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/TakeHeapSnapshotCommand.cs index acfabeca..39df4cdd 100644 --- a/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/TakeHeapSnapshotCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/HeapProfiler/TakeHeapSnapshotCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler { [Command(ProtocolName.HeapProfiler.TakeHeapSnapshot)] [SupportedBy("Chrome")] - public class TakeHeapSnapshotCommand + public class TakeHeapSnapshotCommand: ICommand { /// /// Gets or sets If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. diff --git a/source/ChromeDevTools/Protocol/Chrome/IO/CloseCommand.cs b/source/ChromeDevTools/Protocol/Chrome/IO/CloseCommand.cs new file mode 100644 index 00000000..4d913ada --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/IO/CloseCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IO +{ + /// + /// Close the stream, discard any temporary backing storage. + /// + [Command(ProtocolName.IO.Close)] + [SupportedBy("Chrome")] + public class CloseCommand: ICommand + { + /// + /// Gets or sets Handle of the stream to close. + /// + public string Handle { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/IO/CloseCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/IO/CloseCommandResponse.cs new file mode 100644 index 00000000..6bd9141b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/IO/CloseCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IO +{ + /// + /// Close the stream, discard any temporary backing storage. + /// + [CommandResponse(ProtocolName.IO.Close)] + [SupportedBy("Chrome")] + public class CloseCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/IO/ReadCommand.cs b/source/ChromeDevTools/Protocol/Chrome/IO/ReadCommand.cs new file mode 100644 index 00000000..bc580ffc --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/IO/ReadCommand.cs @@ -0,0 +1,29 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IO +{ + /// + /// Read a chunk of the stream + /// + [Command(ProtocolName.IO.Read)] + [SupportedBy("Chrome")] + public class ReadCommand: ICommand + { + /// + /// Gets or sets Handle of the stream to read. + /// + public string Handle { get; set; } + /// + /// Gets or sets Seek to the specified offset before reading (if not specificed, proceed with offset following the last read). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Offset { get; set; } + /// + /// Gets or sets Maximum number of bytes to read (left upon the agent discretion if not specified). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Size { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/IO/ReadCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/IO/ReadCommandResponse.cs new file mode 100644 index 00000000..349dda7b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/IO/ReadCommandResponse.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IO +{ + /// + /// Read a chunk of the stream + /// + [CommandResponse(ProtocolName.IO.Read)] + [SupportedBy("Chrome")] + public class ReadCommandResponse + { + /// + /// Gets or sets Data that were read. + /// + public string Data { get; set; } + /// + /// Gets or sets Set if the end-of-file condition occured while reading. + /// + public bool Eof { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/ClearObjectStoreCommand.cs b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/ClearObjectStoreCommand.cs index 2284cdd9..90ac71a6 100644 --- a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/ClearObjectStoreCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/ClearObjectStoreCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IndexedDB /// [Command(ProtocolName.IndexedDB.ClearObjectStore)] [SupportedBy("Chrome")] - public class ClearObjectStoreCommand + public class ClearObjectStoreCommand: ICommand { /// /// Gets or sets Security origin. diff --git a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DataEntry.cs b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DataEntry.cs index 6e783811..fd1cd0a0 100644 --- a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DataEntry.cs +++ b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DataEntry.cs @@ -11,16 +11,16 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IndexedDB public class DataEntry { /// - /// Gets or sets JSON-stringified key object. + /// Gets or sets Key object. /// - public string Key { get; set; } + public Runtime.RemoteObject Key { get; set; } /// - /// Gets or sets JSON-stringified primary key object. + /// Gets or sets Primary key object. /// - public string PrimaryKey { get; set; } + public Runtime.RemoteObject PrimaryKey { get; set; } /// - /// Gets or sets JSON-stringified value object. + /// Gets or sets Value object. /// - public string Value { get; set; } + public Runtime.RemoteObject Value { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DatabaseWithObjectStores.cs b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DatabaseWithObjectStores.cs index 031ec16d..6e960a20 100644 --- a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DatabaseWithObjectStores.cs +++ b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DatabaseWithObjectStores.cs @@ -15,13 +15,9 @@ public class DatabaseWithObjectStores /// public string Name { get; set; } /// - /// Gets or sets Deprecated string database version. + /// Gets or sets Database version. /// - public string Version { get; set; } - /// - /// Gets or sets Integer database version. - /// - public long IntVersion { get; set; } + public long Version { get; set; } /// /// Gets or sets Object stores in this database. /// diff --git a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DeleteDatabaseCommand.cs b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DeleteDatabaseCommand.cs new file mode 100644 index 00000000..c72b7c50 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DeleteDatabaseCommand.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IndexedDB +{ + /// + /// Deletes a database. + /// + [Command(ProtocolName.IndexedDB.DeleteDatabase)] + [SupportedBy("Chrome")] + public class DeleteDatabaseCommand: ICommand + { + /// + /// Gets or sets Security origin. + /// + public string SecurityOrigin { get; set; } + /// + /// Gets or sets Database name. + /// + public string DatabaseName { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DeleteDatabaseCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DeleteDatabaseCommandResponse.cs new file mode 100644 index 00000000..7d9cca35 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DeleteDatabaseCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IndexedDB +{ + /// + /// Deletes a database. + /// + [CommandResponse(ProtocolName.IndexedDB.DeleteDatabase)] + [SupportedBy("Chrome")] + public class DeleteDatabaseCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DisableCommand.cs index 91df3b87..34ccea4b 100644 --- a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IndexedDB /// [Command(ProtocolName.IndexedDB.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/EnableCommand.cs index a2f4656d..a799505e 100644 --- a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IndexedDB /// [Command(ProtocolName.IndexedDB.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/RequestDataCommand.cs b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/RequestDataCommand.cs index 95b5e5b7..5cde7b3d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/RequestDataCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/RequestDataCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IndexedDB /// [Command(ProtocolName.IndexedDB.RequestData)] [SupportedBy("Chrome")] - public class RequestDataCommand + public class RequestDataCommand: ICommand { /// /// Gets or sets Security origin. diff --git a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/RequestDatabaseCommand.cs b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/RequestDatabaseCommand.cs index b836cef0..816b8019 100644 --- a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/RequestDatabaseCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/RequestDatabaseCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IndexedDB /// [Command(ProtocolName.IndexedDB.RequestDatabase)] [SupportedBy("Chrome")] - public class RequestDatabaseCommand + public class RequestDatabaseCommand: ICommand { /// /// Gets or sets Security origin. diff --git a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/RequestDatabaseNamesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/RequestDatabaseNamesCommand.cs index d0a1e5b6..47463192 100644 --- a/source/ChromeDevTools/Protocol/Chrome/IndexedDB/RequestDatabaseNamesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/IndexedDB/RequestDatabaseNamesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.IndexedDB /// [Command(ProtocolName.IndexedDB.RequestDatabaseNames)] [SupportedBy("Chrome")] - public class RequestDatabaseNamesCommand + public class RequestDatabaseNamesCommand: ICommand { /// /// Gets or sets Security origin. diff --git a/source/ChromeDevTools/Protocol/Chrome/Input/DispatchKeyEventCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Input/DispatchKeyEventCommand.cs index d9845a9e..306544eb 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Input/DispatchKeyEventCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Input/DispatchKeyEventCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Input /// [Command(ProtocolName.Input.DispatchKeyEvent)] [SupportedBy("Chrome")] - public class DispatchKeyEventCommand + public class DispatchKeyEventCommand: ICommand { /// /// Gets or sets Type of the key event. @@ -46,6 +46,11 @@ public class DispatchKeyEventCommand [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string Code { get; set; } /// + /// Gets or sets Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: ""). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Key { get; set; } + /// /// Gets or sets Windows virtual key code (default: 0). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] diff --git a/source/ChromeDevTools/Protocol/Chrome/Input/DispatchMouseEventCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Input/DispatchMouseEventCommand.cs index 79e6672f..4d8b6ecf 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Input/DispatchMouseEventCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Input/DispatchMouseEventCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Input /// [Command(ProtocolName.Input.DispatchMouseEvent)] [SupportedBy("Chrome")] - public class DispatchMouseEventCommand + public class DispatchMouseEventCommand: ICommand { /// /// Gets or sets Type of the mouse event. diff --git a/source/ChromeDevTools/Protocol/Chrome/Input/DispatchTouchEventCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Input/DispatchTouchEventCommand.cs index 3e52eb58..5eb1805d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Input/DispatchTouchEventCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Input/DispatchTouchEventCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Input /// [Command(ProtocolName.Input.DispatchTouchEvent)] [SupportedBy("Chrome")] - public class DispatchTouchEventCommand + public class DispatchTouchEventCommand: ICommand { /// /// Gets or sets Type of the touch event. diff --git a/source/ChromeDevTools/Protocol/Chrome/Input/EmulateTouchFromMouseEventCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Input/EmulateTouchFromMouseEventCommand.cs index 76dd2491..a9751626 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Input/EmulateTouchFromMouseEventCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Input/EmulateTouchFromMouseEventCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Input /// [Command(ProtocolName.Input.EmulateTouchFromMouseEvent)] [SupportedBy("Chrome")] - public class EmulateTouchFromMouseEventCommand + public class EmulateTouchFromMouseEventCommand: ICommand { /// /// Gets or sets Type of the mouse event. diff --git a/source/ChromeDevTools/Protocol/Chrome/Input/SetIgnoreInputEventsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Input/SetIgnoreInputEventsCommand.cs new file mode 100644 index 00000000..2b965d40 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Input/SetIgnoreInputEventsCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Input +{ + /// + /// Ignores input events (useful while auditing page). + /// + [Command(ProtocolName.Input.SetIgnoreInputEvents)] + [SupportedBy("Chrome")] + public class SetIgnoreInputEventsCommand: ICommand + { + /// + /// Gets or sets Ignores input events processing when set to true. + /// + public bool Ignore { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Input/SetIgnoreInputEventsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Input/SetIgnoreInputEventsCommandResponse.cs new file mode 100644 index 00000000..0e9dfcc7 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Input/SetIgnoreInputEventsCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Input +{ + /// + /// Ignores input events (useful while auditing page). + /// + [CommandResponse(ProtocolName.Input.SetIgnoreInputEvents)] + [SupportedBy("Chrome")] + public class SetIgnoreInputEventsCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Input/SynthesizePinchGestureCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Input/SynthesizePinchGestureCommand.cs index 34cf27ed..29321fcb 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Input/SynthesizePinchGestureCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Input/SynthesizePinchGestureCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Input /// [Command(ProtocolName.Input.SynthesizePinchGesture)] [SupportedBy("Chrome")] - public class SynthesizePinchGestureCommand + public class SynthesizePinchGestureCommand: ICommand { /// /// Gets or sets X coordinate of the start of the gesture in CSS pixels. diff --git a/source/ChromeDevTools/Protocol/Chrome/Input/SynthesizeScrollGestureCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Input/SynthesizeScrollGestureCommand.cs index cd96bc75..59adc18d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Input/SynthesizeScrollGestureCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Input/SynthesizeScrollGestureCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Input /// [Command(ProtocolName.Input.SynthesizeScrollGesture)] [SupportedBy("Chrome")] - public class SynthesizeScrollGestureCommand + public class SynthesizeScrollGestureCommand: ICommand { /// /// Gets or sets X coordinate of the start of the gesture in CSS pixels. @@ -54,5 +54,20 @@ public class SynthesizeScrollGestureCommand /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string GestureSourceType { get; set; } + /// + /// Gets or sets The number of times to repeat the gesture (default: 0). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? RepeatCount { get; set; } + /// + /// Gets or sets The number of milliseconds delay between each repeat. (default: 250). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? RepeatDelayMs { get; set; } + /// + /// Gets or sets The name of the interaction markers to generate, if not empty (default: ""). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string InteractionMarkerName { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Input/SynthesizeTapGestureCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Input/SynthesizeTapGestureCommand.cs index 4cab53d8..b3d12fd1 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Input/SynthesizeTapGestureCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Input/SynthesizeTapGestureCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Input /// [Command(ProtocolName.Input.SynthesizeTapGesture)] [SupportedBy("Chrome")] - public class SynthesizeTapGestureCommand + public class SynthesizeTapGestureCommand: ICommand { /// /// Gets or sets X coordinate of the start of the gesture in CSS pixels. diff --git a/source/ChromeDevTools/Protocol/Chrome/Inspector/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Inspector/DisableCommand.cs index e7fdb957..22110820 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Inspector/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Inspector/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Inspector /// [Command(ProtocolName.Inspector.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Inspector/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Inspector/EnableCommand.cs index 1f108e76..c890fb9f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Inspector/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Inspector/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Inspector /// [Command(ProtocolName.Inspector.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Inspector/EvaluateForTestInFrontendEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Inspector/EvaluateForTestInFrontendEvent.cs deleted file mode 100644 index 6f391167..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Inspector/EvaluateForTestInFrontendEvent.cs +++ /dev/null @@ -1,18 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Inspector -{ - [Event(ProtocolName.Inspector.EvaluateForTestInFrontend)] - [SupportedBy("Chrome")] - public class EvaluateForTestInFrontendEvent - { - /// - /// Gets or sets TestCallId - /// - public long TestCallId { get; set; } - /// - /// Gets or sets Script - /// - public string Script { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Inspector/InspectEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Inspector/InspectEvent.cs deleted file mode 100644 index 59f1a310..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Inspector/InspectEvent.cs +++ /dev/null @@ -1,18 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Inspector -{ - [Event(ProtocolName.Inspector.Inspect)] - [SupportedBy("Chrome")] - public class InspectEvent - { - /// - /// Gets or sets Object - /// - public Runtime.RemoteObject Object { get; set; } - /// - /// Gets or sets Hints - /// - public object Hints { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/LayerTree/CompositingReasonsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/LayerTree/CompositingReasonsCommand.cs index 4af8a36d..d47ce2b5 100644 --- a/source/ChromeDevTools/Protocol/Chrome/LayerTree/CompositingReasonsCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/LayerTree/CompositingReasonsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.LayerTree /// [Command(ProtocolName.LayerTree.CompositingReasons)] [SupportedBy("Chrome")] - public class CompositingReasonsCommand + public class CompositingReasonsCommand: ICommand { /// /// Gets or sets The id of the layer for which we want to get the reasons it was composited. diff --git a/source/ChromeDevTools/Protocol/Chrome/LayerTree/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/LayerTree/DisableCommand.cs index 0715a036..d9ae03a2 100644 --- a/source/ChromeDevTools/Protocol/Chrome/LayerTree/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/LayerTree/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.LayerTree /// [Command(ProtocolName.LayerTree.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/LayerTree/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/LayerTree/EnableCommand.cs index b2f8123c..4c052c2f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/LayerTree/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/LayerTree/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.LayerTree /// [Command(ProtocolName.LayerTree.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/LayerTree/LoadSnapshotCommand.cs b/source/ChromeDevTools/Protocol/Chrome/LayerTree/LoadSnapshotCommand.cs index 28b10438..0c456c3f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/LayerTree/LoadSnapshotCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/LayerTree/LoadSnapshotCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.LayerTree /// [Command(ProtocolName.LayerTree.LoadSnapshot)] [SupportedBy("Chrome")] - public class LoadSnapshotCommand + public class LoadSnapshotCommand: ICommand { /// /// Gets or sets An array of tiles composing the snapshot. diff --git a/source/ChromeDevTools/Protocol/Chrome/LayerTree/MakeSnapshotCommand.cs b/source/ChromeDevTools/Protocol/Chrome/LayerTree/MakeSnapshotCommand.cs index 0fefe9a2..e847b34e 100644 --- a/source/ChromeDevTools/Protocol/Chrome/LayerTree/MakeSnapshotCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/LayerTree/MakeSnapshotCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.LayerTree /// [Command(ProtocolName.LayerTree.MakeSnapshot)] [SupportedBy("Chrome")] - public class MakeSnapshotCommand + public class MakeSnapshotCommand: ICommand { /// /// Gets or sets The id of the layer. diff --git a/source/ChromeDevTools/Protocol/Chrome/LayerTree/ProfileSnapshotCommand.cs b/source/ChromeDevTools/Protocol/Chrome/LayerTree/ProfileSnapshotCommand.cs index 771d3b24..7a862e74 100644 --- a/source/ChromeDevTools/Protocol/Chrome/LayerTree/ProfileSnapshotCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/LayerTree/ProfileSnapshotCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.LayerTree { [Command(ProtocolName.LayerTree.ProfileSnapshot)] [SupportedBy("Chrome")] - public class ProfileSnapshotCommand + public class ProfileSnapshotCommand: ICommand { /// /// Gets or sets The id of the layer snapshot. diff --git a/source/ChromeDevTools/Protocol/Chrome/LayerTree/ReleaseSnapshotCommand.cs b/source/ChromeDevTools/Protocol/Chrome/LayerTree/ReleaseSnapshotCommand.cs index 69cdd024..b0e0cea0 100644 --- a/source/ChromeDevTools/Protocol/Chrome/LayerTree/ReleaseSnapshotCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/LayerTree/ReleaseSnapshotCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.LayerTree /// [Command(ProtocolName.LayerTree.ReleaseSnapshot)] [SupportedBy("Chrome")] - public class ReleaseSnapshotCommand + public class ReleaseSnapshotCommand: ICommand { /// /// Gets or sets The id of the layer snapshot. diff --git a/source/ChromeDevTools/Protocol/Chrome/LayerTree/ReplaySnapshotCommand.cs b/source/ChromeDevTools/Protocol/Chrome/LayerTree/ReplaySnapshotCommand.cs index 81f336fe..b8b493c1 100644 --- a/source/ChromeDevTools/Protocol/Chrome/LayerTree/ReplaySnapshotCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/LayerTree/ReplaySnapshotCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.LayerTree /// [Command(ProtocolName.LayerTree.ReplaySnapshot)] [SupportedBy("Chrome")] - public class ReplaySnapshotCommand + public class ReplaySnapshotCommand: ICommand { /// /// Gets or sets The id of the layer snapshot. diff --git a/source/ChromeDevTools/Protocol/Chrome/LayerTree/SnapshotCommandLogCommand.cs b/source/ChromeDevTools/Protocol/Chrome/LayerTree/SnapshotCommandLogCommand.cs index 182206a3..64d40aa7 100644 --- a/source/ChromeDevTools/Protocol/Chrome/LayerTree/SnapshotCommandLogCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/LayerTree/SnapshotCommandLogCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.LayerTree /// [Command(ProtocolName.LayerTree.SnapshotCommandLog)] [SupportedBy("Chrome")] - public class SnapshotCommandLogCommand + public class SnapshotCommandLogCommand: ICommand { /// /// Gets or sets The id of the layer snapshot. diff --git a/source/ChromeDevTools/Protocol/Chrome/Log/ClearCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Log/ClearCommand.cs new file mode 100644 index 00000000..752bf5a0 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Log/ClearCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log +{ + /// + /// Clears the log. + /// + [Command(ProtocolName.Log.Clear)] + [SupportedBy("Chrome")] + public class ClearCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Timeline/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Log/ClearCommandResponse.cs similarity index 50% rename from source/ChromeDevTools/Protocol/Chrome/Timeline/DisableCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Log/ClearCommandResponse.cs index 29856f1e..1ca821b5 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Timeline/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Log/ClearCommandResponse.cs @@ -2,14 +2,14 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Timeline +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log { /// - /// Deprecated. + /// Clears the log. /// - [Command(ProtocolName.Timeline.Disable)] + [CommandResponse(ProtocolName.Log.Clear)] [SupportedBy("Chrome")] - public class DisableCommand + public class ClearCommandResponse { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Log/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Log/DisableCommand.cs new file mode 100644 index 00000000..efa3400e --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Log/DisableCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log +{ + /// + /// Disables log domain, prevents further log entries from being reported to the client. + /// + [Command(ProtocolName.Log.Disable)] + [SupportedBy("Chrome")] + public class DisableCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Log/DisableCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Log/DisableCommandResponse.cs new file mode 100644 index 00000000..8c6e346e --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Log/DisableCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log +{ + /// + /// Disables log domain, prevents further log entries from being reported to the client. + /// + [CommandResponse(ProtocolName.Log.Disable)] + [SupportedBy("Chrome")] + public class DisableCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Log/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Log/EnableCommand.cs new file mode 100644 index 00000000..292da212 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Log/EnableCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log +{ + /// + /// Enables log domain, sends the entries collected so far to the client by means of the entryAdded notification. + /// + [Command(ProtocolName.Log.Enable)] + [SupportedBy("Chrome")] + public class EnableCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Log/EnableCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Log/EnableCommandResponse.cs new file mode 100644 index 00000000..76a55c62 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Log/EnableCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log +{ + /// + /// Enables log domain, sends the entries collected so far to the client by means of the entryAdded notification. + /// + [CommandResponse(ProtocolName.Log.Enable)] + [SupportedBy("Chrome")] + public class EnableCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Log/EntryAddedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Log/EntryAddedEvent.cs new file mode 100644 index 00000000..28c26b56 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Log/EntryAddedEvent.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log +{ + /// + /// Issued when new message was logged. + /// + [Event(ProtocolName.Log.EntryAdded)] + [SupportedBy("Chrome")] + public class EntryAddedEvent + { + /// + /// Gets or sets The entry. + /// + public LogEntry Entry { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Log/LogEntry.cs b/source/ChromeDevTools/Protocol/Chrome/Log/LogEntry.cs new file mode 100644 index 00000000..909d7282 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Log/LogEntry.cs @@ -0,0 +1,55 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log +{ + /// + /// Log entry. + /// + [SupportedBy("Chrome")] + public class LogEntry + { + /// + /// Gets or sets Log entry source. + /// + public string Source { get; set; } + /// + /// Gets or sets Log entry severity. + /// + public string Level { get; set; } + /// + /// Gets or sets Logged text. + /// + public string Text { get; set; } + /// + /// Gets or sets Timestamp when this entry was added. + /// + public double Timestamp { get; set; } + /// + /// Gets or sets URL of the resource if known. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Url { get; set; } + /// + /// Gets or sets Line number in the resource. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? LineNumber { get; set; } + /// + /// Gets or sets JavaScript stack trace. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public Runtime.StackTrace StackTrace { get; set; } + /// + /// Gets or sets Identifier of the network request associated with this entry. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string NetworkRequestId { get; set; } + /// + /// Gets or sets Identifier of the worker associated with this entry. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string WorkerId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Log/StartViolationsReportCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Log/StartViolationsReportCommand.cs new file mode 100644 index 00000000..2d73f97b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Log/StartViolationsReportCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log +{ + /// + /// start violation reporting. + /// + [Command(ProtocolName.Log.StartViolationsReport)] + [SupportedBy("Chrome")] + public class StartViolationsReportCommand: ICommand + { + /// + /// Gets or sets Configuration for violations. + /// + public ViolationSetting[] Config { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Log/StartViolationsReportCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Log/StartViolationsReportCommandResponse.cs new file mode 100644 index 00000000..b17b79f9 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Log/StartViolationsReportCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log +{ + /// + /// start violation reporting. + /// + [CommandResponse(ProtocolName.Log.StartViolationsReport)] + [SupportedBy("Chrome")] + public class StartViolationsReportCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Log/StopViolationsReportCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Log/StopViolationsReportCommand.cs new file mode 100644 index 00000000..ad3e5dc4 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Log/StopViolationsReportCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log +{ + /// + /// Stop violation reporting. + /// + [Command(ProtocolName.Log.StopViolationsReport)] + [SupportedBy("Chrome")] + public class StopViolationsReportCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Log/StopViolationsReportCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Log/StopViolationsReportCommandResponse.cs new file mode 100644 index 00000000..f56bd736 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Log/StopViolationsReportCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log +{ + /// + /// Stop violation reporting. + /// + [CommandResponse(ProtocolName.Log.StopViolationsReport)] + [SupportedBy("Chrome")] + public class StopViolationsReportCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Log/ViolationSetting.cs b/source/ChromeDevTools/Protocol/Chrome/Log/ViolationSetting.cs new file mode 100644 index 00000000..87adad11 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Log/ViolationSetting.cs @@ -0,0 +1,22 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Log +{ + /// + /// Violation configuration setting. + /// + [SupportedBy("Chrome")] + public class ViolationSetting + { + /// + /// Gets or sets Violation type. + /// + public string Name { get; set; } + /// + /// Gets or sets Time threshold to trigger upon. + /// + public double Threshold { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Memory/GetDOMCountersCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Memory/GetDOMCountersCommand.cs index 359354a9..d385d1ef 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Memory/GetDOMCountersCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Memory/GetDOMCountersCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Memory { [Command(ProtocolName.Memory.GetDOMCounters)] [SupportedBy("Chrome")] - public class GetDOMCountersCommand + public class GetDOMCountersCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Memory/PressureLevel.cs b/source/ChromeDevTools/Protocol/Chrome/Memory/PressureLevel.cs new file mode 100644 index 00000000..203fff3c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Memory/PressureLevel.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Memory{ + /// + /// Memory pressure level. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PressureLevel + { + Moderate, + Critical, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Memory/SetPressureNotificationsSuppressedCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Memory/SetPressureNotificationsSuppressedCommand.cs new file mode 100644 index 00000000..7f8afe26 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Memory/SetPressureNotificationsSuppressedCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Memory +{ + /// + /// Enable/disable suppressing memory pressure notifications in all processes. + /// + [Command(ProtocolName.Memory.SetPressureNotificationsSuppressed)] + [SupportedBy("Chrome")] + public class SetPressureNotificationsSuppressedCommand: ICommand + { + /// + /// Gets or sets If true, memory pressure notifications will be suppressed. + /// + public bool Suppressed { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Memory/SetPressureNotificationsSuppressedCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Memory/SetPressureNotificationsSuppressedCommandResponse.cs new file mode 100644 index 00000000..2f7cb8dd --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Memory/SetPressureNotificationsSuppressedCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Memory +{ + /// + /// Enable/disable suppressing memory pressure notifications in all processes. + /// + [CommandResponse(ProtocolName.Memory.SetPressureNotificationsSuppressed)] + [SupportedBy("Chrome")] + public class SetPressureNotificationsSuppressedCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Memory/SimulatePressureNotificationCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Memory/SimulatePressureNotificationCommand.cs new file mode 100644 index 00000000..359ac31d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Memory/SimulatePressureNotificationCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Memory +{ + /// + /// Simulate a memory pressure notification in all processes. + /// + [Command(ProtocolName.Memory.SimulatePressureNotification)] + [SupportedBy("Chrome")] + public class SimulatePressureNotificationCommand: ICommand + { + /// + /// Gets or sets Memory pressure level of the notification. + /// + public string Level { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Memory/SimulatePressureNotificationCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Memory/SimulatePressureNotificationCommandResponse.cs new file mode 100644 index 00000000..d689a52c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Memory/SimulatePressureNotificationCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Memory +{ + /// + /// Simulate a memory pressure notification in all processes. + /// + [CommandResponse(ProtocolName.Memory.SimulatePressureNotification)] + [SupportedBy("Chrome")] + public class SimulatePressureNotificationCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/BlockedReason.cs b/source/ChromeDevTools/Protocol/Chrome/Network/BlockedReason.cs new file mode 100644 index 00000000..66aa5a56 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/BlockedReason.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network{ + /// + /// The reason why request was blocked. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum BlockedReason + { + Csp, + [EnumMember(Value = "mixed-content")] + Mixed_content, + Origin, + Inspector, + [EnumMember(Value = "subresource-filter")] + Subresource_filter, + Other, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/CanClearBrowserCacheCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/CanClearBrowserCacheCommand.cs index 858e48d9..6e18fa9b 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/CanClearBrowserCacheCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/CanClearBrowserCacheCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.CanClearBrowserCache)] [SupportedBy("Chrome")] - public class CanClearBrowserCacheCommand + public class CanClearBrowserCacheCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/CanClearBrowserCookiesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/CanClearBrowserCookiesCommand.cs index d36ee786..44d36887 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/CanClearBrowserCookiesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/CanClearBrowserCookiesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.CanClearBrowserCookies)] [SupportedBy("Chrome")] - public class CanClearBrowserCookiesCommand + public class CanClearBrowserCookiesCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/CanEmulateNetworkConditionsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/CanEmulateNetworkConditionsCommand.cs index c0df3a28..608d0cb8 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/CanEmulateNetworkConditionsCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/CanEmulateNetworkConditionsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.CanEmulateNetworkConditions)] [SupportedBy("Chrome")] - public class CanEmulateNetworkConditionsCommand + public class CanEmulateNetworkConditionsCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/ClearBrowserCacheCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/ClearBrowserCacheCommand.cs index dc704dcd..f33db627 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/ClearBrowserCacheCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/ClearBrowserCacheCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.ClearBrowserCache)] [SupportedBy("Chrome")] - public class ClearBrowserCacheCommand + public class ClearBrowserCacheCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/ClearBrowserCookiesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/ClearBrowserCookiesCommand.cs index d66db9eb..173b8bc1 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/ClearBrowserCookiesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/ClearBrowserCookiesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.ClearBrowserCookies)] [SupportedBy("Chrome")] - public class ClearBrowserCookiesCommand + public class ClearBrowserCookiesCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/ConnectionType.cs b/source/ChromeDevTools/Protocol/Chrome/Network/ConnectionType.cs new file mode 100644 index 00000000..2f01ef02 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/ConnectionType.cs @@ -0,0 +1,24 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network{ + /// + /// Loading priority of a resource request. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ConnectionType + { + None, + Cellular2g, + Cellular3g, + Cellular4g, + Bluetooth, + Ethernet, + Wifi, + Wimax, + Other, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/Cookie.cs b/source/ChromeDevTools/Protocol/Chrome/Network/Cookie.cs index f88cc689..53c93419 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/Cookie.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/Cookie.cs @@ -27,7 +27,7 @@ public class Cookie /// public string Path { get; set; } /// - /// Gets or sets Cookie expires. + /// Gets or sets Cookie expiration date as the number of seconds since the UNIX epoch. /// public double Expires { get; set; } /// @@ -46,5 +46,10 @@ public class Cookie /// Gets or sets True in case of session cookie. /// public bool Session { get; set; } + /// + /// Gets or sets Cookie SameSite type. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public CookieSameSite SameSite { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/CookieSameSite.cs b/source/ChromeDevTools/Protocol/Chrome/Network/CookieSameSite.cs new file mode 100644 index 00000000..ed61694d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/CookieSameSite.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network{ + /// + /// Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CookieSameSite + { + Strict, + Lax, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/DeleteCookieCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/DeleteCookieCommand.cs index eeba45f7..3de4c3aa 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/DeleteCookieCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/DeleteCookieCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.DeleteCookie)] [SupportedBy("Chrome")] - public class DeleteCookieCommand + public class DeleteCookieCommand: ICommand { /// /// Gets or sets Name of the cookie to remove. diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/DisableCommand.cs index f524f7d1..e09a09ee 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/EmulateNetworkConditionsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/EmulateNetworkConditionsCommand.cs index d794fc50..f6b65e25 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/EmulateNetworkConditionsCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/EmulateNetworkConditionsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.EmulateNetworkConditions)] [SupportedBy("Chrome")] - public class EmulateNetworkConditionsCommand + public class EmulateNetworkConditionsCommand: ICommand { /// /// Gets or sets True to emulate internet disconnection. @@ -27,5 +27,10 @@ public class EmulateNetworkConditionsCommand /// Gets or sets Maximal aggregated upload throughput. /// public double UploadThroughput { get; set; } + /// + /// Gets or sets Connection type if known. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string ConnectionType { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/EnableCommand.cs index b601cff7..7e5b243d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/EnableCommand.cs @@ -9,7 +9,17 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { + /// + /// Gets or sets Buffer size in bytes to use when preserving network payloads (XHRs, etc). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? MaxTotalBufferSize { get; set; } + /// + /// Gets or sets Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? MaxResourceBufferSize { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/GetAllCookiesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/GetAllCookiesCommand.cs new file mode 100644 index 00000000..b68bf192 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/GetAllCookiesCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field. + /// + [Command(ProtocolName.Network.GetAllCookies)] + [SupportedBy("Chrome")] + public class GetAllCookiesCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/GetAllCookiesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Network/GetAllCookiesCommandResponse.cs new file mode 100644 index 00000000..413c3cda --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/GetAllCookiesCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field. + /// + [CommandResponse(ProtocolName.Network.GetAllCookies)] + [SupportedBy("Chrome")] + public class GetAllCookiesCommandResponse + { + /// + /// Gets or sets Array of cookie objects. + /// + public Cookie[] Cookies { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/GetCertificateCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/GetCertificateCommand.cs new file mode 100644 index 00000000..0b040472 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/GetCertificateCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Returns the DER-encoded certificate. + /// + [Command(ProtocolName.Network.GetCertificate)] + [SupportedBy("Chrome")] + public class GetCertificateCommand: ICommand + { + /// + /// Gets or sets Origin to get certificate for. + /// + public string Origin { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/GetCertificateCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Network/GetCertificateCommandResponse.cs new file mode 100644 index 00000000..8a56f15a --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/GetCertificateCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Returns the DER-encoded certificate. + /// + [CommandResponse(ProtocolName.Network.GetCertificate)] + [SupportedBy("Chrome")] + public class GetCertificateCommandResponse + { + /// + /// Gets or sets TableNames + /// + public string[] TableNames { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/GetCookiesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/GetCookiesCommand.cs index 5a8a6613..e0fb0d6c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/GetCookiesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/GetCookiesCommand.cs @@ -5,11 +5,16 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network { /// - /// Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field. + /// Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field. /// [Command(ProtocolName.Network.GetCookies)] [SupportedBy("Chrome")] - public class GetCookiesCommand + public class GetCookiesCommand: ICommand { + /// + /// Gets or sets The list of URLs for which applicable cookies will be fetched + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string[] Urls { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/GetCookiesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Network/GetCookiesCommandResponse.cs index 6722e7bf..792722a7 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/GetCookiesCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/GetCookiesCommandResponse.cs @@ -5,7 +5,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network { /// - /// Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field. + /// Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field. /// [CommandResponse(ProtocolName.Network.GetCookies)] [SupportedBy("Chrome")] diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/GetResponseBodyCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/GetResponseBodyCommand.cs index c997a273..c3d4fc86 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/GetResponseBodyCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/GetResponseBodyCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.GetResponseBody)] [SupportedBy("Chrome")] - public class GetResponseBodyCommand + public class GetResponseBodyCommand: ICommand { /// /// Gets or sets Identifier of the network request to get content for. diff --git a/source/ChromeDevTools/Protocol/Chrome/Timeline/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/Headers.cs similarity index 51% rename from source/ChromeDevTools/Protocol/Chrome/Timeline/EnableCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Network/Headers.cs index 2fa8ca46..c4ae7fdf 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Timeline/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/Headers.cs @@ -2,14 +2,13 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Timeline +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network { /// - /// Deprecated. + /// Request / response headers as keys / values of JSON object. /// - [Command(ProtocolName.Timeline.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class Headers { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/Initiator.cs b/source/ChromeDevTools/Protocol/Chrome/Network/Initiator.cs index 65cd26e8..d2212b8d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/Initiator.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/Initiator.cs @@ -18,21 +18,16 @@ public class Initiator /// Gets or sets Initiator JavaScript stack trace, set for Script only. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Console.CallFrame[] StackTrace { get; set; } + public Runtime.StackTrace Stack { get; set; } /// /// Gets or sets Initiator URL, set for Parser type only. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string Url { get; set; } /// - /// Gets or sets Initiator line number, set for Parser type only. + /// Gets or sets Initiator line number, set for Parser type only (0-based). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public double LineNumber { get; set; } - /// - /// Gets or sets Initiator asynchronous JavaScript stack trace, if available. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Console.AsyncStackTrace AsyncStackTrace { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/LoadingFailedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Network/LoadingFailedEvent.cs index ed295f30..6e3df63e 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/LoadingFailedEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/LoadingFailedEvent.cs @@ -30,5 +30,10 @@ public class LoadingFailedEvent /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public bool? Canceled { get; set; } + /// + /// Gets or sets The reason why loading was blocked, if any. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public BlockedReason BlockedReason { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/ReplayXHRCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/ReplayXHRCommand.cs index 290f2cbd..0ae6737b 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/ReplayXHRCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/ReplayXHRCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.ReplayXHR)] [SupportedBy("Chrome")] - public class ReplayXHRCommand + public class ReplayXHRCommand: ICommand { /// /// Gets or sets Identifier of XHR to replay. diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/Request.cs b/source/ChromeDevTools/Protocol/Chrome/Network/Request.cs index a8909b67..78451751 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/Request.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/Request.cs @@ -27,5 +27,23 @@ public class Request /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string PostData { get; set; } + /// + /// Gets or sets The mixed content status of the request, as defined in http://www.w3.org/TR/mixed-content/ + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string MixedContentType { get; set; } + /// + /// Gets or sets Priority of the resource request at the time request is sent. + /// + public ResourcePriority InitialPriority { get; set; } + /// + /// Gets or sets The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ + /// + public string ReferrerPolicy { get; set; } + /// + /// Gets or sets Whether is loaded via link preload. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? IsLinkPreload { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/ResourceChangedPriorityEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Network/ResourceChangedPriorityEvent.cs new file mode 100644 index 00000000..551ced60 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/ResourceChangedPriorityEvent.cs @@ -0,0 +1,25 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Fired when resource loading priority is changed + /// + [Event(ProtocolName.Network.ResourceChangedPriority)] + [SupportedBy("Chrome")] + public class ResourceChangedPriorityEvent + { + /// + /// Gets or sets Request identifier. + /// + public string RequestId { get; set; } + /// + /// Gets or sets New priority + /// + public ResourcePriority NewPriority { get; set; } + /// + /// Gets or sets Timestamp. + /// + public double Timestamp { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/ResourcePriority.cs b/source/ChromeDevTools/Protocol/Chrome/Network/ResourcePriority.cs new file mode 100644 index 00000000..51fc358d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/ResourcePriority.cs @@ -0,0 +1,20 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network{ + /// + /// Loading priority of a resource request. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum ResourcePriority + { + VeryLow, + Low, + Medium, + High, + VeryHigh, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/ResourceTiming.cs b/source/ChromeDevTools/Protocol/Chrome/Network/ResourceTiming.cs index 27636196..757021df 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/ResourceTiming.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/ResourceTiming.cs @@ -47,17 +47,13 @@ public class ResourceTiming /// public double SslEnd { get; set; } /// - /// Gets or sets Started fetching via ServiceWorker. + /// Gets or sets Started running ServiceWorker. /// - public double ServiceWorkerFetchStart { get; set; } + public double WorkerStart { get; set; } /// - /// Gets or sets Prepared a ServiceWorker. + /// Gets or sets Finished Starting ServiceWorker. /// - public double ServiceWorkerFetchReady { get; set; } - /// - /// Gets or sets Finished fetching via ServiceWorker. - /// - public double ServiceWorkerFetchEnd { get; set; } + public double WorkerReady { get; set; } /// /// Gets or sets Started sending request. /// @@ -67,6 +63,14 @@ public class ResourceTiming /// public double SendEnd { get; set; } /// + /// Gets or sets Time the server started pushing request. + /// + public double PushStart { get; set; } + /// + /// Gets or sets Time the server finished pushing request. + /// + public double PushEnd { get; set; } + /// /// Gets or sets Finished receiving response headers. /// public double ReceiveHeadersEnd { get; set; } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/Response.cs b/source/ChromeDevTools/Protocol/Chrome/Network/Response.cs index 88f2e814..634d56b8 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/Response.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/Response.cs @@ -83,9 +83,18 @@ public class Response [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public ResourceTiming Timing { get; set; } /// - /// Gets or sets Protocol used to fetch this resquest. + /// Gets or sets Protocol used to fetch this request. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string Protocol { get; set; } + /// + /// Gets or sets Security state of the request resource. + /// + public Security.SecurityState SecurityState { get; set; } + /// + /// Gets or sets Security details for the request. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public SecurityDetails SecurityDetails { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SecurityDetails.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SecurityDetails.cs new file mode 100644 index 00000000..e82b4708 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/SecurityDetails.cs @@ -0,0 +1,64 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Security details about a request. + /// + [SupportedBy("Chrome")] + public class SecurityDetails + { + /// + /// Gets or sets Protocol name (e.g. "TLS 1.2" or "QUIC"). + /// + public string Protocol { get; set; } + /// + /// Gets or sets Key Exchange used by the connection, or the empty string if not applicable. + /// + public string KeyExchange { get; set; } + /// + /// Gets or sets (EC)DH group used by the connection, if applicable. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string KeyExchangeGroup { get; set; } + /// + /// Gets or sets Cipher name. + /// + public string Cipher { get; set; } + /// + /// Gets or sets TLS MAC. Note that AEAD ciphers do not have separate MACs. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Mac { get; set; } + /// + /// Gets or sets Certificate ID value. + /// + public long CertificateId { get; set; } + /// + /// Gets or sets Certificate subject name. + /// + public string SubjectName { get; set; } + /// + /// Gets or sets Subject Alternative Name (SAN) DNS names and IP addresses. + /// + public string[] SanList { get; set; } + /// + /// Gets or sets Name of the issuing CA. + /// + public string Issuer { get; set; } + /// + /// Gets or sets Certificate valid from date. + /// + public double ValidFrom { get; set; } + /// + /// Gets or sets Certificate valid to (expiration) date + /// + public double ValidTo { get; set; } + /// + /// Gets or sets List of signed certificate timestamps (SCTs). + /// + public SignedCertificateTimestamp[] SignedCertificateTimestampList { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SetBlockedURLsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SetBlockedURLsCommand.cs new file mode 100644 index 00000000..be4d14ff --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/SetBlockedURLsCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Blocks URLs from loading. + /// + [Command(ProtocolName.Network.SetBlockedURLs)] + [SupportedBy("Chrome")] + public class SetBlockedURLsCommand: ICommand + { + /// + /// Gets or sets URL patterns to block. Wildcards ('*') are allowed. + /// + public string[] Urls { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SetBlockedURLsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SetBlockedURLsCommandResponse.cs new file mode 100644 index 00000000..2eb769cd --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/SetBlockedURLsCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Blocks URLs from loading. + /// + [CommandResponse(ProtocolName.Network.SetBlockedURLs)] + [SupportedBy("Chrome")] + public class SetBlockedURLsCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SetBypassServiceWorkerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SetBypassServiceWorkerCommand.cs new file mode 100644 index 00000000..d194081d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/SetBypassServiceWorkerCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Toggles ignoring of service worker for each request. + /// + [Command(ProtocolName.Network.SetBypassServiceWorker)] + [SupportedBy("Chrome")] + public class SetBypassServiceWorkerCommand: ICommand + { + /// + /// Gets or sets Bypass service worker and load from network. + /// + public bool Bypass { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SetBypassServiceWorkerCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SetBypassServiceWorkerCommandResponse.cs new file mode 100644 index 00000000..b7500b6c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/SetBypassServiceWorkerCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Toggles ignoring of service worker for each request. + /// + [CommandResponse(ProtocolName.Network.SetBypassServiceWorker)] + [SupportedBy("Chrome")] + public class SetBypassServiceWorkerCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SetCacheDisabledCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SetCacheDisabledCommand.cs index 650df4dc..cd34ac20 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/SetCacheDisabledCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/SetCacheDisabledCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.SetCacheDisabled)] [SupportedBy("Chrome")] - public class SetCacheDisabledCommand + public class SetCacheDisabledCommand: ICommand { /// /// Gets or sets Cache disabled state. diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SetCookieCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SetCookieCommand.cs new file mode 100644 index 00000000..c06c2d03 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/SetCookieCommand.cs @@ -0,0 +1,57 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. + /// + [Command(ProtocolName.Network.SetCookie)] + [SupportedBy("Chrome")] + public class SetCookieCommand: ICommand + { + /// + /// Gets or sets The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. + /// + public string Url { get; set; } + /// + /// Gets or sets The name of the cookie. + /// + public string Name { get; set; } + /// + /// Gets or sets The value of the cookie. + /// + public string Value { get; set; } + /// + /// Gets or sets If omitted, the cookie becomes a host-only cookie. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Domain { get; set; } + /// + /// Gets or sets Defaults to the path portion of the url parameter. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Path { get; set; } + /// + /// Gets or sets Defaults ot false. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? Secure { get; set; } + /// + /// Gets or sets Defaults to false. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? HttpOnly { get; set; } + /// + /// Gets or sets Defaults to browser default behavior. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string SameSite { get; set; } + /// + /// Gets or sets If omitted, the cookie becomes a session cookie. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public double ExpirationDate { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SetCookieCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SetCookieCommandResponse.cs new file mode 100644 index 00000000..28ac8255 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/SetCookieCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist. + /// + [CommandResponse(ProtocolName.Network.SetCookie)] + [SupportedBy("Chrome")] + public class SetCookieCommandResponse + { + /// + /// Gets or sets True if successfully set cookie. + /// + public bool Success { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SetDataSizeLimitsForTestCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SetDataSizeLimitsForTestCommand.cs index ea4d5071..61c0d0aa 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/SetDataSizeLimitsForTestCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/SetDataSizeLimitsForTestCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.SetDataSizeLimitsForTest)] [SupportedBy("Chrome")] - public class SetDataSizeLimitsForTestCommand + public class SetDataSizeLimitsForTestCommand: ICommand { /// /// Gets or sets Maximum total buffer size. diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SetExtraHTTPHeadersCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SetExtraHTTPHeadersCommand.cs index d0a69469..ff46e91f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/SetExtraHTTPHeadersCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/SetExtraHTTPHeadersCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.SetExtraHTTPHeaders)] [SupportedBy("Chrome")] - public class SetExtraHTTPHeadersCommand + public class SetExtraHTTPHeadersCommand: ICommand { /// /// Gets or sets Map with extra HTTP headers. diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SetMonitoringXHREnabledCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SetMonitoringXHREnabledCommand.cs deleted file mode 100644 index 5b4b2d06..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Network/SetMonitoringXHREnabledCommand.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network -{ - /// - /// Toggles monitoring of XMLHttpRequest. If true, console will receive messages upon each XHR issued. - /// - [Command(ProtocolName.Network.SetMonitoringXHREnabled)] - [SupportedBy("Chrome")] - public class SetMonitoringXHREnabledCommand - { - /// - /// Gets or sets Monitoring enabled state. - /// - public bool Enabled { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SetMonitoringXHREnabledCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SetMonitoringXHREnabledCommandResponse.cs deleted file mode 100644 index 32747df8..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Network/SetMonitoringXHREnabledCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network -{ - /// - /// Toggles monitoring of XMLHttpRequest. If true, console will receive messages upon each XHR issued. - /// - [CommandResponse(ProtocolName.Network.SetMonitoringXHREnabled)] - [SupportedBy("Chrome")] - public class SetMonitoringXHREnabledCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SetUserAgentOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SetUserAgentOverrideCommand.cs index 8defc654..72621ec7 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/SetUserAgentOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/SetUserAgentOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network /// [Command(ProtocolName.Network.SetUserAgentOverride)] [SupportedBy("Chrome")] - public class SetUserAgentOverrideCommand + public class SetUserAgentOverrideCommand: ICommand { /// /// Gets or sets User agent to use. diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/SignedCertificateTimestamp.cs b/source/ChromeDevTools/Protocol/Chrome/Network/SignedCertificateTimestamp.cs new file mode 100644 index 00000000..ec22689d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Network/SignedCertificateTimestamp.cs @@ -0,0 +1,46 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network +{ + /// + /// Details of a signed certificate timestamp (SCT). + /// + [SupportedBy("Chrome")] + public class SignedCertificateTimestamp + { + /// + /// Gets or sets Validation status. + /// + public string Status { get; set; } + /// + /// Gets or sets Origin. + /// + public string Origin { get; set; } + /// + /// Gets or sets Log name / description. + /// + public string LogDescription { get; set; } + /// + /// Gets or sets Log ID. + /// + public string LogId { get; set; } + /// + /// Gets or sets Issuance date. + /// + public double Timestamp { get; set; } + /// + /// Gets or sets Hash algorithm. + /// + public string HashAlgorithm { get; set; } + /// + /// Gets or sets Signature algorithm. + /// + public string SignatureAlgorithm { get; set; } + /// + /// Gets or sets Signature data. + /// + public string SignatureData { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Network/WebSocketCreatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Network/WebSocketCreatedEvent.cs index 363dd117..be812cc6 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Network/WebSocketCreatedEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Network/WebSocketCreatedEvent.cs @@ -17,5 +17,10 @@ public class WebSocketCreatedEvent /// Gets or sets WebSocket request URL. /// public string Url { get; set; } + /// + /// Gets or sets Request initiator. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public Initiator Initiator { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/DisableCommand.cs new file mode 100644 index 00000000..d00619de --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/DisableCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + /// + /// Disables domain notifications. + /// + [Command(ProtocolName.Overlay.Disable)] + [SupportedBy("Chrome")] + public class DisableCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Timeline/DisableCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/DisableCommandResponse.cs similarity index 57% rename from source/ChromeDevTools/Protocol/Chrome/Timeline/DisableCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/DisableCommandResponse.cs index 1208671a..d441c57f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Timeline/DisableCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/DisableCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Timeline +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// - /// Deprecated. + /// Disables domain notifications. /// - [CommandResponse(ProtocolName.Timeline.Disable)] + [CommandResponse(ProtocolName.Overlay.Disable)] [SupportedBy("Chrome")] public class DisableCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/EnableCommand.cs new file mode 100644 index 00000000..b1841c44 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/EnableCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + /// + /// Enables domain notifications. + /// + [Command(ProtocolName.Overlay.Enable)] + [SupportedBy("Chrome")] + public class EnableCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Canvas/EnableCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/EnableCommandResponse.cs similarity index 57% rename from source/ChromeDevTools/Protocol/Chrome/Canvas/EnableCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/EnableCommandResponse.cs index f065a7c2..2ace3bf8 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Canvas/EnableCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/EnableCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// - /// Enables Canvas inspection. + /// Enables domain notifications. /// - [CommandResponse(ProtocolName.Canvas.Enable)] + [CommandResponse(ProtocolName.Overlay.Enable)] [SupportedBy("Chrome")] public class EnableCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetHighlightObjectForTestCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/GetHighlightObjectForTestCommand.cs similarity index 58% rename from source/ChromeDevTools/Protocol/Chrome/DOM/GetHighlightObjectForTestCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/GetHighlightObjectForTestCommand.cs index 42efbd57..c8ee0b04 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/GetHighlightObjectForTestCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/GetHighlightObjectForTestCommand.cs @@ -2,14 +2,14 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// For testing. /// - [Command(ProtocolName.DOM.GetHighlightObjectForTest)] + [Command(ProtocolName.Overlay.GetHighlightObjectForTest)] [SupportedBy("Chrome")] - public class GetHighlightObjectForTestCommand + public class GetHighlightObjectForTestCommand: ICommand { /// /// Gets or sets Id of the node to get highlight object for. diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/GetHighlightObjectForTestCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/GetHighlightObjectForTestCommandResponse.cs similarity index 73% rename from source/ChromeDevTools/Protocol/Chrome/DOM/GetHighlightObjectForTestCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/GetHighlightObjectForTestCommandResponse.cs index 5e0c8fc0..43eaeb52 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/GetHighlightObjectForTestCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/GetHighlightObjectForTestCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// For testing. /// - [CommandResponse(ProtocolName.DOM.GetHighlightObjectForTest)] + [CommandResponse(ProtocolName.Overlay.GetHighlightObjectForTest)] [SupportedBy("Chrome")] public class GetHighlightObjectForTestCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/HideHighlightCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/HideHighlightCommand.cs new file mode 100644 index 00000000..b71c3e3e --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/HideHighlightCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + /// + /// Hides any highlight. + /// + [Command(ProtocolName.Overlay.HideHighlight)] + [SupportedBy("Chrome")] + public class HideHighlightCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/HideHighlightCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/HideHighlightCommandResponse.cs new file mode 100644 index 00000000..5fa6d12c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/HideHighlightCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + /// + /// Hides any highlight. + /// + [CommandResponse(ProtocolName.Overlay.HideHighlight)] + [SupportedBy("Chrome")] + public class HideHighlightCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightConfig.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightConfig.cs similarity index 73% rename from source/ChromeDevTools/Protocol/Chrome/DOM/HighlightConfig.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightConfig.cs index 3392e2a7..96a783aa 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightConfig.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightConfig.cs @@ -2,7 +2,7 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Configuration data for the highlighting of page elements. @@ -26,39 +26,49 @@ public class HighlightConfig [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public bool? ShowExtensionLines { get; set; } /// + /// Gets or sets DisplayAsMaterial + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? DisplayAsMaterial { get; set; } + /// /// Gets or sets The content box highlight fill color (default: transparent). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA ContentColor { get; set; } + public DOM.RGBA ContentColor { get; set; } /// /// Gets or sets The padding highlight fill color (default: transparent). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA PaddingColor { get; set; } + public DOM.RGBA PaddingColor { get; set; } /// /// Gets or sets The border highlight fill color (default: transparent). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA BorderColor { get; set; } + public DOM.RGBA BorderColor { get; set; } /// /// Gets or sets The margin highlight fill color (default: transparent). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA MarginColor { get; set; } + public DOM.RGBA MarginColor { get; set; } /// /// Gets or sets The event target element highlight fill color (default: transparent). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA EventTargetColor { get; set; } + public DOM.RGBA EventTargetColor { get; set; } /// /// Gets or sets The shape outside fill color (default: transparent). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA ShapeColor { get; set; } + public DOM.RGBA ShapeColor { get; set; } /// /// Gets or sets The shape margin fill color (default: transparent). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA ShapeMarginColor { get; set; } + public DOM.RGBA ShapeMarginColor { get; set; } + /// + /// Gets or sets Selectors to highlight relevant nodes. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string SelectorList { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightFrameCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightFrameCommand.cs similarity index 71% rename from source/ChromeDevTools/Protocol/Chrome/DOM/HighlightFrameCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightFrameCommand.cs index 43a71296..a053ba27 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightFrameCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightFrameCommand.cs @@ -2,14 +2,14 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Highlights owner element of the frame with given id. /// - [Command(ProtocolName.DOM.HighlightFrame)] + [Command(ProtocolName.Overlay.HighlightFrame)] [SupportedBy("Chrome")] - public class HighlightFrameCommand + public class HighlightFrameCommand: ICommand { /// /// Gets or sets Identifier of the frame to highlight. @@ -19,11 +19,11 @@ public class HighlightFrameCommand /// Gets or sets The content box highlight fill color (default: transparent). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA ContentColor { get; set; } + public DOM.RGBA ContentColor { get; set; } /// /// Gets or sets The content box highlight outline color (default: transparent). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA ContentOutlineColor { get; set; } + public DOM.RGBA ContentOutlineColor { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightFrameCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightFrameCommandResponse.cs similarity index 69% rename from source/ChromeDevTools/Protocol/Chrome/DOM/HighlightFrameCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightFrameCommandResponse.cs index 47d55595..ec37eb74 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightFrameCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightFrameCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Highlights owner element of the frame with given id. /// - [CommandResponse(ProtocolName.DOM.HighlightFrame)] + [CommandResponse(ProtocolName.Overlay.HighlightFrame)] [SupportedBy("Chrome")] public class HighlightFrameCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightNodeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightNodeCommand.cs new file mode 100644 index 00000000..629ab4d9 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightNodeCommand.cs @@ -0,0 +1,34 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + /// + /// Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified. + /// + [Command(ProtocolName.Overlay.HighlightNode)] + [SupportedBy("Chrome")] + public class HighlightNodeCommand: ICommand + { + /// + /// Gets or sets A descriptor for the highlight appearance. + /// + public HighlightConfig HighlightConfig { get; set; } + /// + /// Gets or sets Identifier of the node to highlight. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? NodeId { get; set; } + /// + /// Gets or sets Identifier of the backend node to highlight. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? BackendNodeId { get; set; } + /// + /// Gets or sets JavaScript object id of the node to be highlighted. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string ObjectId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightNodeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightNodeCommandResponse.cs new file mode 100644 index 00000000..6baa6bed --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightNodeCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + /// + /// Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified. + /// + [CommandResponse(ProtocolName.Overlay.HighlightNode)] + [SupportedBy("Chrome")] + public class HighlightNodeCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightQuadCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightQuadCommand.cs similarity index 72% rename from source/ChromeDevTools/Protocol/Chrome/DOM/HighlightQuadCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightQuadCommand.cs index 88252e62..64273627 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightQuadCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightQuadCommand.cs @@ -2,14 +2,14 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Highlights given quad. Coordinates are absolute with respect to the main frame viewport. /// - [Command(ProtocolName.DOM.HighlightQuad)] + [Command(ProtocolName.Overlay.HighlightQuad)] [SupportedBy("Chrome")] - public class HighlightQuadCommand + public class HighlightQuadCommand: ICommand { /// /// Gets or sets Quad to highlight @@ -19,11 +19,11 @@ public class HighlightQuadCommand /// Gets or sets The highlight fill color (default: transparent). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA Color { get; set; } + public DOM.RGBA Color { get; set; } /// /// Gets or sets The highlight outline color (default: transparent). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public RGBA OutlineColor { get; set; } + public DOM.RGBA OutlineColor { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightQuadCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightQuadCommandResponse.cs similarity index 71% rename from source/ChromeDevTools/Protocol/Chrome/DOM/HighlightQuadCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightQuadCommandResponse.cs index f8c60082..655035ff 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/HighlightQuadCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightQuadCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Highlights given quad. Coordinates are absolute with respect to the main frame viewport. /// - [CommandResponse(ProtocolName.DOM.HighlightQuad)] + [CommandResponse(ProtocolName.Overlay.HighlightQuad)] [SupportedBy("Chrome")] public class HighlightQuadCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightRectCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightRectCommand.cs new file mode 100644 index 00000000..59e83dad --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightRectCommand.cs @@ -0,0 +1,41 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + /// + /// Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. + /// + [Command(ProtocolName.Overlay.HighlightRect)] + [SupportedBy("Chrome")] + public class HighlightRectCommand: ICommand + { + /// + /// Gets or sets X coordinate + /// + public long X { get; set; } + /// + /// Gets or sets Y coordinate + /// + public long Y { get; set; } + /// + /// Gets or sets Rectangle width + /// + public long Width { get; set; } + /// + /// Gets or sets Rectangle height + /// + public long Height { get; set; } + /// + /// Gets or sets The highlight fill color (default: transparent). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public DOM.RGBA Color { get; set; } + /// + /// Gets or sets The highlight outline color (default: transparent). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public DOM.RGBA OutlineColor { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightRectCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightRectCommandResponse.cs new file mode 100644 index 00000000..7c12b30b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/HighlightRectCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + /// + /// Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. + /// + [CommandResponse(ProtocolName.Overlay.HighlightRect)] + [SupportedBy("Chrome")] + public class HighlightRectCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/InspectMode.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/InspectMode.cs new file mode 100644 index 00000000..a82ea140 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/InspectMode.cs @@ -0,0 +1,18 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay{ + /// + /// + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum InspectMode + { + SearchForNode, + SearchForUAShadowDOM, + None, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/InspectNodeRequestedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/InspectNodeRequestedEvent.cs similarity index 64% rename from source/ChromeDevTools/Protocol/Chrome/DOM/InspectNodeRequestedEvent.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/InspectNodeRequestedEvent.cs index 99654410..cdcf079d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/InspectNodeRequestedEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/InspectNodeRequestedEvent.cs @@ -1,11 +1,11 @@ using MasterDevs.ChromeDevTools;using Newtonsoft.Json; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// - /// Fired when the node should be inspected. This happens after call to setInspectModeEnabled. + /// Fired when the node should be inspected. This happens after call to setInspectMode or when user manually inspects an element. /// - [Event(ProtocolName.DOM.InspectNodeRequested)] + [Event(ProtocolName.Overlay.InspectNodeRequested)] [SupportedBy("Chrome")] public class InspectNodeRequestedEvent { diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/NodeHighlightRequestedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/NodeHighlightRequestedEvent.cs new file mode 100644 index 00000000..4931677b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/NodeHighlightRequestedEvent.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + /// + /// Fired when the node should be highlighted. This happens after call to setInspectMode. + /// + [Event(ProtocolName.Overlay.NodeHighlightRequested)] + [SupportedBy("Chrome")] + public class NodeHighlightRequestedEvent + { + /// + /// Gets or sets NodeId + /// + public long NodeId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/SetInspectModeEnabledCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetInspectModeCommand.cs similarity index 57% rename from source/ChromeDevTools/Protocol/Chrome/DOM/SetInspectModeEnabledCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/SetInspectModeCommand.cs index adeb99e9..c4f99176 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/SetInspectModeEnabledCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetInspectModeCommand.cs @@ -2,24 +2,19 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection. /// - [Command(ProtocolName.DOM.SetInspectModeEnabled)] + [Command(ProtocolName.Overlay.SetInspectMode)] [SupportedBy("Chrome")] - public class SetInspectModeEnabledCommand + public class SetInspectModeCommand: ICommand { /// - /// Gets or sets True to enable inspection mode, false to disable it. + /// Gets or sets Set an inspection mode. /// - public bool Enabled { get; set; } - /// - /// Gets or sets True to enable inspection mode for user agent shadow DOM. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? InspectUAShadowDOM { get; set; } + public string Mode { get; set; } /// /// Gets or sets A descriptor for the highlight appearance of hovered-over nodes. May be omitted if enabled == false. /// diff --git a/source/ChromeDevTools/Protocol/Chrome/DOM/SetInspectModeEnabledCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetInspectModeCommandResponse.cs similarity index 66% rename from source/ChromeDevTools/Protocol/Chrome/DOM/SetInspectModeEnabledCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/SetInspectModeCommandResponse.cs index ca440529..d08f5bb5 100644 --- a/source/ChromeDevTools/Protocol/Chrome/DOM/SetInspectModeEnabledCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetInspectModeCommandResponse.cs @@ -2,14 +2,14 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection. /// - [CommandResponse(ProtocolName.DOM.SetInspectModeEnabled)] + [CommandResponse(ProtocolName.Overlay.SetInspectMode)] [SupportedBy("Chrome")] - public class SetInspectModeEnabledCommandResponse + public class SetInspectModeCommandResponse { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/SetPausedInDebuggerMessageCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetPausedInDebuggerMessageCommand.cs new file mode 100644 index 00000000..33806cd0 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetPausedInDebuggerMessageCommand.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + [Command(ProtocolName.Overlay.SetPausedInDebuggerMessage)] + [SupportedBy("Chrome")] + public class SetPausedInDebuggerMessageCommand: ICommand + { + /// + /// Gets or sets The message to display, also triggers resume and step over controls. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Message { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/SetPausedInDebuggerMessageCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetPausedInDebuggerMessageCommandResponse.cs new file mode 100644 index 00000000..d7e1efed --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetPausedInDebuggerMessageCommandResponse.cs @@ -0,0 +1,12 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + [CommandResponse(ProtocolName.Overlay.SetPausedInDebuggerMessage)] + [SupportedBy("Chrome")] + public class SetPausedInDebuggerMessageCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowDebugBordersCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowDebugBordersCommand.cs similarity index 62% rename from source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowDebugBordersCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowDebugBordersCommand.cs index cbb860cc..b8b0fd9a 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowDebugBordersCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowDebugBordersCommand.cs @@ -2,14 +2,14 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Rendering +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Requests that backend shows debug borders on layers /// - [Command(ProtocolName.Rendering.SetShowDebugBorders)] + [Command(ProtocolName.Overlay.SetShowDebugBorders)] [SupportedBy("Chrome")] - public class SetShowDebugBordersCommand + public class SetShowDebugBordersCommand: ICommand { /// /// Gets or sets True for showing debug borders diff --git a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowDebugBordersCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowDebugBordersCommandResponse.cs similarity index 67% rename from source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowDebugBordersCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowDebugBordersCommandResponse.cs index 93d88e1f..b7a86b67 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowDebugBordersCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowDebugBordersCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Rendering +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Requests that backend shows debug borders on layers /// - [CommandResponse(ProtocolName.Rendering.SetShowDebugBorders)] + [CommandResponse(ProtocolName.Overlay.SetShowDebugBorders)] [SupportedBy("Chrome")] public class SetShowDebugBordersCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowFPSCounterCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowFPSCounterCommand.cs similarity index 62% rename from source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowFPSCounterCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowFPSCounterCommand.cs index ba4bdf25..1cbef45a 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowFPSCounterCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowFPSCounterCommand.cs @@ -2,14 +2,14 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Rendering +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Requests that backend shows the FPS counter /// - [Command(ProtocolName.Rendering.SetShowFPSCounter)] + [Command(ProtocolName.Overlay.SetShowFPSCounter)] [SupportedBy("Chrome")] - public class SetShowFPSCounterCommand + public class SetShowFPSCounterCommand: ICommand { /// /// Gets or sets True for showing the FPS counter diff --git a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowFPSCounterCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowFPSCounterCommandResponse.cs similarity index 67% rename from source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowFPSCounterCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowFPSCounterCommandResponse.cs index 987b7526..361fcf78 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowFPSCounterCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowFPSCounterCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Rendering +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Requests that backend shows the FPS counter /// - [CommandResponse(ProtocolName.Rendering.SetShowFPSCounter)] + [CommandResponse(ProtocolName.Overlay.SetShowFPSCounter)] [SupportedBy("Chrome")] public class SetShowFPSCounterCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowPaintRectsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowPaintRectsCommand.cs similarity index 62% rename from source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowPaintRectsCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowPaintRectsCommand.cs index 46fa327a..0ef21627 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowPaintRectsCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowPaintRectsCommand.cs @@ -2,14 +2,14 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Rendering +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Requests that backend shows paint rectangles /// - [Command(ProtocolName.Rendering.SetShowPaintRects)] + [Command(ProtocolName.Overlay.SetShowPaintRects)] [SupportedBy("Chrome")] - public class SetShowPaintRectsCommand + public class SetShowPaintRectsCommand: ICommand { /// /// Gets or sets True for showing paint rectangles diff --git a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowPaintRectsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowPaintRectsCommandResponse.cs similarity index 67% rename from source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowPaintRectsCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowPaintRectsCommandResponse.cs index 2b31d5f7..cd69541a 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowPaintRectsCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowPaintRectsCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Rendering +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Requests that backend shows paint rectangles /// - [CommandResponse(ProtocolName.Rendering.SetShowPaintRects)] + [CommandResponse(ProtocolName.Overlay.SetShowPaintRects)] [SupportedBy("Chrome")] public class SetShowPaintRectsCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowScrollBottleneckRectsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowScrollBottleneckRectsCommand.cs similarity index 59% rename from source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowScrollBottleneckRectsCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowScrollBottleneckRectsCommand.cs index 462ebec4..c02953bb 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowScrollBottleneckRectsCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowScrollBottleneckRectsCommand.cs @@ -2,14 +2,14 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Rendering +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Requests that backend shows scroll bottleneck rects /// - [Command(ProtocolName.Rendering.SetShowScrollBottleneckRects)] + [Command(ProtocolName.Overlay.SetShowScrollBottleneckRects)] [SupportedBy("Chrome")] - public class SetShowScrollBottleneckRectsCommand + public class SetShowScrollBottleneckRectsCommand: ICommand { /// /// Gets or sets True for showing scroll bottleneck rects diff --git a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowScrollBottleneckRectsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowScrollBottleneckRectsCommandResponse.cs similarity index 66% rename from source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowScrollBottleneckRectsCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowScrollBottleneckRectsCommandResponse.cs index 89528ea7..1865574f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetShowScrollBottleneckRectsCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowScrollBottleneckRectsCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Rendering +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Requests that backend shows scroll bottleneck rects /// - [CommandResponse(ProtocolName.Rendering.SetShowScrollBottleneckRects)] + [CommandResponse(ProtocolName.Overlay.SetShowScrollBottleneckRects)] [SupportedBy("Chrome")] public class SetShowScrollBottleneckRectsCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowViewportSizeOnResizeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowViewportSizeOnResizeCommand.cs new file mode 100644 index 00000000..e1800a34 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowViewportSizeOnResizeCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + /// + /// Paints viewport size upon main frame resize. + /// + [Command(ProtocolName.Overlay.SetShowViewportSizeOnResize)] + [SupportedBy("Chrome")] + public class SetShowViewportSizeOnResizeCommand: ICommand + { + /// + /// Gets or sets Whether to paint size or not. + /// + public bool Show { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetShowViewportSizeOnResizeCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowViewportSizeOnResizeCommandResponse.cs similarity index 67% rename from source/ChromeDevTools/Protocol/Chrome/Page/SetShowViewportSizeOnResizeCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowViewportSizeOnResizeCommandResponse.cs index 6dc06103..fc697307 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/SetShowViewportSizeOnResizeCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetShowViewportSizeOnResizeCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay { /// /// Paints viewport size upon main frame resize. /// - [CommandResponse(ProtocolName.Page.SetShowViewportSizeOnResize)] + [CommandResponse(ProtocolName.Overlay.SetShowViewportSizeOnResize)] [SupportedBy("Chrome")] public class SetShowViewportSizeOnResizeCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/SetSuspendedCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetSuspendedCommand.cs new file mode 100644 index 00000000..f6cee479 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetSuspendedCommand.cs @@ -0,0 +1,16 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + [Command(ProtocolName.Overlay.SetSuspended)] + [SupportedBy("Chrome")] + public class SetSuspendedCommand: ICommand + { + /// + /// Gets or sets Whether overlay should be suspended and not consume any resources until resumed. + /// + public bool Suspended { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Overlay/SetSuspendedCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetSuspendedCommandResponse.cs new file mode 100644 index 00000000..2f9d9cab --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Overlay/SetSuspendedCommandResponse.cs @@ -0,0 +1,12 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay +{ + [CommandResponse(ProtocolName.Overlay.SetSuspended)] + [SupportedBy("Chrome")] + public class SetSuspendedCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/AddScriptToEvaluateOnLoadCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/AddScriptToEvaluateOnLoadCommand.cs index 4f5ef0b0..88d8d19c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/AddScriptToEvaluateOnLoadCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/AddScriptToEvaluateOnLoadCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page { [Command(ProtocolName.Page.AddScriptToEvaluateOnLoad)] [SupportedBy("Chrome")] - public class AddScriptToEvaluateOnLoadCommand + public class AddScriptToEvaluateOnLoadCommand: ICommand { /// /// Gets or sets ScriptSource diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/AppManifestError.cs b/source/ChromeDevTools/Protocol/Chrome/Page/AppManifestError.cs new file mode 100644 index 00000000..c5ccf59f --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/AppManifestError.cs @@ -0,0 +1,30 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Error while paring app manifest. + /// + [SupportedBy("Chrome")] + public class AppManifestError + { + /// + /// Gets or sets Error message. + /// + public string Message { get; set; } + /// + /// Gets or sets If criticial, this is a non-recoverable parse error. + /// + public long Critical { get; set; } + /// + /// Gets or sets Error line. + /// + public long Line { get; set; } + /// + /// Gets or sets Error column. + /// + public long Column { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/CanScreencastCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Page/CanScreencastCommandResponse.cs deleted file mode 100644 index 1244221b..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Page/CanScreencastCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page -{ - /// - /// Tells whether screencast is supported. - /// - [CommandResponse(ProtocolName.Page.CanScreencast)] - [SupportedBy("Chrome")] - public class CanScreencastCommandResponse - { - /// - /// Gets or sets True if screencast is supported. - /// - public bool Result { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/CaptureScreenshotCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/CaptureScreenshotCommand.cs index 41a32c02..361674c9 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/CaptureScreenshotCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/CaptureScreenshotCommand.cs @@ -9,7 +9,22 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.CaptureScreenshot)] [SupportedBy("Chrome")] - public class CaptureScreenshotCommand + public class CaptureScreenshotCommand: ICommand { + /// + /// Gets or sets Image compression format (defaults to png). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Format { get; set; } + /// + /// Gets or sets Compression quality from range [0..100] (jpeg only). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Quality { get; set; } + /// + /// Gets or sets Capture the screenshot from the surface, rather than the view. Defaults to true. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? FromSurface { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/CaptureScreenshotCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Page/CaptureScreenshotCommandResponse.cs index 6a26e381..393903f2 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/CaptureScreenshotCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/CaptureScreenshotCommandResponse.cs @@ -12,7 +12,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page public class CaptureScreenshotCommandResponse { /// - /// Gets or sets Base64-encoded image data (PNG). + /// Gets or sets Base64-encoded image data. /// public string Data { get; set; } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/ClearDeviceMetricsOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/ClearDeviceMetricsOverrideCommand.cs index 78cbc3a0..357a059e 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/ClearDeviceMetricsOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/ClearDeviceMetricsOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.ClearDeviceMetricsOverride)] [SupportedBy("Chrome")] - public class ClearDeviceMetricsOverrideCommand + public class ClearDeviceMetricsOverrideCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/ClearDeviceOrientationOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/ClearDeviceOrientationOverrideCommand.cs index d35ef696..47215821 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/ClearDeviceOrientationOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/ClearDeviceOrientationOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.ClearDeviceOrientationOverride)] [SupportedBy("Chrome")] - public class ClearDeviceOrientationOverrideCommand + public class ClearDeviceOrientationOverrideCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/ClearGeolocationOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/ClearGeolocationOverrideCommand.cs index c302f706..426cec69 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/ClearGeolocationOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/ClearGeolocationOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.ClearGeolocationOverride)] [SupportedBy("Chrome")] - public class ClearGeolocationOverrideCommand + public class ClearGeolocationOverrideCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/ColorPickedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Page/ColorPickedEvent.cs deleted file mode 100644 index 45ec9c5d..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Page/ColorPickedEvent.cs +++ /dev/null @@ -1,17 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page -{ - /// - /// Fired when a color has been picked. - /// - [Event(ProtocolName.Page.ColorPicked)] - [SupportedBy("Chrome")] - public class ColorPickedEvent - { - /// - /// Gets or sets RGBA of the picked color. - /// - public DOM.RGBA Color { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/CreateIsolatedWorldCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/CreateIsolatedWorldCommand.cs new file mode 100644 index 00000000..98e87886 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/CreateIsolatedWorldCommand.cs @@ -0,0 +1,29 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Creates an isolated world for the given frame. + /// + [Command(ProtocolName.Page.CreateIsolatedWorld)] + [SupportedBy("Chrome")] + public class CreateIsolatedWorldCommand: ICommand + { + /// + /// Gets or sets Id of the frame in which the isolated world should be created. + /// + public string FrameId { get; set; } + /// + /// Gets or sets An optional name which is reported in the Execution Context. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string WorldName { get; set; } + /// + /// Gets or sets Whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? GrantUniveralAccess { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/CanScreencastCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/CreateIsolatedWorldCommandResponse.cs similarity index 57% rename from source/ChromeDevTools/Protocol/Chrome/Page/CanScreencastCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Page/CreateIsolatedWorldCommandResponse.cs index abf55d26..4fe86612 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/CanScreencastCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/CreateIsolatedWorldCommandResponse.cs @@ -5,11 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page { /// - /// Tells whether screencast is supported. + /// Creates an isolated world for the given frame. /// - [Command(ProtocolName.Page.CanScreencast)] + [CommandResponse(ProtocolName.Page.CreateIsolatedWorld)] [SupportedBy("Chrome")] - public class CanScreencastCommand + public class CreateIsolatedWorldCommandResponse { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/DeleteCookieCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/DeleteCookieCommand.cs index db8b70fc..4792d16f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/DeleteCookieCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/DeleteCookieCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.DeleteCookie)] [SupportedBy("Chrome")] - public class DeleteCookieCommand + public class DeleteCookieCommand: ICommand { /// /// Gets or sets Name of the cookie to remove. diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/DialogType.cs b/source/ChromeDevTools/Protocol/Chrome/Page/DialogType.cs new file mode 100644 index 00000000..544fe52b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/DialogType.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page{ + /// + /// Javascript dialog type. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum DialogType + { + Alert, + Confirm, + Prompt, + Beforeunload, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/DisableCommand.cs index a9ab2015..8f8c6126 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/EnableCommand.cs index 20d32ec5..863f4f48 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/FrameAttachedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Page/FrameAttachedEvent.cs index e426f3dc..04b63e8d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/FrameAttachedEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/FrameAttachedEvent.cs @@ -17,5 +17,10 @@ public class FrameAttachedEvent /// Gets or sets Parent frame identifier. /// public string ParentFrameId { get; set; } + /// + /// Gets or sets JavaScript stack trace of when frame was attached, only set if frame initiated from script. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public Runtime.StackTrace Stack { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/FrameResource.cs b/source/ChromeDevTools/Protocol/Chrome/Page/FrameResource.cs new file mode 100644 index 00000000..b166f37c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/FrameResource.cs @@ -0,0 +1,46 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Information about the Resource on the page. + /// + [SupportedBy("Chrome")] + public class FrameResource + { + /// + /// Gets or sets Resource URL. + /// + public string Url { get; set; } + /// + /// Gets or sets Type of this resource. + /// + public ResourceType Type { get; set; } + /// + /// Gets or sets Resource mimeType as determined by the browser. + /// + public string MimeType { get; set; } + /// + /// Gets or sets last-modified timestamp as reported by server. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public double LastModified { get; set; } + /// + /// Gets or sets Resource content size. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public double ContentSize { get; set; } + /// + /// Gets or sets True if the resource failed to load. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? Failed { get; set; } + /// + /// Gets or sets True if the resource was canceled during loading. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? Canceled { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/FrameResourceTree.cs b/source/ChromeDevTools/Protocol/Chrome/Page/FrameResourceTree.cs index 6cace986..f58ae77c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/FrameResourceTree.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/FrameResourceTree.cs @@ -19,35 +19,9 @@ public class FrameResourceTree /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public FrameResourceTree[] ChildFrames { get; set; } - public class ResourcesArray - { - /// - /// Gets or sets Resource URL. - /// - public string Url { get; set; } - /// - /// Gets or sets Type of this resource. - /// - public ResourceType Type { get; set; } - /// - /// Gets or sets Resource mimeType as determined by the browser. - /// - public string MimeType { get; set; } - /// - /// Gets or sets True if the resource failed to load. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? Failed { get; set; } - /// - /// Gets or sets True if the resource was canceled during loading. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? Canceled { get; set; } - } - /// /// Gets or sets Information about frame resources. /// - public ResourcesArray[] Resources { get; set; } + public FrameResource[] Resources { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/GetAppManifestCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/GetAppManifestCommand.cs new file mode 100644 index 00000000..fc6cb6f1 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/GetAppManifestCommand.cs @@ -0,0 +1,12 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + [Command(ProtocolName.Page.GetAppManifest)] + [SupportedBy("Chrome")] + public class GetAppManifestCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/GetAppManifestCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Page/GetAppManifestCommandResponse.cs new file mode 100644 index 00000000..8371023f --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/GetAppManifestCommandResponse.cs @@ -0,0 +1,25 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + [CommandResponse(ProtocolName.Page.GetAppManifest)] + [SupportedBy("Chrome")] + public class GetAppManifestCommandResponse + { + /// + /// Gets or sets Manifest location. + /// + public string Url { get; set; } + /// + /// Gets or sets Errors + /// + public AppManifestError[] Errors { get; set; } + /// + /// Gets or sets Manifest content. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Data { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/GetCookiesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/GetCookiesCommand.cs index 70c0c841..9f245b35 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/GetCookiesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/GetCookiesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.GetCookies)] [SupportedBy("Chrome")] - public class GetCookiesCommand + public class GetCookiesCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/GetLayoutMetricsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/GetLayoutMetricsCommand.cs new file mode 100644 index 00000000..76739a4f --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/GetLayoutMetricsCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Returns metrics relating to the layouting of the page, such as viewport bounds/scale. + /// + [Command(ProtocolName.Page.GetLayoutMetrics)] + [SupportedBy("Chrome")] + public class GetLayoutMetricsCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/GetLayoutMetricsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Page/GetLayoutMetricsCommandResponse.cs new file mode 100644 index 00000000..3bb17cd5 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/GetLayoutMetricsCommandResponse.cs @@ -0,0 +1,27 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Returns metrics relating to the layouting of the page, such as viewport bounds/scale. + /// + [CommandResponse(ProtocolName.Page.GetLayoutMetrics)] + [SupportedBy("Chrome")] + public class GetLayoutMetricsCommandResponse + { + /// + /// Gets or sets Metrics relating to the layout viewport. + /// + public LayoutViewport LayoutViewport { get; set; } + /// + /// Gets or sets Metrics relating to the visual viewport. + /// + public VisualViewport VisualViewport { get; set; } + /// + /// Gets or sets Size of scrollable area. + /// + public DOM.Rect ContentSize { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/GetNavigationHistoryCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/GetNavigationHistoryCommand.cs index 36268967..d2f006c6 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/GetNavigationHistoryCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/GetNavigationHistoryCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.GetNavigationHistory)] [SupportedBy("Chrome")] - public class GetNavigationHistoryCommand + public class GetNavigationHistoryCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/GetResourceContentCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/GetResourceContentCommand.cs index 26366277..2091b1d6 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/GetResourceContentCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/GetResourceContentCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.GetResourceContent)] [SupportedBy("Chrome")] - public class GetResourceContentCommand + public class GetResourceContentCommand: ICommand { /// /// Gets or sets Frame id to get resource for. diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/GetResourceTreeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/GetResourceTreeCommand.cs index 37faf821..9e1c6766 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/GetResourceTreeCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/GetResourceTreeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.GetResourceTree)] [SupportedBy("Chrome")] - public class GetResourceTreeCommand + public class GetResourceTreeCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/HandleJavaScriptDialogCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/HandleJavaScriptDialogCommand.cs index 9619ddc4..4f02169a 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/HandleJavaScriptDialogCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/HandleJavaScriptDialogCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.HandleJavaScriptDialog)] [SupportedBy("Chrome")] - public class HandleJavaScriptDialogCommand + public class HandleJavaScriptDialogCommand: ICommand { /// /// Gets or sets Whether to accept or dismiss the dialog. diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/JavascriptDialogClosedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Page/JavascriptDialogClosedEvent.cs index e4e2a4e3..bd005842 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/JavascriptDialogClosedEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/JavascriptDialogClosedEvent.cs @@ -9,5 +9,9 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page [SupportedBy("Chrome")] public class JavascriptDialogClosedEvent { + /// + /// Gets or sets Whether dialog was confirmed. + /// + public bool Result { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/JavascriptDialogOpeningEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Page/JavascriptDialogOpeningEvent.cs index a531c3b8..c0781a5b 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/JavascriptDialogOpeningEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/JavascriptDialogOpeningEvent.cs @@ -13,5 +13,9 @@ public class JavascriptDialogOpeningEvent /// Gets or sets Message that will be displayed by the dialog. /// public string Message { get; set; } + /// + /// Gets or sets Dialog type. + /// + public DialogType Type { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/LayoutViewport.cs b/source/ChromeDevTools/Protocol/Chrome/Page/LayoutViewport.cs new file mode 100644 index 00000000..3f3b1fdc --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/LayoutViewport.cs @@ -0,0 +1,30 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Layout viewport position and dimensions. + /// + [SupportedBy("Chrome")] + public class LayoutViewport + { + /// + /// Gets or sets Horizontal offset relative to the document (CSS pixels). + /// + public long PageX { get; set; } + /// + /// Gets or sets Vertical offset relative to the document (CSS pixels). + /// + public long PageY { get; set; } + /// + /// Gets or sets Width (CSS pixels), excludes scrollbar if present. + /// + public long ClientWidth { get; set; } + /// + /// Gets or sets Height (CSS pixels), excludes scrollbar if present. + /// + public long ClientHeight { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/NavigateCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/NavigateCommand.cs index 9c8acf88..549dbda2 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/NavigateCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/NavigateCommand.cs @@ -9,11 +9,21 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.Navigate)] [SupportedBy("Chrome")] - public class NavigateCommand + public class NavigateCommand: ICommand { /// /// Gets or sets URL to navigate the page to. /// public string Url { get; set; } + /// + /// Gets or sets Referrer URL. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Referrer { get; set; } + /// + /// Gets or sets Intended transition type. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string TransitionType { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/NavigateToHistoryEntryCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/NavigateToHistoryEntryCommand.cs index 28ff1567..af9de23b 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/NavigateToHistoryEntryCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/NavigateToHistoryEntryCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.NavigateToHistoryEntry)] [SupportedBy("Chrome")] - public class NavigateToHistoryEntryCommand + public class NavigateToHistoryEntryCommand: ICommand { /// /// Gets or sets Unique id of the entry to navigate to. diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/NavigationEntry.cs b/source/ChromeDevTools/Protocol/Chrome/Page/NavigationEntry.cs index 301e6a0b..48e74e96 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/NavigationEntry.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/NavigationEntry.cs @@ -19,8 +19,16 @@ public class NavigationEntry /// public string Url { get; set; } /// + /// Gets or sets URL that the user typed in the url bar. + /// + public string UserTypedURL { get; set; } + /// /// Gets or sets Title of the navigation history entry. /// public string Title { get; set; } + /// + /// Gets or sets Transition type. + /// + public TransitionType TransitionType { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/NavigationRequestedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Page/NavigationRequestedEvent.cs new file mode 100644 index 00000000..177a223d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/NavigationRequestedEvent.cs @@ -0,0 +1,29 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Fired when a navigation is started if navigation throttles are enabled. The navigation will be deferred until processNavigation is called. + /// + [Event(ProtocolName.Page.NavigationRequested)] + [SupportedBy("Chrome")] + public class NavigationRequestedEvent + { + /// + /// Gets or sets Whether the navigation is taking place in the main frame or in a subframe. + /// + public bool IsInMainFrame { get; set; } + /// + /// Gets or sets Whether the navigation has encountered a server redirect or not. + /// + public bool IsRedirect { get; set; } + /// + /// Gets or sets NavigationId + /// + public long NavigationId { get; set; } + /// + /// Gets or sets URL of requested navigation. + /// + public string Url { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/NavigationResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Page/NavigationResponse.cs new file mode 100644 index 00000000..024dcc17 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/NavigationResponse.cs @@ -0,0 +1,18 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page{ + /// + /// Proceed: allow the navigation; Cancel: cancel the navigation; CancelAndIgnore: cancels the navigation and makes the requester of the navigation acts like the request was never made. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum NavigationResponse + { + Proceed, + Cancel, + CancelAndIgnore, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/PrintToPDFCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/PrintToPDFCommand.cs new file mode 100644 index 00000000..3d77153f --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/PrintToPDFCommand.cs @@ -0,0 +1,70 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Print page as PDF. + /// + [Command(ProtocolName.Page.PrintToPDF)] + [SupportedBy("Chrome")] + public class PrintToPDFCommand: ICommand + { + /// + /// Gets or sets Paper orientation. Defaults to false. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? Landscape { get; set; } + /// + /// Gets or sets Display header and footer. Defaults to false. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? DisplayHeaderFooter { get; set; } + /// + /// Gets or sets Print background graphics. Defaults to false. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? PrintBackground { get; set; } + /// + /// Gets or sets Scale of the webpage rendering. Defaults to 1. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public double Scale { get; set; } + /// + /// Gets or sets Paper width in inches. Defaults to 8.5 inches. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public double PaperWidth { get; set; } + /// + /// Gets or sets Paper height in inches. Defaults to 11 inches. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public double PaperHeight { get; set; } + /// + /// Gets or sets Top margin in inches. Defaults to 1cm (~0.4 inches). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public double MarginTop { get; set; } + /// + /// Gets or sets Bottom margin in inches. Defaults to 1cm (~0.4 inches). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public double MarginBottom { get; set; } + /// + /// Gets or sets Left margin in inches. Defaults to 1cm (~0.4 inches). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public double MarginLeft { get; set; } + /// + /// Gets or sets Right margin in inches. Defaults to 1cm (~0.4 inches). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public double MarginRight { get; set; } + /// + /// Gets or sets Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string PageRanges { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetColorPickerEnabledCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/PrintToPDFCommandResponse.cs similarity index 54% rename from source/ChromeDevTools/Protocol/Chrome/Page/SetColorPickerEnabledCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Page/PrintToPDFCommandResponse.cs index a84b0f0f..a503ff57 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/SetColorPickerEnabledCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/PrintToPDFCommandResponse.cs @@ -5,15 +5,15 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page { /// - /// Shows / hides color picker + /// Print page as PDF. /// - [Command(ProtocolName.Page.SetColorPickerEnabled)] + [CommandResponse(ProtocolName.Page.PrintToPDF)] [SupportedBy("Chrome")] - public class SetColorPickerEnabledCommand + public class PrintToPDFCommandResponse { /// - /// Gets or sets Shows / hides color picker + /// Gets or sets Base64-encoded pdf data. /// - public bool Enabled { get; set; } + public string Data { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/ProcessNavigationCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/ProcessNavigationCommand.cs new file mode 100644 index 00000000..6fff07f4 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/ProcessNavigationCommand.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Should be sent in response to a navigationRequested or a redirectRequested event, telling the browser how to handle the navigation. + /// + [Command(ProtocolName.Page.ProcessNavigation)] + [SupportedBy("Chrome")] + public class ProcessNavigationCommand: ICommand + { + /// + /// Gets or sets Response + /// + public string Response { get; set; } + /// + /// Gets or sets NavigationId + /// + public long NavigationId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/ProcessNavigationCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Page/ProcessNavigationCommandResponse.cs new file mode 100644 index 00000000..39e1374a --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/ProcessNavigationCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Should be sent in response to a navigationRequested or a redirectRequested event, telling the browser how to handle the navigation. + /// + [CommandResponse(ProtocolName.Page.ProcessNavigation)] + [SupportedBy("Chrome")] + public class ProcessNavigationCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/ReloadCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/ReloadCommand.cs index 3e98e2bb..207ccb88 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/ReloadCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/ReloadCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.Reload)] [SupportedBy("Chrome")] - public class ReloadCommand + public class ReloadCommand: ICommand { /// /// Gets or sets If true, browser cache is ignored (as if the user pressed Shift+refresh). diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/RemoveScriptToEvaluateOnLoadCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/RemoveScriptToEvaluateOnLoadCommand.cs index 11ba706b..45320f88 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/RemoveScriptToEvaluateOnLoadCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/RemoveScriptToEvaluateOnLoadCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page { [Command(ProtocolName.Page.RemoveScriptToEvaluateOnLoad)] [SupportedBy("Chrome")] - public class RemoveScriptToEvaluateOnLoadCommand + public class RemoveScriptToEvaluateOnLoadCommand: ICommand { /// /// Gets or sets Identifier diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/RequestAppBannerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/RequestAppBannerCommand.cs new file mode 100644 index 00000000..5fa5a2b3 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/RequestAppBannerCommand.cs @@ -0,0 +1,12 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + [Command(ProtocolName.Page.RequestAppBanner)] + [SupportedBy("Chrome")] + public class RequestAppBannerCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/RequestAppBannerCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Page/RequestAppBannerCommandResponse.cs new file mode 100644 index 00000000..05ebf1a6 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/RequestAppBannerCommandResponse.cs @@ -0,0 +1,12 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + [CommandResponse(ProtocolName.Page.RequestAppBanner)] + [SupportedBy("Chrome")] + public class RequestAppBannerCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/ResourceType.cs b/source/ChromeDevTools/Protocol/Chrome/Page/ResourceType.cs index 54560f57..676f889b 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/ResourceType.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/ResourceType.cs @@ -19,7 +19,10 @@ public enum ResourceType Script, TextTrack, XHR, + Fetch, + EventSource, WebSocket, + Manifest, Other, } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/ScreencastFrameAckCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/ScreencastFrameAckCommand.cs index 6088b5c5..db0ab49f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/ScreencastFrameAckCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/ScreencastFrameAckCommand.cs @@ -9,11 +9,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.ScreencastFrameAck)] [SupportedBy("Chrome")] - public class ScreencastFrameAckCommand + public class ScreencastFrameAckCommand: ICommand { /// /// Gets or sets Frame number. /// - public long FrameNumber { get; set; } + public long SessionId { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/ScreencastFrameEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Page/ScreencastFrameEvent.cs index a9dfb3c3..c8f2bffb 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/ScreencastFrameEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/ScreencastFrameEvent.cs @@ -20,7 +20,6 @@ public class ScreencastFrameEvent /// /// Gets or sets Frame number. /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? FrameNumber { get; set; } + public long SessionId { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/ScreencastFrameMetadata.cs b/source/ChromeDevTools/Protocol/Chrome/Page/ScreencastFrameMetadata.cs index 6182f814..82881283 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/ScreencastFrameMetadata.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/ScreencastFrameMetadata.cs @@ -5,7 +5,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page { /// - /// Screencast frame metadata + /// Screencast frame metadata. /// [SupportedBy("Chrome")] public class ScreencastFrameMetadata diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SearchInResourceCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/SearchInResourceCommand.cs index 154e7ecb..c0cba1eb 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/SearchInResourceCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/SearchInResourceCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.SearchInResource)] [SupportedBy("Chrome")] - public class SearchInResourceCommand + public class SearchInResourceCommand: ICommand { /// /// Gets or sets Frame id for resource to search in. diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetAutoAttachToCreatedPagesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/SetAutoAttachToCreatedPagesCommand.cs new file mode 100644 index 00000000..f5ea83ad --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/SetAutoAttachToCreatedPagesCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Controls whether browser will open a new inspector window for connected pages. + /// + [Command(ProtocolName.Page.SetAutoAttachToCreatedPages)] + [SupportedBy("Chrome")] + public class SetAutoAttachToCreatedPagesCommand: ICommand + { + /// + /// Gets or sets If true, browser will open a new inspector window for every page created from this one. + /// + public bool AutoAttach { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetAutoAttachToCreatedPagesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Page/SetAutoAttachToCreatedPagesCommandResponse.cs new file mode 100644 index 00000000..09c0c111 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/SetAutoAttachToCreatedPagesCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Controls whether browser will open a new inspector window for connected pages. + /// + [CommandResponse(ProtocolName.Page.SetAutoAttachToCreatedPages)] + [SupportedBy("Chrome")] + public class SetAutoAttachToCreatedPagesCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetControlNavigationsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/SetControlNavigationsCommand.cs new file mode 100644 index 00000000..4746e403 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/SetControlNavigationsCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Toggles navigation throttling which allows programatic control over navigation and redirect response. + /// + [Command(ProtocolName.Page.SetControlNavigations)] + [SupportedBy("Chrome")] + public class SetControlNavigationsCommand: ICommand + { + /// + /// Gets or sets Enabled + /// + public bool Enabled { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetControlNavigationsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Page/SetControlNavigationsCommandResponse.cs new file mode 100644 index 00000000..02ab7433 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/SetControlNavigationsCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Toggles navigation throttling which allows programatic control over navigation and redirect response. + /// + [CommandResponse(ProtocolName.Page.SetControlNavigations)] + [SupportedBy("Chrome")] + public class SetControlNavigationsCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetDeviceMetricsOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/SetDeviceMetricsOverrideCommand.cs index 74b1f9be..0efb3ab9 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/SetDeviceMetricsOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/SetDeviceMetricsOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.SetDeviceMetricsOverride)] [SupportedBy("Chrome")] - public class SetDeviceMetricsOverrideCommand + public class SetDeviceMetricsOverrideCommand: ICommand { /// /// Gets or sets Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. @@ -46,5 +46,30 @@ public class SetDeviceMetricsOverrideCommand /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public double OffsetY { get; set; } + /// + /// Gets or sets Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? ScreenWidth { get; set; } + /// + /// Gets or sets Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? ScreenHeight { get; set; } + /// + /// Gets or sets Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? PositionX { get; set; } + /// + /// Gets or sets Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? PositionY { get; set; } + /// + /// Gets or sets Screen orientation override. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public Emulation.ScreenOrientation ScreenOrientation { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetDeviceOrientationOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/SetDeviceOrientationOverrideCommand.cs index 0648db91..52eea9ea 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/SetDeviceOrientationOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/SetDeviceOrientationOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.SetDeviceOrientationOverride)] [SupportedBy("Chrome")] - public class SetDeviceOrientationOverrideCommand + public class SetDeviceOrientationOverrideCommand: ICommand { /// /// Gets or sets Mock alpha diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetDocumentContentCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/SetDocumentContentCommand.cs index ce0c9a9b..6586a83c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/SetDocumentContentCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/SetDocumentContentCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.SetDocumentContent)] [SupportedBy("Chrome")] - public class SetDocumentContentCommand + public class SetDocumentContentCommand: ICommand { /// /// Gets or sets Frame id to set HTML for. diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetGeolocationOverrideCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/SetGeolocationOverrideCommand.cs index fb29096d..ccae53f9 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/SetGeolocationOverrideCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/SetGeolocationOverrideCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.SetGeolocationOverride)] [SupportedBy("Chrome")] - public class SetGeolocationOverrideCommand + public class SetGeolocationOverrideCommand: ICommand { /// /// Gets or sets Mock latitude diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetOverlayMessageCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/SetOverlayMessageCommand.cs deleted file mode 100644 index b9aebc8a..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Page/SetOverlayMessageCommand.cs +++ /dev/null @@ -1,20 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page -{ - /// - /// Sets overlay message. - /// - [Command(ProtocolName.Page.SetOverlayMessage)] - [SupportedBy("Chrome")] - public class SetOverlayMessageCommand - { - /// - /// Gets or sets Overlay message to display when paused in debugger. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Message { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetShowViewportSizeOnResizeCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/SetShowViewportSizeOnResizeCommand.cs deleted file mode 100644 index e3a869ed..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Page/SetShowViewportSizeOnResizeCommand.cs +++ /dev/null @@ -1,24 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page -{ - /// - /// Paints viewport size upon main frame resize. - /// - [Command(ProtocolName.Page.SetShowViewportSizeOnResize)] - [SupportedBy("Chrome")] - public class SetShowViewportSizeOnResizeCommand - { - /// - /// Gets or sets Whether to paint size or not. - /// - public bool Show { get; set; } - /// - /// Gets or sets Whether to paint grid as well. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? ShowGrid { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetTouchEmulationEnabledCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/SetTouchEmulationEnabledCommand.cs index 3c2df786..921e2f5d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/SetTouchEmulationEnabledCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/SetTouchEmulationEnabledCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.SetTouchEmulationEnabled)] [SupportedBy("Chrome")] - public class SetTouchEmulationEnabledCommand + public class SetTouchEmulationEnabledCommand: ICommand { /// /// Gets or sets Whether the touch event emulation should be enabled. diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/StartScreencastCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/StartScreencastCommand.cs index 1a3e6172..15ccdde4 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/StartScreencastCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/StartScreencastCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.StartScreencast)] [SupportedBy("Chrome")] - public class StartScreencastCommand + public class StartScreencastCommand: ICommand { /// /// Gets or sets Image compression format. @@ -31,5 +31,10 @@ public class StartScreencastCommand /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public long? MaxHeight { get; set; } + /// + /// Gets or sets Send every n-th frame. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? EveryNthFrame { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetColorPickerEnabledCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Page/StopLoadingCommand.cs similarity index 53% rename from source/ChromeDevTools/Protocol/Chrome/Page/SetColorPickerEnabledCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Page/StopLoadingCommand.cs index 28a7f2d4..bcba50a0 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/SetColorPickerEnabledCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/StopLoadingCommand.cs @@ -5,11 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page { /// - /// Shows / hides color picker + /// Force the page stop all navigations and pending resource fetches. /// - [CommandResponse(ProtocolName.Page.SetColorPickerEnabled)] + [Command(ProtocolName.Page.StopLoading)] [SupportedBy("Chrome")] - public class SetColorPickerEnabledCommandResponse + public class StopLoadingCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/SetOverlayMessageCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Page/StopLoadingCommandResponse.cs similarity index 56% rename from source/ChromeDevTools/Protocol/Chrome/Page/SetOverlayMessageCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Page/StopLoadingCommandResponse.cs index bf704b82..9b41fa8f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/SetOverlayMessageCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/StopLoadingCommandResponse.cs @@ -5,11 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page { /// - /// Sets overlay message. + /// Force the page stop all navigations and pending resource fetches. /// - [CommandResponse(ProtocolName.Page.SetOverlayMessage)] + [CommandResponse(ProtocolName.Page.StopLoading)] [SupportedBy("Chrome")] - public class SetOverlayMessageCommandResponse + public class StopLoadingCommandResponse { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/StopScreencastCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Page/StopScreencastCommand.cs index 5ad794da..23c4a2c1 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Page/StopScreencastCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Page/StopScreencastCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page /// [Command(ProtocolName.Page.StopScreencast)] [SupportedBy("Chrome")] - public class StopScreencastCommand + public class StopScreencastCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/TransitionType.cs b/source/ChromeDevTools/Protocol/Chrome/Page/TransitionType.cs new file mode 100644 index 00000000..490ec56c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/TransitionType.cs @@ -0,0 +1,27 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page{ + /// + /// Transition type. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum TransitionType + { + Link, + Typed, + Auto_bookmark, + Auto_subframe, + Manual_subframe, + Generated, + Auto_toplevel, + Form_submit, + Reload, + Keyword, + Keyword_generated, + Other, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Page/VisualViewport.cs b/source/ChromeDevTools/Protocol/Chrome/Page/VisualViewport.cs new file mode 100644 index 00000000..ab31b524 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Page/VisualViewport.cs @@ -0,0 +1,42 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page +{ + /// + /// Visual viewport position, dimensions, and scale. + /// + [SupportedBy("Chrome")] + public class VisualViewport + { + /// + /// Gets or sets Horizontal offset relative to the layout viewport (CSS pixels). + /// + public double OffsetX { get; set; } + /// + /// Gets or sets Vertical offset relative to the layout viewport (CSS pixels). + /// + public double OffsetY { get; set; } + /// + /// Gets or sets Horizontal offset relative to the document (CSS pixels). + /// + public double PageX { get; set; } + /// + /// Gets or sets Vertical offset relative to the document (CSS pixels). + /// + public double PageY { get; set; } + /// + /// Gets or sets Width (CSS pixels), excludes scrollbar if present. + /// + public double ClientWidth { get; set; } + /// + /// Gets or sets Height (CSS pixels), excludes scrollbar if present. + /// + public double ClientHeight { get; set; } + /// + /// Gets or sets Scale relative to the ideal viewport (size at width=device-width). + /// + public double Scale { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Power/CanProfilePowerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Power/CanProfilePowerCommand.cs deleted file mode 100644 index f11e39b8..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Power/CanProfilePowerCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Power -{ - /// - /// Tells whether power profiling is supported. - /// - [Command(ProtocolName.Power.CanProfilePower)] - [SupportedBy("Chrome")] - public class CanProfilePowerCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Power/CanProfilePowerCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Power/CanProfilePowerCommandResponse.cs deleted file mode 100644 index 4b445334..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Power/CanProfilePowerCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Power -{ - /// - /// Tells whether power profiling is supported. - /// - [CommandResponse(ProtocolName.Power.CanProfilePower)] - [SupportedBy("Chrome")] - public class CanProfilePowerCommandResponse - { - /// - /// Gets or sets True if power profiling is supported. - /// - public bool Result { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Power/DataAvailableEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Power/DataAvailableEvent.cs deleted file mode 100644 index 37fe165b..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Power/DataAvailableEvent.cs +++ /dev/null @@ -1,14 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Power -{ - [Event(ProtocolName.Power.DataAvailable)] - [SupportedBy("Chrome")] - public class DataAvailableEvent - { - /// - /// Gets or sets List of power events. - /// - public PowerEvent[] Value { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Power/EndCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Power/EndCommand.cs deleted file mode 100644 index 977f1e59..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Power/EndCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Power -{ - /// - /// Stop power events collection. - /// - [Command(ProtocolName.Power.End)] - [SupportedBy("Chrome")] - public class EndCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Power/EndCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Power/EndCommandResponse.cs deleted file mode 100644 index 05d358ef..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Power/EndCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Power -{ - /// - /// Stop power events collection. - /// - [CommandResponse(ProtocolName.Power.End)] - [SupportedBy("Chrome")] - public class EndCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Power/GetAccuracyLevelCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Power/GetAccuracyLevelCommand.cs deleted file mode 100644 index 2e26ac95..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Power/GetAccuracyLevelCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Power -{ - /// - /// Describes the accuracy level of the data provider. - /// - [Command(ProtocolName.Power.GetAccuracyLevel)] - [SupportedBy("Chrome")] - public class GetAccuracyLevelCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Power/GetAccuracyLevelCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Power/GetAccuracyLevelCommandResponse.cs deleted file mode 100644 index 1ba284dc..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Power/GetAccuracyLevelCommandResponse.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Power -{ - /// - /// Describes the accuracy level of the data provider. - /// - [CommandResponse(ProtocolName.Power.GetAccuracyLevel)] - [SupportedBy("Chrome")] - public class GetAccuracyLevelCommandResponse - { - /// - /// Gets or sets Result - /// - public string Result { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Power/PowerEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Power/PowerEvent.cs deleted file mode 100644 index bdf0d3c0..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Power/PowerEvent.cs +++ /dev/null @@ -1,26 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Power -{ - /// - /// PowerEvent item - /// - [SupportedBy("Chrome")] - public class PowerEvent - { - /// - /// Gets or sets Power Event Type. - /// - public string Type { get; set; } - /// - /// Gets or sets Power Event Time, in milliseconds. - /// - public double Timestamp { get; set; } - /// - /// Gets or sets Power Event Value. - /// - public double Value { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Power/StartCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Power/StartCommand.cs deleted file mode 100644 index 1e073277..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Power/StartCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Power -{ - /// - /// Start power events collection. - /// - [Command(ProtocolName.Power.Start)] - [SupportedBy("Chrome")] - public class StartCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Power/StartCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Power/StartCommandResponse.cs deleted file mode 100644 index f6e5217c..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Power/StartCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Power -{ - /// - /// Start power events collection. - /// - [CommandResponse(ProtocolName.Power.Start)] - [SupportedBy("Chrome")] - public class StartCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/CPUProfileNode.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/CPUProfileNode.cs deleted file mode 100644 index 81f516b6..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Profiler/CPUProfileNode.cs +++ /dev/null @@ -1,58 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler -{ - /// - /// CPU Profile node. Holds callsite information, execution statistics and child nodes. - /// - [SupportedBy("Chrome")] - public class CPUProfileNode - { - /// - /// Gets or sets Function name. - /// - public string FunctionName { get; set; } - /// - /// Gets or sets Script identifier. - /// - public string ScriptId { get; set; } - /// - /// Gets or sets URL. - /// - public string Url { get; set; } - /// - /// Gets or sets 1-based line number of the function start position. - /// - public long LineNumber { get; set; } - /// - /// Gets or sets 1-based column number of the function start position. - /// - public long ColumnNumber { get; set; } - /// - /// Gets or sets Number of samples where this node was on top of the call stack. - /// - public long HitCount { get; set; } - /// - /// Gets or sets Call UID. - /// - public double CallUID { get; set; } - /// - /// Gets or sets Child nodes. - /// - public CPUProfileNode[] Children { get; set; } - /// - /// Gets or sets The reason of being not optimized. The function may be deoptimized or marked as don't optimize. - /// - public string DeoptReason { get; set; } - /// - /// Gets or sets Unique id of the node. - /// - public long Id { get; set; } - /// - /// Gets or sets An array of source position ticks. - /// - public PositionTickInfo[] PositionTicks { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/ConsoleProfileFinishedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/ConsoleProfileFinishedEvent.cs index 2d4f498b..2c15f135 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Profiler/ConsoleProfileFinishedEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/ConsoleProfileFinishedEvent.cs @@ -17,9 +17,9 @@ public class ConsoleProfileFinishedEvent /// /// Gets or sets Profile /// - public CPUProfile Profile { get; set; } + public Profile Profile { get; set; } /// - /// Gets or sets Profile title passed as argunet to console.profile(). + /// Gets or sets Profile title passed as an argument to console.profile(). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string Title { get; set; } diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/ConsoleProfileStartedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/ConsoleProfileStartedEvent.cs index 3641d143..aa4da377 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Profiler/ConsoleProfileStartedEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/ConsoleProfileStartedEvent.cs @@ -3,7 +3,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler { /// - /// Sent when new profile recodring is started using console.profile() call. + /// Sent when new profile recording is started using console.profile() call. /// [Event(ProtocolName.Profiler.ConsoleProfileStarted)] [SupportedBy("Chrome")] @@ -18,7 +18,7 @@ public class ConsoleProfileStartedEvent /// public Debugger.Location Location { get; set; } /// - /// Gets or sets Profile title passed as argument to console.profile(). + /// Gets or sets Profile title passed as an argument to console.profile(). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string Title { get; set; } diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/CoverageRange.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/CoverageRange.cs new file mode 100644 index 00000000..68437f21 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/CoverageRange.cs @@ -0,0 +1,26 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler +{ + /// + /// Coverage data for a source range. + /// + [SupportedBy("Chrome")] + public class CoverageRange + { + /// + /// Gets or sets JavaScript script source offset for the range start. + /// + public long StartOffset { get; set; } + /// + /// Gets or sets JavaScript script source offset for the range end. + /// + public long EndOffset { get; set; } + /// + /// Gets or sets Collected execution count of the source range. + /// + public long Count { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/DisableCommand.cs index c30db8ab..aaa28a62 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Profiler/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/DisableCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler { [Command(ProtocolName.Profiler.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/EnableCommand.cs index a6acb932..16eae40c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Profiler/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/EnableCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler { [Command(ProtocolName.Profiler.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/FunctionCoverage.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/FunctionCoverage.cs new file mode 100644 index 00000000..dfeba528 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/FunctionCoverage.cs @@ -0,0 +1,22 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler +{ + /// + /// Coverage data for a JavaScript function. + /// + [SupportedBy("Chrome")] + public class FunctionCoverage + { + /// + /// Gets or sets JavaScript function name. + /// + public string FunctionName { get; set; } + /// + /// Gets or sets Source ranges inside the function with coverage data. + /// + public CoverageRange[] Ranges { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/GetBestEffortCoverageCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/GetBestEffortCoverageCommand.cs new file mode 100644 index 00000000..35af34fc --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/GetBestEffortCoverageCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler +{ + /// + /// Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. + /// + [Command(ProtocolName.Profiler.GetBestEffortCoverage)] + [SupportedBy("Chrome")] + public class GetBestEffortCoverageCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/GetBestEffortCoverageCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/GetBestEffortCoverageCommandResponse.cs new file mode 100644 index 00000000..b042b70b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/GetBestEffortCoverageCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler +{ + /// + /// Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. + /// + [CommandResponse(ProtocolName.Profiler.GetBestEffortCoverage)] + [SupportedBy("Chrome")] + public class GetBestEffortCoverageCommandResponse + { + /// + /// Gets or sets Coverage data for the current isolate. + /// + public ScriptCoverage[] Result { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/CPUProfile.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/Profile.cs similarity index 61% rename from source/ChromeDevTools/Protocol/Chrome/Profiler/CPUProfile.cs rename to source/ChromeDevTools/Protocol/Chrome/Profiler/Profile.cs index b44657de..76a480f1 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Profiler/CPUProfile.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/Profile.cs @@ -8,18 +8,18 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler /// Profile. /// [SupportedBy("Chrome")] - public class CPUProfile + public class Profile { /// - /// Gets or sets Head + /// Gets or sets The list of profile nodes. First item is the root node. /// - public CPUProfileNode Head { get; set; } + public ProfileNode[] Nodes { get; set; } /// - /// Gets or sets Profiling start time in seconds. + /// Gets or sets Profiling start timestamp in microseconds. /// public double StartTime { get; set; } /// - /// Gets or sets Profiling end time in seconds. + /// Gets or sets Profiling end timestamp in microseconds. /// public double EndTime { get; set; } /// @@ -28,9 +28,9 @@ public class CPUProfile [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public long[] Samples { get; set; } /// - /// Gets or sets Timestamps of the samples in microseconds. + /// Gets or sets Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public double[] Timestamps { get; set; } + public long[] TimeDeltas { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/ProfileNode.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/ProfileNode.cs new file mode 100644 index 00000000..d85fa411 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/ProfileNode.cs @@ -0,0 +1,42 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler +{ + /// + /// Profile node. Holds callsite information, execution statistics and child nodes. + /// + [SupportedBy("Chrome")] + public class ProfileNode + { + /// + /// Gets or sets Unique id of the node. + /// + public long Id { get; set; } + /// + /// Gets or sets Function location. + /// + public Runtime.CallFrame CallFrame { get; set; } + /// + /// Gets or sets Number of samples where this node was on top of the call stack. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? HitCount { get; set; } + /// + /// Gets or sets Child node ids. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long[] Children { get; set; } + /// + /// Gets or sets The reason of being not optimized. The function may be deoptimized or marked as don't optimize. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string DeoptReason { get; set; } + /// + /// Gets or sets An array of source position ticks. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public PositionTickInfo[] PositionTicks { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/ScriptCoverage.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/ScriptCoverage.cs new file mode 100644 index 00000000..25840880 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/ScriptCoverage.cs @@ -0,0 +1,26 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler +{ + /// + /// Coverage data for a JavaScript script. + /// + [SupportedBy("Chrome")] + public class ScriptCoverage + { + /// + /// Gets or sets JavaScript script id. + /// + public string ScriptId { get; set; } + /// + /// Gets or sets JavaScript script name or url. + /// + public string Url { get; set; } + /// + /// Gets or sets Functions contained in the script that has coverage data. + /// + public FunctionCoverage[] Functions { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/SetSamplingIntervalCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/SetSamplingIntervalCommand.cs index 9710ee9f..2b8c688c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Profiler/SetSamplingIntervalCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/SetSamplingIntervalCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler /// [Command(ProtocolName.Profiler.SetSamplingInterval)] [SupportedBy("Chrome")] - public class SetSamplingIntervalCommand + public class SetSamplingIntervalCommand: ICommand { /// /// Gets or sets New sampling interval in microseconds. diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/StartCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/StartCommand.cs index 9cf4ada2..1e103ab7 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Profiler/StartCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/StartCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler { [Command(ProtocolName.Profiler.Start)] [SupportedBy("Chrome")] - public class StartCommand + public class StartCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/StartPreciseCoverageCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/StartPreciseCoverageCommand.cs new file mode 100644 index 00000000..6e9153a9 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/StartPreciseCoverageCommand.cs @@ -0,0 +1,20 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler +{ + /// + /// Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. + /// + [Command(ProtocolName.Profiler.StartPreciseCoverage)] + [SupportedBy("Chrome")] + public class StartPreciseCoverageCommand: ICommand + { + /// + /// Gets or sets Collect accurate call counts beyond simple 'covered' or 'not covered'. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? CallCount { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/StartPreciseCoverageCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/StartPreciseCoverageCommandResponse.cs new file mode 100644 index 00000000..a60aae6d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/StartPreciseCoverageCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler +{ + /// + /// Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. + /// + [CommandResponse(ProtocolName.Profiler.StartPreciseCoverage)] + [SupportedBy("Chrome")] + public class StartPreciseCoverageCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/StopCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/StopCommand.cs index 1ba1acad..b5fd0c52 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Profiler/StopCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/StopCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler { [Command(ProtocolName.Profiler.Stop)] [SupportedBy("Chrome")] - public class StopCommand + public class StopCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/StopCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/StopCommandResponse.cs index 04e18850..822efe75 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Profiler/StopCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/StopCommandResponse.cs @@ -11,6 +11,6 @@ public class StopCommandResponse /// /// Gets or sets Recorded profile. /// - public CPUProfile Profile { get; set; } + public Profile Profile { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/StopPreciseCoverageCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/StopPreciseCoverageCommand.cs new file mode 100644 index 00000000..7072cee7 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/StopPreciseCoverageCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler +{ + /// + /// Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. + /// + [Command(ProtocolName.Profiler.StopPreciseCoverage)] + [SupportedBy("Chrome")] + public class StopPreciseCoverageCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/StopPreciseCoverageCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/StopPreciseCoverageCommandResponse.cs new file mode 100644 index 00000000..8a99cc06 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/StopPreciseCoverageCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler +{ + /// + /// Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. + /// + [CommandResponse(ProtocolName.Profiler.StopPreciseCoverage)] + [SupportedBy("Chrome")] + public class StopPreciseCoverageCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/TakePreciseCoverageCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/TakePreciseCoverageCommand.cs new file mode 100644 index 00000000..e2270dbd --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/TakePreciseCoverageCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler +{ + /// + /// Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. + /// + [Command(ProtocolName.Profiler.TakePreciseCoverage)] + [SupportedBy("Chrome")] + public class TakePreciseCoverageCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Profiler/TakePreciseCoverageCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Profiler/TakePreciseCoverageCommandResponse.cs new file mode 100644 index 00000000..549fd3d2 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Profiler/TakePreciseCoverageCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Profiler +{ + /// + /// Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. + /// + [CommandResponse(ProtocolName.Profiler.TakePreciseCoverage)] + [SupportedBy("Chrome")] + public class TakePreciseCoverageCommandResponse + { + /// + /// Gets or sets Coverage data for the current isolate. + /// + public ScriptCoverage[] Result { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/ProtocolName.cs b/source/ChromeDevTools/Protocol/Chrome/ProtocolName.cs index 867d4a74..b51f8972 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ProtocolName.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ProtocolName.cs @@ -4,12 +4,116 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome { public static class ProtocolName { + public static class Schema + { + public const string GetDomains = "Schema.getDomains"; + } + + public static class Runtime + { + public const string Evaluate = "Runtime.evaluate"; + public const string AwaitPromise = "Runtime.awaitPromise"; + public const string CallFunctionOn = "Runtime.callFunctionOn"; + public const string GetProperties = "Runtime.getProperties"; + public const string ReleaseObject = "Runtime.releaseObject"; + public const string ReleaseObjectGroup = "Runtime.releaseObjectGroup"; + public const string RunIfWaitingForDebugger = "Runtime.runIfWaitingForDebugger"; + public const string Enable = "Runtime.enable"; + public const string Disable = "Runtime.disable"; + public const string DiscardConsoleEntries = "Runtime.discardConsoleEntries"; + public const string SetCustomObjectFormatterEnabled = "Runtime.setCustomObjectFormatterEnabled"; + public const string CompileScript = "Runtime.compileScript"; + public const string RunScript = "Runtime.runScript"; + public const string ExecutionContextCreated = "Runtime.executionContextCreated"; + public const string ExecutionContextDestroyed = "Runtime.executionContextDestroyed"; + public const string ExecutionContextsCleared = "Runtime.executionContextsCleared"; + public const string ExceptionThrown = "Runtime.exceptionThrown"; + public const string ExceptionRevoked = "Runtime.exceptionRevoked"; + public const string ConsoleAPICalled = "Runtime.consoleAPICalled"; + public const string InspectRequested = "Runtime.inspectRequested"; + } + + public static class Debugger + { + public const string Enable = "Debugger.enable"; + public const string Disable = "Debugger.disable"; + public const string SetBreakpointsActive = "Debugger.setBreakpointsActive"; + public const string SetSkipAllPauses = "Debugger.setSkipAllPauses"; + public const string SetBreakpointByUrl = "Debugger.setBreakpointByUrl"; + public const string SetBreakpoint = "Debugger.setBreakpoint"; + public const string RemoveBreakpoint = "Debugger.removeBreakpoint"; + public const string GetPossibleBreakpoints = "Debugger.getPossibleBreakpoints"; + public const string ContinueToLocation = "Debugger.continueToLocation"; + public const string StepOver = "Debugger.stepOver"; + public const string StepInto = "Debugger.stepInto"; + public const string StepOut = "Debugger.stepOut"; + public const string Pause = "Debugger.pause"; + public const string ScheduleStepIntoAsync = "Debugger.scheduleStepIntoAsync"; + public const string Resume = "Debugger.resume"; + public const string SearchInContent = "Debugger.searchInContent"; + public const string SetScriptSource = "Debugger.setScriptSource"; + public const string RestartFrame = "Debugger.restartFrame"; + public const string GetScriptSource = "Debugger.getScriptSource"; + public const string SetPauseOnExceptions = "Debugger.setPauseOnExceptions"; + public const string EvaluateOnCallFrame = "Debugger.evaluateOnCallFrame"; + public const string SetVariableValue = "Debugger.setVariableValue"; + public const string SetAsyncCallStackDepth = "Debugger.setAsyncCallStackDepth"; + public const string SetBlackboxPatterns = "Debugger.setBlackboxPatterns"; + public const string SetBlackboxedRanges = "Debugger.setBlackboxedRanges"; + public const string ScriptParsed = "Debugger.scriptParsed"; + public const string ScriptFailedToParse = "Debugger.scriptFailedToParse"; + public const string BreakpointResolved = "Debugger.breakpointResolved"; + public const string Paused = "Debugger.paused"; + public const string Resumed = "Debugger.resumed"; + } + + public static class Console + { + public const string Enable = "Console.enable"; + public const string Disable = "Console.disable"; + public const string ClearMessages = "Console.clearMessages"; + public const string MessageAdded = "Console.messageAdded"; + } + + public static class Profiler + { + public const string Enable = "Profiler.enable"; + public const string Disable = "Profiler.disable"; + public const string SetSamplingInterval = "Profiler.setSamplingInterval"; + public const string Start = "Profiler.start"; + public const string Stop = "Profiler.stop"; + public const string StartPreciseCoverage = "Profiler.startPreciseCoverage"; + public const string StopPreciseCoverage = "Profiler.stopPreciseCoverage"; + public const string TakePreciseCoverage = "Profiler.takePreciseCoverage"; + public const string GetBestEffortCoverage = "Profiler.getBestEffortCoverage"; + public const string ConsoleProfileStarted = "Profiler.consoleProfileStarted"; + public const string ConsoleProfileFinished = "Profiler.consoleProfileFinished"; + } + + public static class HeapProfiler + { + public const string Enable = "HeapProfiler.enable"; + public const string Disable = "HeapProfiler.disable"; + public const string StartTrackingHeapObjects = "HeapProfiler.startTrackingHeapObjects"; + public const string StopTrackingHeapObjects = "HeapProfiler.stopTrackingHeapObjects"; + public const string TakeHeapSnapshot = "HeapProfiler.takeHeapSnapshot"; + public const string CollectGarbage = "HeapProfiler.collectGarbage"; + public const string GetObjectByHeapObjectId = "HeapProfiler.getObjectByHeapObjectId"; + public const string AddInspectedHeapObject = "HeapProfiler.addInspectedHeapObject"; + public const string GetHeapObjectId = "HeapProfiler.getHeapObjectId"; + public const string StartSampling = "HeapProfiler.startSampling"; + public const string StopSampling = "HeapProfiler.stopSampling"; + public const string AddHeapSnapshotChunk = "HeapProfiler.addHeapSnapshotChunk"; + public const string ResetProfiles = "HeapProfiler.resetProfiles"; + public const string ReportHeapSnapshotProgress = "HeapProfiler.reportHeapSnapshotProgress"; + public const string LastSeenObjectId = "HeapProfiler.lastSeenObjectId"; + public const string HeapStatsUpdate = "HeapProfiler.heapStatsUpdate"; + } + public static class Inspector { public const string Enable = "Inspector.enable"; public const string Disable = "Inspector.disable"; - public const string EvaluateForTestInFrontend = "Inspector.evaluateForTestInFrontend"; - public const string Inspect = "Inspector.inspect"; public const string Detached = "Inspector.detached"; public const string TargetCrashed = "Inspector.targetCrashed"; } @@ -17,6 +121,8 @@ public static class Inspector public static class Memory { public const string GetDOMCounters = "Memory.getDOMCounters"; + public const string SetPressureNotificationsSuppressed = "Memory.setPressureNotificationsSuppressed"; + public const string SimulatePressureNotification = "Memory.simulatePressureNotification"; } public static class Page @@ -25,8 +131,10 @@ public static class Page public const string Disable = "Page.disable"; public const string AddScriptToEvaluateOnLoad = "Page.addScriptToEvaluateOnLoad"; public const string RemoveScriptToEvaluateOnLoad = "Page.removeScriptToEvaluateOnLoad"; + public const string SetAutoAttachToCreatedPages = "Page.setAutoAttachToCreatedPages"; public const string Reload = "Page.reload"; public const string Navigate = "Page.navigate"; + public const string StopLoading = "Page.stopLoading"; public const string GetNavigationHistory = "Page.getNavigationHistory"; public const string NavigateToHistoryEntry = "Page.navigateToHistoryEntry"; public const string GetCookies = "Page.getCookies"; @@ -43,14 +151,17 @@ public static class Page public const string ClearDeviceOrientationOverride = "Page.clearDeviceOrientationOverride"; public const string SetTouchEmulationEnabled = "Page.setTouchEmulationEnabled"; public const string CaptureScreenshot = "Page.captureScreenshot"; - public const string CanScreencast = "Page.canScreencast"; + public const string PrintToPDF = "Page.printToPDF"; public const string StartScreencast = "Page.startScreencast"; public const string StopScreencast = "Page.stopScreencast"; public const string ScreencastFrameAck = "Page.screencastFrameAck"; public const string HandleJavaScriptDialog = "Page.handleJavaScriptDialog"; - public const string SetShowViewportSizeOnResize = "Page.setShowViewportSizeOnResize"; - public const string SetColorPickerEnabled = "Page.setColorPickerEnabled"; - public const string SetOverlayMessage = "Page.setOverlayMessage"; + public const string GetAppManifest = "Page.getAppManifest"; + public const string RequestAppBanner = "Page.requestAppBanner"; + public const string SetControlNavigations = "Page.setControlNavigations"; + public const string ProcessNavigation = "Page.processNavigation"; + public const string GetLayoutMetrics = "Page.getLayoutMetrics"; + public const string CreateIsolatedWorld = "Page.createIsolatedWorld"; public const string DomContentEventFired = "Page.domContentEventFired"; public const string LoadEventFired = "Page.loadEventFired"; public const string FrameAttached = "Page.frameAttached"; @@ -65,61 +176,63 @@ public static class Page public const string JavascriptDialogClosed = "Page.javascriptDialogClosed"; public const string ScreencastFrame = "Page.screencastFrame"; public const string ScreencastVisibilityChanged = "Page.screencastVisibilityChanged"; - public const string ColorPicked = "Page.colorPicked"; public const string InterstitialShown = "Page.interstitialShown"; public const string InterstitialHidden = "Page.interstitialHidden"; + public const string NavigationRequested = "Page.navigationRequested"; } - public static class Rendering + public static class Overlay { - public const string SetShowPaintRects = "Rendering.setShowPaintRects"; - public const string SetShowDebugBorders = "Rendering.setShowDebugBorders"; - public const string SetShowFPSCounter = "Rendering.setShowFPSCounter"; - public const string SetContinuousPaintingEnabled = "Rendering.setContinuousPaintingEnabled"; - public const string SetShowScrollBottleneckRects = "Rendering.setShowScrollBottleneckRects"; + public const string Enable = "Overlay.enable"; + public const string Disable = "Overlay.disable"; + public const string SetShowPaintRects = "Overlay.setShowPaintRects"; + public const string SetShowDebugBorders = "Overlay.setShowDebugBorders"; + public const string SetShowFPSCounter = "Overlay.setShowFPSCounter"; + public const string SetShowScrollBottleneckRects = "Overlay.setShowScrollBottleneckRects"; + public const string SetShowViewportSizeOnResize = "Overlay.setShowViewportSizeOnResize"; + public const string SetPausedInDebuggerMessage = "Overlay.setPausedInDebuggerMessage"; + public const string SetSuspended = "Overlay.setSuspended"; + public const string SetInspectMode = "Overlay.setInspectMode"; + public const string HighlightRect = "Overlay.highlightRect"; + public const string HighlightQuad = "Overlay.highlightQuad"; + public const string HighlightNode = "Overlay.highlightNode"; + public const string HighlightFrame = "Overlay.highlightFrame"; + public const string HideHighlight = "Overlay.hideHighlight"; + public const string GetHighlightObjectForTest = "Overlay.getHighlightObjectForTest"; + public const string NodeHighlightRequested = "Overlay.nodeHighlightRequested"; + public const string InspectNodeRequested = "Overlay.inspectNodeRequested"; } public static class Emulation { public const string SetDeviceMetricsOverride = "Emulation.setDeviceMetricsOverride"; public const string ClearDeviceMetricsOverride = "Emulation.clearDeviceMetricsOverride"; - public const string ResetScrollAndPageScaleFactor = "Emulation.resetScrollAndPageScaleFactor"; + public const string ForceViewport = "Emulation.forceViewport"; + public const string ResetViewport = "Emulation.resetViewport"; + public const string ResetPageScaleFactor = "Emulation.resetPageScaleFactor"; public const string SetPageScaleFactor = "Emulation.setPageScaleFactor"; + public const string SetVisibleSize = "Emulation.setVisibleSize"; public const string SetScriptExecutionDisabled = "Emulation.setScriptExecutionDisabled"; public const string SetGeolocationOverride = "Emulation.setGeolocationOverride"; public const string ClearGeolocationOverride = "Emulation.clearGeolocationOverride"; public const string SetTouchEmulationEnabled = "Emulation.setTouchEmulationEnabled"; public const string SetEmulatedMedia = "Emulation.setEmulatedMedia"; + public const string SetCPUThrottlingRate = "Emulation.setCPUThrottlingRate"; public const string CanEmulate = "Emulation.canEmulate"; - public const string ViewportChanged = "Emulation.viewportChanged"; - } - - public static class Runtime - { - public const string Evaluate = "Runtime.evaluate"; - public const string CallFunctionOn = "Runtime.callFunctionOn"; - public const string GetProperties = "Runtime.getProperties"; - public const string GetEventListeners = "Runtime.getEventListeners"; - public const string ReleaseObject = "Runtime.releaseObject"; - public const string ReleaseObjectGroup = "Runtime.releaseObjectGroup"; - public const string Run = "Runtime.run"; - public const string Enable = "Runtime.enable"; - public const string Disable = "Runtime.disable"; - public const string IsRunRequired = "Runtime.isRunRequired"; - public const string SetCustomObjectFormatterEnabled = "Runtime.setCustomObjectFormatterEnabled"; - public const string ExecutionContextCreated = "Runtime.executionContextCreated"; - public const string ExecutionContextDestroyed = "Runtime.executionContextDestroyed"; - public const string ExecutionContextsCleared = "Runtime.executionContextsCleared"; + public const string SetVirtualTimePolicy = "Emulation.setVirtualTimePolicy"; + public const string SetDefaultBackgroundColorOverride = "Emulation.setDefaultBackgroundColorOverride"; + public const string VirtualTimeBudgetExpired = "Emulation.virtualTimeBudgetExpired"; } - public static class Console + public static class Security { - public const string Enable = "Console.enable"; - public const string Disable = "Console.disable"; - public const string ClearMessages = "Console.clearMessages"; - public const string MessageAdded = "Console.messageAdded"; - public const string MessageRepeatCountUpdated = "Console.messageRepeatCountUpdated"; - public const string MessagesCleared = "Console.messagesCleared"; + public const string Enable = "Security.enable"; + public const string Disable = "Security.disable"; + public const string ShowCertificateViewer = "Security.showCertificateViewer"; + public const string HandleCertificateError = "Security.handleCertificateError"; + public const string SetOverrideCertificateErrors = "Security.setOverrideCertificateErrors"; + public const string SecurityStateChanged = "Security.securityStateChanged"; + public const string CertificateError = "Security.certificateError"; } public static class Network @@ -129,18 +242,23 @@ public static class Network public const string SetUserAgentOverride = "Network.setUserAgentOverride"; public const string SetExtraHTTPHeaders = "Network.setExtraHTTPHeaders"; public const string GetResponseBody = "Network.getResponseBody"; + public const string SetBlockedURLs = "Network.setBlockedURLs"; public const string ReplayXHR = "Network.replayXHR"; - public const string SetMonitoringXHREnabled = "Network.setMonitoringXHREnabled"; public const string CanClearBrowserCache = "Network.canClearBrowserCache"; public const string ClearBrowserCache = "Network.clearBrowserCache"; public const string CanClearBrowserCookies = "Network.canClearBrowserCookies"; public const string ClearBrowserCookies = "Network.clearBrowserCookies"; public const string GetCookies = "Network.getCookies"; + public const string GetAllCookies = "Network.getAllCookies"; public const string DeleteCookie = "Network.deleteCookie"; + public const string SetCookie = "Network.setCookie"; public const string CanEmulateNetworkConditions = "Network.canEmulateNetworkConditions"; public const string EmulateNetworkConditions = "Network.emulateNetworkConditions"; public const string SetCacheDisabled = "Network.setCacheDisabled"; + public const string SetBypassServiceWorker = "Network.setBypassServiceWorker"; public const string SetDataSizeLimitsForTest = "Network.setDataSizeLimitsForTest"; + public const string GetCertificate = "Network.getCertificate"; + public const string ResourceChangedPriority = "Network.resourceChangedPriority"; public const string RequestWillBeSent = "Network.requestWillBeSent"; public const string RequestServedFromCache = "Network.requestServedFromCache"; public const string ResponseReceived = "Network.responseReceived"; @@ -174,6 +292,7 @@ public static class IndexedDB public const string RequestDatabase = "IndexedDB.requestDatabase"; public const string RequestData = "IndexedDB.requestData"; public const string ClearObjectStore = "IndexedDB.clearObjectStore"; + public const string DeleteDatabase = "IndexedDB.deleteDatabase"; } public static class CacheStorage @@ -181,12 +300,14 @@ public static class CacheStorage public const string RequestCacheNames = "CacheStorage.requestCacheNames"; public const string RequestEntries = "CacheStorage.requestEntries"; public const string DeleteCache = "CacheStorage.deleteCache"; + public const string DeleteEntry = "CacheStorage.deleteEntry"; } public static class DOMStorage { public const string Enable = "DOMStorage.enable"; public const string Disable = "DOMStorage.disable"; + public const string Clear = "DOMStorage.clear"; public const string GetDOMStorageItems = "DOMStorage.getDOMStorageItems"; public const string SetDOMStorageItem = "DOMStorage.setDOMStorageItem"; public const string RemoveDOMStorageItem = "DOMStorage.removeDOMStorageItem"; @@ -206,22 +327,13 @@ public static class ApplicationCache public const string NetworkStateUpdated = "ApplicationCache.networkStateUpdated"; } - public static class FileSystem - { - public const string Enable = "FileSystem.enable"; - public const string Disable = "FileSystem.disable"; - public const string RequestFileSystemRoot = "FileSystem.requestFileSystemRoot"; - public const string RequestDirectoryContent = "FileSystem.requestDirectoryContent"; - public const string RequestMetadata = "FileSystem.requestMetadata"; - public const string RequestFileContent = "FileSystem.requestFileContent"; - public const string DeleteEntry = "FileSystem.deleteEntry"; - } - public static class DOM { public const string Enable = "DOM.enable"; public const string Disable = "DOM.disable"; public const string GetDocument = "DOM.getDocument"; + public const string GetFlattenedDocument = "DOM.getFlattenedDocument"; + public const string CollectClassNamesFromSubtree = "DOM.collectClassNamesFromSubtree"; public const string RequestChildNodes = "DOM.requestChildNodes"; public const string QuerySelector = "DOM.querySelector"; public const string QuerySelectorAll = "DOM.querySelectorAll"; @@ -231,19 +343,15 @@ public static class DOM public const string SetAttributeValue = "DOM.setAttributeValue"; public const string SetAttributesAsText = "DOM.setAttributesAsText"; public const string RemoveAttribute = "DOM.removeAttribute"; - public const string GetEventListenersForNode = "DOM.getEventListenersForNode"; public const string GetOuterHTML = "DOM.getOuterHTML"; public const string SetOuterHTML = "DOM.setOuterHTML"; public const string PerformSearch = "DOM.performSearch"; public const string GetSearchResults = "DOM.getSearchResults"; public const string DiscardSearchResults = "DOM.discardSearchResults"; public const string RequestNode = "DOM.requestNode"; - public const string SetInspectModeEnabled = "DOM.setInspectModeEnabled"; public const string HighlightRect = "DOM.highlightRect"; - public const string HighlightQuad = "DOM.highlightQuad"; public const string HighlightNode = "DOM.highlightNode"; public const string HideHighlight = "DOM.hideHighlight"; - public const string HighlightFrame = "DOM.highlightFrame"; public const string PushNodeByPathToFrontend = "DOM.pushNodeByPathToFrontend"; public const string PushNodesByBackendIdsToFrontend = "DOM.pushNodesByBackendIdsToFrontend"; public const string SetInspectedNode = "DOM.setInspectedNode"; @@ -259,9 +367,7 @@ public static class DOM public const string GetBoxModel = "DOM.getBoxModel"; public const string GetNodeForLocation = "DOM.getNodeForLocation"; public const string GetRelayoutBoundary = "DOM.getRelayoutBoundary"; - public const string GetHighlightObjectForTest = "DOM.getHighlightObjectForTest"; public const string DocumentUpdated = "DOM.documentUpdated"; - public const string InspectNodeRequested = "DOM.inspectNodeRequested"; public const string SetChildNodes = "DOM.setChildNodes"; public const string AttributeModified = "DOM.attributeModified"; public const string AttributeRemoved = "DOM.attributeRemoved"; @@ -286,78 +392,33 @@ public static class CSS public const string GetComputedStyleForNode = "CSS.getComputedStyleForNode"; public const string GetPlatformFontsForNode = "CSS.getPlatformFontsForNode"; public const string GetStyleSheetText = "CSS.getStyleSheetText"; + public const string CollectClassNames = "CSS.collectClassNames"; public const string SetStyleSheetText = "CSS.setStyleSheetText"; - public const string SetPropertyText = "CSS.setPropertyText"; public const string SetRuleSelector = "CSS.setRuleSelector"; + public const string SetKeyframeKey = "CSS.setKeyframeKey"; + public const string SetStyleTexts = "CSS.setStyleTexts"; public const string SetMediaText = "CSS.setMediaText"; public const string CreateStyleSheet = "CSS.createStyleSheet"; public const string AddRule = "CSS.addRule"; public const string ForcePseudoState = "CSS.forcePseudoState"; public const string GetMediaQueries = "CSS.getMediaQueries"; + public const string SetEffectivePropertyValueForNode = "CSS.setEffectivePropertyValueForNode"; + public const string GetBackgroundColors = "CSS.getBackgroundColors"; + public const string GetLayoutTreeAndStyles = "CSS.getLayoutTreeAndStyles"; + public const string StartRuleUsageTracking = "CSS.startRuleUsageTracking"; + public const string TakeCoverageDelta = "CSS.takeCoverageDelta"; + public const string StopRuleUsageTracking = "CSS.stopRuleUsageTracking"; public const string MediaQueryResultChanged = "CSS.mediaQueryResultChanged"; + public const string FontsUpdated = "CSS.fontsUpdated"; public const string StyleSheetChanged = "CSS.styleSheetChanged"; public const string StyleSheetAdded = "CSS.styleSheetAdded"; public const string StyleSheetRemoved = "CSS.styleSheetRemoved"; } - public static class Timeline + public static class IO { - public const string Enable = "Timeline.enable"; - public const string Disable = "Timeline.disable"; - public const string Start = "Timeline.start"; - public const string Stop = "Timeline.stop"; - public const string EventRecorded = "Timeline.eventRecorded"; - } - - public static class Debugger - { - public const string Enable = "Debugger.enable"; - public const string Disable = "Debugger.disable"; - public const string SetBreakpointsActive = "Debugger.setBreakpointsActive"; - public const string SetSkipAllPauses = "Debugger.setSkipAllPauses"; - public const string SetBreakpointByUrl = "Debugger.setBreakpointByUrl"; - public const string SetBreakpoint = "Debugger.setBreakpoint"; - public const string RemoveBreakpoint = "Debugger.removeBreakpoint"; - public const string ContinueToLocation = "Debugger.continueToLocation"; - public const string StepOver = "Debugger.stepOver"; - public const string StepInto = "Debugger.stepInto"; - public const string StepOut = "Debugger.stepOut"; - public const string Pause = "Debugger.pause"; - public const string Resume = "Debugger.resume"; - public const string StepIntoAsync = "Debugger.stepIntoAsync"; - public const string SearchInContent = "Debugger.searchInContent"; - public const string CanSetScriptSource = "Debugger.canSetScriptSource"; - public const string SetScriptSource = "Debugger.setScriptSource"; - public const string RestartFrame = "Debugger.restartFrame"; - public const string GetScriptSource = "Debugger.getScriptSource"; - public const string GetFunctionDetails = "Debugger.getFunctionDetails"; - public const string GetGeneratorObjectDetails = "Debugger.getGeneratorObjectDetails"; - public const string GetCollectionEntries = "Debugger.getCollectionEntries"; - public const string SetPauseOnExceptions = "Debugger.setPauseOnExceptions"; - public const string EvaluateOnCallFrame = "Debugger.evaluateOnCallFrame"; - public const string CompileScript = "Debugger.compileScript"; - public const string RunScript = "Debugger.runScript"; - public const string SetVariableValue = "Debugger.setVariableValue"; - public const string GetStepInPositions = "Debugger.getStepInPositions"; - public const string GetBacktrace = "Debugger.getBacktrace"; - public const string SkipStackFrames = "Debugger.skipStackFrames"; - public const string SetAsyncCallStackDepth = "Debugger.setAsyncCallStackDepth"; - public const string EnablePromiseTracker = "Debugger.enablePromiseTracker"; - public const string DisablePromiseTracker = "Debugger.disablePromiseTracker"; - public const string GetPromises = "Debugger.getPromises"; - public const string GetPromiseById = "Debugger.getPromiseById"; - public const string FlushAsyncOperationEvents = "Debugger.flushAsyncOperationEvents"; - public const string SetAsyncOperationBreakpoint = "Debugger.setAsyncOperationBreakpoint"; - public const string RemoveAsyncOperationBreakpoint = "Debugger.removeAsyncOperationBreakpoint"; - public const string GlobalObjectCleared = "Debugger.globalObjectCleared"; - public const string ScriptParsed = "Debugger.scriptParsed"; - public const string ScriptFailedToParse = "Debugger.scriptFailedToParse"; - public const string BreakpointResolved = "Debugger.breakpointResolved"; - public const string Paused = "Debugger.paused"; - public const string Resumed = "Debugger.resumed"; - public const string PromiseUpdated = "Debugger.promiseUpdated"; - public const string AsyncOperationStarted = "Debugger.asyncOperationStarted"; - public const string AsyncOperationCompleted = "Debugger.asyncOperationCompleted"; + public const string Read = "IO.read"; + public const string Close = "IO.close"; } public static class DOMDebugger @@ -370,91 +431,53 @@ public static class DOMDebugger public const string RemoveInstrumentationBreakpoint = "DOMDebugger.removeInstrumentationBreakpoint"; public const string SetXHRBreakpoint = "DOMDebugger.setXHRBreakpoint"; public const string RemoveXHRBreakpoint = "DOMDebugger.removeXHRBreakpoint"; + public const string GetEventListeners = "DOMDebugger.getEventListeners"; } - public static class Profiler - { - public const string Enable = "Profiler.enable"; - public const string Disable = "Profiler.disable"; - public const string SetSamplingInterval = "Profiler.setSamplingInterval"; - public const string Start = "Profiler.start"; - public const string Stop = "Profiler.stop"; - public const string ConsoleProfileStarted = "Profiler.consoleProfileStarted"; - public const string ConsoleProfileFinished = "Profiler.consoleProfileFinished"; - } - - public static class HeapProfiler + public static class Target { - public const string Enable = "HeapProfiler.enable"; - public const string Disable = "HeapProfiler.disable"; - public const string StartTrackingHeapObjects = "HeapProfiler.startTrackingHeapObjects"; - public const string StopTrackingHeapObjects = "HeapProfiler.stopTrackingHeapObjects"; - public const string TakeHeapSnapshot = "HeapProfiler.takeHeapSnapshot"; - public const string CollectGarbage = "HeapProfiler.collectGarbage"; - public const string GetObjectByHeapObjectId = "HeapProfiler.getObjectByHeapObjectId"; - public const string AddInspectedHeapObject = "HeapProfiler.addInspectedHeapObject"; - public const string GetHeapObjectId = "HeapProfiler.getHeapObjectId"; - public const string AddHeapSnapshotChunk = "HeapProfiler.addHeapSnapshotChunk"; - public const string ResetProfiles = "HeapProfiler.resetProfiles"; - public const string ReportHeapSnapshotProgress = "HeapProfiler.reportHeapSnapshotProgress"; - public const string LastSeenObjectId = "HeapProfiler.lastSeenObjectId"; - public const string HeapStatsUpdate = "HeapProfiler.heapStatsUpdate"; - } - - public static class Worker - { - public const string Enable = "Worker.enable"; - public const string Disable = "Worker.disable"; - public const string SendMessageToWorker = "Worker.sendMessageToWorker"; - public const string ConnectToWorker = "Worker.connectToWorker"; - public const string DisconnectFromWorker = "Worker.disconnectFromWorker"; - public const string SetAutoconnectToWorkers = "Worker.setAutoconnectToWorkers"; - public const string WorkerCreated = "Worker.workerCreated"; - public const string WorkerTerminated = "Worker.workerTerminated"; - public const string DispatchMessageFromWorker = "Worker.dispatchMessageFromWorker"; + public const string SetDiscoverTargets = "Target.setDiscoverTargets"; + public const string SetAutoAttach = "Target.setAutoAttach"; + public const string SetAttachToFrames = "Target.setAttachToFrames"; + public const string SetRemoteLocations = "Target.setRemoteLocations"; + public const string SendMessageToTarget = "Target.sendMessageToTarget"; + public const string GetTargetInfo = "Target.getTargetInfo"; + public const string ActivateTarget = "Target.activateTarget"; + public const string CloseTarget = "Target.closeTarget"; + public const string AttachToTarget = "Target.attachToTarget"; + public const string DetachFromTarget = "Target.detachFromTarget"; + public const string CreateBrowserContext = "Target.createBrowserContext"; + public const string DisposeBrowserContext = "Target.disposeBrowserContext"; + public const string CreateTarget = "Target.createTarget"; + public const string GetTargets = "Target.getTargets"; + public const string TargetCreated = "Target.targetCreated"; + public const string TargetDestroyed = "Target.targetDestroyed"; + public const string AttachedToTarget = "Target.attachedToTarget"; + public const string DetachedFromTarget = "Target.detachedFromTarget"; + public const string ReceivedMessageFromTarget = "Target.receivedMessageFromTarget"; } public static class ServiceWorker { public const string Enable = "ServiceWorker.enable"; public const string Disable = "ServiceWorker.disable"; - public const string SendMessage = "ServiceWorker.sendMessage"; - public const string Stop = "ServiceWorker.stop"; public const string Unregister = "ServiceWorker.unregister"; public const string UpdateRegistration = "ServiceWorker.updateRegistration"; public const string StartWorker = "ServiceWorker.startWorker"; + public const string SkipWaiting = "ServiceWorker.skipWaiting"; public const string StopWorker = "ServiceWorker.stopWorker"; public const string InspectWorker = "ServiceWorker.inspectWorker"; - public const string SetDebugOnStart = "ServiceWorker.setDebugOnStart"; + public const string SetForceUpdateOnPageLoad = "ServiceWorker.setForceUpdateOnPageLoad"; public const string DeliverPushMessage = "ServiceWorker.deliverPushMessage"; - public const string WorkerCreated = "ServiceWorker.workerCreated"; - public const string WorkerTerminated = "ServiceWorker.workerTerminated"; - public const string DispatchMessage = "ServiceWorker.dispatchMessage"; + public const string DispatchSyncEvent = "ServiceWorker.dispatchSyncEvent"; public const string WorkerRegistrationUpdated = "ServiceWorker.workerRegistrationUpdated"; public const string WorkerVersionUpdated = "ServiceWorker.workerVersionUpdated"; public const string WorkerErrorReported = "ServiceWorker.workerErrorReported"; - public const string DebugOnStartUpdated = "ServiceWorker.debugOnStartUpdated"; - } - - public static class Canvas - { - public const string Enable = "Canvas.enable"; - public const string Disable = "Canvas.disable"; - public const string DropTraceLog = "Canvas.dropTraceLog"; - public const string HasUninstrumentedCanvases = "Canvas.hasUninstrumentedCanvases"; - public const string CaptureFrame = "Canvas.captureFrame"; - public const string StartCapturing = "Canvas.startCapturing"; - public const string StopCapturing = "Canvas.stopCapturing"; - public const string GetTraceLog = "Canvas.getTraceLog"; - public const string ReplayTraceLog = "Canvas.replayTraceLog"; - public const string GetResourceState = "Canvas.getResourceState"; - public const string EvaluateTraceLogCallArgument = "Canvas.evaluateTraceLogCallArgument"; - public const string ContextCreated = "Canvas.contextCreated"; - public const string TraceLogsRemoved = "Canvas.traceLogsRemoved"; } public static class Input { + public const string SetIgnoreInputEvents = "Input.setIgnoreInputEvents"; public const string DispatchKeyEvent = "Input.dispatchKeyEvent"; public const string DispatchMouseEvent = "Input.dispatchMouseEvent"; public const string DispatchTouchEvent = "Input.dispatchTouchEvent"; @@ -490,35 +513,67 @@ public static class Tracing public const string Start = "Tracing.start"; public const string End = "Tracing.end"; public const string GetCategories = "Tracing.getCategories"; + public const string RequestMemoryDump = "Tracing.requestMemoryDump"; + public const string RecordClockSyncMarker = "Tracing.recordClockSyncMarker"; public const string DataCollected = "Tracing.dataCollected"; public const string TracingComplete = "Tracing.tracingComplete"; public const string BufferUsage = "Tracing.bufferUsage"; } - public static class Power - { - public const string Start = "Power.start"; - public const string End = "Power.end"; - public const string CanProfilePower = "Power.canProfilePower"; - public const string GetAccuracyLevel = "Power.getAccuracyLevel"; - public const string DataAvailable = "Power.dataAvailable"; - } - public static class Animation { public const string Enable = "Animation.enable"; - public const string GetAnimationPlayersForNode = "Animation.getAnimationPlayersForNode"; + public const string Disable = "Animation.disable"; public const string GetPlaybackRate = "Animation.getPlaybackRate"; public const string SetPlaybackRate = "Animation.setPlaybackRate"; - public const string SetCurrentTime = "Animation.setCurrentTime"; + public const string GetCurrentTime = "Animation.getCurrentTime"; + public const string SetPaused = "Animation.setPaused"; public const string SetTiming = "Animation.setTiming"; - public const string AnimationPlayerCreated = "Animation.animationPlayerCreated"; - public const string AnimationPlayerCanceled = "Animation.animationPlayerCanceled"; + public const string SeekAnimations = "Animation.seekAnimations"; + public const string ReleaseAnimations = "Animation.releaseAnimations"; + public const string ResolveAnimation = "Animation.resolveAnimation"; + public const string AnimationCreated = "Animation.animationCreated"; + public const string AnimationStarted = "Animation.animationStarted"; + public const string AnimationCanceled = "Animation.animationCanceled"; } public static class Accessibility { - public const string GetAXNode = "Accessibility.getAXNode"; + public const string GetPartialAXTree = "Accessibility.getPartialAXTree"; + } + + public static class Storage + { + public const string ClearDataForOrigin = "Storage.clearDataForOrigin"; + } + + public static class Log + { + public const string Enable = "Log.enable"; + public const string Disable = "Log.disable"; + public const string Clear = "Log.clear"; + public const string StartViolationsReport = "Log.startViolationsReport"; + public const string StopViolationsReport = "Log.stopViolationsReport"; + public const string EntryAdded = "Log.entryAdded"; + } + + public static class SystemInfo + { + public const string GetInfo = "SystemInfo.getInfo"; + } + + public static class Tethering + { + public const string Bind = "Tethering.bind"; + public const string Unbind = "Tethering.unbind"; + public const string Accepted = "Tethering.accepted"; + } + + public static class Browser + { + public const string GetWindowForTarget = "Browser.getWindowForTarget"; + public const string SetWindowBounds = "Browser.setWindowBounds"; + public const string GetWindowBounds = "Browser.getWindowBounds"; } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetContinuousPaintingEnabledCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Rendering/SetContinuousPaintingEnabledCommand.cs deleted file mode 100644 index b8f6cb7d..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetContinuousPaintingEnabledCommand.cs +++ /dev/null @@ -1,19 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Rendering -{ - /// - /// Requests that backend enables continuous painting - /// - [Command(ProtocolName.Rendering.SetContinuousPaintingEnabled)] - [SupportedBy("Chrome")] - public class SetContinuousPaintingEnabledCommand - { - /// - /// Gets or sets True for enabling cointinuous painting - /// - public bool Enabled { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetContinuousPaintingEnabledCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Rendering/SetContinuousPaintingEnabledCommandResponse.cs deleted file mode 100644 index 60833d69..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Rendering/SetContinuousPaintingEnabledCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Rendering -{ - /// - /// Requests that backend enables continuous painting - /// - [CommandResponse(ProtocolName.Rendering.SetContinuousPaintingEnabled)] - [SupportedBy("Chrome")] - public class SetContinuousPaintingEnabledCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/AwaitPromiseCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/AwaitPromiseCommand.cs new file mode 100644 index 00000000..5a9cd910 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/AwaitPromiseCommand.cs @@ -0,0 +1,29 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime +{ + /// + /// Add handler to promise with given promise object id. + /// + [Command(ProtocolName.Runtime.AwaitPromise)] + [SupportedBy("Chrome")] + public class AwaitPromiseCommand: ICommand + { + /// + /// Gets or sets Identifier of the promise. + /// + public string PromiseObjectId { get; set; } + /// + /// Gets or sets Whether the result is expected to be a JSON object that should be sent by value. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? ReturnByValue { get; set; } + /// + /// Gets or sets Whether preview should be generated for the result. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? GeneratePreview { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/AwaitPromiseCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/AwaitPromiseCommandResponse.cs new file mode 100644 index 00000000..a9978d51 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/AwaitPromiseCommandResponse.cs @@ -0,0 +1,24 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime +{ + /// + /// Add handler to promise with given promise object id. + /// + [CommandResponse(ProtocolName.Runtime.AwaitPromise)] + [SupportedBy("Chrome")] + public class AwaitPromiseCommandResponse + { + /// + /// Gets or sets Promise result. Will contain rejected value if promise was rejected. + /// + public RemoteObject Result { get; set; } + /// + /// Gets or sets Exception details if stack strace is available. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public ExceptionDetails ExceptionDetails { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/CallArgument.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/CallArgument.cs index 515af427..a015ba92 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/CallArgument.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/CallArgument.cs @@ -5,25 +5,25 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime { /// - /// Represents function call argument. Either remote object id objectId or primitive value or neither of (for undefined) them should be specified. + /// Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified. /// [SupportedBy("Chrome")] public class CallArgument { /// - /// Gets or sets Primitive value, or description string if the value can not be JSON-stringified (like NaN, Infinity, -Infinity, -0). + /// Gets or sets Primitive value. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public object Value { get; set; } /// - /// Gets or sets Remote object handle. + /// Gets or sets Primitive value which can not be JSON-stringified. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string ObjectId { get; set; } + public UnserializableValue UnserializableValue { get; set; } /// - /// Gets or sets Object type. + /// Gets or sets Remote object handle. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Type { get; set; } + public string ObjectId { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Console/CallFrame.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/CallFrame.cs similarity index 74% rename from source/ChromeDevTools/Protocol/Chrome/Console/CallFrame.cs rename to source/ChromeDevTools/Protocol/Chrome/Runtime/CallFrame.cs index f55c0abb..f29a8a33 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Console/CallFrame.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/CallFrame.cs @@ -2,10 +2,10 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Console +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime { /// - /// Stack entry for console errors and assertions. + /// Stack entry for runtime errors and assertions. /// [SupportedBy("Chrome")] public class CallFrame @@ -23,11 +23,11 @@ public class CallFrame /// public string Url { get; set; } /// - /// Gets or sets JavaScript script line number. + /// Gets or sets JavaScript script line number (0-based). /// public long LineNumber { get; set; } /// - /// Gets or sets JavaScript script column number. + /// Gets or sets JavaScript script column number (0-based). /// public long ColumnNumber { get; set; } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/CallFunctionOnCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/CallFunctionOnCommand.cs index a8ce50bc..834a3999 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/CallFunctionOnCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/CallFunctionOnCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime /// [Command(ProtocolName.Runtime.CallFunctionOn)] [SupportedBy("Chrome")] - public class CallFunctionOnCommand + public class CallFunctionOnCommand: ICommand { /// /// Gets or sets Identifier of the object to call function on. @@ -25,10 +25,10 @@ public class CallFunctionOnCommand [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public CallArgument[] Arguments { get; set; } /// - /// Gets or sets Specifies whether function call should stop on exceptions and mute console. Overrides setPauseOnException state. + /// Gets or sets In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? DoNotPauseOnExceptionsAndMuteConsole { get; set; } + public bool? Silent { get; set; } /// /// Gets or sets Whether the result is expected to be a JSON object which should be sent by value. /// @@ -39,5 +39,15 @@ public class CallFunctionOnCommand /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public bool? GeneratePreview { get; set; } + /// + /// Gets or sets Whether execution should be treated as initiated by user in the UI. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? UserGesture { get; set; } + /// + /// Gets or sets Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? AwaitPromise { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/CallFunctionOnCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/CallFunctionOnCommandResponse.cs index a4111712..7bed517f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/CallFunctionOnCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/CallFunctionOnCommandResponse.cs @@ -16,9 +16,9 @@ public class CallFunctionOnCommandResponse /// public RemoteObject Result { get; set; } /// - /// Gets or sets True if the result was thrown during the evaluation. + /// Gets or sets Exception details. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? WasThrown { get; set; } + public ExceptionDetails ExceptionDetails { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/CompileScriptCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/CompileScriptCommand.cs similarity index 62% rename from source/ChromeDevTools/Protocol/Chrome/Debugger/CompileScriptCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Runtime/CompileScriptCommand.cs index be2da0a9..896fc0fc 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/CompileScriptCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/CompileScriptCommand.cs @@ -2,14 +2,14 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime { /// /// Compiles expression. /// - [Command(ProtocolName.Debugger.CompileScript)] + [Command(ProtocolName.Runtime.CompileScript)] [SupportedBy("Chrome")] - public class CompileScriptCommand + public class CompileScriptCommand: ICommand { /// /// Gets or sets Expression to compile. @@ -24,7 +24,7 @@ public class CompileScriptCommand /// public bool PersistScript { get; set; } /// - /// Gets or sets Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page. + /// Gets or sets Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public long? ExecutionContextId { get; set; } diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/CompileScriptCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/CompileScriptCommandResponse.cs similarity index 83% rename from source/ChromeDevTools/Protocol/Chrome/Debugger/CompileScriptCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Runtime/CompileScriptCommandResponse.cs index 6c3e1be5..4167c49b 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/CompileScriptCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/CompileScriptCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime { /// /// Compiles expression. /// - [CommandResponse(ProtocolName.Debugger.CompileScript)] + [CommandResponse(ProtocolName.Runtime.CompileScript)] [SupportedBy("Chrome")] public class CompileScriptCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/ConsoleAPICalledEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/ConsoleAPICalledEvent.cs new file mode 100644 index 00000000..f1d70d39 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/ConsoleAPICalledEvent.cs @@ -0,0 +1,34 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime +{ + /// + /// Issued when console API was called. + /// + [Event(ProtocolName.Runtime.ConsoleAPICalled)] + [SupportedBy("Chrome")] + public class ConsoleAPICalledEvent + { + /// + /// Gets or sets Type of the call. + /// + public string Type { get; set; } + /// + /// Gets or sets Call arguments. + /// + public RemoteObject[] Args { get; set; } + /// + /// Gets or sets Identifier of the context where the call was made. + /// + public long ExecutionContextId { get; set; } + /// + /// Gets or sets Call timestamp. + /// + public double Timestamp { get; set; } + /// + /// Gets or sets Stack trace captured when the call was made. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public StackTrace StackTrace { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/CustomPreview.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/CustomPreview.cs index f13348a6..2da7ee76 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/CustomPreview.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/CustomPreview.cs @@ -23,6 +23,10 @@ public class CustomPreview /// public string FormatterObjectId { get; set; } /// + /// Gets or sets BindRemoteObjectFunctionId + /// + public string BindRemoteObjectFunctionId { get; set; } + /// /// Gets or sets ConfigObjectId /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/DisableCommand.cs index f846d3c5..e6e049cf 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime /// [Command(ProtocolName.Runtime.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/DiscardConsoleEntriesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/DiscardConsoleEntriesCommand.cs new file mode 100644 index 00000000..9738281c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/DiscardConsoleEntriesCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime +{ + /// + /// Discards collected exceptions and console API calls. + /// + [Command(ProtocolName.Runtime.DiscardConsoleEntries)] + [SupportedBy("Chrome")] + public class DiscardConsoleEntriesCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/RunCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/DiscardConsoleEntriesCommandResponse.cs similarity index 55% rename from source/ChromeDevTools/Protocol/Chrome/Runtime/RunCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/Runtime/DiscardConsoleEntriesCommandResponse.cs index 82494c85..3151e63f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/RunCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/DiscardConsoleEntriesCommandResponse.cs @@ -5,11 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime { /// - /// Tells inspected instance(worker or page) that it can run in case it was started paused. + /// Discards collected exceptions and console API calls. /// - [Command(ProtocolName.Runtime.Run)] + [CommandResponse(ProtocolName.Runtime.DiscardConsoleEntries)] [SupportedBy("Chrome")] - public class RunCommand + public class DiscardConsoleEntriesCommandResponse { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/EnableCommand.cs index e35efcc6..5d14738c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime /// [Command(ProtocolName.Runtime.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/EvaluateCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/EvaluateCommand.cs index 9026149f..0eb6c82d 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/EvaluateCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/EvaluateCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime /// [Command(ProtocolName.Runtime.Evaluate)] [SupportedBy("Chrome")] - public class EvaluateCommand + public class EvaluateCommand: ICommand { /// /// Gets or sets Expression to evaluate. @@ -26,12 +26,12 @@ public class EvaluateCommand [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public bool? IncludeCommandLineAPI { get; set; } /// - /// Gets or sets Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state. + /// Gets or sets In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? DoNotPauseOnExceptionsAndMuteConsole { get; set; } + public bool? Silent { get; set; } /// - /// Gets or sets Specifies in which isolated context to perform evaluation. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page. + /// Gets or sets Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public long? ContextId { get; set; } @@ -45,5 +45,15 @@ public class EvaluateCommand /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public bool? GeneratePreview { get; set; } + /// + /// Gets or sets Whether execution should be treated as initiated by user in the UI. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? UserGesture { get; set; } + /// + /// Gets or sets Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? AwaitPromise { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/EvaluateCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/EvaluateCommandResponse.cs index 702bda70..1f7d767c 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/EvaluateCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/EvaluateCommandResponse.cs @@ -16,14 +16,9 @@ public class EvaluateCommandResponse /// public RemoteObject Result { get; set; } /// - /// Gets or sets True if the result was thrown during the evaluation. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? WasThrown { get; set; } - /// /// Gets or sets Exception details. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Debugger.ExceptionDetails ExceptionDetails { get; set; } + public ExceptionDetails ExceptionDetails { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/EventListener.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/EventListener.cs deleted file mode 100644 index 59c441a0..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/EventListener.cs +++ /dev/null @@ -1,31 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime -{ - /// - /// Object event listener. - /// - [SupportedBy("Chrome")] - public class EventListener - { - /// - /// Gets or sets EventListener's type. - /// - public string Type { get; set; } - /// - /// Gets or sets EventListener's useCapture. - /// - public bool UseCapture { get; set; } - /// - /// Gets or sets Handler code location. - /// - public Debugger.Location Location { get; set; } - /// - /// Gets or sets Event handler function value. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Runtime.RemoteObject Handler { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/ExceptionDetails.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/ExceptionDetails.cs new file mode 100644 index 00000000..ef3b64d9 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/ExceptionDetails.cs @@ -0,0 +1,55 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime +{ + /// + /// Detailed information about exception (or error) that was thrown during script compilation or execution. + /// + [SupportedBy("Chrome")] + public class ExceptionDetails + { + /// + /// Gets or sets Exception id. + /// + public long ExceptionId { get; set; } + /// + /// Gets or sets Exception text, which should be used together with exception object when available. + /// + public string Text { get; set; } + /// + /// Gets or sets Line number of the exception location (0-based). + /// + public long LineNumber { get; set; } + /// + /// Gets or sets Column number of the exception location (0-based). + /// + public long ColumnNumber { get; set; } + /// + /// Gets or sets Script ID of the exception location. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string ScriptId { get; set; } + /// + /// Gets or sets URL of the exception location, to be used when the script was not reported. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Url { get; set; } + /// + /// Gets or sets JavaScript stack trace if available. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public StackTrace StackTrace { get; set; } + /// + /// Gets or sets Exception object if available. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public RemoteObject Exception { get; set; } + /// + /// Gets or sets Identifier of the context where exception happened. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? ExecutionContextId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/ExceptionRevokedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/ExceptionRevokedEvent.cs new file mode 100644 index 00000000..202cfcb3 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/ExceptionRevokedEvent.cs @@ -0,0 +1,21 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime +{ + /// + /// Issued when unhandled exception was revoked. + /// + [Event(ProtocolName.Runtime.ExceptionRevoked)] + [SupportedBy("Chrome")] + public class ExceptionRevokedEvent + { + /// + /// Gets or sets Reason describing why exception was revoked. + /// + public string Reason { get; set; } + /// + /// Gets or sets The id of revoked exception, as reported in exceptionUnhandled. + /// + public long ExceptionId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/ExceptionThrownEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/ExceptionThrownEvent.cs new file mode 100644 index 00000000..a695600b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/ExceptionThrownEvent.cs @@ -0,0 +1,21 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime +{ + /// + /// Issued when exception was thrown and unhandled. + /// + [Event(ProtocolName.Runtime.ExceptionThrown)] + [SupportedBy("Chrome")] + public class ExceptionThrownEvent + { + /// + /// Gets or sets Timestamp of the exception. + /// + public double Timestamp { get; set; } + /// + /// Gets or sets ExceptionDetails + /// + public ExceptionDetails ExceptionDetails { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/ExecutionContextCreatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/ExecutionContextCreatedEvent.cs index 0a60e503..53d76bbc 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/ExecutionContextCreatedEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/ExecutionContextCreatedEvent.cs @@ -10,7 +10,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime public class ExecutionContextCreatedEvent { /// - /// Gets or sets A newly created execution contex. + /// Gets or sets A newly created execution context. /// public ExecutionContextDescription Context { get; set; } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/ExecutionContextDescription.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/ExecutionContextDescription.cs index 38c81166..bc0d48a5 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/ExecutionContextDescription.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/ExecutionContextDescription.cs @@ -15,11 +15,6 @@ public class ExecutionContextDescription /// public long Id { get; set; } /// - /// Gets or sets True if this is a context where inpspected web page scripts run. False if it is a content script isolated context. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? IsPageContext { get; set; } - /// /// Gets or sets Execution context origin. /// public string Origin { get; set; } @@ -28,8 +23,9 @@ public class ExecutionContextDescription /// public string Name { get; set; } /// - /// Gets or sets Id of the owning frame. May be an empty string if the context is not associated with a frame. + /// Gets or sets Embedder-specific auxiliary data. /// - public string FrameId { get; set; } + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public object AuxData { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/GetEventListenersCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/GetEventListenersCommand.cs deleted file mode 100644 index ca025396..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/GetEventListenersCommand.cs +++ /dev/null @@ -1,24 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime -{ - /// - /// Returns event listeners of the given object. - /// - [Command(ProtocolName.Runtime.GetEventListeners)] - [SupportedBy("Chrome")] - public class GetEventListenersCommand - { - /// - /// Gets or sets Identifier of the object to return listeners for. - /// - public string ObjectId { get; set; } - /// - /// Gets or sets Symbolic group name for handler value. Handler value is not returned without this parameter specified. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string ObjectGroup { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/GetPropertiesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/GetPropertiesCommand.cs index e7634cf1..2d20d64a 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/GetPropertiesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/GetPropertiesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime /// [Command(ProtocolName.Runtime.GetProperties)] [SupportedBy("Chrome")] - public class GetPropertiesCommand + public class GetPropertiesCommand: ICommand { /// /// Gets or sets Identifier of the object to return properties for. diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/GetPropertiesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/GetPropertiesCommandResponse.cs index 3d007868..db45ce66 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/GetPropertiesCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/GetPropertiesCommandResponse.cs @@ -20,5 +20,10 @@ public class GetPropertiesCommandResponse /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public InternalPropertyDescriptor[] InternalProperties { get; set; } + /// + /// Gets or sets Exception details. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public ExceptionDetails ExceptionDetails { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/InspectRequestedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/InspectRequestedEvent.cs new file mode 100644 index 00000000..42340473 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/InspectRequestedEvent.cs @@ -0,0 +1,21 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime +{ + /// + /// Issued when object should be inspected (for example, as a result of inspect() command line API call). + /// + [Event(ProtocolName.Runtime.InspectRequested)] + [SupportedBy("Chrome")] + public class InspectRequestedEvent + { + /// + /// Gets or sets Object + /// + public RemoteObject Object { get; set; } + /// + /// Gets or sets Hints + /// + public object Hints { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/IsRunRequiredCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/IsRunRequiredCommand.cs deleted file mode 100644 index ec7816b4..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/IsRunRequiredCommand.cs +++ /dev/null @@ -1,12 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime -{ - [Command(ProtocolName.Runtime.IsRunRequired)] - [SupportedBy("Chrome")] - public class IsRunRequiredCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/IsRunRequiredCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/IsRunRequiredCommandResponse.cs deleted file mode 100644 index 864aaa41..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/IsRunRequiredCommandResponse.cs +++ /dev/null @@ -1,16 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime -{ - [CommandResponse(ProtocolName.Runtime.IsRunRequired)] - [SupportedBy("Chrome")] - public class IsRunRequiredCommandResponse - { - /// - /// Gets or sets True if the Runtime is in paused on start state. - /// - public bool Result { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/ObjectPreview.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/ObjectPreview.cs index 03a64ea7..c03af1a8 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/ObjectPreview.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/ObjectPreview.cs @@ -25,10 +25,6 @@ public class ObjectPreview [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string Description { get; set; } /// - /// Gets or sets Determines whether preview is lossless (contains all information of the original object). - /// - public bool Lossless { get; set; } - /// /// Gets or sets True iff some of the properties or entries of the original object did not fit. /// public bool Overflow { get; set; } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/ReleaseObjectCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/ReleaseObjectCommand.cs index 56989306..a9bc1e6f 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/ReleaseObjectCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/ReleaseObjectCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime /// [Command(ProtocolName.Runtime.ReleaseObject)] [SupportedBy("Chrome")] - public class ReleaseObjectCommand + public class ReleaseObjectCommand: ICommand { /// /// Gets or sets Identifier of the object to release. diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/ReleaseObjectGroupCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/ReleaseObjectGroupCommand.cs index f8fa45bf..e8f12fd4 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/ReleaseObjectGroupCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/ReleaseObjectGroupCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime /// [Command(ProtocolName.Runtime.ReleaseObjectGroup)] [SupportedBy("Chrome")] - public class ReleaseObjectGroupCommand + public class ReleaseObjectGroupCommand: ICommand { /// /// Gets or sets Symbolic object group name. diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/RemoteObject.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/RemoteObject.cs index 52e81f0a..401fe9cb 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/RemoteObject.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/RemoteObject.cs @@ -25,11 +25,16 @@ public class RemoteObject [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public string ClassName { get; set; } /// - /// Gets or sets Remote object value in case of primitive values or JSON values (if it was requested), or description string if the value can not be JSON-stringified (like NaN, Infinity, -Infinity, -0). + /// Gets or sets Remote object value in case of primitive values or JSON values (if it was requested). /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public object Value { get; set; } /// + /// Gets or sets Primitive value which can not be JSON-stringified does not have value, but gets this property. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public UnserializableValue UnserializableValue { get; set; } + /// /// Gets or sets String representation of the object. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/RunIfWaitingForDebuggerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/RunIfWaitingForDebuggerCommand.cs new file mode 100644 index 00000000..b88249cd --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/RunIfWaitingForDebuggerCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime +{ + /// + /// Tells inspected instance to run if it was waiting for debugger to attach. + /// + [Command(ProtocolName.Runtime.RunIfWaitingForDebugger)] + [SupportedBy("Chrome")] + public class RunIfWaitingForDebuggerCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/RunCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/RunIfWaitingForDebuggerCommandResponse.cs similarity index 52% rename from source/ChromeDevTools/Protocol/Chrome/Runtime/RunCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Runtime/RunIfWaitingForDebuggerCommandResponse.cs index 33eac339..4d82cb08 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/RunCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/RunIfWaitingForDebuggerCommandResponse.cs @@ -5,11 +5,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime { /// - /// Tells inspected instance(worker or page) that it can run in case it was started paused. + /// Tells inspected instance to run if it was waiting for debugger to attach. /// - [CommandResponse(ProtocolName.Runtime.Run)] + [CommandResponse(ProtocolName.Runtime.RunIfWaitingForDebugger)] [SupportedBy("Chrome")] - public class RunCommandResponse + public class RunIfWaitingForDebuggerCommandResponse { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/RunScriptCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/RunScriptCommand.cs new file mode 100644 index 00000000..cf0041b8 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/RunScriptCommand.cs @@ -0,0 +1,54 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime +{ + /// + /// Runs script with given id in a given context. + /// + [Command(ProtocolName.Runtime.RunScript)] + [SupportedBy("Chrome")] + public class RunScriptCommand: ICommand + { + /// + /// Gets or sets Id of the script to run. + /// + public string ScriptId { get; set; } + /// + /// Gets or sets Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? ExecutionContextId { get; set; } + /// + /// Gets or sets Symbolic group name that can be used to release multiple objects. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string ObjectGroup { get; set; } + /// + /// Gets or sets In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? Silent { get; set; } + /// + /// Gets or sets Determines whether Command Line API should be available during the evaluation. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? IncludeCommandLineAPI { get; set; } + /// + /// Gets or sets Whether the result is expected to be a JSON object which should be sent by value. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? ReturnByValue { get; set; } + /// + /// Gets or sets Whether preview should be generated for the result. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? GeneratePreview { get; set; } + /// + /// Gets or sets Whether execution should wait for promise to be resolved. If the result of evaluation is not a Promise, it's considered to be an error. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? AwaitPromise { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/RunScriptCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/RunScriptCommandResponse.cs similarity index 75% rename from source/ChromeDevTools/Protocol/Chrome/Debugger/RunScriptCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Runtime/RunScriptCommandResponse.cs index 0495a238..91a939a9 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/RunScriptCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/RunScriptCommandResponse.cs @@ -2,19 +2,19 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime { /// /// Runs script with given id in a given context. /// - [CommandResponse(ProtocolName.Debugger.RunScript)] + [CommandResponse(ProtocolName.Runtime.RunScript)] [SupportedBy("Chrome")] public class RunScriptCommandResponse { /// /// Gets or sets Run result. /// - public Runtime.RemoteObject Result { get; set; } + public RemoteObject Result { get; set; } /// /// Gets or sets Exception details. /// diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/SetCustomObjectFormatterEnabledCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/SetCustomObjectFormatterEnabledCommand.cs index 7997001a..ede82b66 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Runtime/SetCustomObjectFormatterEnabledCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/SetCustomObjectFormatterEnabledCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime { [Command(ProtocolName.Runtime.SetCustomObjectFormatterEnabled)] [SupportedBy("Chrome")] - public class SetCustomObjectFormatterEnabledCommand + public class SetCustomObjectFormatterEnabledCommand: ICommand { /// /// Gets or sets Enabled diff --git a/source/ChromeDevTools/Protocol/Chrome/Debugger/StackTrace.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/StackTrace.cs similarity index 52% rename from source/ChromeDevTools/Protocol/Chrome/Debugger/StackTrace.cs rename to source/ChromeDevTools/Protocol/Chrome/Runtime/StackTrace.cs index d509aeae..0217d896 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Debugger/StackTrace.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/StackTrace.cs @@ -2,27 +2,32 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime { /// - /// JavaScript call stack, including async stack traces. + /// Call frames for assertions or error messages. /// [SupportedBy("Chrome")] public class StackTrace { /// - /// Gets or sets Call frames of the stack trace. + /// Gets or sets String label of this stack trace. For async traces this may be a name of the function that initiated the async call. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Description { get; set; } + /// + /// Gets or sets JavaScript function name. /// public CallFrame[] CallFrames { get; set; } /// - /// Gets or sets String label of this stack trace. For async traces this may be a name of the function that initiated the async call. + /// Gets or sets Asynchronous JavaScript stack trace that preceded this stack, if available. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Description { get; set; } + public StackTrace Parent { get; set; } /// - /// Gets or sets Async stack trace, if any. + /// Gets or sets Creation frame of the Promise which produced the next synchronous trace when resolved, if available. /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public StackTrace AsyncStackTrace { get; set; } + public CallFrame PromiseCreationFrame { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Runtime/UnserializableValue.cs b/source/ChromeDevTools/Protocol/Chrome/Runtime/UnserializableValue.cs new file mode 100644 index 00000000..22168949 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Runtime/UnserializableValue.cs @@ -0,0 +1,21 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime{ + /// + /// Primitive value which cannot be JSON-stringified. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum UnserializableValue + { + Infinity, + NaN, + [EnumMember(Value = "-Infinity")] + _Infinity, + [EnumMember(Value = "-0")] + _0, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Schema/Domain.cs b/source/ChromeDevTools/Protocol/Chrome/Schema/Domain.cs new file mode 100644 index 00000000..738d8683 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Schema/Domain.cs @@ -0,0 +1,22 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Schema +{ + /// + /// Description of the protocol domain. + /// + [SupportedBy("Chrome")] + public class Domain + { + /// + /// Gets or sets Domain name. + /// + public string Name { get; set; } + /// + /// Gets or sets Domain version. + /// + public string Version { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Schema/GetDomainsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Schema/GetDomainsCommand.cs new file mode 100644 index 00000000..63266ed4 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Schema/GetDomainsCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Schema +{ + /// + /// Returns supported domains. + /// + [Command(ProtocolName.Schema.GetDomains)] + [SupportedBy("Chrome")] + public class GetDomainsCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Schema/GetDomainsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Schema/GetDomainsCommandResponse.cs new file mode 100644 index 00000000..44d411f4 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Schema/GetDomainsCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Schema +{ + /// + /// Returns supported domains. + /// + [CommandResponse(ProtocolName.Schema.GetDomains)] + [SupportedBy("Chrome")] + public class GetDomainsCommandResponse + { + /// + /// Gets or sets List of supported domains. + /// + public Domain[] Domains { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/CertificateErrorAction.cs b/source/ChromeDevTools/Protocol/Chrome/Security/CertificateErrorAction.cs new file mode 100644 index 00000000..7d699bb6 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/CertificateErrorAction.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security{ + /// + /// The action to take when a certificate error occurs. continue will continue processing the request and cancel will cancel the request. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CertificateErrorAction + { + Continue, + Cancel, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/CertificateErrorEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Security/CertificateErrorEvent.cs new file mode 100644 index 00000000..e6f8d201 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/CertificateErrorEvent.cs @@ -0,0 +1,25 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security +{ + /// + /// There is a certificate error. If overriding certificate errors is enabled, then it should be handled with the handleCertificateError command. Note: this event does not fire if the certificate error has been allowed internally. + /// + [Event(ProtocolName.Security.CertificateError)] + [SupportedBy("Chrome")] + public class CertificateErrorEvent + { + /// + /// Gets or sets The ID of the event. + /// + public long EventId { get; set; } + /// + /// Gets or sets The type of the error. + /// + public string ErrorType { get; set; } + /// + /// Gets or sets The url that was requested. + /// + public string RequestURL { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Security/DisableCommand.cs new file mode 100644 index 00000000..8cf8dffa --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/DisableCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security +{ + /// + /// Disables tracking security state changes. + /// + [Command(ProtocolName.Security.Disable)] + [SupportedBy("Chrome")] + public class DisableCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/DisableCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Security/DisableCommandResponse.cs similarity index 55% rename from source/ChromeDevTools/Protocol/Chrome/FileSystem/DisableCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Security/DisableCommandResponse.cs index eaa8f257..1bdd9b42 100644 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/DisableCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Security/DisableCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security { /// - /// Disables events from backend. + /// Disables tracking security state changes. /// - [CommandResponse(ProtocolName.FileSystem.Disable)] + [CommandResponse(ProtocolName.Security.Disable)] [SupportedBy("Chrome")] public class DisableCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Security/EnableCommand.cs new file mode 100644 index 00000000..308eaf7e --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/EnableCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security +{ + /// + /// Enables tracking security state changes. + /// + [Command(ProtocolName.Security.Enable)] + [SupportedBy("Chrome")] + public class EnableCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/FileSystem/EnableCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Security/EnableCommandResponse.cs similarity index 55% rename from source/ChromeDevTools/Protocol/Chrome/FileSystem/EnableCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/Security/EnableCommandResponse.cs index 2bcb0ce0..41632463 100644 --- a/source/ChromeDevTools/Protocol/Chrome/FileSystem/EnableCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Security/EnableCommandResponse.cs @@ -2,12 +2,12 @@ using Newtonsoft.Json; using System.Collections.Generic; -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.FileSystem +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security { /// - /// Enables events from backend. + /// Enables tracking security state changes. /// - [CommandResponse(ProtocolName.FileSystem.Enable)] + [CommandResponse(ProtocolName.Security.Enable)] [SupportedBy("Chrome")] public class EnableCommandResponse { diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/HandleCertificateErrorCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Security/HandleCertificateErrorCommand.cs new file mode 100644 index 00000000..204335bd --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/HandleCertificateErrorCommand.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security +{ + /// + /// Handles a certificate error that fired a certificateError event. + /// + [Command(ProtocolName.Security.HandleCertificateError)] + [SupportedBy("Chrome")] + public class HandleCertificateErrorCommand: ICommand + { + /// + /// Gets or sets The ID of the event. + /// + public long EventId { get; set; } + /// + /// Gets or sets The action to take on the certificate error. + /// + public string Action { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/HandleCertificateErrorCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Security/HandleCertificateErrorCommandResponse.cs new file mode 100644 index 00000000..c89f2568 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/HandleCertificateErrorCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security +{ + /// + /// Handles a certificate error that fired a certificateError event. + /// + [CommandResponse(ProtocolName.Security.HandleCertificateError)] + [SupportedBy("Chrome")] + public class HandleCertificateErrorCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/InsecureContentStatus.cs b/source/ChromeDevTools/Protocol/Chrome/Security/InsecureContentStatus.cs new file mode 100644 index 00000000..99f7a81b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/InsecureContentStatus.cs @@ -0,0 +1,42 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security +{ + /// + /// Information about insecure content on the page. + /// + [SupportedBy("Chrome")] + public class InsecureContentStatus + { + /// + /// Gets or sets True if the page was loaded over HTTPS and ran mixed (HTTP) content such as scripts. + /// + public bool RanMixedContent { get; set; } + /// + /// Gets or sets True if the page was loaded over HTTPS and displayed mixed (HTTP) content such as images. + /// + public bool DisplayedMixedContent { get; set; } + /// + /// Gets or sets True if the page was loaded over HTTPS and contained a form targeting an insecure url. + /// + public bool ContainedMixedForm { get; set; } + /// + /// Gets or sets True if the page was loaded over HTTPS without certificate errors, and ran content such as scripts that were loaded with certificate errors. + /// + public bool RanContentWithCertErrors { get; set; } + /// + /// Gets or sets True if the page was loaded over HTTPS without certificate errors, and displayed content such as images that were loaded with certificate errors. + /// + public bool DisplayedContentWithCertErrors { get; set; } + /// + /// Gets or sets Security state representing a page that ran insecure content. + /// + public SecurityState RanInsecureContentStyle { get; set; } + /// + /// Gets or sets Security state representing a page that displayed insecure content. + /// + public SecurityState DisplayedInsecureContentStyle { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/SecurityState.cs b/source/ChromeDevTools/Protocol/Chrome/Security/SecurityState.cs new file mode 100644 index 00000000..50c3a003 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/SecurityState.cs @@ -0,0 +1,21 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security{ + /// + /// The security level of a page or resource. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SecurityState + { + Unknown, + Neutral, + Insecure, + Warning, + Secure, + Info, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/SecurityStateChangedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Security/SecurityStateChangedEvent.cs new file mode 100644 index 00000000..607b782d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/SecurityStateChangedEvent.cs @@ -0,0 +1,34 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security +{ + /// + /// The security state of the page changed. + /// + [Event(ProtocolName.Security.SecurityStateChanged)] + [SupportedBy("Chrome")] + public class SecurityStateChangedEvent + { + /// + /// Gets or sets Security state. + /// + public SecurityState SecurityState { get; set; } + /// + /// Gets or sets True if the page was loaded over cryptographic transport such as HTTPS. + /// + public bool SchemeIsCryptographic { get; set; } + /// + /// Gets or sets List of explanations for the security state. If the overall security state is `insecure` or `warning`, at least one corresponding explanation should be included. + /// + public SecurityStateExplanation[] Explanations { get; set; } + /// + /// Gets or sets Information about insecure content on the page. + /// + public InsecureContentStatus InsecureContentStatus { get; set; } + /// + /// Gets or sets Overrides user-visible description of the state. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Summary { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/SecurityStateExplanation.cs b/source/ChromeDevTools/Protocol/Chrome/Security/SecurityStateExplanation.cs new file mode 100644 index 00000000..6ca684a0 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/SecurityStateExplanation.cs @@ -0,0 +1,30 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security +{ + /// + /// An explanation of an factor contributing to the security state. + /// + [SupportedBy("Chrome")] + public class SecurityStateExplanation + { + /// + /// Gets or sets Security state representing the severity of the factor being explained. + /// + public SecurityState SecurityState { get; set; } + /// + /// Gets or sets Short phrase describing the type of factor. + /// + public string Summary { get; set; } + /// + /// Gets or sets Full text explanation of the factor. + /// + public string Description { get; set; } + /// + /// Gets or sets True if the page has a certificate. + /// + public bool HasCertificate { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/SetOverrideCertificateErrorsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Security/SetOverrideCertificateErrorsCommand.cs new file mode 100644 index 00000000..809a72b0 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/SetOverrideCertificateErrorsCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security +{ + /// + /// Enable/disable overriding certificate errors. If enabled, all certificate error events need to be handled by the DevTools client and should be answered with handleCertificateError commands. + /// + [Command(ProtocolName.Security.SetOverrideCertificateErrors)] + [SupportedBy("Chrome")] + public class SetOverrideCertificateErrorsCommand: ICommand + { + /// + /// Gets or sets If true, certificate errors will be overridden. + /// + public bool Override { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/SetOverrideCertificateErrorsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Security/SetOverrideCertificateErrorsCommandResponse.cs new file mode 100644 index 00000000..fd908158 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/SetOverrideCertificateErrorsCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security +{ + /// + /// Enable/disable overriding certificate errors. If enabled, all certificate error events need to be handled by the DevTools client and should be answered with handleCertificateError commands. + /// + [CommandResponse(ProtocolName.Security.SetOverrideCertificateErrors)] + [SupportedBy("Chrome")] + public class SetOverrideCertificateErrorsCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/ShowCertificateViewerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Security/ShowCertificateViewerCommand.cs new file mode 100644 index 00000000..9ca0f7ee --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/ShowCertificateViewerCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security +{ + /// + /// Displays native dialog with the certificate details. + /// + [Command(ProtocolName.Security.ShowCertificateViewer)] + [SupportedBy("Chrome")] + public class ShowCertificateViewerCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Security/ShowCertificateViewerCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Security/ShowCertificateViewerCommandResponse.cs new file mode 100644 index 00000000..0f5b7f40 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Security/ShowCertificateViewerCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Security +{ + /// + /// Displays native dialog with the certificate details. + /// + [CommandResponse(ProtocolName.Security.ShowCertificateViewer)] + [SupportedBy("Chrome")] + public class ShowCertificateViewerCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DebugOnStartUpdatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DebugOnStartUpdatedEvent.cs deleted file mode 100644 index bd158791..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DebugOnStartUpdatedEvent.cs +++ /dev/null @@ -1,14 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker -{ - [Event(ProtocolName.ServiceWorker.DebugOnStartUpdated)] - [SupportedBy("Chrome")] - public class DebugOnStartUpdatedEvent - { - /// - /// Gets or sets DebugOnStart - /// - public bool DebugOnStart { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DeliverPushMessageCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DeliverPushMessageCommand.cs index 10bd4a53..d3d68d78 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DeliverPushMessageCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DeliverPushMessageCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker { [Command(ProtocolName.ServiceWorker.DeliverPushMessage)] [SupportedBy("Chrome")] - public class DeliverPushMessageCommand + public class DeliverPushMessageCommand: ICommand { /// /// Gets or sets Origin diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DisableCommand.cs index 28617ed8..70bee320 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DisableCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker { [Command(ProtocolName.ServiceWorker.Disable)] [SupportedBy("Chrome")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DispatchMessageEvent.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DispatchMessageEvent.cs deleted file mode 100644 index 7cf42acf..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DispatchMessageEvent.cs +++ /dev/null @@ -1,18 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker -{ - [Event(ProtocolName.ServiceWorker.DispatchMessage)] - [SupportedBy("Chrome")] - public class DispatchMessageEvent - { - /// - /// Gets or sets WorkerId - /// - public string WorkerId { get; set; } - /// - /// Gets or sets Message - /// - public string Message { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DispatchSyncEventCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DispatchSyncEventCommand.cs new file mode 100644 index 00000000..d042e3e8 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DispatchSyncEventCommand.cs @@ -0,0 +1,28 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker +{ + [Command(ProtocolName.ServiceWorker.DispatchSyncEvent)] + [SupportedBy("Chrome")] + public class DispatchSyncEventCommand: ICommand + { + /// + /// Gets or sets Origin + /// + public string Origin { get; set; } + /// + /// Gets or sets RegistrationId + /// + public string RegistrationId { get; set; } + /// + /// Gets or sets Tag + /// + public string Tag { get; set; } + /// + /// Gets or sets LastChance + /// + public bool LastChance { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SendMessageCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DispatchSyncEventCommandResponse.cs similarity index 63% rename from source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SendMessageCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DispatchSyncEventCommandResponse.cs index cce3efaa..483a3043 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SendMessageCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/DispatchSyncEventCommandResponse.cs @@ -4,9 +4,9 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker { - [CommandResponse(ProtocolName.ServiceWorker.SendMessage)] + [CommandResponse(ProtocolName.ServiceWorker.DispatchSyncEvent)] [SupportedBy("Chrome")] - public class SendMessageCommandResponse + public class DispatchSyncEventCommandResponse { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/EnableCommand.cs index a9d60873..a6e8b070 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/EnableCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker { [Command(ProtocolName.ServiceWorker.Enable)] [SupportedBy("Chrome")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/InspectWorkerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/InspectWorkerCommand.cs index 136dd349..97860a80 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/InspectWorkerCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/InspectWorkerCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker { [Command(ProtocolName.ServiceWorker.InspectWorker)] [SupportedBy("Chrome")] - public class InspectWorkerCommand + public class InspectWorkerCommand: ICommand { /// /// Gets or sets VersionId diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SendMessageCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SendMessageCommand.cs deleted file mode 100644 index 01d49d36..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SendMessageCommand.cs +++ /dev/null @@ -1,20 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker -{ - [Command(ProtocolName.ServiceWorker.SendMessage)] - [SupportedBy("Chrome")] - public class SendMessageCommand - { - /// - /// Gets or sets WorkerId - /// - public string WorkerId { get; set; } - /// - /// Gets or sets Message - /// - public string Message { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/ServiceWorkerRegistration.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/ServiceWorkerRegistration.cs index 2d2df74d..e0241095 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/ServiceWorkerRegistration.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/ServiceWorkerRegistration.cs @@ -21,7 +21,6 @@ public class ServiceWorkerRegistration /// /// Gets or sets IsDeleted /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? IsDeleted { get; set; } + public bool IsDeleted { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/ServiceWorkerVersion.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/ServiceWorkerVersion.cs index 5e55a249..a40f2d53 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/ServiceWorkerVersion.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/ServiceWorkerVersion.cs @@ -40,5 +40,15 @@ public class ServiceWorkerVersion /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public double ScriptResponseTime { get; set; } + /// + /// Gets or sets ControlledClients + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string[] ControlledClients { get; set; } + /// + /// Gets or sets TargetId + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string TargetId { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SetDebugOnStartCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SetDebugOnStartCommand.cs deleted file mode 100644 index 337f373b..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SetDebugOnStartCommand.cs +++ /dev/null @@ -1,16 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker -{ - [Command(ProtocolName.ServiceWorker.SetDebugOnStart)] - [SupportedBy("Chrome")] - public class SetDebugOnStartCommand - { - /// - /// Gets or sets DebugOnStart - /// - public bool DebugOnStart { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SetForceUpdateOnPageLoadCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SetForceUpdateOnPageLoadCommand.cs new file mode 100644 index 00000000..4c3056ef --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SetForceUpdateOnPageLoadCommand.cs @@ -0,0 +1,16 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker +{ + [Command(ProtocolName.ServiceWorker.SetForceUpdateOnPageLoad)] + [SupportedBy("Chrome")] + public class SetForceUpdateOnPageLoadCommand: ICommand + { + /// + /// Gets or sets ForceUpdateOnPageLoad + /// + public bool ForceUpdateOnPageLoad { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SetDebugOnStartCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SetForceUpdateOnPageLoadCommandResponse.cs similarity index 60% rename from source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SetDebugOnStartCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SetForceUpdateOnPageLoadCommandResponse.cs index 4fcc34cc..b03940ce 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SetDebugOnStartCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SetForceUpdateOnPageLoadCommandResponse.cs @@ -4,9 +4,9 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker { - [CommandResponse(ProtocolName.ServiceWorker.SetDebugOnStart)] + [CommandResponse(ProtocolName.ServiceWorker.SetForceUpdateOnPageLoad)] [SupportedBy("Chrome")] - public class SetDebugOnStartCommandResponse + public class SetForceUpdateOnPageLoadCommandResponse { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StopCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SkipWaitingCommand.cs similarity index 54% rename from source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StopCommand.cs rename to source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SkipWaitingCommand.cs index bcbeb854..12e9430b 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StopCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SkipWaitingCommand.cs @@ -4,13 +4,13 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker { - [Command(ProtocolName.ServiceWorker.Stop)] + [Command(ProtocolName.ServiceWorker.SkipWaiting)] [SupportedBy("Chrome")] - public class StopCommand + public class SkipWaitingCommand: ICommand { /// - /// Gets or sets WorkerId + /// Gets or sets ScopeURL /// - public string WorkerId { get; set; } + public string ScopeURL { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StopCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SkipWaitingCommandResponse.cs similarity index 65% rename from source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StopCommandResponse.cs rename to source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SkipWaitingCommandResponse.cs index c9a27c0c..a69e2a99 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StopCommandResponse.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/SkipWaitingCommandResponse.cs @@ -4,9 +4,9 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker { - [CommandResponse(ProtocolName.ServiceWorker.Stop)] + [CommandResponse(ProtocolName.ServiceWorker.SkipWaiting)] [SupportedBy("Chrome")] - public class StopCommandResponse + public class SkipWaitingCommandResponse { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StartWorkerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StartWorkerCommand.cs index 6de67a0a..70ddebee 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StartWorkerCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StartWorkerCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker { [Command(ProtocolName.ServiceWorker.StartWorker)] [SupportedBy("Chrome")] - public class StartWorkerCommand + public class StartWorkerCommand: ICommand { /// /// Gets or sets ScopeURL diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StopWorkerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StopWorkerCommand.cs index 95c07ef5..b96299c9 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StopWorkerCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/StopWorkerCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker { [Command(ProtocolName.ServiceWorker.StopWorker)] [SupportedBy("Chrome")] - public class StopWorkerCommand + public class StopWorkerCommand: ICommand { /// /// Gets or sets VersionId diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/UnregisterCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/UnregisterCommand.cs index d9c379cd..c48a4fd6 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/UnregisterCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/UnregisterCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker { [Command(ProtocolName.ServiceWorker.Unregister)] [SupportedBy("Chrome")] - public class UnregisterCommand + public class UnregisterCommand: ICommand { /// /// Gets or sets ScopeURL diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/UpdateRegistrationCommand.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/UpdateRegistrationCommand.cs index 45b10056..14a8fcb3 100644 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/UpdateRegistrationCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/UpdateRegistrationCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker { [Command(ProtocolName.ServiceWorker.UpdateRegistration)] [SupportedBy("Chrome")] - public class UpdateRegistrationCommand + public class UpdateRegistrationCommand: ICommand { /// /// Gets or sets ScopeURL diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/WorkerCreatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/WorkerCreatedEvent.cs deleted file mode 100644 index d1395f16..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/WorkerCreatedEvent.cs +++ /dev/null @@ -1,18 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker -{ - [Event(ProtocolName.ServiceWorker.WorkerCreated)] - [SupportedBy("Chrome")] - public class WorkerCreatedEvent - { - /// - /// Gets or sets WorkerId - /// - public string WorkerId { get; set; } - /// - /// Gets or sets Url - /// - public string Url { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/WorkerTerminatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/WorkerTerminatedEvent.cs deleted file mode 100644 index 641e6c88..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/ServiceWorker/WorkerTerminatedEvent.cs +++ /dev/null @@ -1,14 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.ServiceWorker -{ - [Event(ProtocolName.ServiceWorker.WorkerTerminated)] - [SupportedBy("Chrome")] - public class WorkerTerminatedEvent - { - /// - /// Gets or sets WorkerId - /// - public string WorkerId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Storage/ClearDataForOriginCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Storage/ClearDataForOriginCommand.cs new file mode 100644 index 00000000..4d3ff772 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Storage/ClearDataForOriginCommand.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Storage +{ + /// + /// Clears storage for origin. + /// + [Command(ProtocolName.Storage.ClearDataForOrigin)] + [SupportedBy("Chrome")] + public class ClearDataForOriginCommand: ICommand + { + /// + /// Gets or sets Security origin. + /// + public string Origin { get; set; } + /// + /// Gets or sets Comma separated origin names. + /// + public string StorageTypes { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Storage/ClearDataForOriginCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Storage/ClearDataForOriginCommandResponse.cs new file mode 100644 index 00000000..8820401b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Storage/ClearDataForOriginCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Storage +{ + /// + /// Clears storage for origin. + /// + [CommandResponse(ProtocolName.Storage.ClearDataForOrigin)] + [SupportedBy("Chrome")] + public class ClearDataForOriginCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Storage/StorageType.cs b/source/ChromeDevTools/Protocol/Chrome/Storage/StorageType.cs new file mode 100644 index 00000000..3193656a --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Storage/StorageType.cs @@ -0,0 +1,25 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using System.Runtime.Serialization; + + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Storage{ + /// + /// Enum of possible storage types. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum StorageType + { + Appcache, + Cookies, + File_systems, + Indexeddb, + Local_storage, + Shader_cache, + Websql, + Service_workers, + Cache_storage, + All, + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/SystemInfo/GPUDevice.cs b/source/ChromeDevTools/Protocol/Chrome/SystemInfo/GPUDevice.cs new file mode 100644 index 00000000..4eb7de81 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/SystemInfo/GPUDevice.cs @@ -0,0 +1,30 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.SystemInfo +{ + /// + /// Describes a single graphics processor (GPU). + /// + [SupportedBy("Chrome")] + public class GPUDevice + { + /// + /// Gets or sets PCI ID of the GPU vendor, if available; 0 otherwise. + /// + public double VendorId { get; set; } + /// + /// Gets or sets PCI ID of the GPU device, if available; 0 otherwise. + /// + public double DeviceId { get; set; } + /// + /// Gets or sets String description of the GPU vendor, if the PCI ID is not available. + /// + public string VendorString { get; set; } + /// + /// Gets or sets String description of the GPU device, if the PCI ID is not available. + /// + public string DeviceString { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/SystemInfo/GPUInfo.cs b/source/ChromeDevTools/Protocol/Chrome/SystemInfo/GPUInfo.cs new file mode 100644 index 00000000..cec7f214 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/SystemInfo/GPUInfo.cs @@ -0,0 +1,32 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.SystemInfo +{ + /// + /// Provides information about the GPU(s) on the system. + /// + [SupportedBy("Chrome")] + public class GPUInfo + { + /// + /// Gets or sets The graphics devices on the system. Element 0 is the primary GPU. + /// + public GPUDevice[] Devices { get; set; } + /// + /// Gets or sets An optional dictionary of additional GPU related attributes. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public object AuxAttributes { get; set; } + /// + /// Gets or sets An optional dictionary of graphics features and their status. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public object FeatureStatus { get; set; } + /// + /// Gets or sets An optional array of GPU driver bug workarounds. + /// + public string[] DriverBugWorkarounds { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/SystemInfo/GetInfoCommand.cs b/source/ChromeDevTools/Protocol/Chrome/SystemInfo/GetInfoCommand.cs new file mode 100644 index 00000000..0bbf6543 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/SystemInfo/GetInfoCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.SystemInfo +{ + /// + /// Returns information about the system. + /// + [Command(ProtocolName.SystemInfo.GetInfo)] + [SupportedBy("Chrome")] + public class GetInfoCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/SystemInfo/GetInfoCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/SystemInfo/GetInfoCommandResponse.cs new file mode 100644 index 00000000..f0c22eab --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/SystemInfo/GetInfoCommandResponse.cs @@ -0,0 +1,31 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.SystemInfo +{ + /// + /// Returns information about the system. + /// + [CommandResponse(ProtocolName.SystemInfo.GetInfo)] + [SupportedBy("Chrome")] + public class GetInfoCommandResponse + { + /// + /// Gets or sets Information about the GPUs on the system. + /// + public GPUInfo Gpu { get; set; } + /// + /// Gets or sets A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro'. Will be the empty string if not supported. + /// + public string ModelName { get; set; } + /// + /// Gets or sets A platform-dependent description of the version of the machine. On Mac OS, this is, for example, '10.1'. Will be the empty string if not supported. + /// + public string ModelVersion { get; set; } + /// + /// Gets or sets The command line string used to launch the browser. Will be the empty string if not supported. + /// + public string CommandLine { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/ActivateTargetCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/ActivateTargetCommand.cs new file mode 100644 index 00000000..0b64ed8b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/ActivateTargetCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Activates (focuses) the target. + /// + [Command(ProtocolName.Target.ActivateTarget)] + [SupportedBy("Chrome")] + public class ActivateTargetCommand: ICommand + { + /// + /// Gets or sets TargetId + /// + public string TargetId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/ActivateTargetCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/ActivateTargetCommandResponse.cs new file mode 100644 index 00000000..998f61f0 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/ActivateTargetCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Activates (focuses) the target. + /// + [CommandResponse(ProtocolName.Target.ActivateTarget)] + [SupportedBy("Chrome")] + public class ActivateTargetCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/AttachToTargetCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/AttachToTargetCommand.cs new file mode 100644 index 00000000..dee1b73c --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/AttachToTargetCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Attaches to the target with given id. + /// + [Command(ProtocolName.Target.AttachToTarget)] + [SupportedBy("Chrome")] + public class AttachToTargetCommand: ICommand + { + /// + /// Gets or sets TargetId + /// + public string TargetId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/AttachToTargetCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/AttachToTargetCommandResponse.cs new file mode 100644 index 00000000..954dfeb4 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/AttachToTargetCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Attaches to the target with given id. + /// + [CommandResponse(ProtocolName.Target.AttachToTarget)] + [SupportedBy("Chrome")] + public class AttachToTargetCommandResponse + { + /// + /// Gets or sets Whether attach succeeded. + /// + public bool Success { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/AttachedToTargetEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Target/AttachedToTargetEvent.cs new file mode 100644 index 00000000..f8f3bd2f --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/AttachedToTargetEvent.cs @@ -0,0 +1,21 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Issued when attached to target because of auto-attach or attachToTarget command. + /// + [Event(ProtocolName.Target.AttachedToTarget)] + [SupportedBy("Chrome")] + public class AttachedToTargetEvent + { + /// + /// Gets or sets TargetInfo + /// + public TargetInfo TargetInfo { get; set; } + /// + /// Gets or sets WaitingForDebugger + /// + public bool WaitingForDebugger { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/CloseTargetCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/CloseTargetCommand.cs new file mode 100644 index 00000000..a12dfbbb --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/CloseTargetCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Closes the target. If the target is a page that gets closed too. + /// + [Command(ProtocolName.Target.CloseTarget)] + [SupportedBy("Chrome")] + public class CloseTargetCommand: ICommand + { + /// + /// Gets or sets TargetId + /// + public string TargetId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/CloseTargetCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/CloseTargetCommandResponse.cs new file mode 100644 index 00000000..d6020d19 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/CloseTargetCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Closes the target. If the target is a page that gets closed too. + /// + [CommandResponse(ProtocolName.Target.CloseTarget)] + [SupportedBy("Chrome")] + public class CloseTargetCommandResponse + { + /// + /// Gets or sets Success + /// + public bool Success { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/CreateBrowserContextCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/CreateBrowserContextCommand.cs new file mode 100644 index 00000000..c5e80c6a --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/CreateBrowserContextCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one. + /// + [Command(ProtocolName.Target.CreateBrowserContext)] + [SupportedBy("Chrome")] + public class CreateBrowserContextCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/CreateBrowserContextCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/CreateBrowserContextCommandResponse.cs new file mode 100644 index 00000000..d3b8d615 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/CreateBrowserContextCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one. + /// + [CommandResponse(ProtocolName.Target.CreateBrowserContext)] + [SupportedBy("Chrome")] + public class CreateBrowserContextCommandResponse + { + /// + /// Gets or sets The id of the context created. + /// + public string BrowserContextId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/CreateTargetCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/CreateTargetCommand.cs new file mode 100644 index 00000000..6fdf50b1 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/CreateTargetCommand.cs @@ -0,0 +1,34 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Creates a new page. + /// + [Command(ProtocolName.Target.CreateTarget)] + [SupportedBy("Chrome")] + public class CreateTargetCommand: ICommand + { + /// + /// Gets or sets The initial URL the page will be navigated to. + /// + public string Url { get; set; } + /// + /// Gets or sets Frame width in DIP (headless chrome only). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Width { get; set; } + /// + /// Gets or sets Frame height in DIP (headless chrome only). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public long? Height { get; set; } + /// + /// Gets or sets The browser context to create the page in (headless chrome only). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string BrowserContextId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/CreateTargetCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/CreateTargetCommandResponse.cs new file mode 100644 index 00000000..0a34bf55 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/CreateTargetCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Creates a new page. + /// + [CommandResponse(ProtocolName.Target.CreateTarget)] + [SupportedBy("Chrome")] + public class CreateTargetCommandResponse + { + /// + /// Gets or sets The id of the page opened. + /// + public string TargetId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/DetachFromTargetCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/DetachFromTargetCommand.cs new file mode 100644 index 00000000..087e57d9 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/DetachFromTargetCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Detaches from the target with given id. + /// + [Command(ProtocolName.Target.DetachFromTarget)] + [SupportedBy("Chrome")] + public class DetachFromTargetCommand: ICommand + { + /// + /// Gets or sets TargetId + /// + public string TargetId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/DetachFromTargetCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/DetachFromTargetCommandResponse.cs new file mode 100644 index 00000000..0efd4f90 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/DetachFromTargetCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Detaches from the target with given id. + /// + [CommandResponse(ProtocolName.Target.DetachFromTarget)] + [SupportedBy("Chrome")] + public class DetachFromTargetCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/DetachedFromTargetEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Target/DetachedFromTargetEvent.cs new file mode 100644 index 00000000..ceca8bd8 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/DetachedFromTargetEvent.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Issued when detached from target for any reason (including detachFromTarget command). + /// + [Event(ProtocolName.Target.DetachedFromTarget)] + [SupportedBy("Chrome")] + public class DetachedFromTargetEvent + { + /// + /// Gets or sets TargetId + /// + public string TargetId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/DisposeBrowserContextCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/DisposeBrowserContextCommand.cs new file mode 100644 index 00000000..4cea500f --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/DisposeBrowserContextCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Deletes a BrowserContext, will fail of any open page uses it. + /// + [Command(ProtocolName.Target.DisposeBrowserContext)] + [SupportedBy("Chrome")] + public class DisposeBrowserContextCommand: ICommand + { + /// + /// Gets or sets BrowserContextId + /// + public string BrowserContextId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/DisposeBrowserContextCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/DisposeBrowserContextCommandResponse.cs new file mode 100644 index 00000000..638b2a75 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/DisposeBrowserContextCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Deletes a BrowserContext, will fail of any open page uses it. + /// + [CommandResponse(ProtocolName.Target.DisposeBrowserContext)] + [SupportedBy("Chrome")] + public class DisposeBrowserContextCommandResponse + { + /// + /// Gets or sets Success + /// + public bool Success { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/GetTargetInfoCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/GetTargetInfoCommand.cs new file mode 100644 index 00000000..ed6ac59a --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/GetTargetInfoCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Returns information about a target. + /// + [Command(ProtocolName.Target.GetTargetInfo)] + [SupportedBy("Chrome")] + public class GetTargetInfoCommand: ICommand + { + /// + /// Gets or sets TargetId + /// + public string TargetId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/GetTargetInfoCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/GetTargetInfoCommandResponse.cs new file mode 100644 index 00000000..9501d12b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/GetTargetInfoCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Returns information about a target. + /// + [CommandResponse(ProtocolName.Target.GetTargetInfo)] + [SupportedBy("Chrome")] + public class GetTargetInfoCommandResponse + { + /// + /// Gets or sets TargetInfo + /// + public TargetInfo TargetInfo { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/GetTargetsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/GetTargetsCommand.cs new file mode 100644 index 00000000..00b00c1a --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/GetTargetsCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Retrieves a list of available targets. + /// + [Command(ProtocolName.Target.GetTargets)] + [SupportedBy("Chrome")] + public class GetTargetsCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/GetTargetsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/GetTargetsCommandResponse.cs new file mode 100644 index 00000000..815149cf --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/GetTargetsCommandResponse.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Retrieves a list of available targets. + /// + [CommandResponse(ProtocolName.Target.GetTargets)] + [SupportedBy("Chrome")] + public class GetTargetsCommandResponse + { + /// + /// Gets or sets The list of targets. + /// + public TargetInfo[] TargetInfos { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/ReceivedMessageFromTargetEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Target/ReceivedMessageFromTargetEvent.cs new file mode 100644 index 00000000..fc71fe5d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/ReceivedMessageFromTargetEvent.cs @@ -0,0 +1,21 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Notifies about new protocol message from attached target. + /// + [Event(ProtocolName.Target.ReceivedMessageFromTarget)] + [SupportedBy("Chrome")] + public class ReceivedMessageFromTargetEvent + { + /// + /// Gets or sets TargetId + /// + public string TargetId { get; set; } + /// + /// Gets or sets Message + /// + public string Message { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/RemoteLocation.cs b/source/ChromeDevTools/Protocol/Chrome/Target/RemoteLocation.cs new file mode 100644 index 00000000..c33bc2e5 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/RemoteLocation.cs @@ -0,0 +1,22 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// + /// + [SupportedBy("Chrome")] + public class RemoteLocation + { + /// + /// Gets or sets Host + /// + public string Host { get; set; } + /// + /// Gets or sets Port + /// + public long Port { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/SendMessageToTargetCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/SendMessageToTargetCommand.cs new file mode 100644 index 00000000..036c5074 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/SendMessageToTargetCommand.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Sends protocol message to the target with given id. + /// + [Command(ProtocolName.Target.SendMessageToTarget)] + [SupportedBy("Chrome")] + public class SendMessageToTargetCommand: ICommand + { + /// + /// Gets or sets TargetId + /// + public string TargetId { get; set; } + /// + /// Gets or sets Message + /// + public string Message { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/SendMessageToTargetCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/SendMessageToTargetCommandResponse.cs new file mode 100644 index 00000000..2e25cd3f --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/SendMessageToTargetCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Sends protocol message to the target with given id. + /// + [CommandResponse(ProtocolName.Target.SendMessageToTarget)] + [SupportedBy("Chrome")] + public class SendMessageToTargetCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/SetAttachToFramesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/SetAttachToFramesCommand.cs new file mode 100644 index 00000000..1a63593d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/SetAttachToFramesCommand.cs @@ -0,0 +1,16 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + [Command(ProtocolName.Target.SetAttachToFrames)] + [SupportedBy("Chrome")] + public class SetAttachToFramesCommand: ICommand + { + /// + /// Gets or sets Whether to attach to frames. + /// + public bool Value { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/SetAttachToFramesCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/SetAttachToFramesCommandResponse.cs new file mode 100644 index 00000000..2a3de225 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/SetAttachToFramesCommandResponse.cs @@ -0,0 +1,12 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + [CommandResponse(ProtocolName.Target.SetAttachToFrames)] + [SupportedBy("Chrome")] + public class SetAttachToFramesCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/SetAutoAttachCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/SetAutoAttachCommand.cs new file mode 100644 index 00000000..d17ac374 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/SetAutoAttachCommand.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets. + /// + [Command(ProtocolName.Target.SetAutoAttach)] + [SupportedBy("Chrome")] + public class SetAutoAttachCommand: ICommand + { + /// + /// Gets or sets Whether to auto-attach to related targets. + /// + public bool AutoAttach { get; set; } + /// + /// Gets or sets Whether to pause new targets when attaching to them. Use Runtime.runIfWaitingForDebugger to run paused targets. + /// + public bool WaitForDebuggerOnStart { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/SetAutoAttachCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/SetAutoAttachCommandResponse.cs new file mode 100644 index 00000000..43d78e9b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/SetAutoAttachCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets. + /// + [CommandResponse(ProtocolName.Target.SetAutoAttach)] + [SupportedBy("Chrome")] + public class SetAutoAttachCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/SetDiscoverTargetsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/SetDiscoverTargetsCommand.cs new file mode 100644 index 00000000..ff6f875b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/SetDiscoverTargetsCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Controls whether to discover available targets and notify via targetCreated/targetDestroyed events. + /// + [Command(ProtocolName.Target.SetDiscoverTargets)] + [SupportedBy("Chrome")] + public class SetDiscoverTargetsCommand: ICommand + { + /// + /// Gets or sets Whether to discover available targets. + /// + public bool Discover { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/SetDiscoverTargetsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/SetDiscoverTargetsCommandResponse.cs new file mode 100644 index 00000000..3f1315c1 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/SetDiscoverTargetsCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Controls whether to discover available targets and notify via targetCreated/targetDestroyed events. + /// + [CommandResponse(ProtocolName.Target.SetDiscoverTargets)] + [SupportedBy("Chrome")] + public class SetDiscoverTargetsCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/SetRemoteLocationsCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Target/SetRemoteLocationsCommand.cs new file mode 100644 index 00000000..db9e29f2 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/SetRemoteLocationsCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Enables target discovery for the specified locations, when setDiscoverTargets was set to true. + /// + [Command(ProtocolName.Target.SetRemoteLocations)] + [SupportedBy("Chrome")] + public class SetRemoteLocationsCommand: ICommand + { + /// + /// Gets or sets List of remote locations. + /// + public RemoteLocation[] Locations { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/SetRemoteLocationsCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Target/SetRemoteLocationsCommandResponse.cs new file mode 100644 index 00000000..0d5052de --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/SetRemoteLocationsCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Enables target discovery for the specified locations, when setDiscoverTargets was set to true. + /// + [CommandResponse(ProtocolName.Target.SetRemoteLocations)] + [SupportedBy("Chrome")] + public class SetRemoteLocationsCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/TargetCreatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Target/TargetCreatedEvent.cs new file mode 100644 index 00000000..29084c42 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/TargetCreatedEvent.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Issued when a possible inspection target is created. + /// + [Event(ProtocolName.Target.TargetCreated)] + [SupportedBy("Chrome")] + public class TargetCreatedEvent + { + /// + /// Gets or sets TargetInfo + /// + public TargetInfo TargetInfo { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/TargetDestroyedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Target/TargetDestroyedEvent.cs new file mode 100644 index 00000000..da09f06e --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/TargetDestroyedEvent.cs @@ -0,0 +1,17 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// Issued when a target is destroyed. + /// + [Event(ProtocolName.Target.TargetDestroyed)] + [SupportedBy("Chrome")] + public class TargetDestroyedEvent + { + /// + /// Gets or sets TargetId + /// + public string TargetId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Target/TargetInfo.cs b/source/ChromeDevTools/Protocol/Chrome/Target/TargetInfo.cs new file mode 100644 index 00000000..1a167d5e --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Target/TargetInfo.cs @@ -0,0 +1,30 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Target +{ + /// + /// + /// + [SupportedBy("Chrome")] + public class TargetInfo + { + /// + /// Gets or sets TargetId + /// + public string TargetId { get; set; } + /// + /// Gets or sets Type + /// + public string Type { get; set; } + /// + /// Gets or sets Title + /// + public string Title { get; set; } + /// + /// Gets or sets Url + /// + public string Url { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Tethering/AcceptedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Tethering/AcceptedEvent.cs new file mode 100644 index 00000000..41b9f8a0 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Tethering/AcceptedEvent.cs @@ -0,0 +1,21 @@ +using MasterDevs.ChromeDevTools;using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tethering +{ + /// + /// Informs that port was successfully bound and got a specified connection id. + /// + [Event(ProtocolName.Tethering.Accepted)] + [SupportedBy("Chrome")] + public class AcceptedEvent + { + /// + /// Gets or sets Port number that was successfully bound. + /// + public long Port { get; set; } + /// + /// Gets or sets Connection id to be used. + /// + public string ConnectionId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Tethering/BindCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Tethering/BindCommand.cs new file mode 100644 index 00000000..094412bd --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Tethering/BindCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tethering +{ + /// + /// Request browser port binding. + /// + [Command(ProtocolName.Tethering.Bind)] + [SupportedBy("Chrome")] + public class BindCommand: ICommand + { + /// + /// Gets or sets Port number to bind. + /// + public long Port { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Tethering/BindCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Tethering/BindCommandResponse.cs new file mode 100644 index 00000000..7fd279ce --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Tethering/BindCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tethering +{ + /// + /// Request browser port binding. + /// + [CommandResponse(ProtocolName.Tethering.Bind)] + [SupportedBy("Chrome")] + public class BindCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Tethering/UnbindCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Tethering/UnbindCommand.cs new file mode 100644 index 00000000..79c2ef44 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Tethering/UnbindCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tethering +{ + /// + /// Request browser port unbinding. + /// + [Command(ProtocolName.Tethering.Unbind)] + [SupportedBy("Chrome")] + public class UnbindCommand: ICommand + { + /// + /// Gets or sets Port number to unbind. + /// + public long Port { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Tethering/UnbindCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Tethering/UnbindCommandResponse.cs new file mode 100644 index 00000000..2040cf3d --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Tethering/UnbindCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tethering +{ + /// + /// Request browser port unbinding. + /// + [CommandResponse(ProtocolName.Tethering.Unbind)] + [SupportedBy("Chrome")] + public class UnbindCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Timeline/EnableCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Timeline/EnableCommandResponse.cs deleted file mode 100644 index 469256d5..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Timeline/EnableCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Timeline -{ - /// - /// Deprecated. - /// - [CommandResponse(ProtocolName.Timeline.Enable)] - [SupportedBy("Chrome")] - public class EnableCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Timeline/EventRecordedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Timeline/EventRecordedEvent.cs deleted file mode 100644 index ec6936c5..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Timeline/EventRecordedEvent.cs +++ /dev/null @@ -1,17 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Timeline -{ - /// - /// Deprecated. - /// - [Event(ProtocolName.Timeline.EventRecorded)] - [SupportedBy("Chrome")] - public class EventRecordedEvent - { - /// - /// Gets or sets Timeline event record data. - /// - public TimelineEvent Record { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Timeline/StartCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Timeline/StartCommand.cs deleted file mode 100644 index 888b9a9d..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Timeline/StartCommand.cs +++ /dev/null @@ -1,40 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Timeline -{ - /// - /// Deprecated. - /// - [Command(ProtocolName.Timeline.Start)] - [SupportedBy("Chrome")] - public class StartCommand - { - /// - /// Gets or sets Samples JavaScript stack traces up to maxCallStackDepth, defaults to 5. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public long? MaxCallStackDepth { get; set; } - /// - /// Gets or sets Whether instrumentation events should be buffered and returned upon stop call. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? BufferEvents { get; set; } - /// - /// Gets or sets Coma separated event types to issue although bufferEvents is set. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string LiveEvents { get; set; } - /// - /// Gets or sets Whether counters data should be included into timeline events. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? IncludeCounters { get; set; } - /// - /// Gets or sets Whether events from GPU process should be collected. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public bool? IncludeGPUEvents { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Timeline/StartCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Timeline/StartCommandResponse.cs deleted file mode 100644 index 36c89979..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Timeline/StartCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Timeline -{ - /// - /// Deprecated. - /// - [CommandResponse(ProtocolName.Timeline.Start)] - [SupportedBy("Chrome")] - public class StartCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Timeline/StopCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Timeline/StopCommand.cs deleted file mode 100644 index 89779b95..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Timeline/StopCommand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Timeline -{ - /// - /// Deprecated. - /// - [Command(ProtocolName.Timeline.Stop)] - [SupportedBy("Chrome")] - public class StopCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Timeline/StopCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Timeline/StopCommandResponse.cs deleted file mode 100644 index 1de900f3..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Timeline/StopCommandResponse.cs +++ /dev/null @@ -1,15 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Timeline -{ - /// - /// Deprecated. - /// - [CommandResponse(ProtocolName.Timeline.Stop)] - [SupportedBy("Chrome")] - public class StopCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Timeline/TimelineEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Timeline/TimelineEvent.cs deleted file mode 100644 index e1118e17..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Timeline/TimelineEvent.cs +++ /dev/null @@ -1,51 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Timeline -{ - /// - /// Timeline record contains information about the recorded activity. - /// - [SupportedBy("Chrome")] - public class TimelineEvent - { - /// - /// Gets or sets Event type. - /// - public string Type { get; set; } - /// - /// Gets or sets Event data. - /// - public object Data { get; set; } - /// - /// Gets or sets Start time. - /// - public double StartTime { get; set; } - /// - /// Gets or sets End time. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public double EndTime { get; set; } - /// - /// Gets or sets Nested records. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public TimelineEvent[] Children { get; set; } - /// - /// Gets or sets If present, identifies the thread that produced the event. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string Thread { get; set; } - /// - /// Gets or sets Stack trace. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public Console.CallFrame[] StackTrace { get; set; } - /// - /// Gets or sets Unique identifier of the frame within the page that the event relates to. - /// - [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] - public string FrameId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Tracing/EndCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Tracing/EndCommand.cs index 83be0ee2..330c5fe8 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Tracing/EndCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Tracing/EndCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tracing /// [Command(ProtocolName.Tracing.End)] [SupportedBy("Chrome")] - public class EndCommand + public class EndCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Tracing/GetCategoriesCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Tracing/GetCategoriesCommand.cs index e1b65d8d..e2bcaabb 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Tracing/GetCategoriesCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Tracing/GetCategoriesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tracing /// [Command(ProtocolName.Tracing.GetCategories)] [SupportedBy("Chrome")] - public class GetCategoriesCommand + public class GetCategoriesCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Tracing/MemoryDumpConfig.cs b/source/ChromeDevTools/Protocol/Chrome/Tracing/MemoryDumpConfig.cs new file mode 100644 index 00000000..4588bda0 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Tracing/MemoryDumpConfig.cs @@ -0,0 +1,14 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tracing +{ + /// + /// Configuration for memory dump. Used only when "memory-infra" category is enabled. + /// + [SupportedBy("Chrome")] + public class MemoryDumpConfig + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Tracing/RecordClockSyncMarkerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Tracing/RecordClockSyncMarkerCommand.cs new file mode 100644 index 00000000..35d8d3b5 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Tracing/RecordClockSyncMarkerCommand.cs @@ -0,0 +1,19 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tracing +{ + /// + /// Record a clock sync marker in the trace. + /// + [Command(ProtocolName.Tracing.RecordClockSyncMarker)] + [SupportedBy("Chrome")] + public class RecordClockSyncMarkerCommand: ICommand + { + /// + /// Gets or sets The ID of this clock sync marker + /// + public string SyncId { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Tracing/RecordClockSyncMarkerCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Tracing/RecordClockSyncMarkerCommandResponse.cs new file mode 100644 index 00000000..24b34e28 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Tracing/RecordClockSyncMarkerCommandResponse.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tracing +{ + /// + /// Record a clock sync marker in the trace. + /// + [CommandResponse(ProtocolName.Tracing.RecordClockSyncMarker)] + [SupportedBy("Chrome")] + public class RecordClockSyncMarkerCommandResponse + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Tracing/RequestMemoryDumpCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Tracing/RequestMemoryDumpCommand.cs new file mode 100644 index 00000000..9f78a43e --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Tracing/RequestMemoryDumpCommand.cs @@ -0,0 +1,15 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tracing +{ + /// + /// Request a global memory dump. + /// + [Command(ProtocolName.Tracing.RequestMemoryDump)] + [SupportedBy("Chrome")] + public class RequestMemoryDumpCommand: ICommand + { + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Tracing/RequestMemoryDumpCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Tracing/RequestMemoryDumpCommandResponse.cs new file mode 100644 index 00000000..5bdb1358 --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Tracing/RequestMemoryDumpCommandResponse.cs @@ -0,0 +1,23 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tracing +{ + /// + /// Request a global memory dump. + /// + [CommandResponse(ProtocolName.Tracing.RequestMemoryDump)] + [SupportedBy("Chrome")] + public class RequestMemoryDumpCommandResponse + { + /// + /// Gets or sets GUID of the resulting global memory dump. + /// + public string DumpGuid { get; set; } + /// + /// Gets or sets True iff the global memory dump succeeded. + /// + public bool Success { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Tracing/StartCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Tracing/StartCommand.cs index ff570e9b..8280732e 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Tracing/StartCommand.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Tracing/StartCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tracing /// [Command(ProtocolName.Tracing.Start)] [SupportedBy("Chrome")] - public class StartCommand + public class StartCommand: ICommand { /// /// Gets or sets Category/tag filter @@ -26,5 +26,15 @@ public class StartCommand /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public double BufferUsageReportingInterval { get; set; } + /// + /// Gets or sets Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to ReportEvents). + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string TransferMode { get; set; } + /// + /// Gets or sets + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public TraceConfig TraceConfig { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Tracing/TraceConfig.cs b/source/ChromeDevTools/Protocol/Chrome/Tracing/TraceConfig.cs new file mode 100644 index 00000000..64f74d3b --- /dev/null +++ b/source/ChromeDevTools/Protocol/Chrome/Tracing/TraceConfig.cs @@ -0,0 +1,54 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tracing +{ + /// + /// + /// + [SupportedBy("Chrome")] + public class TraceConfig + { + /// + /// Gets or sets Controls how the trace buffer stores data. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string RecordMode { get; set; } + /// + /// Gets or sets Turns on JavaScript stack sampling. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? EnableSampling { get; set; } + /// + /// Gets or sets Turns on system tracing. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? EnableSystrace { get; set; } + /// + /// Gets or sets Turns on argument filter. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public bool? EnableArgumentFilter { get; set; } + /// + /// Gets or sets Included category filters. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string[] IncludedCategories { get; set; } + /// + /// Gets or sets Excluded category filters. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string[] ExcludedCategories { get; set; } + /// + /// Gets or sets Configuration to synthesize the delays in tracing. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string[] SyntheticDelays { get; set; } + /// + /// Gets or sets Configuration for memory dump triggers. Used only when "memory-infra" category is enabled. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public MemoryDumpConfig MemoryDumpConfig { get; set; } + } +} diff --git a/source/ChromeDevTools/Protocol/Chrome/Tracing/TracingCompleteEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Tracing/TracingCompleteEvent.cs index eddff6a9..ddf0a7d6 100644 --- a/source/ChromeDevTools/Protocol/Chrome/Tracing/TracingCompleteEvent.cs +++ b/source/ChromeDevTools/Protocol/Chrome/Tracing/TracingCompleteEvent.cs @@ -9,5 +9,10 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Tracing [SupportedBy("Chrome")] public class TracingCompleteEvent { + /// + /// Gets or sets A handle of the stream that holds resulting trace data. + /// + [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] + public string Stream { get; set; } } } diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/ConnectToWorkerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/ConnectToWorkerCommand.cs deleted file mode 100644 index 751f512c..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/ConnectToWorkerCommand.cs +++ /dev/null @@ -1,16 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [Command(ProtocolName.Worker.ConnectToWorker)] - [SupportedBy("Chrome")] - public class ConnectToWorkerCommand - { - /// - /// Gets or sets WorkerId - /// - public string WorkerId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/ConnectToWorkerCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/ConnectToWorkerCommandResponse.cs deleted file mode 100644 index d784cd9a..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/ConnectToWorkerCommandResponse.cs +++ /dev/null @@ -1,12 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [CommandResponse(ProtocolName.Worker.ConnectToWorker)] - [SupportedBy("Chrome")] - public class ConnectToWorkerCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/DisableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/DisableCommand.cs deleted file mode 100644 index 90763365..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/DisableCommand.cs +++ /dev/null @@ -1,12 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [Command(ProtocolName.Worker.Disable)] - [SupportedBy("Chrome")] - public class DisableCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/DisableCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/DisableCommandResponse.cs deleted file mode 100644 index 3051bc57..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/DisableCommandResponse.cs +++ /dev/null @@ -1,12 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [CommandResponse(ProtocolName.Worker.Disable)] - [SupportedBy("Chrome")] - public class DisableCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/DisconnectFromWorkerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/DisconnectFromWorkerCommand.cs deleted file mode 100644 index 3f4f6a52..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/DisconnectFromWorkerCommand.cs +++ /dev/null @@ -1,16 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [Command(ProtocolName.Worker.DisconnectFromWorker)] - [SupportedBy("Chrome")] - public class DisconnectFromWorkerCommand - { - /// - /// Gets or sets WorkerId - /// - public string WorkerId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/DisconnectFromWorkerCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/DisconnectFromWorkerCommandResponse.cs deleted file mode 100644 index d4a104af..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/DisconnectFromWorkerCommandResponse.cs +++ /dev/null @@ -1,12 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [CommandResponse(ProtocolName.Worker.DisconnectFromWorker)] - [SupportedBy("Chrome")] - public class DisconnectFromWorkerCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/DispatchMessageFromWorkerEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/DispatchMessageFromWorkerEvent.cs deleted file mode 100644 index 441d9bad..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/DispatchMessageFromWorkerEvent.cs +++ /dev/null @@ -1,18 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [Event(ProtocolName.Worker.DispatchMessageFromWorker)] - [SupportedBy("Chrome")] - public class DispatchMessageFromWorkerEvent - { - /// - /// Gets or sets WorkerId - /// - public string WorkerId { get; set; } - /// - /// Gets or sets Message - /// - public string Message { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/EnableCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/EnableCommand.cs deleted file mode 100644 index fe094235..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/EnableCommand.cs +++ /dev/null @@ -1,12 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [Command(ProtocolName.Worker.Enable)] - [SupportedBy("Chrome")] - public class EnableCommand - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/EnableCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/EnableCommandResponse.cs deleted file mode 100644 index 0c6de343..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/EnableCommandResponse.cs +++ /dev/null @@ -1,12 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [CommandResponse(ProtocolName.Worker.Enable)] - [SupportedBy("Chrome")] - public class EnableCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/SendMessageToWorkerCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/SendMessageToWorkerCommand.cs deleted file mode 100644 index 29076305..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/SendMessageToWorkerCommand.cs +++ /dev/null @@ -1,20 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [Command(ProtocolName.Worker.SendMessageToWorker)] - [SupportedBy("Chrome")] - public class SendMessageToWorkerCommand - { - /// - /// Gets or sets WorkerId - /// - public string WorkerId { get; set; } - /// - /// Gets or sets Message - /// - public string Message { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/SendMessageToWorkerCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/SendMessageToWorkerCommandResponse.cs deleted file mode 100644 index aa5a44d7..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/SendMessageToWorkerCommandResponse.cs +++ /dev/null @@ -1,12 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [CommandResponse(ProtocolName.Worker.SendMessageToWorker)] - [SupportedBy("Chrome")] - public class SendMessageToWorkerCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/SetAutoconnectToWorkersCommand.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/SetAutoconnectToWorkersCommand.cs deleted file mode 100644 index 9a0014cf..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/SetAutoconnectToWorkersCommand.cs +++ /dev/null @@ -1,16 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [Command(ProtocolName.Worker.SetAutoconnectToWorkers)] - [SupportedBy("Chrome")] - public class SetAutoconnectToWorkersCommand - { - /// - /// Gets or sets Value - /// - public bool Value { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/SetAutoconnectToWorkersCommandResponse.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/SetAutoconnectToWorkersCommandResponse.cs deleted file mode 100644 index 35f9dcd9..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/SetAutoconnectToWorkersCommandResponse.cs +++ /dev/null @@ -1,12 +0,0 @@ -using MasterDevs.ChromeDevTools; -using Newtonsoft.Json; -using System.Collections.Generic; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [CommandResponse(ProtocolName.Worker.SetAutoconnectToWorkers)] - [SupportedBy("Chrome")] - public class SetAutoconnectToWorkersCommandResponse - { - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/WorkerCreatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/WorkerCreatedEvent.cs deleted file mode 100644 index 54811eda..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/WorkerCreatedEvent.cs +++ /dev/null @@ -1,22 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [Event(ProtocolName.Worker.WorkerCreated)] - [SupportedBy("Chrome")] - public class WorkerCreatedEvent - { - /// - /// Gets or sets WorkerId - /// - public string WorkerId { get; set; } - /// - /// Gets or sets Url - /// - public string Url { get; set; } - /// - /// Gets or sets InspectorConnected - /// - public bool InspectorConnected { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/Chrome/Worker/WorkerTerminatedEvent.cs b/source/ChromeDevTools/Protocol/Chrome/Worker/WorkerTerminatedEvent.cs deleted file mode 100644 index 9f94c83b..00000000 --- a/source/ChromeDevTools/Protocol/Chrome/Worker/WorkerTerminatedEvent.cs +++ /dev/null @@ -1,14 +0,0 @@ -using MasterDevs.ChromeDevTools;using Newtonsoft.Json; - -namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker -{ - [Event(ProtocolName.Worker.WorkerTerminated)] - [SupportedBy("Chrome")] - public class WorkerTerminatedEvent - { - /// - /// Gets or sets WorkerId - /// - public string WorkerId { get; set; } - } -} diff --git a/source/ChromeDevTools/Protocol/iOS/ApplicationCache/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/ApplicationCache/EnableCommand.cs index 6be51f5f..44b7633a 100644 --- a/source/ChromeDevTools/Protocol/iOS/ApplicationCache/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/ApplicationCache/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.ApplicationCache /// [Command(ProtocolName.ApplicationCache.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/ApplicationCache/GetApplicationCacheForFrameCommand.cs b/source/ChromeDevTools/Protocol/iOS/ApplicationCache/GetApplicationCacheForFrameCommand.cs index 02aefa11..a1ab344c 100644 --- a/source/ChromeDevTools/Protocol/iOS/ApplicationCache/GetApplicationCacheForFrameCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/ApplicationCache/GetApplicationCacheForFrameCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.ApplicationCache /// [Command(ProtocolName.ApplicationCache.GetApplicationCacheForFrame)] [SupportedBy("iOS")] - public class GetApplicationCacheForFrameCommand + public class GetApplicationCacheForFrameCommand: ICommand { /// /// Gets or sets Identifier of the frame containing document whose application cache is retrieved. diff --git a/source/ChromeDevTools/Protocol/iOS/ApplicationCache/GetFramesWithManifestsCommand.cs b/source/ChromeDevTools/Protocol/iOS/ApplicationCache/GetFramesWithManifestsCommand.cs index b353e158..91f349ba 100644 --- a/source/ChromeDevTools/Protocol/iOS/ApplicationCache/GetFramesWithManifestsCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/ApplicationCache/GetFramesWithManifestsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.ApplicationCache /// [Command(ProtocolName.ApplicationCache.GetFramesWithManifests)] [SupportedBy("iOS")] - public class GetFramesWithManifestsCommand + public class GetFramesWithManifestsCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/ApplicationCache/GetManifestForFrameCommand.cs b/source/ChromeDevTools/Protocol/iOS/ApplicationCache/GetManifestForFrameCommand.cs index b6149303..cc8f2224 100644 --- a/source/ChromeDevTools/Protocol/iOS/ApplicationCache/GetManifestForFrameCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/ApplicationCache/GetManifestForFrameCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.ApplicationCache /// [Command(ProtocolName.ApplicationCache.GetManifestForFrame)] [SupportedBy("iOS")] - public class GetManifestForFrameCommand + public class GetManifestForFrameCommand: ICommand { /// /// Gets or sets Identifier of the frame containing document whose manifest is retrieved. diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/AddRuleCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/AddRuleCommand.cs index c53bd832..baeb1456 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/AddRuleCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/AddRuleCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.AddRule)] [SupportedBy("iOS")] - public class AddRuleCommand + public class AddRuleCommand: ICommand { /// /// Gets or sets StyleSheetId diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/CreateStyleSheetCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/CreateStyleSheetCommand.cs index 89422ed7..794b0055 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/CreateStyleSheetCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/CreateStyleSheetCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.CreateStyleSheet)] [SupportedBy("iOS")] - public class CreateStyleSheetCommand + public class CreateStyleSheetCommand: ICommand { /// /// Gets or sets Identifier of the frame where the new "inspector" stylesheet should be created. diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/DisableCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/DisableCommand.cs index 1df505f7..b1a884dd 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.Disable)] [SupportedBy("iOS")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/EnableCommand.cs index 3ff0295b..06b97c05 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/ForcePseudoStateCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/ForcePseudoStateCommand.cs index c2aaf5d9..54cc23d5 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/ForcePseudoStateCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/ForcePseudoStateCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.ForcePseudoState)] [SupportedBy("iOS")] - public class ForcePseudoStateCommand + public class ForcePseudoStateCommand: ICommand { /// /// Gets or sets The element id for which to force the pseudo state. diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/GetAllStyleSheetsCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/GetAllStyleSheetsCommand.cs index 3b790daf..d63598df 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/GetAllStyleSheetsCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/GetAllStyleSheetsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.GetAllStyleSheets)] [SupportedBy("iOS")] - public class GetAllStyleSheetsCommand + public class GetAllStyleSheetsCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/GetComputedStyleForNodeCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/GetComputedStyleForNodeCommand.cs index cd293393..4058868d 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/GetComputedStyleForNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/GetComputedStyleForNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.GetComputedStyleForNode)] [SupportedBy("iOS")] - public class GetComputedStyleForNodeCommand + public class GetComputedStyleForNodeCommand: ICommand { /// /// Gets or sets NodeId diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/GetInlineStylesForNodeCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/GetInlineStylesForNodeCommand.cs index ac19b723..3ec503b0 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/GetInlineStylesForNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/GetInlineStylesForNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.GetInlineStylesForNode)] [SupportedBy("iOS")] - public class GetInlineStylesForNodeCommand + public class GetInlineStylesForNodeCommand: ICommand { /// /// Gets or sets NodeId diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/GetMatchedStylesForNodeCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/GetMatchedStylesForNodeCommand.cs index b2734bd3..9746864d 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/GetMatchedStylesForNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/GetMatchedStylesForNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.GetMatchedStylesForNode)] [SupportedBy("iOS")] - public class GetMatchedStylesForNodeCommand + public class GetMatchedStylesForNodeCommand: ICommand { /// /// Gets or sets NodeId diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/GetNamedFlowCollectionCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/GetNamedFlowCollectionCommand.cs index 0eeb004b..91ee886d 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/GetNamedFlowCollectionCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/GetNamedFlowCollectionCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.GetNamedFlowCollection)] [SupportedBy("iOS")] - public class GetNamedFlowCollectionCommand + public class GetNamedFlowCollectionCommand: ICommand { /// /// Gets or sets The document node id for which to get the Named Flow Collection. diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/GetStyleSheetCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/GetStyleSheetCommand.cs index 6b251d1f..a0551506 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/GetStyleSheetCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/GetStyleSheetCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.GetStyleSheet)] [SupportedBy("iOS")] - public class GetStyleSheetCommand + public class GetStyleSheetCommand: ICommand { /// /// Gets or sets StyleSheetId diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/GetStyleSheetTextCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/GetStyleSheetTextCommand.cs index 5b682e8a..6f5ec6bd 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/GetStyleSheetTextCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/GetStyleSheetTextCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.GetStyleSheetText)] [SupportedBy("iOS")] - public class GetStyleSheetTextCommand + public class GetStyleSheetTextCommand: ICommand { /// /// Gets or sets StyleSheetId diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/GetSupportedCSSPropertiesCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/GetSupportedCSSPropertiesCommand.cs index c4222c70..01d71edf 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/GetSupportedCSSPropertiesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/GetSupportedCSSPropertiesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.GetSupportedCSSProperties)] [SupportedBy("iOS")] - public class GetSupportedCSSPropertiesCommand + public class GetSupportedCSSPropertiesCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/GetSupportedSystemFontFamilyNamesCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/GetSupportedSystemFontFamilyNamesCommand.cs index 2815739f..4aa2467c 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/GetSupportedSystemFontFamilyNamesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/GetSupportedSystemFontFamilyNamesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.GetSupportedSystemFontFamilyNames)] [SupportedBy("iOS")] - public class GetSupportedSystemFontFamilyNamesCommand + public class GetSupportedSystemFontFamilyNamesCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/SetRuleSelectorCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/SetRuleSelectorCommand.cs index daea511d..8b6de45f 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/SetRuleSelectorCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/SetRuleSelectorCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.SetRuleSelector)] [SupportedBy("iOS")] - public class SetRuleSelectorCommand + public class SetRuleSelectorCommand: ICommand { /// /// Gets or sets RuleId diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/SetStyleSheetTextCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/SetStyleSheetTextCommand.cs index 0427a9d9..a87ab40f 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/SetStyleSheetTextCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/SetStyleSheetTextCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.SetStyleSheetText)] [SupportedBy("iOS")] - public class SetStyleSheetTextCommand + public class SetStyleSheetTextCommand: ICommand { /// /// Gets or sets StyleSheetId diff --git a/source/ChromeDevTools/Protocol/iOS/CSS/SetStyleTextCommand.cs b/source/ChromeDevTools/Protocol/iOS/CSS/SetStyleTextCommand.cs index 98458939..1af16b0d 100644 --- a/source/ChromeDevTools/Protocol/iOS/CSS/SetStyleTextCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/CSS/SetStyleTextCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.CSS /// [Command(ProtocolName.CSS.SetStyleText)] [SupportedBy("iOS")] - public class SetStyleTextCommand + public class SetStyleTextCommand: ICommand { /// /// Gets or sets StyleId diff --git a/source/ChromeDevTools/Protocol/iOS/Console/AddInspectedNodeCommand.cs b/source/ChromeDevTools/Protocol/iOS/Console/AddInspectedNodeCommand.cs index 1570a9b7..722e5e35 100644 --- a/source/ChromeDevTools/Protocol/iOS/Console/AddInspectedNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Console/AddInspectedNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Console /// [Command(ProtocolName.Console.AddInspectedNode)] [SupportedBy("iOS")] - public class AddInspectedNodeCommand + public class AddInspectedNodeCommand: ICommand { /// /// Gets or sets DOM node id to be accessible by means of $0 command line API. diff --git a/source/ChromeDevTools/Protocol/iOS/Console/ClearMessagesCommand.cs b/source/ChromeDevTools/Protocol/iOS/Console/ClearMessagesCommand.cs index c09e1258..f2429393 100644 --- a/source/ChromeDevTools/Protocol/iOS/Console/ClearMessagesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Console/ClearMessagesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Console /// [Command(ProtocolName.Console.ClearMessages)] [SupportedBy("iOS")] - public class ClearMessagesCommand + public class ClearMessagesCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Console/DisableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Console/DisableCommand.cs index 03c9476a..c0de9bea 100644 --- a/source/ChromeDevTools/Protocol/iOS/Console/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Console/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Console /// [Command(ProtocolName.Console.Disable)] [SupportedBy("iOS")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Console/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Console/EnableCommand.cs index 9029301c..a51e2f73 100644 --- a/source/ChromeDevTools/Protocol/iOS/Console/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Console/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Console /// [Command(ProtocolName.Console.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Console/SetMonitoringXHREnabledCommand.cs b/source/ChromeDevTools/Protocol/iOS/Console/SetMonitoringXHREnabledCommand.cs index 9de82a0e..b8214651 100644 --- a/source/ChromeDevTools/Protocol/iOS/Console/SetMonitoringXHREnabledCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Console/SetMonitoringXHREnabledCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Console /// [Command(ProtocolName.Console.SetMonitoringXHREnabled)] [SupportedBy("iOS")] - public class SetMonitoringXHREnabledCommand + public class SetMonitoringXHREnabledCommand: ICommand { /// /// Gets or sets Monitoring enabled state. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/DiscardSearchResultsCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/DiscardSearchResultsCommand.cs index d81591f3..6e8a3eeb 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/DiscardSearchResultsCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/DiscardSearchResultsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.DiscardSearchResults)] [SupportedBy("iOS")] - public class DiscardSearchResultsCommand + public class DiscardSearchResultsCommand: ICommand { /// /// Gets or sets Unique search session identifier. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/FocusCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/FocusCommand.cs index 0632f5fb..ec82e848 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/FocusCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/FocusCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.Focus)] [SupportedBy("iOS")] - public class FocusCommand + public class FocusCommand: ICommand { /// /// Gets or sets Id of the node to focus. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/GetAccessibilityPropertiesForNodeCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/GetAccessibilityPropertiesForNodeCommand.cs index 988699c9..9fe6c7a3 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/GetAccessibilityPropertiesForNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/GetAccessibilityPropertiesForNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.GetAccessibilityPropertiesForNode)] [SupportedBy("iOS")] - public class GetAccessibilityPropertiesForNodeCommand + public class GetAccessibilityPropertiesForNodeCommand: ICommand { /// /// Gets or sets Id of the node for which to get accessibility properties. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/GetAttributesCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/GetAttributesCommand.cs index 95dfe9ec..03adcd02 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/GetAttributesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/GetAttributesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.GetAttributes)] [SupportedBy("iOS")] - public class GetAttributesCommand + public class GetAttributesCommand: ICommand { /// /// Gets or sets Id of the node to retrieve attibutes for. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/GetDocumentCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/GetDocumentCommand.cs index 27e9e1e4..e444760f 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/GetDocumentCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/GetDocumentCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.GetDocument)] [SupportedBy("iOS")] - public class GetDocumentCommand + public class GetDocumentCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/GetEventListenersForNodeCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/GetEventListenersForNodeCommand.cs index e8bfefa4..173e7057 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/GetEventListenersForNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/GetEventListenersForNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.GetEventListenersForNode)] [SupportedBy("iOS")] - public class GetEventListenersForNodeCommand + public class GetEventListenersForNodeCommand: ICommand { /// /// Gets or sets Id of the node to get listeners for. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/GetOuterHTMLCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/GetOuterHTMLCommand.cs index dc1e0c96..7c748f05 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/GetOuterHTMLCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/GetOuterHTMLCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.GetOuterHTML)] [SupportedBy("iOS")] - public class GetOuterHTMLCommand + public class GetOuterHTMLCommand: ICommand { /// /// Gets or sets Id of the node to get markup for. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/GetSearchResultsCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/GetSearchResultsCommand.cs index 4b30ae74..d0451bc4 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/GetSearchResultsCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/GetSearchResultsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.GetSearchResults)] [SupportedBy("iOS")] - public class GetSearchResultsCommand + public class GetSearchResultsCommand: ICommand { /// /// Gets or sets Unique search session identifier. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/HideHighlightCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/HideHighlightCommand.cs index 24cf2421..35dcc63f 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/HideHighlightCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/HideHighlightCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.HideHighlight)] [SupportedBy("iOS")] - public class HideHighlightCommand + public class HideHighlightCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/HighlightFrameCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/HighlightFrameCommand.cs index 139cc8b3..c3256338 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/HighlightFrameCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/HighlightFrameCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.HighlightFrame)] [SupportedBy("iOS")] - public class HighlightFrameCommand + public class HighlightFrameCommand: ICommand { /// /// Gets or sets Identifier of the frame to highlight. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/HighlightNodeCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/HighlightNodeCommand.cs index 08e1a96f..0d45ca29 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/HighlightNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/HighlightNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.HighlightNode)] [SupportedBy("iOS")] - public class HighlightNodeCommand + public class HighlightNodeCommand: ICommand { /// /// Gets or sets A descriptor for the highlight appearance. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/HighlightQuadCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/HighlightQuadCommand.cs index 94d92baa..6c63ea48 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/HighlightQuadCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/HighlightQuadCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.HighlightQuad)] [SupportedBy("iOS")] - public class HighlightQuadCommand + public class HighlightQuadCommand: ICommand { /// /// Gets or sets Quad to highlight diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/HighlightRectCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/HighlightRectCommand.cs index 9ef25c6d..bc4c8488 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/HighlightRectCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/HighlightRectCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.HighlightRect)] [SupportedBy("iOS")] - public class HighlightRectCommand + public class HighlightRectCommand: ICommand { /// /// Gets or sets X coordinate diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/HighlightSelectorCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/HighlightSelectorCommand.cs index e0c496cf..d8976771 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/HighlightSelectorCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/HighlightSelectorCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.HighlightSelector)] [SupportedBy("iOS")] - public class HighlightSelectorCommand + public class HighlightSelectorCommand: ICommand { /// /// Gets or sets A descriptor for the highlight appearance. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/MarkUndoableStateCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/MarkUndoableStateCommand.cs index 49e3e00d..f8de1f86 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/MarkUndoableStateCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/MarkUndoableStateCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.MarkUndoableState)] [SupportedBy("iOS")] - public class MarkUndoableStateCommand + public class MarkUndoableStateCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/MoveToCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/MoveToCommand.cs index e3777a6a..87992388 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/MoveToCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/MoveToCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.MoveTo)] [SupportedBy("iOS")] - public class MoveToCommand + public class MoveToCommand: ICommand { /// /// Gets or sets Id of the node to drop. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/PerformSearchCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/PerformSearchCommand.cs index af028ead..527e2f3f 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/PerformSearchCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/PerformSearchCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.PerformSearch)] [SupportedBy("iOS")] - public class PerformSearchCommand + public class PerformSearchCommand: ICommand { /// /// Gets or sets Plain text or query selector or XPath search query. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/PushNodeByBackendIdToFrontendCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/PushNodeByBackendIdToFrontendCommand.cs index e2cf9c96..96413af4 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/PushNodeByBackendIdToFrontendCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/PushNodeByBackendIdToFrontendCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.PushNodeByBackendIdToFrontend)] [SupportedBy("iOS")] - public class PushNodeByBackendIdToFrontendCommand + public class PushNodeByBackendIdToFrontendCommand: ICommand { /// /// Gets or sets The backend node id of the node. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/PushNodeByPathToFrontendCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/PushNodeByPathToFrontendCommand.cs index 810c9e64..2bc986d5 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/PushNodeByPathToFrontendCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/PushNodeByPathToFrontendCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.PushNodeByPathToFrontend)] [SupportedBy("iOS")] - public class PushNodeByPathToFrontendCommand + public class PushNodeByPathToFrontendCommand: ICommand { /// /// Gets or sets Path to node in the proprietary format. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/QuerySelectorAllCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/QuerySelectorAllCommand.cs index f086fe88..828f2a98 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/QuerySelectorAllCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/QuerySelectorAllCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.QuerySelectorAll)] [SupportedBy("iOS")] - public class QuerySelectorAllCommand + public class QuerySelectorAllCommand: ICommand { /// /// Gets or sets Id of the node to query upon. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/QuerySelectorCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/QuerySelectorCommand.cs index d40fdd10..387d5764 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/QuerySelectorCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/QuerySelectorCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.QuerySelector)] [SupportedBy("iOS")] - public class QuerySelectorCommand + public class QuerySelectorCommand: ICommand { /// /// Gets or sets Id of the node to query upon. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/RedoCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/RedoCommand.cs index 50dabcfc..8aad43d8 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/RedoCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/RedoCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.Redo)] [SupportedBy("iOS")] - public class RedoCommand + public class RedoCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/ReleaseBackendNodeIdsCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/ReleaseBackendNodeIdsCommand.cs index 5e64b55e..3b65504d 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/ReleaseBackendNodeIdsCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/ReleaseBackendNodeIdsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.ReleaseBackendNodeIds)] [SupportedBy("iOS")] - public class ReleaseBackendNodeIdsCommand + public class ReleaseBackendNodeIdsCommand: ICommand { /// /// Gets or sets The backend node ids group name. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/RemoveAttributeCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/RemoveAttributeCommand.cs index 5b7990b8..a232cb6e 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/RemoveAttributeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/RemoveAttributeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.RemoveAttribute)] [SupportedBy("iOS")] - public class RemoveAttributeCommand + public class RemoveAttributeCommand: ICommand { /// /// Gets or sets Id of the element to remove attribute from. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/RemoveNodeCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/RemoveNodeCommand.cs index f3681cf9..31c60565 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/RemoveNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/RemoveNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.RemoveNode)] [SupportedBy("iOS")] - public class RemoveNodeCommand + public class RemoveNodeCommand: ICommand { /// /// Gets or sets Id of the node to remove. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/RequestChildNodesCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/RequestChildNodesCommand.cs index 02a0c250..f4283d5a 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/RequestChildNodesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/RequestChildNodesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.RequestChildNodes)] [SupportedBy("iOS")] - public class RequestChildNodesCommand + public class RequestChildNodesCommand: ICommand { /// /// Gets or sets Id of the node to get children for. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/RequestNodeCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/RequestNodeCommand.cs index 34ad809f..bb2a003f 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/RequestNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/RequestNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.RequestNode)] [SupportedBy("iOS")] - public class RequestNodeCommand + public class RequestNodeCommand: ICommand { /// /// Gets or sets JavaScript object id to convert into node. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/ResolveNodeCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/ResolveNodeCommand.cs index 6df96755..74eafbdf 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/ResolveNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/ResolveNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.ResolveNode)] [SupportedBy("iOS")] - public class ResolveNodeCommand + public class ResolveNodeCommand: ICommand { /// /// Gets or sets Id of the node to resolve. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/SetAttributeValueCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/SetAttributeValueCommand.cs index fcea45b9..31b97dab 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/SetAttributeValueCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/SetAttributeValueCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.SetAttributeValue)] [SupportedBy("iOS")] - public class SetAttributeValueCommand + public class SetAttributeValueCommand: ICommand { /// /// Gets or sets Id of the element to set attribute for. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/SetAttributesAsTextCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/SetAttributesAsTextCommand.cs index c829a1a8..89c81ed8 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/SetAttributesAsTextCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/SetAttributesAsTextCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.SetAttributesAsText)] [SupportedBy("iOS")] - public class SetAttributesAsTextCommand + public class SetAttributesAsTextCommand: ICommand { /// /// Gets or sets Id of the element to set attributes for. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/SetInspectModeEnabledCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/SetInspectModeEnabledCommand.cs index c916d8e8..aed2676c 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/SetInspectModeEnabledCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/SetInspectModeEnabledCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.SetInspectModeEnabled)] [SupportedBy("iOS")] - public class SetInspectModeEnabledCommand + public class SetInspectModeEnabledCommand: ICommand { /// /// Gets or sets True to enable inspection mode, false to disable it. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/SetNodeNameCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/SetNodeNameCommand.cs index 025a58b5..1ce9a9dd 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/SetNodeNameCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/SetNodeNameCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.SetNodeName)] [SupportedBy("iOS")] - public class SetNodeNameCommand + public class SetNodeNameCommand: ICommand { /// /// Gets or sets Id of the node to set name for. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/SetNodeValueCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/SetNodeValueCommand.cs index 13bdaeef..b1ca8487 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/SetNodeValueCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/SetNodeValueCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.SetNodeValue)] [SupportedBy("iOS")] - public class SetNodeValueCommand + public class SetNodeValueCommand: ICommand { /// /// Gets or sets Id of the node to set value for. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/SetOuterHTMLCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/SetOuterHTMLCommand.cs index 11c83821..adbb79c9 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/SetOuterHTMLCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/SetOuterHTMLCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.SetOuterHTML)] [SupportedBy("iOS")] - public class SetOuterHTMLCommand + public class SetOuterHTMLCommand: ICommand { /// /// Gets or sets Id of the node to set markup for. diff --git a/source/ChromeDevTools/Protocol/iOS/DOM/UndoCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOM/UndoCommand.cs index 6241e2bb..901d61c9 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOM/UndoCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOM/UndoCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOM /// [Command(ProtocolName.DOM.Undo)] [SupportedBy("iOS")] - public class UndoCommand + public class UndoCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveDOMBreakpointCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveDOMBreakpointCommand.cs index 17edec4d..c58bbfee 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveDOMBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveDOMBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMDebugger /// [Command(ProtocolName.DOMDebugger.RemoveDOMBreakpoint)] [SupportedBy("iOS")] - public class RemoveDOMBreakpointCommand + public class RemoveDOMBreakpointCommand: ICommand { /// /// Gets or sets Identifier of the node to remove breakpoint from. diff --git a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveEventListenerBreakpointCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveEventListenerBreakpointCommand.cs index 51f470b8..5bba6643 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveEventListenerBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveEventListenerBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMDebugger /// [Command(ProtocolName.DOMDebugger.RemoveEventListenerBreakpoint)] [SupportedBy("iOS")] - public class RemoveEventListenerBreakpointCommand + public class RemoveEventListenerBreakpointCommand: ICommand { /// /// Gets or sets Event name. diff --git a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveInstrumentationBreakpointCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveInstrumentationBreakpointCommand.cs index 848ea240..255e2655 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveInstrumentationBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveInstrumentationBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMDebugger /// [Command(ProtocolName.DOMDebugger.RemoveInstrumentationBreakpoint)] [SupportedBy("iOS")] - public class RemoveInstrumentationBreakpointCommand + public class RemoveInstrumentationBreakpointCommand: ICommand { /// /// Gets or sets Instrumentation name to stop on. diff --git a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveXHRBreakpointCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveXHRBreakpointCommand.cs index f2c00d14..10db6b6c 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveXHRBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/RemoveXHRBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMDebugger /// [Command(ProtocolName.DOMDebugger.RemoveXHRBreakpoint)] [SupportedBy("iOS")] - public class RemoveXHRBreakpointCommand + public class RemoveXHRBreakpointCommand: ICommand { /// /// Gets or sets Resource URL substring. diff --git a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetDOMBreakpointCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetDOMBreakpointCommand.cs index 639467a4..fdabcd0b 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetDOMBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetDOMBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMDebugger /// [Command(ProtocolName.DOMDebugger.SetDOMBreakpoint)] [SupportedBy("iOS")] - public class SetDOMBreakpointCommand + public class SetDOMBreakpointCommand: ICommand { /// /// Gets or sets Identifier of the node to set breakpoint on. diff --git a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetEventListenerBreakpointCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetEventListenerBreakpointCommand.cs index deae5882..f6a111ef 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetEventListenerBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetEventListenerBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMDebugger /// [Command(ProtocolName.DOMDebugger.SetEventListenerBreakpoint)] [SupportedBy("iOS")] - public class SetEventListenerBreakpointCommand + public class SetEventListenerBreakpointCommand: ICommand { /// /// Gets or sets DOM Event name to stop on (any DOM event will do). diff --git a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetInstrumentationBreakpointCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetInstrumentationBreakpointCommand.cs index ecfe2210..94fb34f8 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetInstrumentationBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetInstrumentationBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMDebugger /// [Command(ProtocolName.DOMDebugger.SetInstrumentationBreakpoint)] [SupportedBy("iOS")] - public class SetInstrumentationBreakpointCommand + public class SetInstrumentationBreakpointCommand: ICommand { /// /// Gets or sets Instrumentation name to stop on. diff --git a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetXHRBreakpointCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetXHRBreakpointCommand.cs index 4c8f0039..60914141 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetXHRBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMDebugger/SetXHRBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMDebugger /// [Command(ProtocolName.DOMDebugger.SetXHRBreakpoint)] [SupportedBy("iOS")] - public class SetXHRBreakpointCommand + public class SetXHRBreakpointCommand: ICommand { /// /// Gets or sets Resource URL substring. All XHRs having this substring in the URL will get stopped upon. diff --git a/source/ChromeDevTools/Protocol/iOS/DOMStorage/DisableCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMStorage/DisableCommand.cs index 51d7f77e..4efd139a 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMStorage/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMStorage/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMStorage /// [Command(ProtocolName.DOMStorage.Disable)] [SupportedBy("iOS")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/DOMStorage/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMStorage/EnableCommand.cs index b626dc8f..490846f1 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMStorage/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMStorage/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMStorage /// [Command(ProtocolName.DOMStorage.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/DOMStorage/GetDOMStorageItemsCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMStorage/GetDOMStorageItemsCommand.cs index d72d3c91..800f25a7 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMStorage/GetDOMStorageItemsCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMStorage/GetDOMStorageItemsCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMStorage { [Command(ProtocolName.DOMStorage.GetDOMStorageItems)] [SupportedBy("iOS")] - public class GetDOMStorageItemsCommand + public class GetDOMStorageItemsCommand: ICommand { /// /// Gets or sets StorageId diff --git a/source/ChromeDevTools/Protocol/iOS/DOMStorage/RemoveDOMStorageItemCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMStorage/RemoveDOMStorageItemCommand.cs index abbc806f..bfb14440 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMStorage/RemoveDOMStorageItemCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMStorage/RemoveDOMStorageItemCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMStorage { [Command(ProtocolName.DOMStorage.RemoveDOMStorageItem)] [SupportedBy("iOS")] - public class RemoveDOMStorageItemCommand + public class RemoveDOMStorageItemCommand: ICommand { /// /// Gets or sets StorageId diff --git a/source/ChromeDevTools/Protocol/iOS/DOMStorage/SetDOMStorageItemCommand.cs b/source/ChromeDevTools/Protocol/iOS/DOMStorage/SetDOMStorageItemCommand.cs index aae2c501..d5bfe994 100644 --- a/source/ChromeDevTools/Protocol/iOS/DOMStorage/SetDOMStorageItemCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/DOMStorage/SetDOMStorageItemCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.DOMStorage { [Command(ProtocolName.DOMStorage.SetDOMStorageItem)] [SupportedBy("iOS")] - public class SetDOMStorageItemCommand + public class SetDOMStorageItemCommand: ICommand { /// /// Gets or sets StorageId diff --git a/source/ChromeDevTools/Protocol/iOS/Database/DisableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Database/DisableCommand.cs index 09c7bd5a..4eb71681 100644 --- a/source/ChromeDevTools/Protocol/iOS/Database/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Database/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Database /// [Command(ProtocolName.Database.Disable)] [SupportedBy("iOS")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Database/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Database/EnableCommand.cs index 984fd4ba..fb927afa 100644 --- a/source/ChromeDevTools/Protocol/iOS/Database/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Database/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Database /// [Command(ProtocolName.Database.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Database/ExecuteSQLCommand.cs b/source/ChromeDevTools/Protocol/iOS/Database/ExecuteSQLCommand.cs index b9e773c7..051d0bf4 100644 --- a/source/ChromeDevTools/Protocol/iOS/Database/ExecuteSQLCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Database/ExecuteSQLCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Database { [Command(ProtocolName.Database.ExecuteSQL)] [SupportedBy("iOS")] - public class ExecuteSQLCommand + public class ExecuteSQLCommand: ICommand { /// /// Gets or sets DatabaseId diff --git a/source/ChromeDevTools/Protocol/iOS/Database/GetDatabaseTableNamesCommand.cs b/source/ChromeDevTools/Protocol/iOS/Database/GetDatabaseTableNamesCommand.cs index 915ca70b..59370cb5 100644 --- a/source/ChromeDevTools/Protocol/iOS/Database/GetDatabaseTableNamesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Database/GetDatabaseTableNamesCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Database { [Command(ProtocolName.Database.GetDatabaseTableNames)] [SupportedBy("iOS")] - public class GetDatabaseTableNamesCommand + public class GetDatabaseTableNamesCommand: ICommand { /// /// Gets or sets DatabaseId diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/ContinueToLocationCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/ContinueToLocationCommand.cs index d135d9c2..28a2a90b 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/ContinueToLocationCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/ContinueToLocationCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.ContinueToLocation)] [SupportedBy("iOS")] - public class ContinueToLocationCommand + public class ContinueToLocationCommand: ICommand { /// /// Gets or sets Location to continue to. diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/DisableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/DisableCommand.cs index b72b5ba1..41785e1a 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.Disable)] [SupportedBy("iOS")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/EnableCommand.cs index c90bd384..1312c358 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/EvaluateOnCallFrameCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/EvaluateOnCallFrameCommand.cs index 175c8d26..f073d13c 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/EvaluateOnCallFrameCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/EvaluateOnCallFrameCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.EvaluateOnCallFrame)] [SupportedBy("iOS")] - public class EvaluateOnCallFrameCommand + public class EvaluateOnCallFrameCommand: ICommand { /// /// Gets or sets Call frame identifier to evaluate on. diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/GetFunctionDetailsCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/GetFunctionDetailsCommand.cs index bbc37f71..e658f4a2 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/GetFunctionDetailsCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/GetFunctionDetailsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.GetFunctionDetails)] [SupportedBy("iOS")] - public class GetFunctionDetailsCommand + public class GetFunctionDetailsCommand: ICommand { /// /// Gets or sets Id of the function to get location for. diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/GetScriptSourceCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/GetScriptSourceCommand.cs index ec5de502..198c9577 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/GetScriptSourceCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/GetScriptSourceCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.GetScriptSource)] [SupportedBy("iOS")] - public class GetScriptSourceCommand + public class GetScriptSourceCommand: ICommand { /// /// Gets or sets Id of the script to get source for. diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/PauseCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/PauseCommand.cs index 80022357..4f0465b6 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/PauseCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/PauseCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.Pause)] [SupportedBy("iOS")] - public class PauseCommand + public class PauseCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/RemoveBreakpointCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/RemoveBreakpointCommand.cs index 0816ad44..bbc0512e 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/RemoveBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/RemoveBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.RemoveBreakpoint)] [SupportedBy("iOS")] - public class RemoveBreakpointCommand + public class RemoveBreakpointCommand: ICommand { /// /// Gets or sets BreakpointId diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/ResumeCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/ResumeCommand.cs index dc1878b8..0201f947 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/ResumeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/ResumeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.Resume)] [SupportedBy("iOS")] - public class ResumeCommand + public class ResumeCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/SearchInContentCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/SearchInContentCommand.cs index e0d1593a..c241e66e 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/SearchInContentCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/SearchInContentCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.SearchInContent)] [SupportedBy("iOS")] - public class SearchInContentCommand + public class SearchInContentCommand: ICommand { /// /// Gets or sets Id of the script to search in. diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/SetBreakpointByUrlCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/SetBreakpointByUrlCommand.cs index b4fb7cb8..6e3d2f19 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/SetBreakpointByUrlCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/SetBreakpointByUrlCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.SetBreakpointByUrl)] [SupportedBy("iOS")] - public class SetBreakpointByUrlCommand + public class SetBreakpointByUrlCommand: ICommand { /// /// Gets or sets Line number to set breakpoint at. diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/SetBreakpointCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/SetBreakpointCommand.cs index d3a5f287..c19c69aa 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/SetBreakpointCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/SetBreakpointCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.SetBreakpoint)] [SupportedBy("iOS")] - public class SetBreakpointCommand + public class SetBreakpointCommand: ICommand { /// /// Gets or sets Location to set breakpoint in. diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/SetBreakpointsActiveCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/SetBreakpointsActiveCommand.cs index 5c214e51..717e2119 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/SetBreakpointsActiveCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/SetBreakpointsActiveCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.SetBreakpointsActive)] [SupportedBy("iOS")] - public class SetBreakpointsActiveCommand + public class SetBreakpointsActiveCommand: ICommand { /// /// Gets or sets New value for breakpoints active state. diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/SetOverlayMessageCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/SetOverlayMessageCommand.cs index 267f4850..bac986a5 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/SetOverlayMessageCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/SetOverlayMessageCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.SetOverlayMessage)] [SupportedBy("iOS")] - public class SetOverlayMessageCommand + public class SetOverlayMessageCommand: ICommand { /// /// Gets or sets Overlay message to display when paused in debugger. diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/SetPauseOnExceptionsCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/SetPauseOnExceptionsCommand.cs index db5ca39d..40b09b31 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/SetPauseOnExceptionsCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/SetPauseOnExceptionsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.SetPauseOnExceptions)] [SupportedBy("iOS")] - public class SetPauseOnExceptionsCommand + public class SetPauseOnExceptionsCommand: ICommand { /// /// Gets or sets Pause on exceptions mode. diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/StepIntoCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/StepIntoCommand.cs index 0968ee5a..ce5bf212 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/StepIntoCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/StepIntoCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.StepInto)] [SupportedBy("iOS")] - public class StepIntoCommand + public class StepIntoCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/StepOutCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/StepOutCommand.cs index 0f567038..99275465 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/StepOutCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/StepOutCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.StepOut)] [SupportedBy("iOS")] - public class StepOutCommand + public class StepOutCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Debugger/StepOverCommand.cs b/source/ChromeDevTools/Protocol/iOS/Debugger/StepOverCommand.cs index 98847bb3..34aa5640 100644 --- a/source/ChromeDevTools/Protocol/iOS/Debugger/StepOverCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Debugger/StepOverCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Debugger /// [Command(ProtocolName.Debugger.StepOver)] [SupportedBy("iOS")] - public class StepOverCommand + public class StepOverCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/IndexedDB/ClearObjectStoreCommand.cs b/source/ChromeDevTools/Protocol/iOS/IndexedDB/ClearObjectStoreCommand.cs index 6f26cbb7..5ce57af3 100644 --- a/source/ChromeDevTools/Protocol/iOS/IndexedDB/ClearObjectStoreCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/IndexedDB/ClearObjectStoreCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.IndexedDB /// [Command(ProtocolName.IndexedDB.ClearObjectStore)] [SupportedBy("iOS")] - public class ClearObjectStoreCommand + public class ClearObjectStoreCommand: ICommand { /// /// Gets or sets Security origin. diff --git a/source/ChromeDevTools/Protocol/iOS/IndexedDB/DisableCommand.cs b/source/ChromeDevTools/Protocol/iOS/IndexedDB/DisableCommand.cs index 07fdef9d..44593314 100644 --- a/source/ChromeDevTools/Protocol/iOS/IndexedDB/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/IndexedDB/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.IndexedDB /// [Command(ProtocolName.IndexedDB.Disable)] [SupportedBy("iOS")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/IndexedDB/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/IndexedDB/EnableCommand.cs index 68095e25..bc92b7b3 100644 --- a/source/ChromeDevTools/Protocol/iOS/IndexedDB/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/IndexedDB/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.IndexedDB /// [Command(ProtocolName.IndexedDB.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/IndexedDB/RequestDataCommand.cs b/source/ChromeDevTools/Protocol/iOS/IndexedDB/RequestDataCommand.cs index 5c06c656..c117efa2 100644 --- a/source/ChromeDevTools/Protocol/iOS/IndexedDB/RequestDataCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/IndexedDB/RequestDataCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.IndexedDB /// [Command(ProtocolName.IndexedDB.RequestData)] [SupportedBy("iOS")] - public class RequestDataCommand + public class RequestDataCommand: ICommand { /// /// Gets or sets Security origin. diff --git a/source/ChromeDevTools/Protocol/iOS/IndexedDB/RequestDatabaseCommand.cs b/source/ChromeDevTools/Protocol/iOS/IndexedDB/RequestDatabaseCommand.cs index 93024585..2cdd9198 100644 --- a/source/ChromeDevTools/Protocol/iOS/IndexedDB/RequestDatabaseCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/IndexedDB/RequestDatabaseCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.IndexedDB /// [Command(ProtocolName.IndexedDB.RequestDatabase)] [SupportedBy("iOS")] - public class RequestDatabaseCommand + public class RequestDatabaseCommand: ICommand { /// /// Gets or sets Security origin. diff --git a/source/ChromeDevTools/Protocol/iOS/IndexedDB/RequestDatabaseNamesCommand.cs b/source/ChromeDevTools/Protocol/iOS/IndexedDB/RequestDatabaseNamesCommand.cs index f3a014a0..e83ad4e8 100644 --- a/source/ChromeDevTools/Protocol/iOS/IndexedDB/RequestDatabaseNamesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/IndexedDB/RequestDatabaseNamesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.IndexedDB /// [Command(ProtocolName.IndexedDB.RequestDatabaseNames)] [SupportedBy("iOS")] - public class RequestDatabaseNamesCommand + public class RequestDatabaseNamesCommand: ICommand { /// /// Gets or sets Security origin. diff --git a/source/ChromeDevTools/Protocol/iOS/Inspector/DisableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Inspector/DisableCommand.cs index aed0c4b0..f0605f12 100644 --- a/source/ChromeDevTools/Protocol/iOS/Inspector/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Inspector/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Inspector /// [Command(ProtocolName.Inspector.Disable)] [SupportedBy("iOS")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Inspector/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Inspector/EnableCommand.cs index f9637056..7dc8987a 100644 --- a/source/ChromeDevTools/Protocol/iOS/Inspector/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Inspector/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Inspector /// [Command(ProtocolName.Inspector.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Inspector/InitializedCommand.cs b/source/ChromeDevTools/Protocol/iOS/Inspector/InitializedCommand.cs index c2bb16fb..6871c1a4 100644 --- a/source/ChromeDevTools/Protocol/iOS/Inspector/InitializedCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Inspector/InitializedCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Inspector /// [Command(ProtocolName.Inspector.Initialized)] [SupportedBy("iOS")] - public class InitializedCommand + public class InitializedCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/LayerTree/DisableCommand.cs b/source/ChromeDevTools/Protocol/iOS/LayerTree/DisableCommand.cs index b57d2dd8..26f2420c 100644 --- a/source/ChromeDevTools/Protocol/iOS/LayerTree/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/LayerTree/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.LayerTree /// [Command(ProtocolName.LayerTree.Disable)] [SupportedBy("iOS")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/LayerTree/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/LayerTree/EnableCommand.cs index e506c8d8..3cc9d006 100644 --- a/source/ChromeDevTools/Protocol/iOS/LayerTree/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/LayerTree/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.LayerTree /// [Command(ProtocolName.LayerTree.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/LayerTree/LayersForNodeCommand.cs b/source/ChromeDevTools/Protocol/iOS/LayerTree/LayersForNodeCommand.cs index 250e4f34..643ebdb4 100644 --- a/source/ChromeDevTools/Protocol/iOS/LayerTree/LayersForNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/LayerTree/LayersForNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.LayerTree /// [Command(ProtocolName.LayerTree.LayersForNode)] [SupportedBy("iOS")] - public class LayersForNodeCommand + public class LayersForNodeCommand: ICommand { /// /// Gets or sets Root of the subtree for which we want to gather layers. diff --git a/source/ChromeDevTools/Protocol/iOS/LayerTree/ReasonsForCompositingLayerCommand.cs b/source/ChromeDevTools/Protocol/iOS/LayerTree/ReasonsForCompositingLayerCommand.cs index b3b9ed07..f0060a42 100644 --- a/source/ChromeDevTools/Protocol/iOS/LayerTree/ReasonsForCompositingLayerCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/LayerTree/ReasonsForCompositingLayerCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.LayerTree /// [Command(ProtocolName.LayerTree.ReasonsForCompositingLayer)] [SupportedBy("iOS")] - public class ReasonsForCompositingLayerCommand + public class ReasonsForCompositingLayerCommand: ICommand { /// /// Gets or sets The id of the layer for which we want to get the reasons it was composited. diff --git a/source/ChromeDevTools/Protocol/iOS/Network/CanClearBrowserCacheCommand.cs b/source/ChromeDevTools/Protocol/iOS/Network/CanClearBrowserCacheCommand.cs index 51166bd5..4d4fb386 100644 --- a/source/ChromeDevTools/Protocol/iOS/Network/CanClearBrowserCacheCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Network/CanClearBrowserCacheCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Network /// [Command(ProtocolName.Network.CanClearBrowserCache)] [SupportedBy("iOS")] - public class CanClearBrowserCacheCommand + public class CanClearBrowserCacheCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Network/CanClearBrowserCookiesCommand.cs b/source/ChromeDevTools/Protocol/iOS/Network/CanClearBrowserCookiesCommand.cs index 76a38896..d3f67eb0 100644 --- a/source/ChromeDevTools/Protocol/iOS/Network/CanClearBrowserCookiesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Network/CanClearBrowserCookiesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Network /// [Command(ProtocolName.Network.CanClearBrowserCookies)] [SupportedBy("iOS")] - public class CanClearBrowserCookiesCommand + public class CanClearBrowserCookiesCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Network/ClearBrowserCacheCommand.cs b/source/ChromeDevTools/Protocol/iOS/Network/ClearBrowserCacheCommand.cs index 24854811..1956573a 100644 --- a/source/ChromeDevTools/Protocol/iOS/Network/ClearBrowserCacheCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Network/ClearBrowserCacheCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Network /// [Command(ProtocolName.Network.ClearBrowserCache)] [SupportedBy("iOS")] - public class ClearBrowserCacheCommand + public class ClearBrowserCacheCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Network/ClearBrowserCookiesCommand.cs b/source/ChromeDevTools/Protocol/iOS/Network/ClearBrowserCookiesCommand.cs index 2037df2a..bf871b52 100644 --- a/source/ChromeDevTools/Protocol/iOS/Network/ClearBrowserCookiesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Network/ClearBrowserCookiesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Network /// [Command(ProtocolName.Network.ClearBrowserCookies)] [SupportedBy("iOS")] - public class ClearBrowserCookiesCommand + public class ClearBrowserCookiesCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Network/DisableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Network/DisableCommand.cs index c5bc71e2..81fd875c 100644 --- a/source/ChromeDevTools/Protocol/iOS/Network/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Network/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Network /// [Command(ProtocolName.Network.Disable)] [SupportedBy("iOS")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Network/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Network/EnableCommand.cs index 9c1bed66..9c7a2d3a 100644 --- a/source/ChromeDevTools/Protocol/iOS/Network/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Network/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Network /// [Command(ProtocolName.Network.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Network/GetResponseBodyCommand.cs b/source/ChromeDevTools/Protocol/iOS/Network/GetResponseBodyCommand.cs index 793854cb..cdc602d3 100644 --- a/source/ChromeDevTools/Protocol/iOS/Network/GetResponseBodyCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Network/GetResponseBodyCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Network /// [Command(ProtocolName.Network.GetResponseBody)] [SupportedBy("iOS")] - public class GetResponseBodyCommand + public class GetResponseBodyCommand: ICommand { /// /// Gets or sets Identifier of the network request to get content for. diff --git a/source/ChromeDevTools/Protocol/iOS/Network/Headers.cs b/source/ChromeDevTools/Protocol/iOS/Network/Headers.cs new file mode 100644 index 00000000..12d5d53d --- /dev/null +++ b/source/ChromeDevTools/Protocol/iOS/Network/Headers.cs @@ -0,0 +1,14 @@ +using MasterDevs.ChromeDevTools; +using Newtonsoft.Json; +using System.Collections.Generic; + +namespace MasterDevs.ChromeDevTools.Protocol.iOS.Network +{ + /// + /// Request / response headers as keys / values of JSON object. + /// + [SupportedBy("iOS")] + public class Headers + { + } +} diff --git a/source/ChromeDevTools/Protocol/iOS/Network/LoadResourceCommand.cs b/source/ChromeDevTools/Protocol/iOS/Network/LoadResourceCommand.cs index d5ba136d..189fdde3 100644 --- a/source/ChromeDevTools/Protocol/iOS/Network/LoadResourceCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Network/LoadResourceCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Network /// [Command(ProtocolName.Network.LoadResource)] [SupportedBy("iOS")] - public class LoadResourceCommand + public class LoadResourceCommand: ICommand { /// /// Gets or sets Frame to load the resource from. diff --git a/source/ChromeDevTools/Protocol/iOS/Network/SetCacheDisabledCommand.cs b/source/ChromeDevTools/Protocol/iOS/Network/SetCacheDisabledCommand.cs index df16b706..3000784a 100644 --- a/source/ChromeDevTools/Protocol/iOS/Network/SetCacheDisabledCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Network/SetCacheDisabledCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Network /// [Command(ProtocolName.Network.SetCacheDisabled)] [SupportedBy("iOS")] - public class SetCacheDisabledCommand + public class SetCacheDisabledCommand: ICommand { /// /// Gets or sets Cache disabled state. diff --git a/source/ChromeDevTools/Protocol/iOS/Network/SetExtraHTTPHeadersCommand.cs b/source/ChromeDevTools/Protocol/iOS/Network/SetExtraHTTPHeadersCommand.cs index 910d057a..18e4a932 100644 --- a/source/ChromeDevTools/Protocol/iOS/Network/SetExtraHTTPHeadersCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Network/SetExtraHTTPHeadersCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Network /// [Command(ProtocolName.Network.SetExtraHTTPHeaders)] [SupportedBy("iOS")] - public class SetExtraHTTPHeadersCommand + public class SetExtraHTTPHeadersCommand: ICommand { /// /// Gets or sets Map with extra HTTP headers. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/AddScriptToEvaluateOnLoadCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/AddScriptToEvaluateOnLoadCommand.cs index 5de2a5bb..1d2b2cf6 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/AddScriptToEvaluateOnLoadCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/AddScriptToEvaluateOnLoadCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page { [Command(ProtocolName.Page.AddScriptToEvaluateOnLoad)] [SupportedBy("iOS")] - public class AddScriptToEvaluateOnLoadCommand + public class AddScriptToEvaluateOnLoadCommand: ICommand { /// /// Gets or sets ScriptSource diff --git a/source/ChromeDevTools/Protocol/iOS/Page/ArchiveCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/ArchiveCommand.cs index c361e3c6..64002de0 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/ArchiveCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/ArchiveCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.Archive)] [SupportedBy("iOS")] - public class ArchiveCommand + public class ArchiveCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Page/DeleteCookieCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/DeleteCookieCommand.cs index da80c23d..ae893cda 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/DeleteCookieCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/DeleteCookieCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.DeleteCookie)] [SupportedBy("iOS")] - public class DeleteCookieCommand + public class DeleteCookieCommand: ICommand { /// /// Gets or sets Name of the cookie to remove. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/DisableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/DisableCommand.cs index ad609016..7c7c4822 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.Disable)] [SupportedBy("iOS")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Page/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/EnableCommand.cs index 9201e324..92475297 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Page/GetCompositingBordersVisibleCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/GetCompositingBordersVisibleCommand.cs index 07d65d26..09e50ebb 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/GetCompositingBordersVisibleCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/GetCompositingBordersVisibleCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.GetCompositingBordersVisible)] [SupportedBy("iOS")] - public class GetCompositingBordersVisibleCommand + public class GetCompositingBordersVisibleCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Page/GetCookiesCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/GetCookiesCommand.cs index 2b0aaaea..b1992baa 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/GetCookiesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/GetCookiesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.GetCookies)] [SupportedBy("iOS")] - public class GetCookiesCommand + public class GetCookiesCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Page/GetResourceContentCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/GetResourceContentCommand.cs index dd27cd14..e68c17a1 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/GetResourceContentCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/GetResourceContentCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.GetResourceContent)] [SupportedBy("iOS")] - public class GetResourceContentCommand + public class GetResourceContentCommand: ICommand { /// /// Gets or sets Frame id to get resource for. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/GetResourceTreeCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/GetResourceTreeCommand.cs index f2c0aa85..304febd6 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/GetResourceTreeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/GetResourceTreeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.GetResourceTree)] [SupportedBy("iOS")] - public class GetResourceTreeCommand + public class GetResourceTreeCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Page/GetScriptExecutionStatusCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/GetScriptExecutionStatusCommand.cs index 1173bd52..4e3f289e 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/GetScriptExecutionStatusCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/GetScriptExecutionStatusCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.GetScriptExecutionStatus)] [SupportedBy("iOS")] - public class GetScriptExecutionStatusCommand + public class GetScriptExecutionStatusCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Page/HandleJavaScriptDialogCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/HandleJavaScriptDialogCommand.cs index e5732bcd..c750f78e 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/HandleJavaScriptDialogCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/HandleJavaScriptDialogCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.HandleJavaScriptDialog)] [SupportedBy("iOS")] - public class HandleJavaScriptDialogCommand + public class HandleJavaScriptDialogCommand: ICommand { /// /// Gets or sets Whether to accept or dismiss the dialog. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/NavigateCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/NavigateCommand.cs index 5a4e6d6b..790061f0 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/NavigateCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/NavigateCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.Navigate)] [SupportedBy("iOS")] - public class NavigateCommand + public class NavigateCommand: ICommand { /// /// Gets or sets URL to navigate the page to. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/ReloadCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/ReloadCommand.cs index ce965df1..a2dceb4f 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/ReloadCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/ReloadCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.Reload)] [SupportedBy("iOS")] - public class ReloadCommand + public class ReloadCommand: ICommand { /// /// Gets or sets If true, browser cache is ignored (as if the user pressed Shift+refresh). diff --git a/source/ChromeDevTools/Protocol/iOS/Page/RemoveScriptToEvaluateOnLoadCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/RemoveScriptToEvaluateOnLoadCommand.cs index 161af6e4..f06abc32 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/RemoveScriptToEvaluateOnLoadCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/RemoveScriptToEvaluateOnLoadCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page { [Command(ProtocolName.Page.RemoveScriptToEvaluateOnLoad)] [SupportedBy("iOS")] - public class RemoveScriptToEvaluateOnLoadCommand + public class RemoveScriptToEvaluateOnLoadCommand: ICommand { /// /// Gets or sets Identifier diff --git a/source/ChromeDevTools/Protocol/iOS/Page/SearchInResourceCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/SearchInResourceCommand.cs index ee06d5d1..f40f6cde 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/SearchInResourceCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/SearchInResourceCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.SearchInResource)] [SupportedBy("iOS")] - public class SearchInResourceCommand + public class SearchInResourceCommand: ICommand { /// /// Gets or sets Frame id for resource to search in. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/SearchInResourcesCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/SearchInResourcesCommand.cs index aa537bbc..9662dd44 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/SearchInResourcesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/SearchInResourcesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.SearchInResources)] [SupportedBy("iOS")] - public class SearchInResourcesCommand + public class SearchInResourcesCommand: ICommand { /// /// Gets or sets String to search for. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/SetCompositingBordersVisibleCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/SetCompositingBordersVisibleCommand.cs index b214a95d..91672910 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/SetCompositingBordersVisibleCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/SetCompositingBordersVisibleCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.SetCompositingBordersVisible)] [SupportedBy("iOS")] - public class SetCompositingBordersVisibleCommand + public class SetCompositingBordersVisibleCommand: ICommand { /// /// Gets or sets True for showing compositing borders. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/SetDocumentContentCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/SetDocumentContentCommand.cs index a4558706..d228ab72 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/SetDocumentContentCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/SetDocumentContentCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.SetDocumentContent)] [SupportedBy("iOS")] - public class SetDocumentContentCommand + public class SetDocumentContentCommand: ICommand { /// /// Gets or sets Frame id to set HTML for. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/SetEmulatedMediaCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/SetEmulatedMediaCommand.cs index d002451a..1f3fd904 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/SetEmulatedMediaCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/SetEmulatedMediaCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.SetEmulatedMedia)] [SupportedBy("iOS")] - public class SetEmulatedMediaCommand + public class SetEmulatedMediaCommand: ICommand { /// /// Gets or sets Media type to emulate. Empty string disables the override. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/SetScriptExecutionDisabledCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/SetScriptExecutionDisabledCommand.cs index 4c77645e..f3306dc3 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/SetScriptExecutionDisabledCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/SetScriptExecutionDisabledCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.SetScriptExecutionDisabled)] [SupportedBy("iOS")] - public class SetScriptExecutionDisabledCommand + public class SetScriptExecutionDisabledCommand: ICommand { /// /// Gets or sets Whether script execution should be disabled in the page. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/SetShowPaintRectsCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/SetShowPaintRectsCommand.cs index 6b280bdc..1c429691 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/SetShowPaintRectsCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/SetShowPaintRectsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.SetShowPaintRects)] [SupportedBy("iOS")] - public class SetShowPaintRectsCommand + public class SetShowPaintRectsCommand: ICommand { /// /// Gets or sets True for showing paint rectangles diff --git a/source/ChromeDevTools/Protocol/iOS/Page/SetTouchEmulationEnabledCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/SetTouchEmulationEnabledCommand.cs index 81089c0e..22d1b747 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/SetTouchEmulationEnabledCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/SetTouchEmulationEnabledCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.SetTouchEmulationEnabled)] [SupportedBy("iOS")] - public class SetTouchEmulationEnabledCommand + public class SetTouchEmulationEnabledCommand: ICommand { /// /// Gets or sets Whether the touch event emulation should be enabled. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/SnapshotNodeCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/SnapshotNodeCommand.cs index b2538345..292c9ca4 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/SnapshotNodeCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/SnapshotNodeCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.SnapshotNode)] [SupportedBy("iOS")] - public class SnapshotNodeCommand + public class SnapshotNodeCommand: ICommand { /// /// Gets or sets Id of the node to snapshot. diff --git a/source/ChromeDevTools/Protocol/iOS/Page/SnapshotRectCommand.cs b/source/ChromeDevTools/Protocol/iOS/Page/SnapshotRectCommand.cs index d5564774..cde292c5 100644 --- a/source/ChromeDevTools/Protocol/iOS/Page/SnapshotRectCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Page/SnapshotRectCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Page /// [Command(ProtocolName.Page.SnapshotRect)] [SupportedBy("iOS")] - public class SnapshotRectCommand + public class SnapshotRectCommand: ICommand { /// /// Gets or sets X coordinate diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/CallFunctionOnCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/CallFunctionOnCommand.cs index 29b82c20..144825f3 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/CallFunctionOnCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/CallFunctionOnCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.CallFunctionOn)] [SupportedBy("iOS")] - public class CallFunctionOnCommand + public class CallFunctionOnCommand: ICommand { /// /// Gets or sets Identifier of the object to call function on. diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/DisableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/DisableCommand.cs index 75ccc594..37e9ced5 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/DisableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.Disable)] [SupportedBy("iOS")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/DisableTypeProfilerCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/DisableTypeProfilerCommand.cs index c8a13362..ee67619d 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/DisableTypeProfilerCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/DisableTypeProfilerCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.DisableTypeProfiler)] [SupportedBy("iOS")] - public class DisableTypeProfilerCommand + public class DisableTypeProfilerCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/EnableCommand.cs index 63743101..b4e58c72 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/EnableCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/EnableTypeProfilerCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/EnableTypeProfilerCommand.cs index 33331513..00a7f51a 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/EnableTypeProfilerCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/EnableTypeProfilerCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.EnableTypeProfiler)] [SupportedBy("iOS")] - public class EnableTypeProfilerCommand + public class EnableTypeProfilerCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/EvaluateCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/EvaluateCommand.cs index a0ac366a..bfaed604 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/EvaluateCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/EvaluateCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.Evaluate)] [SupportedBy("iOS")] - public class EvaluateCommand + public class EvaluateCommand: ICommand { /// /// Gets or sets Expression to evaluate. diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/GetBasicBlocksCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/GetBasicBlocksCommand.cs index 1a0da774..371ac0f4 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/GetBasicBlocksCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/GetBasicBlocksCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.GetBasicBlocks)] [SupportedBy("iOS")] - public class GetBasicBlocksCommand + public class GetBasicBlocksCommand: ICommand { /// /// Gets or sets Indicates which sourceID information is requested for. diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/GetCollectionEntriesCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/GetCollectionEntriesCommand.cs index c6f656af..d65253f0 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/GetCollectionEntriesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/GetCollectionEntriesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.GetCollectionEntries)] [SupportedBy("iOS")] - public class GetCollectionEntriesCommand + public class GetCollectionEntriesCommand: ICommand { /// /// Gets or sets Id of the collection to get entries for. diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/GetDisplayablePropertiesCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/GetDisplayablePropertiesCommand.cs index 01468536..c20aefcb 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/GetDisplayablePropertiesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/GetDisplayablePropertiesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.GetDisplayableProperties)] [SupportedBy("iOS")] - public class GetDisplayablePropertiesCommand + public class GetDisplayablePropertiesCommand: ICommand { /// /// Gets or sets Identifier of the object to return properties for. diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/GetPropertiesCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/GetPropertiesCommand.cs index 14329f7a..b8f87fca 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/GetPropertiesCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/GetPropertiesCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.GetProperties)] [SupportedBy("iOS")] - public class GetPropertiesCommand + public class GetPropertiesCommand: ICommand { /// /// Gets or sets Identifier of the object to return properties for. diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/GetRuntimeTypesForVariablesAtOffsetsCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/GetRuntimeTypesForVariablesAtOffsetsCommand.cs index 428888a9..18195a47 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/GetRuntimeTypesForVariablesAtOffsetsCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/GetRuntimeTypesForVariablesAtOffsetsCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.GetRuntimeTypesForVariablesAtOffsets)] [SupportedBy("iOS")] - public class GetRuntimeTypesForVariablesAtOffsetsCommand + public class GetRuntimeTypesForVariablesAtOffsetsCommand: ICommand { /// /// Gets or sets An array of type locations we're requesting information for. Results are expected in the same order they're sent in. diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/ParseCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/ParseCommand.cs index fb07bcfb..fadcb33d 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/ParseCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/ParseCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.Parse)] [SupportedBy("iOS")] - public class ParseCommand + public class ParseCommand: ICommand { /// /// Gets or sets Source code to parse. diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/ReleaseObjectCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/ReleaseObjectCommand.cs index 3708870e..2d532f2c 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/ReleaseObjectCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/ReleaseObjectCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.ReleaseObject)] [SupportedBy("iOS")] - public class ReleaseObjectCommand + public class ReleaseObjectCommand: ICommand { /// /// Gets or sets Identifier of the object to release. diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/ReleaseObjectGroupCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/ReleaseObjectGroupCommand.cs index 0b721a13..dbf11dbd 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/ReleaseObjectGroupCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/ReleaseObjectGroupCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.ReleaseObjectGroup)] [SupportedBy("iOS")] - public class ReleaseObjectGroupCommand + public class ReleaseObjectGroupCommand: ICommand { /// /// Gets or sets Symbolic object group name. diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/RunCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/RunCommand.cs index 35d5caa5..4400b0d0 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/RunCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/RunCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.Run)] [SupportedBy("iOS")] - public class RunCommand + public class RunCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Runtime/SaveResultCommand.cs b/source/ChromeDevTools/Protocol/iOS/Runtime/SaveResultCommand.cs index ae58255c..ae6de868 100644 --- a/source/ChromeDevTools/Protocol/iOS/Runtime/SaveResultCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Runtime/SaveResultCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Runtime /// [Command(ProtocolName.Runtime.SaveResult)] [SupportedBy("iOS")] - public class SaveResultCommand + public class SaveResultCommand: ICommand { /// /// Gets or sets Id or value of the object to save. diff --git a/source/ChromeDevTools/Protocol/iOS/Timeline/StartCommand.cs b/source/ChromeDevTools/Protocol/iOS/Timeline/StartCommand.cs index bbb735f6..8f1561b4 100644 --- a/source/ChromeDevTools/Protocol/iOS/Timeline/StartCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Timeline/StartCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Timeline /// [Command(ProtocolName.Timeline.Start)] [SupportedBy("iOS")] - public class StartCommand + public class StartCommand: ICommand { /// /// Gets or sets Samples JavaScript stack traces up to maxCallStackDepth, defaults to 5. diff --git a/source/ChromeDevTools/Protocol/iOS/Timeline/StopCommand.cs b/source/ChromeDevTools/Protocol/iOS/Timeline/StopCommand.cs index 9e958eec..c726f3aa 100644 --- a/source/ChromeDevTools/Protocol/iOS/Timeline/StopCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Timeline/StopCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Timeline /// [Command(ProtocolName.Timeline.Stop)] [SupportedBy("iOS")] - public class StopCommand + public class StopCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Worker/CanInspectWorkersCommand.cs b/source/ChromeDevTools/Protocol/iOS/Worker/CanInspectWorkersCommand.cs index 955fd055..5f9d2f16 100644 --- a/source/ChromeDevTools/Protocol/iOS/Worker/CanInspectWorkersCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Worker/CanInspectWorkersCommand.cs @@ -9,7 +9,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Worker /// [Command(ProtocolName.Worker.CanInspectWorkers)] [SupportedBy("iOS")] - public class CanInspectWorkersCommand + public class CanInspectWorkersCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Worker/ConnectToWorkerCommand.cs b/source/ChromeDevTools/Protocol/iOS/Worker/ConnectToWorkerCommand.cs index cf97a6d9..8e634934 100644 --- a/source/ChromeDevTools/Protocol/iOS/Worker/ConnectToWorkerCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Worker/ConnectToWorkerCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Worker { [Command(ProtocolName.Worker.ConnectToWorker)] [SupportedBy("iOS")] - public class ConnectToWorkerCommand + public class ConnectToWorkerCommand: ICommand { /// /// Gets or sets WorkerId diff --git a/source/ChromeDevTools/Protocol/iOS/Worker/DisableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Worker/DisableCommand.cs index 4e9cd812..28999f97 100644 --- a/source/ChromeDevTools/Protocol/iOS/Worker/DisableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Worker/DisableCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Worker { [Command(ProtocolName.Worker.Disable)] [SupportedBy("iOS")] - public class DisableCommand + public class DisableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Worker/DisconnectFromWorkerCommand.cs b/source/ChromeDevTools/Protocol/iOS/Worker/DisconnectFromWorkerCommand.cs index f6e671e5..d4e96141 100644 --- a/source/ChromeDevTools/Protocol/iOS/Worker/DisconnectFromWorkerCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Worker/DisconnectFromWorkerCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Worker { [Command(ProtocolName.Worker.DisconnectFromWorker)] [SupportedBy("iOS")] - public class DisconnectFromWorkerCommand + public class DisconnectFromWorkerCommand: ICommand { /// /// Gets or sets WorkerId diff --git a/source/ChromeDevTools/Protocol/iOS/Worker/EnableCommand.cs b/source/ChromeDevTools/Protocol/iOS/Worker/EnableCommand.cs index cfaf51b5..ce54c396 100644 --- a/source/ChromeDevTools/Protocol/iOS/Worker/EnableCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Worker/EnableCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Worker { [Command(ProtocolName.Worker.Enable)] [SupportedBy("iOS")] - public class EnableCommand + public class EnableCommand: ICommand { } } diff --git a/source/ChromeDevTools/Protocol/iOS/Worker/SendMessageToWorkerCommand.cs b/source/ChromeDevTools/Protocol/iOS/Worker/SendMessageToWorkerCommand.cs index b5908105..791e89f2 100644 --- a/source/ChromeDevTools/Protocol/iOS/Worker/SendMessageToWorkerCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Worker/SendMessageToWorkerCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Worker { [Command(ProtocolName.Worker.SendMessageToWorker)] [SupportedBy("iOS")] - public class SendMessageToWorkerCommand + public class SendMessageToWorkerCommand: ICommand { /// /// Gets or sets WorkerId diff --git a/source/ChromeDevTools/Protocol/iOS/Worker/SetAutoconnectToWorkersCommand.cs b/source/ChromeDevTools/Protocol/iOS/Worker/SetAutoconnectToWorkersCommand.cs index 3163e97b..56f876b7 100644 --- a/source/ChromeDevTools/Protocol/iOS/Worker/SetAutoconnectToWorkersCommand.cs +++ b/source/ChromeDevTools/Protocol/iOS/Worker/SetAutoconnectToWorkersCommand.cs @@ -6,7 +6,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.iOS.Worker { [Command(ProtocolName.Worker.SetAutoconnectToWorkers)] [SupportedBy("iOS")] - public class SetAutoconnectToWorkersCommand + public class SetAutoconnectToWorkersCommand: ICommand { /// /// Gets or sets Value diff --git a/source/ChromeDevTools/RemoteChromeProcess.cs b/source/ChromeDevTools/RemoteChromeProcess.cs new file mode 100644 index 00000000..6c061ae7 --- /dev/null +++ b/source/ChromeDevTools/RemoteChromeProcess.cs @@ -0,0 +1,47 @@ +using System; +using System.Net.Http; +using System.Threading.Tasks; +using Newtonsoft.Json; + +namespace MasterDevs.ChromeDevTools +{ + public class RemoteChromeProcess : IChromeProcess + { + private readonly HttpClient http; + + public RemoteChromeProcess(string remoteDebuggingUri) + : this(new Uri(remoteDebuggingUri)) + { + + } + + public RemoteChromeProcess(Uri remoteDebuggingUri) + { + RemoteDebuggingUri = remoteDebuggingUri; + + http = new HttpClient + { + BaseAddress = RemoteDebuggingUri + }; + } + + public Uri RemoteDebuggingUri { get; } + + public virtual void Dispose() + { + http.Dispose(); + } + + public async Task GetSessionInfo() + { + string json = await http.GetStringAsync("/json"); + return JsonConvert.DeserializeObject(json); + } + + public async Task StartNewSession() + { + string json = await http.GetStringAsync("/json/new"); + return JsonConvert.DeserializeObject(json); + } + } +} \ No newline at end of file diff --git a/source/ChromeDevTools/StubbornDirectoryCleaner.cs b/source/ChromeDevTools/StubbornDirectoryCleaner.cs new file mode 100644 index 00000000..4d448698 --- /dev/null +++ b/source/ChromeDevTools/StubbornDirectoryCleaner.cs @@ -0,0 +1,24 @@ +using System.IO; +using System.Threading; + +namespace MasterDevs.ChromeDevTools +{ + public class StubbornDirectoryCleaner : IDirectoryCleaner + { + public void Delete(DirectoryInfo dir) + { + while (true) + { + try + { + dir.Delete(true); + return; + } + catch + { + Thread.Sleep(500); + } + } + } + } +} \ No newline at end of file diff --git a/source/MasterDevs.ChromeDevTools.Tests/SerializationTests.cs b/source/MasterDevs.ChromeDevTools.Tests/SerializationTests.cs index 400ca82b..05fef10b 100644 --- a/source/MasterDevs.ChromeDevTools.Tests/SerializationTests.cs +++ b/source/MasterDevs.ChromeDevTools.Tests/SerializationTests.cs @@ -1,12 +1,7 @@ -using MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger; -using MasterDevs.ChromeDevTools.Protocol.Chrome.DOM; +using MasterDevs.ChromeDevTools.Protocol.Chrome.DOM; using Microsoft.VisualStudio.TestTools.UnitTesting; using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime; namespace MasterDevs.ChromeDevTools.Tests { diff --git a/source/ProtocolGenerator.Tests/CommandTests.cs b/source/ProtocolGenerator.Tests/CommandTests.cs index e4835cf7..ee061666 100644 --- a/source/ProtocolGenerator.Tests/CommandTests.cs +++ b/source/ProtocolGenerator.Tests/CommandTests.cs @@ -12,11 +12,12 @@ public class CommandTests { [TestMethod] [DeploymentItem(DeploymentItems.Inspector11)] - [DeploymentItem(DeploymentItems.Protocol)] + [DeploymentItem(DeploymentItems.BrowserProtocol)] + [DeploymentItem(DeploymentItems.JsProtocol)] public void EqualsTest() { - var inspector11 = ProtocolProcessor.LoadProtocol(DeploymentItems.Inspector11, "inspector-1.1"); - var protocol = ProtocolProcessor.LoadProtocol(DeploymentItems.Protocol, "protocol"); + var inspector11 = ProtocolProcessor.LoadProtocol(new[] { DeploymentItems.Inspector11 }, "inspector-1.1"); + var protocol = ProtocolProcessor.LoadProtocol(new[] { DeploymentItems.BrowserProtocol, DeploymentItems.JsProtocol }, "protocol"); ProtocolProcessor.ResolveTypeReferences(inspector11, new Dictionary()); ProtocolProcessor.ResolveTypeReferences(protocol, new Dictionary()); diff --git a/source/ProtocolGenerator.Tests/DeploymentItems.cs b/source/ProtocolGenerator.Tests/DeploymentItems.cs index dec0e235..6922aac7 100644 --- a/source/ProtocolGenerator.Tests/DeploymentItems.cs +++ b/source/ProtocolGenerator.Tests/DeploymentItems.cs @@ -10,7 +10,8 @@ class DeploymentItems { public const string Inspector10 = "Inspector-1.0.json"; public const string Inspector11 = "Inspector-1.1.json"; - public const string Protocol = "protocol.json"; + public const string BrowserProtocol = "browser_protocol.json"; + public const string JsProtocol = "js_protocol.json"; public const string InspectoriOS8 = "Inspector-ios-8.0.json"; } } diff --git a/source/ProtocolGenerator.Tests/MasterDevs.ChromeDevTools.ProtocolGenerator.Tests.csproj b/source/ProtocolGenerator.Tests/MasterDevs.ChromeDevTools.ProtocolGenerator.Tests.csproj index 8e37f657..e72741ee 100644 --- a/source/ProtocolGenerator.Tests/MasterDevs.ChromeDevTools.ProtocolGenerator.Tests.csproj +++ b/source/ProtocolGenerator.Tests/MasterDevs.ChromeDevTools.ProtocolGenerator.Tests.csproj @@ -67,12 +67,6 @@ Inspector-1.0.json PreserveNewest - - Inspector-iOS-8.0.json - - - protocol.json - diff --git a/source/ProtocolGenerator.Tests/ProtocolProcessorTests.cs b/source/ProtocolGenerator.Tests/ProtocolProcessorTests.cs index 371d1adb..7995f7d6 100644 --- a/source/ProtocolGenerator.Tests/ProtocolProcessorTests.cs +++ b/source/ProtocolGenerator.Tests/ProtocolProcessorTests.cs @@ -16,7 +16,7 @@ public class ProtocolProcessorTests [DeploymentItem(DeploymentItems.Inspector10)] public void ResolveTypeReferencesCommandParameterTest() { - Protocol p = ProtocolProcessor.LoadProtocol(DeploymentItems.Inspector10, "Chrome-1.0"); + Protocol p = ProtocolProcessor.LoadProtocol(new[] { DeploymentItems.Inspector10 }, "Chrome-1.0"); ProtocolProcessor.ResolveTypeReferences(p, new Dictionary()); var evaluateCommand = p.GetDomain("Runtime").GetCommand("evaluate"); @@ -29,7 +29,7 @@ public void ResolveTypeReferencesCommandParameterTest() [DeploymentItem(DeploymentItems.Inspector10)] public void ResolveTypeReferencesCommandParameterTest2() { - Protocol p = ProtocolProcessor.LoadProtocol(DeploymentItems.Inspector10, "Chrome-1.0"); + Protocol p = ProtocolProcessor.LoadProtocol(new[] { DeploymentItems.Inspector10 }, "Chrome-1.0"); ProtocolProcessor.ResolveTypeReferences(p, new Dictionary()); var addInspectedNodeCommand = p.GetDomain("Console").GetCommand("addInspectedNode"); @@ -45,7 +45,7 @@ public void ResolveTypeReferencesCommandReturnValueTest() Dictionary explicitMappings = new Dictionary(); explicitMappings.Add("Page.Cookie", "Network.Cookie"); - Protocol p = ProtocolProcessor.LoadProtocol(DeploymentItems.InspectoriOS8, "iOS-8.0"); + Protocol p = ProtocolProcessor.LoadProtocol(new[] { DeploymentItems.InspectoriOS8 }, "iOS-8.0"); ProtocolProcessor.ResolveTypeReferences(p, explicitMappings); var getCookiesCommand = p.GetDomain("Page").GetCommand("getCookies"); @@ -61,7 +61,7 @@ public void ResolveTypeReferencesCommandReturnValueTest2() Dictionary explicitMappings = new Dictionary(); explicitMappings.Add("GenericTypes.SearchMatch", "Debugger.SearchMatch"); - Protocol p = ProtocolProcessor.LoadProtocol(DeploymentItems.InspectoriOS8, "iOS-8.0"); + Protocol p = ProtocolProcessor.LoadProtocol(new[] { DeploymentItems.InspectoriOS8 }, "iOS-8.0"); ProtocolProcessor.ResolveTypeReferences(p, explicitMappings); var searchInResourceCommand = p.GetDomain("Page").GetCommand("searchInResource"); diff --git a/source/ProtocolGenerator.Tests/TypeTests.cs b/source/ProtocolGenerator.Tests/TypeTests.cs index 1b0f6d76..21f44b6c 100644 --- a/source/ProtocolGenerator.Tests/TypeTests.cs +++ b/source/ProtocolGenerator.Tests/TypeTests.cs @@ -15,7 +15,7 @@ public class TypeTests [DeploymentItem(DeploymentItems.Inspector10)] public void TypeNameTest() { - Protocol p = ProtocolProcessor.LoadProtocol(DeploymentItems.Inspector10, "Chrome-1.0"); + Protocol p = ProtocolProcessor.LoadProtocol(new[] { DeploymentItems.Inspector10 }, "Chrome-1.0"); var evaluateCommand = p.GetDomain("Page").GetCommand("searchInResource"); var result = evaluateCommand.Returns.Single(); @@ -27,7 +27,7 @@ public void TypeNameTest() [DeploymentItem(DeploymentItems.Inspector10)] public void ToStringTest() { - Protocol p = ProtocolProcessor.LoadProtocol(DeploymentItems.Inspector10, "Chrome-1.0"); + Protocol p = ProtocolProcessor.LoadProtocol(new[] { DeploymentItems.Inspector10 }, "Chrome-1.0"); var evaluateCommand = p.GetDomain("Page").GetCommand("searchInResource"); var result = evaluateCommand.Returns.Single(); diff --git a/source/ProtocolGenerator/Command.cs b/source/ProtocolGenerator/Command.cs index 1bc90d08..59199f9d 100644 --- a/source/ProtocolGenerator/Command.cs +++ b/source/ProtocolGenerator/Command.cs @@ -3,6 +3,7 @@ using System.Text; using System.Linq; using System; +using Newtonsoft.Json; namespace MasterDevs.ChromeDevTools.ProtocolGenerator { @@ -54,6 +55,9 @@ public string Redirect set; } + [JsonProperty("experimental")] + public bool IsExperimental { get; set; } + public override bool Equals(object obj) { var other = obj as Command; @@ -81,7 +85,7 @@ public override int GetHashCode() { hash = hash * 23 + this.Error.GetHashCode(); } - + hash = hash * 23 + this.Parameters.GetCollectionHashCode(); return hash; } diff --git a/source/ProtocolGenerator/Domain.cs b/source/ProtocolGenerator/Domain.cs index a7079472..16815cb1 100644 --- a/source/ProtocolGenerator/Domain.cs +++ b/source/ProtocolGenerator/Domain.cs @@ -2,6 +2,7 @@ using System; using System.Collections.ObjectModel; using System.Linq; +using Newtonsoft.Json.Linq; namespace MasterDevs.ChromeDevTools.ProtocolGenerator { @@ -51,6 +52,15 @@ public string FeatureGuard set; } + [JsonProperty("experimental")] + public bool IsExperimental { get; set; } + + [JsonProperty("deprecated")] + public bool IsDeprecated { get; set; } + + + public string[] Dependencies { get; set; } + public Command GetCommand(string name) { return this.Commands.SingleOrDefault(c => string.Equals(c.Name, name, StringComparison.OrdinalIgnoreCase)); diff --git a/source/ProtocolGenerator/Event.cs b/source/ProtocolGenerator/Event.cs index 2456dc94..fe6e146a 100644 --- a/source/ProtocolGenerator/Event.cs +++ b/source/ProtocolGenerator/Event.cs @@ -1,4 +1,5 @@ using System.Collections.ObjectModel; +using Newtonsoft.Json; namespace MasterDevs.ChromeDevTools.ProtocolGenerator { @@ -27,5 +28,8 @@ public bool Deprecated get; set; } + + [JsonProperty("experimental")] + public bool IsExperimental { get; set; } } } diff --git a/source/ProtocolGenerator/MasterDevs.ChromeDevTools.ProtocolGenerator.csproj b/source/ProtocolGenerator/MasterDevs.ChromeDevTools.ProtocolGenerator.csproj index cd0b46db..2f280b12 100644 --- a/source/ProtocolGenerator/MasterDevs.ChromeDevTools.ProtocolGenerator.csproj +++ b/source/ProtocolGenerator/MasterDevs.ChromeDevTools.ProtocolGenerator.csproj @@ -67,6 +67,9 @@ + + PreserveNewest + PreserveNewest @@ -88,12 +91,12 @@ PreserveNewest + + PreserveNewest + Designer - - PreserveNewest - diff --git a/source/ProtocolGenerator/Program.cs b/source/ProtocolGenerator/Program.cs index 1cddb26f..0550241a 100644 --- a/source/ProtocolGenerator/Program.cs +++ b/source/ProtocolGenerator/Program.cs @@ -1,6 +1,4 @@ -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; -using System; +using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; @@ -28,15 +26,20 @@ private static void Main(string[] args) { // At this point in time, we only process the most recent Chrome // and iOS (Safari) protocols. - Dictionary protocolFiles = new Dictionary(); + Dictionary protocolFiles = new Dictionary + { + {"Chrome", new [] { "js_protocol.json", "browser_protocol.json" } }, + {"iOS", new [] { "Inspector-iOS-9.3.json" } } + }; + + //protocolFiles.Add("Chrome-0.1", "Inspector-0.1.json"); //protocolFiles.Add("Chrome-1.0", "Inspector-1.0.json"); //protocolFiles.Add("Chrome", "Inspector-1.1.json"); - protocolFiles.Add("Chrome", "protocol.json"); //protocolFiles.Add("iOS-7.0", "Inspector-iOS-7.0.json"); //protocolFiles.Add("iOS-8.0", "Inspector-iOS-8.0.json"); //protocolFiles.Add("iOS-9.0", "Inspector-iOS-9.0.json"); - protocolFiles.Add("iOS", "Inspector-iOS-9.3.json"); + Collection protocols = new Collection(); @@ -134,7 +137,10 @@ private static void AddArrayPropertyType(Dictionary domainDictio { itemsType = items.TypeReference; } - domainDictionary[type.Name] = domain + "." + itemsType + "[]"; + if (IsGeneratedNativeType(itemsType)) + domainDictionary[type.Name] = itemsType + "[]"; + else + domainDictionary[type.Name] = domain + "." + itemsType + "[]"; } private static void WriteProtocolClasses(DirectoryInfo directory, string ns, string domainName, IEnumerable types, IEnumerable commands, IEnumerable events) @@ -292,6 +298,7 @@ private static void WriteCommandResponse(DirectoryInfo domainDirectoryInfo, stri private static void WriteCommand(DirectoryInfo domainDirectoryInfo, string ns, string commandName, string description, IEnumerable parameters, IEnumerable supportedBy) { var className = ToCamelCase(commandName) + CommandSubclass; + var responseClassName = ToCamelCase(commandName) + CommandResponseSubclass; var sb = new StringBuilder(); sb.AppendFormat("using MasterDevs.ChromeDevTools;"); sb.AppendLine(); @@ -311,7 +318,7 @@ private static void WriteCommand(DirectoryInfo domainDirectoryInfo, string ns, s sb.AppendFormat("\t[{0}({1}.{2}.{3})]", CommandAttribute, ProtocolNameClass, domainDirectoryInfo.Name, ToCamelCase(commandName)); sb.AppendLine(); WriteSupportedBy(sb, supportedBy); - sb.AppendFormat("\tpublic class {0}", className); + sb.AppendFormat("\tpublic class {0}: ICommand<{1}>", className, responseClassName); sb.AppendLine(); sb.AppendLine("\t{"); foreach (var parameterProperty in parameters) @@ -327,7 +334,8 @@ private static void WriteType(DirectoryInfo domainDirectoryInfo, string ns, Type { if (null == type) return; if (type.Enum.Any()) WriteTypeEnum(domainDirectoryInfo, ns, type); - if (type.Properties.Any()) WriteTypeClass(domainDirectoryInfo, ns, type); + /*if (type.Properties.Any())*/ + WriteTypeClass(domainDirectoryInfo, ns, type); WriteTypeSimple(domainDirectoryInfo, type); } @@ -475,6 +483,20 @@ private static string GeneratePropertyType(string propertyType) } } + private static bool IsGeneratedNativeType(string propertyType) + { + switch (propertyType) + { + case "double": + case "long": + case "bool": + case "object": + return true; + default: + return false; + } + } + private static string GeneratePropertyName(string propertyName) { return ToCamelCase(propertyName); diff --git a/source/ProtocolGenerator/Property.cs b/source/ProtocolGenerator/Property.cs index 9002cadf..2e461dbc 100644 --- a/source/ProtocolGenerator/Property.cs +++ b/source/ProtocolGenerator/Property.cs @@ -16,5 +16,8 @@ public bool Optional get; set; } + + [JsonProperty("deprecated")] + public bool IsDeprecated { get; set; } } } diff --git a/source/ProtocolGenerator/Protocol.cs b/source/ProtocolGenerator/Protocol.cs index 1f5ff07a..a2f69239 100644 --- a/source/ProtocolGenerator/Protocol.cs +++ b/source/ProtocolGenerator/Protocol.cs @@ -5,57 +5,27 @@ namespace MasterDevs.ChromeDevTools.ProtocolGenerator { public class Protocol { - public Protocol() - { - this.Compatible = new Collection(); - this.Domains = new Collection(); - } + public Collection Compatible { get; set; } = new Collection(); - public Collection Compatible - { - get; - set; - } - - public Version Version - { - get; - set; - } + public Version Version { get; set; } - public Collection Domains - { - get; - set; - } + public Collection Domains { get; set; } = new Collection(); - public string SourceFile - { - get; - set; - } + public string[] SourceFiles { get; set; } - public string Alias - { - get; - set; - } + public string Alias { get; set; } public Domain GetDomain(string name) { - return this.Domains.SingleOrDefault(d => string.Equals(d.Name, name, System.StringComparison.OrdinalIgnoreCase)); + return Domains.SingleOrDefault(d => string.Equals(d.Name, name, System.StringComparison.OrdinalIgnoreCase)); } public override string ToString() { - if(this.SourceFile != null) - { - return $"{this.Alias} ({this.SourceFile})"; - } - else - { - return this.Alias; - } + if (SourceFiles?.Any() == true) + return $"{Alias} ({string.Join(", ", SourceFiles)})"; + + return Alias; } } } diff --git a/source/ProtocolGenerator/ProtocolProcessor.cs b/source/ProtocolGenerator/ProtocolProcessor.cs index 2286424a..481821ac 100644 --- a/source/ProtocolGenerator/ProtocolProcessor.cs +++ b/source/ProtocolGenerator/ProtocolProcessor.cs @@ -3,8 +3,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace MasterDevs.ChromeDevTools.ProtocolGenerator { @@ -82,22 +80,39 @@ public static void ResolveTypeReferences(Protocol protocol, Domain domain, Type property.TypeReference = explicitMappings[fullReferenceName]; } } - else if(property.Items != null) + else if (property.Items != null) { ResolveTypeReferences(protocol, domain, property.Items, explicitMappings); } } - public static Protocol LoadProtocol(string path, string alias) + public static Protocol LoadProtocol(string[] paths, string alias) { - string json = File.ReadAllText(path); - JsonSerializerSettings settings = new JsonSerializerSettings(); - settings.MissingMemberHandling = MissingMemberHandling.Error; - settings.MetadataPropertyHandling = MetadataPropertyHandling.Ignore; + if (paths == null || paths.Length < 1) + throw new ArgumentException("Must specify at least one path", nameof(paths)); + + JsonSerializerSettings settings = new JsonSerializerSettings + { + MissingMemberHandling = MissingMemberHandling.Error, + MetadataPropertyHandling = MetadataPropertyHandling.Ignore + }; + + string json = File.ReadAllText(paths[0]); Protocol p = JsonConvert.DeserializeObject(json, settings); - p.SourceFile = path; + p.SourceFiles = paths; p.Alias = alias; + if (paths.Length > 1) + { + foreach (var path in paths.Skip(1)) + { + json = File.ReadAllText(path); + Protocol partial = JsonConvert.DeserializeObject(json, settings); + foreach (var domain in partial.Domains) + p.Domains.Add(domain); + } + } + foreach (var domain in p.Domains) { foreach (var command in domain.Commands) diff --git a/source/ProtocolGenerator/Type.cs b/source/ProtocolGenerator/Type.cs index 7d8f8cfc..1fbeff97 100644 --- a/source/ProtocolGenerator/Type.cs +++ b/source/ProtocolGenerator/Type.cs @@ -87,6 +87,10 @@ public string TypeName } } } + + [JsonProperty("experimental")] + public bool IsExperimental { get; set; } + public override bool Equals(object obj) { var other = obj as Type; diff --git a/source/ProtocolGenerator/protocol.json b/source/ProtocolGenerator/browser_protocol.json similarity index 61% rename from source/ProtocolGenerator/protocol.json rename to source/ProtocolGenerator/browser_protocol.json index ea0dc88f..a8edd99e0 100644 --- a/source/ProtocolGenerator/protocol.json +++ b/source/ProtocolGenerator/browser_protocol.json @@ -1,8 +1,8 @@ -{ - "version": { "major": "1", "minor": "1" }, +{ + "version": { "major": "1", "minor": "2" }, "domains": [{ "domain": "Inspector", - "hidden": true, + "experimental": true, "types": [], "commands": [ { @@ -15,38 +15,30 @@ } ], "events": [ - { - "name": "evaluateForTestInFrontend", - "parameters": [ - { "name": "testCallId", "type": "integer" }, - { "name": "script", "type": "string" } - ] - }, - { - "name": "inspect", - "parameters": [ - { "name": "object", "$ref": "Runtime.RemoteObject" }, - { "name": "hints", "type": "object" } - ] - }, { "name": "detached", "description": "Fired when remote debugging connection is about to be terminated. Contains detach reason.", "parameters": [ { "name": "reason", "type": "string", "description": "The reason why connection has been terminated." } - ], - "handlers": ["browser"] + ] }, { "name": "targetCrashed", - "description": "Fired when debugging target has crashed", - "handlers": ["browser"] + "description": "Fired when debugging target has crashed" } ] }, { "domain": "Memory", - "hidden": true, + "experimental": true, + "types": [ + { + "id": "PressureLevel", + "type": "string", + "enum": ["moderate", "critical"], + "description": "Memory pressure level." + } + ], "commands": [ { "name": "getDOMCounters", @@ -55,17 +47,32 @@ { "name": "nodes", "type": "integer" }, { "name": "jsEventListeners", "type": "integer" } ] + }, + { + "name": "setPressureNotificationsSuppressed", + "description": "Enable/disable suppressing memory pressure notifications in all processes.", + "parameters": [ + { "name": "suppressed", "type": "boolean", "description": "If true, memory pressure notifications will be suppressed."} + ] + }, + { + "name": "simulatePressureNotification", + "description": "Simulate a memory pressure notification in all processes.", + "parameters": [ + { "name": "level", "$ref": "PressureLevel", "description": "Memory pressure level of the notification." } + ] } ] }, { "domain": "Page", "description": "Actions and events related to the inspected page belong to the page domain.", + "dependencies": ["Debugger", "DOM"], "types": [ { "id": "ResourceType", "type": "string", - "enum": ["Document", "Stylesheet", "Image", "Media", "Font", "Script", "TextTrack", "XHR", "WebSocket", "Other"], + "enum": ["Document", "Stylesheet", "Image", "Media", "Font", "Script", "TextTrack", "XHR", "Fetch", "EventSource", "WebSocket", "Manifest", "Other"], "description": "Resource type as it was perceived by the rendering engine." }, { @@ -87,6 +94,21 @@ { "name": "mimeType", "type": "string", "description": "Frame document's mimeType as determined by the browser." } ] }, + { + "id": "FrameResource", + "type": "object", + "description": "Information about the Resource on the page.", + "properties": [ + { "name": "url", "type": "string", "description": "Resource URL." }, + { "name": "type", "$ref": "ResourceType", "description": "Type of this resource." }, + { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." }, + { "name": "lastModified", "$ref": "Network.Timestamp", "description": "last-modified timestamp as reported by server.", "optional": true }, + { "name": "contentSize", "type": "number", "description": "Resource content size.", "optional": true }, + { "name": "failed", "type": "boolean", "optional": true, "description": "True if the resource failed to load." }, + { "name": "canceled", "type": "boolean", "optional": true, "description": "True if the resource was canceled during loading." } + ], + "experimental": true + }, { "id": "FrameResourceTree", "type": "object", @@ -94,27 +116,22 @@ "properties": [ { "name": "frame", "$ref": "Frame", "description": "Frame information for this tree item." }, { "name": "childFrames", "type": "array", "optional": true, "items": { "$ref": "FrameResourceTree" }, "description": "Child frames." }, - { "name": "resources", "type": "array", - "items": { - "type": "object", - "properties": [ - { "name": "url", "type": "string", "description": "Resource URL." }, - { "name": "type", "$ref": "ResourceType", "description": "Type of this resource." }, - { "name": "mimeType", "type": "string", "description": "Resource mimeType as determined by the browser." }, - { "name": "failed", "type": "boolean", "optional": true, "description": "True if the resource failed to load." }, - { "name": "canceled", "type": "boolean", "optional": true, "description": "True if the resource was canceled during loading." } - ] - }, - "description": "Information about frame resources." - } - ], - "hidden": true + { "name": "resources", "type": "array", "items": { "$ref": "FrameResource" }, "description": "Information about frame resources." } + ], + "experimental": true }, { "id": "ScriptIdentifier", "type": "string", "description": "Unique script identifier.", - "hidden": true + "experimental": true + }, + { + "id": "TransitionType", + "type": "string", + "description": "Transition type.", + "experimental": true, + "enum": ["link", "typed", "auto_bookmark", "auto_subframe", "manual_subframe", "generated", "auto_toplevel", "form_submit", "reload", "keyword", "keyword_generated", "other"] }, { "id": "NavigationEntry", @@ -123,36 +140,89 @@ "properties": [ { "name": "id", "type": "integer", "description": "Unique id of the navigation history entry." }, { "name": "url", "type": "string", "description": "URL of the navigation history entry." }, - { "name": "title", "type": "string", "description": "Title of the navigation history entry." } + { "name": "userTypedURL", "type": "string", "description": "URL that the user typed in the url bar." }, + { "name": "title", "type": "string", "description": "Title of the navigation history entry." }, + { "name": "transitionType", "$ref": "TransitionType", "description": "Transition type." } ], - "hidden": true + "experimental": true }, { "id": "ScreencastFrameMetadata", "type": "object", - "description": "Screencast frame metadata", + "description": "Screencast frame metadata.", + "properties": [ + { "name": "offsetTop", "type": "number", "experimental": true, "description": "Top offset in DIP." }, + { "name": "pageScaleFactor", "type": "number", "experimental": true, "description": "Page scale factor." }, + { "name": "deviceWidth", "type": "number", "experimental": true, "description": "Device screen width in DIP." }, + { "name": "deviceHeight", "type": "number", "experimental": true, "description": "Device screen height in DIP." }, + { "name": "scrollOffsetX", "type": "number", "experimental": true, "description": "Position of horizontal scroll in CSS pixels." }, + { "name": "scrollOffsetY", "type": "number", "experimental": true, "description": "Position of vertical scroll in CSS pixels." }, + { "name": "timestamp", "type": "number", "optional": true, "experimental": true, "description": "Frame swap timestamp." } + ], + "experimental": true + }, + { + "id": "DialogType", + "description": "Javascript dialog type.", + "type": "string", + "enum": ["alert", "confirm", "prompt", "beforeunload"], + "experimental": true + }, + { + "id": "AppManifestError", + "description": "Error while paring app manifest.", + "type": "object", + "properties": [ + { "name": "message", "type": "string", "description": "Error message." }, + { "name": "critical", "type": "integer", "description": "If criticial, this is a non-recoverable parse error." }, + { "name": "line", "type": "integer", "description": "Error line." }, + { "name": "column", "type": "integer", "description": "Error column." } + ], + "experimental": true + }, + { + "id": "NavigationResponse", + "description": "Proceed: allow the navigation; Cancel: cancel the navigation; CancelAndIgnore: cancels the navigation and makes the requester of the navigation acts like the request was never made.", + "type": "string", + "enum": ["Proceed", "Cancel", "CancelAndIgnore"], + "experimental": true + }, + { + "id": "LayoutViewport", + "type": "object", + "description": "Layout viewport position and dimensions.", + "experimental": true, + "properties": [ + { "name": "pageX", "type": "integer", "description": "Horizontal offset relative to the document (CSS pixels)." }, + { "name": "pageY", "type": "integer", "description": "Vertical offset relative to the document (CSS pixels)." }, + { "name": "clientWidth", "type": "integer", "description": "Width (CSS pixels), excludes scrollbar if present." }, + { "name": "clientHeight", "type": "integer", "description": "Height (CSS pixels), excludes scrollbar if present." } + ] + }, + { + "id": "VisualViewport", + "type": "object", + "description": "Visual viewport position, dimensions, and scale.", + "experimental": true, "properties": [ - { "name": "offsetTop", "type": "number", "hidden": true, "description": "Top offset in DIP." }, - { "name": "pageScaleFactor", "type": "number", "hidden": true, "description": "Page scale factor." }, - { "name": "deviceWidth", "type": "number", "hidden": true, "description": "Device screen width in DIP." }, - { "name": "deviceHeight", "type": "number", "hidden": true, "description": "Device screen height in DIP." }, - { "name": "scrollOffsetX", "type": "number", "hidden": true, "description": "Position of horizontal scroll in CSS pixels." }, - { "name": "scrollOffsetY", "type": "number", "hidden": true, "description": "Position of vertical scroll in CSS pixels." }, - { "name": "timestamp", "type": "number", "optional": true, "hidden": true, "description": "Frame swap timestamp." } - ], - "hidden": true + { "name": "offsetX", "type": "number", "description": "Horizontal offset relative to the layout viewport (CSS pixels)." }, + { "name": "offsetY", "type": "number", "description": "Vertical offset relative to the layout viewport (CSS pixels)." }, + { "name": "pageX", "type": "number", "description": "Horizontal offset relative to the document (CSS pixels)." }, + { "name": "pageY", "type": "number", "description": "Vertical offset relative to the document (CSS pixels)." }, + { "name": "clientWidth", "type": "number", "description": "Width (CSS pixels), excludes scrollbar if present." }, + { "name": "clientHeight", "type": "number", "description": "Height (CSS pixels), excludes scrollbar if present." }, + { "name": "scale", "type": "number", "description": "Scale relative to the ideal viewport (size at width=device-width)." } + ] } ], "commands": [ { "name": "enable", - "description": "Enables page domain notifications.", - "handlers": ["browser", "renderer"] + "description": "Enables page domain notifications." }, { "name": "disable", - "description": "Disables page domain notifications.", - "handlers": ["browser", "renderer"] + "description": "Disables page domain notifications." }, { "name": "addScriptToEvaluateOnLoad", @@ -162,14 +232,22 @@ "returns": [ { "name": "identifier", "$ref": "ScriptIdentifier", "description": "Identifier of the added script." } ], - "hidden": true + "experimental": true }, { "name": "removeScriptToEvaluateOnLoad", "parameters": [ { "name": "identifier", "$ref": "ScriptIdentifier" } ], - "hidden": true + "experimental": true + }, + { + "name": "setAutoAttachToCreatedPages", + "parameters": [ + { "name": "autoAttach", "type": "boolean", "description": "If true, browser will open a new inspector window for every page created from this one." } + ], + "description": "Controls whether browser will open a new inspector window for connected pages.", + "experimental": true }, { "name": "reload", @@ -177,30 +255,33 @@ { "name": "ignoreCache", "type": "boolean", "optional": true, "description": "If true, browser cache is ignored (as if the user pressed Shift+refresh)." }, { "name": "scriptToEvaluateOnLoad", "type": "string", "optional": true, "description": "If set, the script will be injected into all frames of the inspected page after reload." } ], - "description": "Reloads given page optionally ignoring the cache.", - "handlers": ["browser", "renderer"] + "description": "Reloads given page optionally ignoring the cache." }, { "name": "navigate", "parameters": [ - { "name": "url", "type": "string", "description": "URL to navigate the page to." } + { "name": "url", "type": "string", "description": "URL to navigate the page to." }, + { "name": "referrer", "type": "string", "optional": true, "experimental": true, "description": "Referrer URL." }, + { "name": "transitionType", "$ref": "TransitionType", "optional": true, "experimental": true, "description": "Intended transition type." } ], "returns": [ - { "name": "frameId", "$ref": "FrameId", "hidden": true, "description": "Frame id that will be navigated." } + { "name": "frameId", "$ref": "FrameId", "experimental": true, "description": "Frame id that will be navigated." } ], - "description": "Navigates current page to the given URL.", - "handlers": ["browser", "renderer"] + "description": "Navigates current page to the given URL." + }, + { + "name": "stopLoading", + "description": "Force the page stop all navigations and pending resource fetches.", + "experimental": true }, { "name": "getNavigationHistory", - "parameters": [], "returns": [ { "name": "currentIndex", "type": "integer", "description": "Index of the current navigation history entry." }, { "name": "entries", "type": "array", "items": { "$ref": "NavigationEntry" }, "description": "Array of navigation history entries." } ], "description": "Returns navigation history for the current page.", - "hidden": true, - "handlers": ["browser"] + "experimental": true }, { "name": "navigateToHistoryEntry", @@ -208,8 +289,7 @@ { "name": "entryId", "type": "integer", "description": "Unique id of the entry to navigate to." } ], "description": "Navigates current page to the given history entry.", - "hidden": true, - "handlers": ["browser"] + "experimental": true }, { "name": "getCookies", @@ -217,9 +297,7 @@ { "name": "cookies", "type": "array", "items": { "$ref": "Network.Cookie" }, "description": "Array of cookie objects." } ], "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.", - "handlers": ["browser"], - "async": true, - "hidden": true, + "experimental": true, "redirect": "Network" }, { @@ -229,9 +307,7 @@ { "name": "url", "type": "string", "description": "URL to match cooke domain and path." } ], "description": "Deletes browser cookie with given name, domain and path.", - "handlers": ["browser"], - "async": true, - "hidden": true, + "experimental": true, "redirect": "Network" }, { @@ -240,11 +316,10 @@ "returns": [ { "name": "frameTree", "$ref": "FrameResourceTree", "description": "Present frame / resource tree structure." } ], - "hidden": true + "experimental": true }, { "name": "getResourceContent", - "async": true, "description": "Returns content of the given resource.", "parameters": [ { "name": "frameId", "$ref": "FrameId", "description": "Frame id to get resource for." }, @@ -254,7 +329,7 @@ { "name": "content", "type": "string", "description": "Resource content." }, { "name": "base64Encoded", "type": "boolean", "description": "True, if content was served as base64." } ], - "hidden": true + "experimental": true }, { "name": "searchInResource", @@ -269,7 +344,7 @@ "returns": [ { "name": "result", "type": "array", "items": { "$ref": "Debugger.SearchMatch" }, "description": "List of search matches." } ], - "hidden": true + "experimental": true }, { "name": "setDocumentContent", @@ -278,7 +353,7 @@ { "name": "frameId", "$ref": "FrameId", "description": "Frame id to set HTML for." }, { "name": "html", "type": "string", "description": "HTML content to set." } ], - "hidden": true + "experimental": true }, { "name": "setDeviceMetricsOverride", @@ -291,18 +366,21 @@ { "name": "fitWindow", "type": "boolean", "description": "Whether a view that exceeds the available browser window area should be scaled down to fit." }, { "name": "scale", "type": "number", "optional": true, "description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." }, { "name": "offsetX", "type": "number", "optional": true, "description": "X offset to shift resulting view image by. Ignored in |fitWindow| mode." }, - { "name": "offsetY", "type": "number", "optional": true, "description": "Y offset to shift resulting view image by. Ignored in |fitWindow| mode." } + { "name": "offsetY", "type": "number", "optional": true, "description": "Y offset to shift resulting view image by. Ignored in |fitWindow| mode." }, + { "name": "screenWidth", "type": "integer", "optional": true, "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, + { "name": "screenHeight", "type": "integer", "optional": true, "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, + { "name": "positionX", "type": "integer", "optional": true, "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, + { "name": "positionY", "type": "integer", "optional": true, "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, + { "name": "screenOrientation", "$ref": "Emulation.ScreenOrientation", "optional": true, "description": "Screen orientation override." } ], - "handlers": ["browser"], "redirect": "Emulation", - "hidden": true + "experimental": true }, { "name": "clearDeviceMetricsOverride", "description": "Clears the overriden device metrics.", - "handlers": ["browser"], "redirect": "Emulation", - "hidden": true + "experimental": true }, { "name": "setGeolocationOverride", @@ -312,14 +390,12 @@ { "name": "longitude", "type": "number", "optional": true, "description": "Mock longitude"}, { "name": "accuracy", "type": "number", "optional": true, "description": "Mock accuracy"} ], - "redirect": "Emulation", - "handlers": ["browser"] + "redirect": "Emulation" }, { "name": "clearGeolocationOverride", "description": "Clears the overriden Geolocation Position and Error.", - "redirect": "Emulation", - "handlers": ["browser"] + "redirect": "Emulation" }, { "name": "setDeviceOrientationOverride", @@ -330,13 +406,13 @@ { "name": "gamma", "type": "number", "description": "Mock gamma"} ], "redirect": "DeviceOrientation", - "hidden": true + "experimental": true }, { "name": "clearDeviceOrientationOverride", "description": "Clears the overridden Device Orientation.", "redirect": "DeviceOrientation", - "hidden": true + "experimental": true }, { "name": "setTouchEmulationEnabled", @@ -345,29 +421,42 @@ { "name": "configuration", "type": "string", "enum": ["mobile", "desktop"], "optional": true, "description": "Touch/gesture events configuration. Default: current platform." } ], "description": "Toggles mouse event-based touch event emulation.", - "hidden": true, - "redirect": "Emulation", - "handlers": ["browser", "renderer"] + "experimental": true, + "redirect": "Emulation" }, { "name": "captureScreenshot", - "async": true, "description": "Capture page screenshot.", - "parameters": [], + "parameters": [ + { "name": "format", "type": "string", "optional": true, "enum": ["jpeg", "png"], "description": "Image compression format (defaults to png)." }, + { "name": "quality", "type": "integer", "optional": true, "description": "Compression quality from range [0..100] (jpeg only)." }, + { "name": "fromSurface", "type": "boolean", "optional": true, "description": "Capture the screenshot from the surface, rather than the view. Defaults to true.", "experimental": true } + ], "returns": [ - { "name": "data", "type": "string", "description": "Base64-encoded image data (PNG)." } + { "name": "data", "type": "string", "description": "Base64-encoded image data." } ], - "hidden": true, - "handlers": ["browser"] + "experimental": true }, { - "name": "canScreencast", - "description": "Tells whether screencast is supported.", + "name": "printToPDF", + "description": "Print page as PDF.", + "parameters": [ + {"name": "landscape", "type": "boolean", "optional": true, "description": "Paper orientation. Defaults to false."}, + {"name": "displayHeaderFooter", "type": "boolean", "optional": true, "description": "Display header and footer. Defaults to false."}, + {"name": "printBackground", "type": "boolean", "optional": true, "description": "Print background graphics. Defaults to false."}, + {"name": "scale", "type": "number", "optional": true, "description": "Scale of the webpage rendering. Defaults to 1."}, + {"name": "paperWidth", "type": "number", "optional": true, "description": "Paper width in inches. Defaults to 8.5 inches."}, + {"name": "paperHeight", "type": "number", "optional": true, "description": "Paper height in inches. Defaults to 11 inches."}, + {"name": "marginTop", "type": "number", "optional": true, "description": "Top margin in inches. Defaults to 1cm (~0.4 inches)."}, + {"name": "marginBottom", "type": "number", "optional": true, "description": "Bottom margin in inches. Defaults to 1cm (~0.4 inches)."}, + {"name": "marginLeft", "type": "number", "optional": true, "description": "Left margin in inches. Defaults to 1cm (~0.4 inches)."}, + {"name": "marginRight", "type": "number", "optional": true, "description": "Right margin in inches. Defaults to 1cm (~0.4 inches)."}, + {"name": "pageRanges", "type": "string", "optional": true, "description": "Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages."} + ], "returns": [ - { "name": "result", "type": "boolean", "description": "True if screencast is supported." } + { "name": "data", "type": "string", "description": "Base64-encoded pdf data." } ], - "hidden": true, - "handlers": ["browser"] + "experimental": true }, { "name": "startScreencast", @@ -376,25 +465,23 @@ { "name": "format", "type": "string", "optional": true, "enum": ["jpeg", "png"], "description": "Image compression format." }, { "name": "quality", "type": "integer", "optional": true, "description": "Compression quality from range [0..100]." }, { "name": "maxWidth", "type": "integer", "optional": true, "description": "Maximum screenshot width." }, - { "name": "maxHeight", "type": "integer", "optional": true, "description": "Maximum screenshot height." } + { "name": "maxHeight", "type": "integer", "optional": true, "description": "Maximum screenshot height." }, + { "name": "everyNthFrame", "type": "integer", "optional": true, "description": "Send every n-th frame." } ], - "hidden": true, - "handlers": ["browser", "renderer"] + "experimental": true }, { "name": "stopScreencast", "description": "Stops sending each frame in the screencastFrame.", - "hidden": true, - "handlers": ["browser", "renderer"] + "experimental": true }, { "name": "screencastFrameAck", "description": "Acknowledges that a screencast frame has been received by the frontend.", "parameters": [ - { "name": "frameNumber", "type": "integer", "description": "Frame number." } + { "name": "sessionId", "type": "integer", "description": "Frame number." } ], - "hidden": true, - "handlers": ["browser"] + "experimental": true }, { "name": "handleJavaScriptDialog", @@ -402,35 +489,57 @@ "parameters": [ { "name": "accept", "type": "boolean", "description": "Whether to accept or dismiss the dialog." }, { "name": "promptText", "type": "string", "optional": true, "description": "The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog." } - ], - "hidden": true, - "handlers": ["browser"] + ] }, { - "name": "setShowViewportSizeOnResize", - "description": "Paints viewport size upon main frame resize.", + "name": "getAppManifest", + "experimental": true, + "returns": [ + { "name": "url", "type": "string", "description": "Manifest location." }, + { "name": "errors", "type": "array", "items": { "$ref": "AppManifestError" } }, + { "name": "data", "type": "string", "optional": true, "description": "Manifest content." } + ] + }, + { + "name": "requestAppBanner", + "experimental": true + }, + { + "name": "setControlNavigations", "parameters": [ - { "name": "show", "type": "boolean", "description": "Whether to paint size or not." }, - { "name": "showGrid", "type": "boolean", "optional": true, "description": "Whether to paint grid as well." } + { "name": "enabled", "type": "boolean" } ], - "hidden": true + "description": "Toggles navigation throttling which allows programatic control over navigation and redirect response.", + "experimental": true }, { - "name": "setColorPickerEnabled", + "name": "processNavigation", "parameters": [ - { "name": "enabled", "type": "boolean", "description": "Shows / hides color picker" } + { "name": "response", "$ref": "NavigationResponse" }, + { "name": "navigationId", "type": "integer" } ], - "description": "Shows / hides color picker", - "hidden": true, - "handlers": ["browser"] + "description": "Should be sent in response to a navigationRequested or a redirectRequested event, telling the browser how to handle the navigation.", + "experimental": true + }, + { + "name": "getLayoutMetrics", + "description": "Returns metrics relating to the layouting of the page, such as viewport bounds/scale.", + "experimental": true, + "returns": [ + { "name": "layoutViewport", "$ref": "LayoutViewport", "description": "Metrics relating to the layout viewport." }, + { "name": "visualViewport", "$ref": "VisualViewport", "description": "Metrics relating to the visual viewport." }, + { "name": "contentSize", "$ref": "DOM.Rect", "description": "Size of scrollable area."} + ] }, { - "name": "setOverlayMessage", + "name": "createIsolatedWorld", + "description": "Creates an isolated world for the given frame.", + "experimental": true, "parameters": [ - { "name": "message", "type": "string", "optional": true, "description": "Overlay message to display when paused in debugger." } - ], - "hidden": true, - "description": "Sets overlay message." + { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame in which the isolated world should be created." }, + { "name": "worldName", "type": "string", "optional": true, "description": "An optional name which is reported in the Execution Context." }, + { "name": "grantUniveralAccess", "type": "boolean", "optional": true, "description": "Whether or not universal access should be granted to the isolated world. This is a powerful option, use with caution." } + ] } ], "events": [ @@ -451,7 +560,8 @@ "description": "Fired when frame has been attached to its parent.", "parameters": [ { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has been attached." }, - { "name": "parentFrameId", "$ref": "FrameId", "description": "Parent frame identifier." } + { "name": "parentFrameId", "$ref": "FrameId", "description": "Parent frame identifier." }, + { "name": "stack", "$ref": "Runtime.StackTrace", "optional": true, "description": "JavaScript stack trace of when frame was attached, only set if frame initiated from script.", "experimental": true } ] }, { @@ -474,7 +584,7 @@ "parameters": [ { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has started loading." } ], - "hidden": true + "experimental": true }, { "name": "frameStoppedLoading", @@ -482,7 +592,7 @@ "parameters": [ { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has stopped loading." } ], - "hidden": true + "experimental": true }, { "name": "frameScheduledNavigation", @@ -491,7 +601,7 @@ { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has scheduled a navigation." }, { "name": "delay", "type": "number", "description": "Delay (in seconds) until the navigation is scheduled to begin. The navigation is not guaranteed to start." } ], - "hidden": true + "experimental": true }, { "name": "frameClearedScheduledNavigation", @@ -499,24 +609,26 @@ "parameters": [ { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has cleared its scheduled navigation." } ], - "hidden": true + "experimental": true }, { "name": "frameResized", - "hidden": true + "experimental": true }, { "name": "javascriptDialogOpening", "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.", "parameters": [ - { "name": "message", "type": "string", "description": "Message that will be displayed by the dialog." } - ], - "hidden": true + { "name": "message", "type": "string", "description": "Message that will be displayed by the dialog." }, + { "name": "type", "$ref": "DialogType", "description": "Dialog type." } + ] }, { "name": "javascriptDialogClosed", "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been closed.", - "hidden": true + "parameters": [ + { "name": "result", "type": "boolean", "description": "Whether dialog was confirmed." } + ] }, { "name": "screencastFrame", @@ -524,10 +636,9 @@ "parameters": [ { "name": "data", "type": "string", "description": "Base64-encoded compressed image." }, { "name": "metadata", "$ref": "ScreencastFrameMetadata", "description": "Screencast frame metadata."}, - { "name": "frameNumber", "type": "integer", "optional": true, "description": "Frame number."} + { "name": "sessionId", "type": "integer", "description": "Frame number."} ], - "hidden": true, - "handlers": ["browser"] + "experimental": true }, { "name": "screencastVisibilityChanged", @@ -535,37 +646,72 @@ "parameters": [ { "name": "visible", "type": "boolean", "description": "True if the page is visible." } ], - "hidden": true, - "handlers": ["browser"] - }, - { - "name": "colorPicked", - "description": "Fired when a color has been picked.", - "parameters": [ - { "name": "color", "$ref": "DOM.RGBA", "description": "RGBA of the picked color." } - ], - "hidden": true, - "handlers": ["browser"] + "experimental": true }, { "name": "interstitialShown", - "description": "Fired when interstitial page was shown", - "hidden": true, - "handlers": ["browser"] + "description": "Fired when interstitial page was shown" }, { "name": "interstitialHidden", - "description": "Fired when interstitial page was hidden", - "hidden": true, - "handlers": ["browser"] + "description": "Fired when interstitial page was hidden" + }, + { + "name": "navigationRequested", + "description": "Fired when a navigation is started if navigation throttles are enabled. The navigation will be deferred until processNavigation is called.", + "parameters": [ + { "name": "isInMainFrame", "type": "boolean", "description": "Whether the navigation is taking place in the main frame or in a subframe." }, + { "name": "isRedirect", "type": "boolean", "description": "Whether the navigation has encountered a server redirect or not." }, + { "name": "navigationId", "type": "integer" }, + { "name": "url", "type": "string", "description": "URL of requested navigation." } + ] } ] }, { - "domain": "Rendering", - "description": "This domain allows to control rendering of the page.", - "hidden": true, + "domain": "Overlay", + "description": "This domain provides various functionality related to drawing atop the inspected page.", + "dependencies": ["DOM", "Page", "Runtime"], + "experimental": true, + "types": [ + { + "id": "HighlightConfig", + "type": "object", + "properties": [ + { "name": "showInfo", "type": "boolean", "optional": true, "description": "Whether the node info tooltip should be shown (default: false)." }, + { "name": "showRulers", "type": "boolean", "optional": true, "description": "Whether the rulers should be shown (default: false)." }, + { "name": "showExtensionLines", "type": "boolean", "optional": true, "description": "Whether the extension lines from node to the rulers should be shown (default: false)." }, + { "name": "displayAsMaterial", "type": "boolean", "optional": true}, + { "name": "contentColor", "$ref": "DOM.RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." }, + { "name": "paddingColor", "$ref": "DOM.RGBA", "optional": true, "description": "The padding highlight fill color (default: transparent)." }, + { "name": "borderColor", "$ref": "DOM.RGBA", "optional": true, "description": "The border highlight fill color (default: transparent)." }, + { "name": "marginColor", "$ref": "DOM.RGBA", "optional": true, "description": "The margin highlight fill color (default: transparent)." }, + { "name": "eventTargetColor", "$ref": "DOM.RGBA", "optional": true, "description": "The event target element highlight fill color (default: transparent)." }, + { "name": "shapeColor", "$ref": "DOM.RGBA", "optional": true, "description": "The shape outside fill color (default: transparent)." }, + { "name": "shapeMarginColor", "$ref": "DOM.RGBA", "optional": true, "description": "The shape margin fill color (default: transparent)." }, + { "name": "selectorList", "type": "string", "optional": true, "description": "Selectors to highlight relevant nodes."} + ], + "description": "Configuration data for the highlighting of page elements." + }, + { + "id": "InspectMode", + "type": "string", + "enum": [ + "searchForNode", + "searchForUAShadowDOM", + "none" + ] + } + ], "commands": [ + { + "name": "enable", + "description": "Enables domain notifications." + }, + { + "name": "disable", + "description": "Disables domain notifications." + }, { "name": "setShowPaintRects", "description": "Requests that backend shows paint rectangles", @@ -588,17 +734,107 @@ ] }, { - "name": "setContinuousPaintingEnabled", - "description": "Requests that backend enables continuous painting", + "name": "setShowScrollBottleneckRects", + "description": "Requests that backend shows scroll bottleneck rects", "parameters": [ - { "name": "enabled", "type": "boolean", "description": "True for enabling cointinuous painting" } + { "name": "show", "type": "boolean", "description": "True for showing scroll bottleneck rects" } ] }, { - "name": "setShowScrollBottleneckRects", - "description": "Requests that backend shows scroll bottleneck rects", + "name": "setShowViewportSizeOnResize", + "description": "Paints viewport size upon main frame resize.", "parameters": [ - { "name": "show", "type": "boolean", "description": "True for showing scroll bottleneck rects" } + { "name": "show", "type": "boolean", "description": "Whether to paint size or not." } + ] + }, + { + "name": "setPausedInDebuggerMessage", + "parameters": [ + { "name": "message", "type": "string", "optional": true, "description": "The message to display, also triggers resume and step over controls." } + ] + }, + { + "name": "setSuspended", + "parameters": [ + { "name": "suspended", "type": "boolean", "description": "Whether overlay should be suspended and not consume any resources until resumed." } + ] + }, + { + "name": "setInspectMode", + "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.", + "parameters": [ + { "name": "mode", "$ref": "InspectMode", "description": "Set an inspection mode." }, + { "name": "highlightConfig", "$ref": "HighlightConfig", "optional": true, "description": "A descriptor for the highlight appearance of hovered-over nodes. May be omitted if enabled == false." } + ] + }, + { + "name": "highlightRect", + "description": "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.", + "parameters": [ + { "name": "x", "type": "integer", "description": "X coordinate" }, + { "name": "y", "type": "integer", "description": "Y coordinate" }, + { "name": "width", "type": "integer", "description": "Rectangle width" }, + { "name": "height", "type": "integer", "description": "Rectangle height" }, + { "name": "color", "$ref": "DOM.RGBA", "optional": true, "description": "The highlight fill color (default: transparent)." }, + { "name": "outlineColor", "$ref": "DOM.RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." } + ] + }, + { + "name": "highlightQuad", + "description": "Highlights given quad. Coordinates are absolute with respect to the main frame viewport.", + "parameters": [ + { "name": "quad", "$ref": "DOM.Quad", "description": "Quad to highlight" }, + { "name": "color", "$ref": "DOM.RGBA", "optional": true, "description": "The highlight fill color (default: transparent)." }, + { "name": "outlineColor", "$ref": "DOM.RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." } + ] + }, + { + "name": "highlightNode", + "description": "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified.", + "parameters": [ + { "name": "highlightConfig", "$ref": "HighlightConfig", "description": "A descriptor for the highlight appearance." }, + { "name": "nodeId", "$ref": "DOM.NodeId", "optional": true, "description": "Identifier of the node to highlight." }, + { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "optional": true, "description": "Identifier of the backend node to highlight." }, + { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "optional": true, "description": "JavaScript object id of the node to be highlighted." } + ] + }, + { + "name": "highlightFrame", + "description": "Highlights owner element of the frame with given id.", + "parameters": [ + { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame to highlight." }, + { "name": "contentColor", "$ref": "DOM.RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." }, + { "name": "contentOutlineColor", "$ref": "DOM.RGBA", "optional": true, "description": "The content box highlight outline color (default: transparent)." } + ] + }, + { + "name": "hideHighlight", + "description": "Hides any highlight." + }, + { + "name": "getHighlightObjectForTest", + "description": "For testing.", + "parameters": [ + { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Id of the node to get highlight object for." } + ], + "returns": [ + { "name": "highlight", "type": "object", "description": "Highlight data for the node." } + ] + } + ], + "events": [ + { + "name": "nodeHighlightRequested", + "description": "Fired when the node should be highlighted. This happens after call to setInspectMode.", + "parameters": [ + { "name": "nodeId", "$ref": "DOM.NodeId" } + ] + }, + { + "name": "inspectNodeRequested", + "description": "Fired when the node should be inspected. This happens after call to setInspectMode or when user manually inspects an element.", + "parameters": [ + { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "description": "Id of the node to inspect." } ] } ] @@ -606,21 +842,27 @@ { "domain": "Emulation", "description": "This domain emulates different environments for the page.", - "hidden": true, + "dependencies": ["DOM"], "types": [ { - "id": "Viewport", + "id": "ScreenOrientation", "type": "object", - "description": "Visible page viewport", + "description": "Screen orientation.", "properties": [ - { "name": "scrollX", "type": "number", "description": "X scroll offset in CSS pixels." }, - { "name": "scrollY", "type": "number", "description": "Y scroll offset in CSS pixels." }, - { "name": "contentsWidth", "type": "number", "description": "Contents width in CSS pixels." }, - { "name": "contentsHeight", "type": "number", "description": "Contents height in CSS pixels." }, - { "name": "pageScaleFactor", "type": "number", "description": "Page scale factor." }, - { "name": "minimumPageScaleFactor", "type": "number", "description": "Minimum page scale factor." }, - { "name": "maximumPageScaleFactor", "type": "number", "description": "Maximum page scale factor." } + { "name": "type", "type": "string", "enum": ["portraitPrimary", "portraitSecondary", "landscapePrimary", "landscapeSecondary"], "description": "Orientation type." }, + { "name": "angle", "type": "integer", "description": "Orientation angle." } ] + }, + { + "id": "VirtualTimePolicy", + "type": "string", + "enum": [ + "advance", + "pause", + "pauseIfNetworkFetchesPending" + ], + "experimental": true, + "description": "advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches." } ], "commands": [ @@ -633,31 +875,61 @@ { "name": "deviceScaleFactor", "type": "number", "description": "Overriding device scale factor value. 0 disables the override." }, { "name": "mobile", "type": "boolean", "description": "Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more." }, { "name": "fitWindow", "type": "boolean", "description": "Whether a view that exceeds the available browser window area should be scaled down to fit." }, - { "name": "scale", "type": "number", "optional": true, "description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." }, - { "name": "offsetX", "type": "number", "optional": true, "description": "X offset to shift resulting view image by. Ignored in |fitWindow| mode." }, - { "name": "offsetY", "type": "number", "optional": true, "description": "Y offset to shift resulting view image by. Ignored in |fitWindow| mode." } - ], - "handlers": ["browser"] + { "name": "scale", "type": "number", "optional": true, "experimental": true, "description": "Scale to apply to resulting view image. Ignored in |fitWindow| mode." }, + { "name": "offsetX", "type": "number", "optional": true, "deprecated": true, "experimental": true, "description": "Not used." }, + { "name": "offsetY", "type": "number", "optional": true, "deprecated": true, "experimental": true, "description": "Not used." }, + { "name": "screenWidth", "type": "integer", "optional": true, "experimental": true, "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, + { "name": "screenHeight", "type": "integer", "optional": true, "experimental": true, "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, + { "name": "positionX", "type": "integer", "optional": true, "experimental": true, "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, + { "name": "positionY", "type": "integer", "optional": true, "experimental": true, "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." }, + { "name": "screenOrientation", "$ref": "ScreenOrientation", "optional": true, "description": "Screen orientation override." } + ] }, { "name": "clearDeviceMetricsOverride", - "description": "Clears the overriden device metrics.", - "handlers": ["browser"] + "description": "Clears the overriden device metrics." + }, + { + "name": "forceViewport", + "description": "Overrides the visible area of the page. The change is hidden from the page, i.e. the observable scroll position and page scale does not change. In effect, the command moves the specified area of the page into the top-left corner of the frame.", + "experimental": true, + "parameters": [ + { "name": "x", "type": "number", "description": "X coordinate of top-left corner of the area (CSS pixels)." }, + { "name": "y", "type": "number", "description": "Y coordinate of top-left corner of the area (CSS pixels)." }, + { "name": "scale", "type": "number", "description": "Scale to apply to the area (relative to a page scale of 1.0)." } + ] + }, + { + "name": "resetViewport", + "description": "Resets the visible area of the page to the original viewport, undoing any effects of the forceViewport command.", + "experimental": true }, { - "name": "resetScrollAndPageScaleFactor", - "description": "Requests that scroll offsets and page scale factor are reset to initial values." + "name": "resetPageScaleFactor", + "experimental": true, + "description": "Requests that page scale factor is reset to initial values." }, { "name": "setPageScaleFactor", "description": "Sets a specified page scale factor.", + "experimental": true, "parameters": [ { "name": "pageScaleFactor", "type": "number", "description": "Page scale factor." } ] }, + { + "name": "setVisibleSize", + "description": "Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.", + "experimental": true, + "parameters": [ + { "name": "width", "type": "integer", "description": "Frame width (DIP)." }, + { "name": "height", "type": "integer", "description": "Frame height (DIP)." } + ] + }, { "name": "setScriptExecutionDisabled", "description": "Switches script execution in the page.", + "experimental": true, "parameters": [ { "name": "value", "type": "boolean", "description": "Whether script execution should be disabled in the page." } ] @@ -665,17 +937,17 @@ { "name": "setGeolocationOverride", "description": "Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable.", + "experimental": true, "parameters": [ { "name": "latitude", "type": "number", "optional": true, "description": "Mock latitude"}, { "name": "longitude", "type": "number", "optional": true, "description": "Mock longitude"}, { "name": "accuracy", "type": "number", "optional": true, "description": "Mock accuracy"} - ], - "handlers": ["browser"] + ] }, { "name": "clearGeolocationOverride", "description": "Clears the overriden Geolocation Position and Error.", - "handlers": ["browser"] + "experimental": true }, { "name": "setTouchEmulationEnabled", @@ -683,8 +955,7 @@ { "name": "enabled", "type": "boolean", "description": "Whether the touch event emulation should be enabled." }, { "name": "configuration", "type": "string", "enum": ["mobile", "desktop"], "optional": true, "description": "Touch/gesture events configuration. Default: current platform." } ], - "description": "Toggles mouse event-based touch event emulation.", - "handlers": ["browser", "renderer"] + "description": "Toggles mouse event-based touch event emulation." }, { "name": "setEmulatedMedia", @@ -693,392 +964,152 @@ ], "description": "Emulates the given media for CSS media queries." }, + { + "name": "setCPUThrottlingRate", + "parameters": [ + { "name": "rate", "type": "number", "description": "Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc)." } + ], + "experimental": true, + "description": "Enables CPU throttling to emulate slow CPUs." + }, { "name": "canEmulate", "description": "Tells whether emulation is supported.", "returns": [ { "name": "result", "type": "boolean", "description": "True if emulation is supported." } ], - "handlers": ["browser"] + "experimental": true + }, + { + "name": "setVirtualTimePolicy", + "description": "Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy. Note this supersedes any previous time budget.", + "parameters": [ + { "name": "policy", "$ref": "VirtualTimePolicy" }, + { "name": "budget", "type": "integer", "optional": true, "description": "If set, after this many virtual milliseconds have elapsed virtual time will be paused and a virtualTimeBudgetExpired event is sent." } + ], + "experimental": true + }, + { + "name": "setDefaultBackgroundColorOverride", + "description": "Sets or clears an override of the default background color of the frame. This override is used if the content does not specify one.", + "parameters": [ + { "name": "color", "$ref": "DOM.RGBA", "optional": true, "description": "RGBA of the default background color. If not specified, any existing override will be cleared." } + ], + "experimental": true } ], "events": [ { - "name": "viewportChanged", - "description": "Fired when a visible page viewport has changed. Only fired when device metrics are overridden.", - "parameters": [ - { "name": "viewport", "$ref": "Viewport", "description": "Viewport description." } - ] + "name": "virtualTimeBudgetExpired", + "experimental": true, + "description": "Notification sent after the virual time budget for the current VirtualTimePolicy has run out." } ] }, { - "domain": "Runtime", - "description": "Runtime domain exposes JavaScript runtime by means of remote evaluation and mirror objects. Evaluation results are returned as mirror object that expose object type, string representation and unique identifier that can be used for further object reference. Original objects are maintained in memory unless they are either explicitly released or are released along with the other objects in their object group.", + "domain": "Security", + "description": "Security", + "experimental": true, "types": [ { - "id": "RemoteObjectId", + "id": "CertificateId", + "type": "integer", + "description": "An internal certificate ID value." + }, + { + "id": "SecurityState", "type": "string", - "description": "Unique object identifier." + "enum": ["unknown", "neutral", "insecure", "warning", "secure", "info"], + "description": "The security level of a page or resource." }, { - "id": "RemoteObject", + "id": "SecurityStateExplanation", "type": "object", - "description": "Mirror object referencing original JavaScript object.", "properties": [ - { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol"], "description": "Object type." }, - { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "generator", "error"], "description": "Object subtype hint. Specified for object type values only." }, - { "name": "className", "type": "string", "optional": true, "description": "Object class (constructor) name. Specified for object type values only." }, - { "name": "value", "type": "any", "optional": true, "description": "Remote object value in case of primitive values or JSON values (if it was requested), or description string if the value can not be JSON-stringified (like NaN, Infinity, -Infinity, -0)." }, - { "name": "description", "type": "string", "optional": true, "description": "String representation of the object." }, - { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Unique object identifier (for non-primitive values)." }, - { "name": "preview", "$ref": "ObjectPreview", "optional": true, "description": "Preview containing abbreviated property values. Specified for object type values only.", "hidden": true }, - { "name": "customPreview", "$ref": "CustomPreview", "optional": true, "hidden": true} - ] + { "name": "securityState", "$ref": "SecurityState", "description": "Security state representing the severity of the factor being explained." }, + { "name": "summary", "type": "string", "description": "Short phrase describing the type of factor." }, + { "name": "description", "type": "string", "description": "Full text explanation of the factor." }, + { "name": "hasCertificate", "type": "boolean", "description": "True if the page has a certificate." } + ], + "description": "An explanation of an factor contributing to the security state." }, - { "id": "CustomPreview", + { + "id": "InsecureContentStatus", "type": "object", - "hidden": true, "properties": [ - { "name": "header", "type": "string"}, - { "name": "hasBody", "type": "boolean"}, - {"name": "formatterObjectId", "$ref": "RemoteObjectId"}, - {"name": "configObjectId", "$ref": "RemoteObjectId", "optional": true} - ] + { "name": "ranMixedContent", "type": "boolean", "description": "True if the page was loaded over HTTPS and ran mixed (HTTP) content such as scripts." }, + { "name": "displayedMixedContent", "type": "boolean", "description": "True if the page was loaded over HTTPS and displayed mixed (HTTP) content such as images." }, + { "name": "containedMixedForm", "type": "boolean", "description": "True if the page was loaded over HTTPS and contained a form targeting an insecure url." }, + { "name": "ranContentWithCertErrors", "type": "boolean", "description": "True if the page was loaded over HTTPS without certificate errors, and ran content such as scripts that were loaded with certificate errors." }, + { "name": "displayedContentWithCertErrors", "type": "boolean", "description": "True if the page was loaded over HTTPS without certificate errors, and displayed content such as images that were loaded with certificate errors." }, + { "name": "ranInsecureContentStyle", "$ref": "SecurityState", "description": "Security state representing a page that ran insecure content." }, + { "name": "displayedInsecureContentStyle", "$ref": "SecurityState", "description": "Security state representing a page that displayed insecure content." } + ], + "description": "Information about insecure content on the page." }, { - "id": "ObjectPreview", - "type": "object", - "hidden": true, - "description": "Object containing abbreviated remote object value.", - "properties": [ - { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol"], "description": "Object type." }, - { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "generator", "error"], "description": "Object subtype hint. Specified for object type values only." }, - { "name": "description", "type": "string", "optional": true, "description": "String representation of the object." }, - { "name": "lossless", "type": "boolean", "description": "Determines whether preview is lossless (contains all information of the original object)." }, - { "name": "overflow", "type": "boolean", "description": "True iff some of the properties or entries of the original object did not fit." }, - { "name": "properties", "type": "array", "items": { "$ref": "PropertyPreview" }, "description": "List of the properties." }, - { "name": "entries", "type": "array", "items": { "$ref": "EntryPreview" }, "optional": true, "description": "List of the entries. Specified for map and set subtype values only." } - ] + "id": "CertificateErrorAction", + "type": "string", + "enum": ["continue", "cancel"], + "description": "The action to take when a certificate error occurs. continue will continue processing the request and cancel will cancel the request." + } + ], + "commands": [ + { + "name": "enable", + "description": "Enables tracking security state changes." }, { - "id": "PropertyPreview", - "type": "object", - "hidden": true, - "properties": [ - { "name": "name", "type": "string", "description": "Property name." }, - { "name": "type", "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol", "accessor"], "description": "Object type. Accessor means that the property itself is an accessor property." }, - { "name": "value", "type": "string", "optional": true, "description": "User-friendly property value string." }, - { "name": "valuePreview", "$ref": "ObjectPreview", "optional": true, "description": "Nested value preview." }, - { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "generator", "error"], "description": "Object subtype hint. Specified for object type values only." } - ] + "name": "disable", + "description": "Disables tracking security state changes." }, { - "id": "EntryPreview", - "type": "object", - "hidden": true, - "properties": [ - { "name": "key", "$ref": "ObjectPreview", "optional": true, "description": "Preview of the key. Specified for map-like collection entries." }, - { "name": "value", "$ref": "ObjectPreview", "description": "Preview of the value." } - ] + "name": "showCertificateViewer", + "description": "Displays native dialog with the certificate details." }, { - "id": "PropertyDescriptor", - "type": "object", - "description": "Object property descriptor.", - "properties": [ - { "name": "name", "type": "string", "description": "Property name or symbol description." }, - { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." }, - { "name": "writable", "type": "boolean", "optional": true, "description": "True if the value associated with the property may be changed (data descriptors only)." }, - { "name": "get", "$ref": "RemoteObject", "optional": true, "description": "A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only)." }, - { "name": "set", "$ref": "RemoteObject", "optional": true, "description": "A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only)." }, - { "name": "configurable", "type": "boolean", "description": "True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object." }, - { "name": "enumerable", "type": "boolean", "description": "True if this property shows up during enumeration of the properties on the corresponding object." }, - { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }, - { "name": "isOwn", "optional": true, "type": "boolean", "description": "True if the property is owned for the object.", "hidden": true }, - { "name": "symbol", "$ref": "RemoteObject", "optional": true, "description": "Property symbol object, if the property is of the symbol type.", "hidden": true } + "name": "handleCertificateError", + "description": "Handles a certificate error that fired a certificateError event.", + "parameters": [ + { "name": "eventId", "type": "integer", "description": "The ID of the event."}, + { "name": "action", "$ref": "CertificateErrorAction", "description": "The action to take on the certificate error." } ] }, { - "id": "EventListener", - "type": "object", - "description": "Object event listener.", - "properties": [ - { "name": "type", "type": "string", "description": "EventListener's type." }, - { "name": "useCapture", "type": "boolean", "description": "EventListener's useCapture." }, - { "name": "location", "$ref": "Debugger.Location", "description": "Handler code location." }, - { "name": "handler", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Event handler function value." } - ], - "hidden": true - }, - { - "id": "InternalPropertyDescriptor", - "type": "object", - "description": "Object internal property descriptor. This property isn't normally visible in JavaScript code.", - "properties": [ - { "name": "name", "type": "string", "description": "Conventional property name." }, - { "name": "value", "$ref": "RemoteObject", "optional": true, "description": "The value associated with the property." } - ], - "hidden": true - }, - { - "id": "CallArgument", - "type": "object", - "description": "Represents function call argument. Either remote object id objectId or primitive value or neither of (for undefined) them should be specified.", - "properties": [ - { "name": "value", "type": "any", "optional": true, "description": "Primitive value, or description string if the value can not be JSON-stringified (like NaN, Infinity, -Infinity, -0)." }, - { "name": "objectId", "$ref": "RemoteObjectId", "optional": true, "description": "Remote object handle." }, - { "name": "type", "optional": true, "hidden": true, "type": "string", "enum": ["object", "function", "undefined", "string", "number", "boolean", "symbol"], "description": "Object type." } - ] - }, - { - "id": "ExecutionContextId", - "type": "integer", - "description": "Id of an execution context." - }, - { - "id": "ExecutionContextDescription", - "type": "object", - "description": "Description of an isolated world.", - "properties": [ - { "name": "id", "$ref": "ExecutionContextId", "description": "Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed." }, - { "name": "isPageContext", "type": "boolean", "optional": true, "description": "True if this is a context where inpspected web page scripts run. False if it is a content script isolated context.", "hidden": true }, - { "name": "origin", "type": "string", "description": "Execution context origin.", "hidden": true}, - { "name": "name", "type": "string", "description": "Human readable name describing given context.", "hidden": true}, - { "name": "frameId", "type": "string", "description": "Id of the owning frame. May be an empty string if the context is not associated with a frame." } - ] - } - ], - "commands": [ - { - "name": "evaluate", - "parameters": [ - { "name": "expression", "type": "string", "description": "Expression to evaluate." }, - { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }, - { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Determines whether Command Line API should be available during the evaluation.", "hidden": true }, - { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true }, - { "name": "contextId", "$ref": "ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perform evaluation. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page." }, - { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." }, - { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." } - ], - "returns": [ - { "name": "result", "$ref": "RemoteObject", "description": "Evaluation result." }, - { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }, - { "name": "exceptionDetails", "$ref": "Debugger.ExceptionDetails", "optional": true, "hidden": true, "description": "Exception details."} - ], - "description": "Evaluates expression on global object." - }, - { - "name": "callFunctionOn", - "parameters": [ - { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to call function on." }, - { "name": "functionDeclaration", "type": "string", "description": "Declaration of the function to call." }, - { "name": "arguments", "type": "array", "items": { "$ref": "CallArgument", "description": "Call argument." }, "optional": true, "description": "Call arguments. All call arguments must belong to the same JavaScript world as the target object." }, - { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether function call should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true }, - { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object which should be sent by value." }, - { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." } - ], - "returns": [ - { "name": "result", "$ref": "RemoteObject", "description": "Call result." }, - { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." } - ], - "description": "Calls function with given declaration on the given object. Object group of the result is inherited from the target object." - }, - { - "name": "getProperties", - "parameters": [ - { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to return properties for." }, - { "name": "ownProperties", "optional": true, "type": "boolean", "description": "If true, returns properties belonging only to the element itself, not to its prototype chain." }, - { "name": "accessorPropertiesOnly", "optional": true, "type": "boolean", "description": "If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.", "hidden": true }, - { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the results." } - ], - "returns": [ - { "name": "result", "type": "array", "items": { "$ref": "PropertyDescriptor" }, "description": "Object properties." }, - { "name": "internalProperties", "optional": true, "type": "array", "items": { "$ref": "InternalPropertyDescriptor" }, "description": "Internal object properties (only of the element itself).", "hidden": true } - ], - "description": "Returns properties of a given object. Object group of the result is inherited from the target object." - }, - { - "name": "getEventListeners", - "hidden": true, - "parameters": [ - { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to return listeners for." }, - { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name for handler value. Handler value is not returned without this parameter specified." } - ], - "returns": [ - { "name": "listeners", "type": "array", "items": { "$ref": "EventListener" }, "description": "Array of relevant listeners." } - ], - "description": "Returns event listeners of the given object." - }, - { - "name": "releaseObject", - "parameters": [ - { "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to release." } - ], - "description": "Releases remote object with given id." - }, - { - "name": "releaseObjectGroup", - "parameters": [ - { "name": "objectGroup", "type": "string", "description": "Symbolic object group name." } - ], - "description": "Releases all remote objects that belong to a given group." - }, - { - "name": "run", - "hidden": true, - "description": "Tells inspected instance(worker or page) that it can run in case it was started paused." - }, - { - "name": "enable", - "description": "Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context." - }, - { - "name": "disable", - "hidden": true, - "description": "Disables reporting of execution contexts creation." - }, - { - "name": "isRunRequired", - "returns": [ - { "name": "result", "type": "boolean", "description": "True if the Runtime is in paused on start state." } - ], - "hidden": true - }, - { - "name": "setCustomObjectFormatterEnabled", - "parameters": [ - { - "name": "enabled", - "type": "boolean" - } - ], - "hidden": true - } - ], - "events": [ - { - "name": "executionContextCreated", - "parameters": [ - { "name": "context", "$ref": "ExecutionContextDescription", "description": "A newly created execution contex." } - ], - "description": "Issued when new execution context is created." - }, - { - "name": "executionContextDestroyed", + "name": "setOverrideCertificateErrors", + "description": "Enable/disable overriding certificate errors. If enabled, all certificate error events need to be handled by the DevTools client and should be answered with handleCertificateError commands.", "parameters": [ - { "name": "executionContextId", "$ref": "ExecutionContextId", "description": "Id of the destroyed context" } - ], - "description": "Issued when execution context is destroyed." - }, - { - "name": "executionContextsCleared", - "description": "Issued when all executionContexts were cleared in browser" - } - ] - }, - { - "domain": "Console", - "description": "Console domain defines methods and events for interaction with the JavaScript console. Console collects messages created by means of the JavaScript Console API. One needs to enable this domain using enable command in order to start receiving the console messages. Browser collects messages issued while console domain is not enabled as well and reports them using messageAdded notification upon enabling.", - "types": [ - { - "id": "Timestamp", - "type": "number", - "description": "Number of seconds since epoch.", - "hidden": true - }, - { - "id": "ConsoleMessage", - "type": "object", - "description": "Console message.", - "properties": [ - { "name": "source", "type": "string", "enum": ["xml", "javascript", "network", "console-api", "storage", "appcache", "rendering", "css", "security", "other", "deprecation"], "description": "Message source." }, - { "name": "level", "type": "string", "enum": ["log", "warning", "error", "debug", "info"], "description": "Message severity." }, - { "name": "text", "type": "string", "description": "Message text." }, - { "name": "type", "type": "string", "optional": true, "enum": ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupCollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Console message type." }, - { "name": "scriptId", "type": "string", "optional": true, "description": "Script ID of the message origin." }, - { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." }, - { "name": "line", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message." }, - { "name": "column", "type": "integer", "optional": true, "description": "Column number in the resource that generated this message." }, - { "name": "repeatCount", "type": "integer", "optional": true, "description": "Repeat count for repeated messages." }, - { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters in case of the formatted message." }, - { "name": "stackTrace", "$ref": "StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages." }, - { "name": "asyncStackTrace", "$ref": "AsyncStackTrace", "optional": true, "description": "Asynchronous JavaScript stack trace that preceded this message, if available.", "hidden": true }, - { "name": "networkRequestId", "$ref": "Network.RequestId", "optional": true, "description": "Identifier of the network request associated with this message." }, - { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp, when this message was fired.", "hidden": true }, - { "name": "executionContextId", "$ref": "Runtime.ExecutionContextId", "optional": true, "description": "Identifier of the context where this message was created", "hidden": true } - ] - }, - { - "id": "CallFrame", - "type": "object", - "description": "Stack entry for console errors and assertions.", - "properties": [ - { "name": "functionName", "type": "string", "description": "JavaScript function name." }, - { "name": "scriptId", "type": "string", "description": "JavaScript script id." }, - { "name": "url", "type": "string", "description": "JavaScript script name or url." }, - { "name": "lineNumber", "type": "integer", "description": "JavaScript script line number." }, - { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number." } + { "name": "override", "type": "boolean", "description": "If true, certificate errors will be overridden."} ] - }, - { - "id": "StackTrace", - "type": "array", - "items": { "$ref": "CallFrame" }, - "description": "Call frames for assertions or error messages." - }, - { - "id": "AsyncStackTrace", - "type": "object", - "properties": [ - { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call frames of the stack trace." }, - { "name": "description", "type": "string", "optional": true, "description": "String label of this stack trace. For async traces this may be a name of the function that initiated the async call." }, - { "name": "asyncStackTrace", "$ref": "AsyncStackTrace", "optional": true, "description": "Next asynchronous stack trace, if any." } - ], - "description": "Asynchronous JavaScript call stack.", - "hidden": true - } - ], - "commands": [ - { - "name": "enable", - "description": "Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification." - }, - { - "name": "disable", - "description": "Disables console domain, prevents further console messages from being reported to the client." - }, - { - "name": "clearMessages", - "description": "Clears console messages collected in the browser." } ], "events": [ { - "name": "messageAdded", + "name": "securityStateChanged", + "description": "The security state of the page changed.", "parameters": [ - { "name": "message", "$ref": "ConsoleMessage", "description": "Console message that has been added." } - ], - "description": "Issued when new console message is added." + { "name": "securityState", "$ref": "SecurityState", "description": "Security state." }, + { "name": "schemeIsCryptographic", "type": "boolean", "description": "True if the page was loaded over cryptographic transport such as HTTPS." }, + { "name": "explanations", "type": "array", "items": { "$ref": "SecurityStateExplanation" }, "description": "List of explanations for the security state. If the overall security state is `insecure` or `warning`, at least one corresponding explanation should be included." }, + { "name": "insecureContentStatus", "$ref": "InsecureContentStatus", "description": "Information about insecure content on the page." }, + { "name": "summary", "type": "string", "description": "Overrides user-visible description of the state.", "optional": true } + ] }, { - "name": "messageRepeatCountUpdated", + "name": "certificateError", + "description": "There is a certificate error. If overriding certificate errors is enabled, then it should be handled with the handleCertificateError command. Note: this event does not fire if the certificate error has been allowed internally.", "parameters": [ - { "name": "count", "type": "integer", "description": "New repeat count value." }, - { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp of most recent message in batch.", "hidden": true } - ], - "description": "Is not issued. Will be gone in the future versions of the protocol.", - "deprecated": true - }, - { - "name": "messagesCleared", - "description": "Issued when console is cleared. This happens either upon clearMessages command or after page navigation." + { "name": "eventId", "type": "integer", "description": "The ID of the event."}, + { "name": "errorType", "type": "string", "description": "The type of the error."}, + { "name": "requestURL", "type": "string", "description": "The url that was requested."} + ] } ] }, { "domain": "Network", "description": "Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.", + "dependencies": ["Runtime", "Security"], "types": [ { "id": "LoaderId", @@ -1100,6 +1131,18 @@ "type": "object", "description": "Request / response headers as keys / values of JSON object." }, + { + "id": "ConnectionType", + "type": "string", + "enum": ["none", "cellular2g", "cellular3g", "cellular4g", "bluetooth", "ethernet", "wifi", "wimax", "other"], + "description": "Loading priority of a resource request." + }, + { + "id": "CookieSameSite", + "type": "string", + "enum": ["Strict", "Lax"], + "description": "Represents the cookie's 'SameSite' status: https://tools.ietf.org/html/draft-west-first-party-cookies" + }, { "id": "ResourceTiming", "type": "object", @@ -1114,14 +1157,21 @@ { "name": "connectEnd", "type": "number", "description": "Connected to the remote host." }, { "name": "sslStart", "type": "number", "description": "Started SSL handshake." }, { "name": "sslEnd", "type": "number", "description": "Finished SSL handshake." }, - { "name": "serviceWorkerFetchStart", "type": "number", "description": "Started fetching via ServiceWorker.", "hidden": true }, - { "name": "serviceWorkerFetchReady", "type": "number", "description": "Prepared a ServiceWorker.", "hidden": true }, - { "name": "serviceWorkerFetchEnd", "type": "number", "description": "Finished fetching via ServiceWorker.", "hidden": true }, + { "name": "workerStart", "type": "number", "description": "Started running ServiceWorker.", "experimental": true }, + { "name": "workerReady", "type": "number", "description": "Finished Starting ServiceWorker.", "experimental": true }, { "name": "sendStart", "type": "number", "description": "Started sending request." }, { "name": "sendEnd", "type": "number", "description": "Finished sending request." }, + { "name": "pushStart", "type": "number", "description": "Time the server started pushing request.", "experimental": true }, + { "name": "pushEnd", "type": "number", "description": "Time the server finished pushing request.", "experimental": true }, { "name": "receiveHeadersEnd", "type": "number", "description": "Finished receiving response headers." } ] }, + { + "id": "ResourcePriority", + "type": "string", + "enum": ["VeryLow", "Low", "Medium", "High", "VeryHigh"], + "description": "Loading priority of a resource request." + }, { "id": "Request", "type": "object", @@ -1130,9 +1180,54 @@ { "name": "url", "type": "string", "description": "Request URL." }, { "name": "method", "type": "string", "description": "HTTP request method." }, { "name": "headers", "$ref": "Headers", "description": "HTTP request headers." }, - { "name": "postData", "type": "string", "optional": true, "description": "HTTP POST request data." } + { "name": "postData", "type": "string", "optional": true, "description": "HTTP POST request data." }, + { "name": "mixedContentType", "optional": true, "type": "string", "enum": ["blockable", "optionally-blockable", "none"], "description": "The mixed content status of the request, as defined in http://www.w3.org/TR/mixed-content/" }, + { "name": "initialPriority", "$ref": "ResourcePriority", "description": "Priority of the resource request at the time request is sent."}, + { "name": "referrerPolicy", "type": "string", "enum": [ "unsafe-url", "no-referrer-when-downgrade", "no-referrer", "origin", "origin-when-cross-origin", "no-referrer-when-downgrade-origin-when-cross-origin" ], "description": "The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/" }, + { "name": "isLinkPreload", "type": "boolean", "optional": true, "description": "Whether is loaded via link preload." } + ] + }, + { + "id": "SignedCertificateTimestamp", + "type" : "object", + "description": "Details of a signed certificate timestamp (SCT).", + "properties": [ + { "name": "status", "type": "string", "description": "Validation status." }, + { "name": "origin", "type": "string", "description": "Origin." }, + { "name": "logDescription", "type": "string", "description": "Log name / description." }, + { "name": "logId", "type": "string", "description": "Log ID." }, + { "name": "timestamp", "$ref": "Timestamp", "description": "Issuance date." }, + { "name": "hashAlgorithm", "type": "string", "description": "Hash algorithm." }, + { "name": "signatureAlgorithm", "type": "string", "description": "Signature algorithm." }, + { "name": "signatureData", "type": "string", "description": "Signature data." } + ] + }, + { + "id": "SecurityDetails", + "type": "object", + "description": "Security details about a request.", + "properties": [ + { "name": "protocol", "type": "string", "description": "Protocol name (e.g. \"TLS 1.2\" or \"QUIC\")." }, + { "name": "keyExchange", "type": "string", "description": "Key Exchange used by the connection, or the empty string if not applicable." }, + { "name": "keyExchangeGroup", "type": "string", "optional": true, "description": "(EC)DH group used by the connection, if applicable." }, + { "name": "cipher", "type": "string", "description": "Cipher name." }, + { "name": "mac", "type": "string", "optional": true, "description": "TLS MAC. Note that AEAD ciphers do not have separate MACs." }, + { "name": "certificateId", "$ref": "Security.CertificateId", "description": "Certificate ID value." }, + { "name": "subjectName", "type": "string", "description": "Certificate subject name." }, + { "name": "sanList", "type": "array", "items": { "type": "string" }, "description": "Subject Alternative Name (SAN) DNS names and IP addresses." }, + { "name": "issuer", "type": "string", "description": "Name of the issuing CA." }, + { "name": "validFrom", "$ref": "Timestamp", "description": "Certificate valid from date." }, + { "name": "validTo", "$ref": "Timestamp", "description": "Certificate valid to (expiration) date" }, + { "name": "signedCertificateTimestampList", "type": "array", "items": { "$ref": "SignedCertificateTimestamp" }, "description": "List of signed certificate timestamps (SCTs)." } ] }, + { + "id": "BlockedReason", + "type": "string", + "description": "The reason why request was blocked.", + "enum": ["csp", "mixed-content", "origin", "inspector", "subresource-filter", "other"], + "experimental": true + }, { "id": "Response", "type": "object", @@ -1148,20 +1243,22 @@ { "name": "requestHeadersText", "type": "string", "optional": true, "description": "HTTP request headers text." }, { "name": "connectionReused", "type": "boolean", "description": "Specifies whether physical connection was actually reused for this request." }, { "name": "connectionId", "type": "number", "description": "Physical connection id that was actually used for this request." }, - { "name": "remoteIPAddress", "type": "string", "optional": true, "hidden": true, "description": "Remote IP address." }, - { "name": "remotePort", "type": "integer", "optional": true, "hidden": true, "description": "Remote port."}, + { "name": "remoteIPAddress", "type": "string", "optional": true, "experimental": true, "description": "Remote IP address." }, + { "name": "remotePort", "type": "integer", "optional": true, "experimental": true, "description": "Remote port."}, { "name": "fromDiskCache", "type": "boolean", "optional": true, "description": "Specifies that the request was served from the disk cache." }, { "name": "fromServiceWorker", "type": "boolean", "optional": true, "description": "Specifies that the request was served from the ServiceWorker." }, { "name": "encodedDataLength", "type": "number", "optional": false, "description": "Total number of bytes received for this request so far." }, { "name": "timing", "$ref": "ResourceTiming", "optional": true, "description": "Timing information for the given request." }, - { "name": "protocol", "type": "string", "optional": true, "description": "Protocol used to fetch this resquest." } + { "name": "protocol", "type": "string", "optional": true, "description": "Protocol used to fetch this request." }, + { "name": "securityState", "$ref": "Security.SecurityState", "description": "Security state of the request resource." }, + { "name": "securityDetails", "$ref": "SecurityDetails", "optional": true, "description": "Security details for the request." } ] }, { "id": "WebSocketRequest", "type": "object", "description": "WebSocket request data.", - "hidden": true, + "experimental": true, "properties": [ { "name": "headers", "$ref": "Headers", "description": "HTTP request headers." } ] @@ -1170,7 +1267,7 @@ "id": "WebSocketResponse", "type": "object", "description": "WebSocket response data.", - "hidden": true, + "experimental": true, "properties": [ { "name": "status", "type": "number", "description": "HTTP response status code." }, { "name": "statusText", "type": "string", "description": "HTTP response status text." }, @@ -1184,7 +1281,7 @@ "id": "WebSocketFrame", "type": "object", "description": "WebSocket frame data.", - "hidden": true, + "experimental": true, "properties": [ { "name": "opcode", "type": "number", "description": "WebSocket frame opcode." }, { "name": "mask", "type": "boolean", "description": "WebSocke frame mask." }, @@ -1207,11 +1304,10 @@ "type": "object", "description": "Information about the request initiator.", "properties": [ - { "name": "type", "type": "string", "enum": ["parser", "script", "other"], "description": "Type of this initiator." }, - { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "Initiator JavaScript stack trace, set for Script only." }, + { "name": "type", "type": "string", "enum": ["parser", "script", "preload", "other"], "description": "Type of this initiator." }, + { "name": "stack", "$ref": "Runtime.StackTrace", "optional": true, "description": "Initiator JavaScript stack trace, set for Script only." }, { "name": "url", "type": "string", "optional": true, "description": "Initiator URL, set for Parser type only." }, - { "name": "lineNumber", "type": "number", "optional": true, "description": "Initiator line number, set for Parser type only." }, - { "name": "asyncStackTrace", "$ref": "Console.AsyncStackTrace", "optional": true, "description": "Initiator asynchronous JavaScript stack trace, if available.", "hidden": true } + { "name": "lineNumber", "type": "number", "optional": true, "description": "Initiator line number, set for Parser type only (0-based)." } ] }, { @@ -1223,19 +1319,24 @@ { "name": "value", "type": "string", "description": "Cookie value." }, { "name": "domain", "type": "string", "description": "Cookie domain." }, { "name": "path", "type": "string", "description": "Cookie path." }, - { "name": "expires", "type": "number", "description": "Cookie expires." }, + { "name": "expires", "type": "number", "description": "Cookie expiration date as the number of seconds since the UNIX epoch." }, { "name": "size", "type": "integer", "description": "Cookie size." }, { "name": "httpOnly", "type": "boolean", "description": "True if cookie is http-only." }, { "name": "secure", "type": "boolean", "description": "True if cookie is secure." }, - { "name": "session", "type": "boolean", "description": "True in case of session cookie." } + { "name": "session", "type": "boolean", "description": "True in case of session cookie." }, + { "name": "sameSite", "$ref": "CookieSameSite", "optional": true, "description": "Cookie SameSite type." } ], - "hidden": true + "experimental": true } ], "commands": [ { "name": "enable", - "description": "Enables network tracking, network events will now be delivered to the client." + "description": "Enables network tracking, network events will now be delivered to the client.", + "parameters": [ + { "name": "maxTotalBufferSize", "type": "integer", "optional": true, "experimental": true, "description": "Buffer size in bytes to use when preserving network payloads (XHRs, etc)." }, + { "name": "maxResourceBufferSize", "type": "integer", "optional": true, "experimental": true, "description": "Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc)." } + ] }, { "name": "disable", @@ -1257,7 +1358,6 @@ }, { "name": "getResponseBody", - "async": true, "description": "Returns content served for the given request.", "parameters": [ { "name": "requestId", "$ref": "RequestId", "description": "Identifier of the network request to get content for." } @@ -1268,20 +1368,20 @@ ] }, { - "name": "replayXHR", - "description": "This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.", + "name": "setBlockedURLs", + "description": "Blocks URLs from loading.", "parameters": [ - { "name": "requestId", "$ref": "RequestId", "description": "Identifier of XHR to replay." } + { "name": "urls", "type": "array", "items": { "type": "string" }, "description": "URL patterns to block. Wildcards ('*') are allowed." } ], - "hidden": true + "experimental": true }, { - "name": "setMonitoringXHREnabled", + "name": "replayXHR", + "description": "This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.", "parameters": [ - { "name": "enabled", "type": "boolean", "description": "Monitoring enabled state." } + { "name": "requestId", "$ref": "RequestId", "description": "Identifier of XHR to replay." } ], - "description": "Toggles monitoring of XMLHttpRequest. If true, console will receive messages upon each XHR issued.", - "hidden": true + "experimental": true }, { "name": "canClearBrowserCache", @@ -1292,8 +1392,7 @@ }, { "name": "clearBrowserCache", - "description": "Clears browser cache.", - "handlers": ["browser"] + "description": "Clears browser cache." }, { "name": "canClearBrowserCookies", @@ -1304,18 +1403,26 @@ }, { "name": "clearBrowserCookies", - "description": "Clears browser cookies.", - "handlers": ["browser"] + "description": "Clears browser cookies." }, { "name": "getCookies", + "parameters": [ + { "name": "urls", "type": "array", "items": { "type": "string" }, "optional": true, "description": "The list of URLs for which applicable cookies will be fetched" } + ], + "returns": [ + { "name": "cookies", "type": "array", "items": { "$ref": "Cookie" }, "description": "Array of cookie objects." } + ], + "description": "Returns all browser cookies for the current URL. Depending on the backend support, will return detailed cookie information in the cookies field.", + "experimental": true + }, + { + "name": "getAllCookies", "returns": [ { "name": "cookies", "type": "array", "items": { "$ref": "Cookie" }, "description": "Array of cookie objects." } ], "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field.", - "handlers": ["browser"], - "async": true, - "hidden": true + "experimental": true }, { "name": "deleteCookie", @@ -1324,9 +1431,26 @@ { "name": "url", "type": "string", "description": "URL to match cooke domain and path." } ], "description": "Deletes browser cookie with given name, domain and path.", - "handlers": ["browser"], - "async": true, - "hidden": true + "experimental": true + }, + { + "name": "setCookie", + "parameters": [ + { "name": "url", "type": "string", "description": "The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie." }, + { "name": "name", "type": "string", "description": "The name of the cookie." }, + { "name": "value", "type": "string", "description": "The value of the cookie." }, + { "name": "domain", "type": "string", "optional": true, "description": "If omitted, the cookie becomes a host-only cookie." }, + { "name": "path", "type": "string", "optional": true, "description": "Defaults to the path portion of the url parameter." }, + { "name": "secure", "type": "boolean", "optional": true, "description": "Defaults ot false." }, + { "name": "httpOnly", "type": "boolean", "optional": true, "description": "Defaults to false." }, + { "name": "sameSite", "$ref": "CookieSameSite", "optional": true, "description": "Defaults to browser default behavior." }, + { "name": "expirationDate", "$ref": "Timestamp", "optional": true, "description": "If omitted, the cookie becomes a session cookie." } + ], + "returns": [ + { "name": "success", "type": "boolean", "description": "True if successfully set cookie." } + ], + "description": "Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.", + "experimental": true }, { "name": "canEmulateNetworkConditions", @@ -1334,8 +1458,7 @@ "returns": [ { "name": "result", "type": "boolean", "description": "True if emulation of network conditions is supported." } ], - "hidden": true, - "handlers": ["browser"] + "experimental": true }, { "name": "emulateNetworkConditions", @@ -1344,10 +1467,9 @@ { "name": "offline", "type": "boolean", "description": "True to emulate internet disconnection." }, { "name": "latency", "type": "number", "description": "Additional latency (ms)." }, { "name": "downloadThroughput", "type": "number", "description": "Maximal aggregated download throughput." }, - { "name": "uploadThroughput", "type": "number", "description": "Maximal aggregated upload throughput." } - ], - "hidden": true, - "handlers": ["browser", "renderer"] + { "name": "uploadThroughput", "type": "number", "description": "Maximal aggregated upload throughput." }, + { "name": "connectionType", "$ref": "ConnectionType", "optional": true, "description": "Connection type if known."} + ] }, { "name": "setCacheDisabled", @@ -1356,6 +1478,14 @@ ], "description": "Toggles ignoring cache for each request. If true, cache will not be used." }, + { + "name": "setBypassServiceWorker", + "parameters": [ + { "name": "bypass", "type": "boolean", "description": "Bypass service worker and load from network." } + ], + "experimental": true, + "description": "Toggles ignoring of service worker for each request." + }, { "name": "setDataSizeLimitsForTest", "parameters": [ @@ -1363,24 +1493,45 @@ { "name": "maxResourceSize", "type": "integer", "description": "Maximum per-resource size." } ], "description": "For testing.", - "hidden": true + "experimental": true + }, + { + "name": "getCertificate", + "description": "Returns the DER-encoded certificate.", + "parameters": [ + { "name": "origin", "type": "string", "description": "Origin to get certificate for." } + ], + "returns": [ + { "name": "tableNames", "type": "array", "items": { "type": "string" } } + ], + "experimental": true } ], "events": [ + { + "name": "resourceChangedPriority", + "description": "Fired when resource loading priority is changed", + "parameters": [ + { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, + { "name": "newPriority", "$ref": "ResourcePriority", "description": "New priority" }, + { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." } + ], + "experimental": true + }, { "name": "requestWillBeSent", "description": "Fired when page is about to send HTTP request.", "parameters": [ { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, - { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier.", "hidden": true }, + { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier.", "experimental": true }, { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." }, { "name": "documentURL", "type": "string", "description": "URL of the document this request is loaded for." }, { "name": "request", "$ref": "Request", "description": "Request data." }, { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, - { "name": "wallTime", "$ref": "Timestamp", "hidden": true, "description": "UTC Timestamp." }, + { "name": "wallTime", "$ref": "Timestamp", "experimental": true, "description": "UTC Timestamp." }, { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." }, { "name": "redirectResponse", "optional": true, "$ref": "Response", "description": "Redirect response data." }, - { "name": "type", "$ref": "Page.ResourceType", "optional": true, "hidden": true, "description": "Type of this resource." } + { "name": "type", "$ref": "Page.ResourceType", "optional": true, "experimental": true, "description": "Type of this resource." } ] }, { @@ -1395,7 +1546,7 @@ "description": "Fired when HTTP response is available.", "parameters": [ { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, - { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier.", "hidden": true }, + { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier.", "experimental": true }, { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." }, { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, { "name": "type", "$ref": "Page.ResourceType", "description": "Resource type." }, @@ -1429,7 +1580,8 @@ { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, { "name": "type", "$ref": "Page.ResourceType", "description": "Resource type." }, { "name": "errorText", "type": "string", "description": "User friendly error message." }, - { "name": "canceled", "type": "boolean", "optional": true, "description": "True if loading was canceled." } + { "name": "canceled", "type": "boolean", "optional": true, "description": "True if loading was canceled." }, + { "name": "blockedReason", "$ref": "BlockedReason", "optional": true, "description": "The reason why loading was blocked, if any.", "experimental": true } ] }, { @@ -1438,10 +1590,10 @@ "parameters": [ { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, - { "name": "wallTime", "$ref": "Timestamp", "hidden": true, "description": "UTC Timestamp." }, + { "name": "wallTime", "$ref": "Timestamp", "experimental": true, "description": "UTC Timestamp." }, { "name": "request", "$ref": "WebSocketRequest", "description": "WebSocket request data." } ], - "hidden": true + "experimental": true }, { "name": "webSocketHandshakeResponseReceived", @@ -1451,16 +1603,17 @@ { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, { "name": "response", "$ref": "WebSocketResponse", "description": "WebSocket response data." } ], - "hidden": true + "experimental": true }, { "name": "webSocketCreated", "description": "Fired upon WebSocket creation.", "parameters": [ { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, - { "name": "url", "type": "string", "description": "WebSocket request URL." } + { "name": "url", "type": "string", "description": "WebSocket request URL." }, + { "name": "initiator", "$ref": "Initiator", "optional": true, "description": "Request initiator." } ], - "hidden": true + "experimental": true }, { "name": "webSocketClosed", @@ -1469,7 +1622,7 @@ { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." }, { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." } ], - "hidden": true + "experimental": true }, { "name": "webSocketFrameReceived", @@ -1479,7 +1632,7 @@ { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, { "name": "response", "$ref": "WebSocketFrame", "description": "WebSocket response data." } ], - "hidden": true + "experimental": true }, { "name": "webSocketFrameError", @@ -1489,7 +1642,7 @@ { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, { "name": "errorMessage", "type": "string", "description": "WebSocket frame error message." } ], - "hidden": true + "experimental": true }, { "name": "webSocketFrameSent", @@ -1499,7 +1652,7 @@ { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }, { "name": "response", "$ref": "WebSocketFrame", "description": "WebSocket response data." } ], - "hidden": true + "experimental": true }, { "name": "eventSourceMessageReceived", @@ -1511,25 +1664,25 @@ { "name": "eventId", "type": "string", "description": "Message identifier." }, { "name": "data", "type": "string", "description": "Message content." } ], - "hidden": true + "experimental": true } ] }, { "domain": "Database", - "hidden": true, + "experimental": true, "types": [ { "id": "DatabaseId", "type": "string", "description": "Unique identifier of Database object.", - "hidden": true + "experimental": true }, { "id": "Database", "type": "object", "description": "Database object.", - "hidden": true, + "experimental": true, "properties": [ { "name": "id", "$ref": "DatabaseId", "description": "Database ID." }, { "name": "domain", "type": "string", "description": "Database domain." }, @@ -1567,7 +1720,6 @@ }, { "name": "executeSQL", - "async": true, "parameters": [ { "name": "databaseId", "$ref": "DatabaseId" }, { "name": "query", "type": "string" } @@ -1590,7 +1742,8 @@ }, { "domain": "IndexedDB", - "hidden": true, + "dependencies": ["Runtime"], + "experimental": true, "types": [ { "id": "DatabaseWithObjectStores", @@ -1598,8 +1751,7 @@ "description": "Database with an array of object stores.", "properties": [ { "name": "name", "type": "string", "description": "Database name." }, - { "name": "version", "type": "string", "description": "Deprecated string database version." }, - { "name": "intVersion", "type": "integer", "description": "Integer database version." }, + { "name": "version", "type": "integer", "description": "Database version." }, { "name": "objectStores", "type": "array", "items": { "$ref": "ObjectStore" }, "description": "Object stores in this database." } ] }, @@ -1653,9 +1805,9 @@ "type": "object", "description": "Data entry.", "properties": [ - { "name": "key", "type": "string", "description": "JSON-stringified key object." }, - { "name": "primaryKey", "type": "string", "description": "JSON-stringified primary key object." }, - { "name": "value", "type": "string", "description": "JSON-stringified value object." } + { "name": "key", "$ref": "Runtime.RemoteObject", "description": "Key object." }, + { "name": "primaryKey", "$ref": "Runtime.RemoteObject", "description": "Primary key object." }, + { "name": "value", "$ref": "Runtime.RemoteObject", "description": "Value object." } ] }, { @@ -1680,7 +1832,6 @@ }, { "name": "requestDatabaseNames", - "async": true, "parameters": [ { "name": "securityOrigin", "type": "string", "description": "Security origin." } ], @@ -1691,7 +1842,6 @@ }, { "name": "requestDatabase", - "async": true, "parameters": [ { "name": "securityOrigin", "type": "string", "description": "Security origin." }, { "name": "databaseName", "type": "string", "description": "Database name." } @@ -1703,7 +1853,6 @@ }, { "name": "requestData", - "async": true, "parameters": [ { "name": "securityOrigin", "type": "string", "description": "Security origin." }, { "name": "databaseName", "type": "string", "description": "Database name." }, @@ -1721,7 +1870,6 @@ }, { "name": "clearObjectStore", - "async": true, "parameters": [ { "name": "securityOrigin", "type": "string", "description": "Security origin." }, { "name": "databaseName", "type": "string", "description": "Database name." }, @@ -1730,12 +1878,22 @@ "returns": [ ], "description": "Clears all entries from an object store." + }, + { + "name": "deleteDatabase", + "parameters": [ + { "name": "securityOrigin", "type": "string", "description": "Security origin." }, + { "name": "databaseName", "type": "string", "description": "Database name." } + ], + "returns": [ + ], + "description": "Deletes a database." } ] }, { "domain": "CacheStorage", - "hidden": true, + "experimental": true, "types": [ { "id": "CacheId", @@ -1747,8 +1905,8 @@ "type": "object", "description": "Data entry.", "properties": [ - { "name": "request", "type": "string", "description": "JSON-stringified request object." }, - { "name": "response", "type": "string", "description": "JSON-stringified response object." } + { "name": "request", "type": "string", "description": "Request url spec." }, + { "name": "response", "type": "string", "description": "Response stataus text." } ] }, { @@ -1765,7 +1923,6 @@ "commands": [ { "name": "requestCacheNames", - "async": true, "parameters": [ { "name": "securityOrigin", "type": "string", "description": "Security origin." } ], @@ -1776,7 +1933,6 @@ }, { "name": "requestEntries", - "async": true, "parameters": [ { "name": "cacheId", "$ref": "CacheId", "description": "ID of cache to get entries from." }, { "name": "skipCount", "type": "integer", "description": "Number of records to skip." }, @@ -1790,24 +1946,31 @@ }, { "name": "deleteCache", - "async": true, "parameters": [ { "name": "cacheId", "$ref": "CacheId", "description": "Id of cache for deletion." } ], "description": "Deletes a cache." + }, + { + "name": "deleteEntry", + "parameters": [ + { "name": "cacheId", "$ref": "CacheId", "description": "Id of cache where the entry will be deleted." }, + { "name": "request", "type": "string", "description": "URL spec of the request." } + ], + "description": "Deletes a cache entry." } ] }, { "domain": "DOMStorage", - "hidden": true, + "experimental": true, "description": "Query and modify DOM storage.", "types": [ { "id": "StorageId", "type": "object", "description": "DOM Storage identifier.", - "hidden": true, + "experimental": true, "properties": [ { "name": "securityOrigin", "type": "string", "description": "Security origin for the storage." }, { "name": "isLocalStorage", "type": "boolean", "description": "Whether the storage is local storage (not session storage)." } @@ -1817,7 +1980,7 @@ "id": "Item", "type": "array", "description": "DOM Storage item.", - "hidden": true, + "experimental": true, "items": { "type": "string" } } ], @@ -1830,6 +1993,12 @@ "name": "disable", "description": "Disables storage tracking, prevents storage events from being sent to the client." }, + { + "name": "clear", + "parameters": [ + { "name": "storageId", "$ref": "StorageId" } + ] + }, { "name": "getDOMStorageItems", "parameters": [ @@ -1890,7 +2059,7 @@ }, { "domain": "ApplicationCache", - "hidden": true, + "experimental": true, "types": [ { "id": "ApplicationCacheResource", @@ -1976,160 +2145,58 @@ ] }, { - "domain": "FileSystem", - "hidden": true, + "domain": "DOM", + "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an id. This id can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.

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

", + "dependencies": ["Runtime"], "types": [ { - "id": "Entry", - "type": "object", - "properties": [ - { "name": "url", "type": "string", "description": "filesystem: URL for the entry." }, - { "name": "name", "type": "string", "description": "The name of the file or directory." }, - { "name": "isDirectory", "type": "boolean", "description": "True if the entry is a directory." }, - { "name": "mimeType", "type": "string", "optional": true, "description": "MIME type of the entry, available for a file only." }, - { "name": "resourceType", "$ref": "Page.ResourceType", "optional": true, "description": "ResourceType of the entry, available for a file only." }, - { "name": "isTextFile", "type": "boolean", "optional": true, "description": "True if the entry is a text file." } - ], - "description": "Represents a browser side file or directory." + "id": "NodeId", + "type": "integer", + "description": "Unique DOM node identifier." + }, + { + "id": "BackendNodeId", + "type": "integer", + "description": "Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.", + "experimental": true }, { - "id": "Metadata", + "id": "BackendNode", "type": "object", "properties": [ - { "name": "modificationTime", "type": "number", "description": "Modification time." }, - { "name": "size", "type": "number", "description": "File size. This field is always zero for directories." } + { "name": "nodeType", "type": "integer", "description": "Node's nodeType." }, + { "name": "nodeName", "type": "string", "description": "Node's nodeName." }, + { "name": "backendNodeId", "$ref": "BackendNodeId" } ], - "description": "Represents metadata of a file or entry." - } - ], - "commands": [ - { - "name": "enable", - "description": "Enables events from backend." - }, - { - "name": "disable", - "description": "Disables events from backend." + "experimental": true, + "description": "Backend node with a friendly name." }, { - "name": "requestFileSystemRoot", - "async": true, - "parameters": [ - { "name": "origin", "type": "string", "description": "Security origin of requesting FileSystem. One of frames in current page needs to have this security origin." }, - { "name": "type", "type": "string", "enum": ["temporary", "persistent"], "description": "FileSystem type of requesting FileSystem." } - ], - "returns": [ - { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." }, - { "name": "root", "$ref": "Entry", "optional": true, "description": "Contains root of the requested FileSystem if the command completed successfully." } + "id": "PseudoType", + "type": "string", + "enum": [ + "first-line", + "first-letter", + "before", + "after", + "backdrop", + "selection", + "first-line-inherited", + "scrollbar", + "scrollbar-thumb", + "scrollbar-button", + "scrollbar-track", + "scrollbar-track-piece", + "scrollbar-corner", + "resizer", + "input-list-button" ], - "description": "Returns root directory of the FileSystem, if exists." - }, - { - "name": "requestDirectoryContent", - "async": true, - "parameters": [ - { "name": "url", "type": "string", "description": "URL of the directory that the frontend is requesting to read from." } - ], - "returns": [ - { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." }, - { "name": "entries", "type": "array", "items": { "$ref": "Entry" }, "optional": true, "description": "Contains all entries on directory if the command completed successfully." } - ], - "description": "Returns content of the directory." - }, - { - "name": "requestMetadata", - "async": true, - "parameters": [ - { "name": "url", "type": "string", "description": "URL of the entry that the frontend is requesting to get metadata from." } - ], - "returns": [ - { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." }, - { "name": "metadata", "$ref": "Metadata", "optional": true, "description": "Contains metadata of the entry if the command completed successfully." } - ], - "description": "Returns metadata of the entry." - }, - { - "name": "requestFileContent", - "async": true, - "parameters": [ - { "name": "url", "type": "string", "description": "URL of the file that the frontend is requesting to read from." }, - { "name": "readAsText", "type": "boolean", "description": "True if the content should be read as text, otherwise the result will be returned as base64 encoded text." }, - { "name": "start", "type": "integer", "optional": true, "description": "Specifies the start of range to read." }, - { "name": "end", "type": "integer", "optional": true, "description": "Specifies the end of range to read exclusively." }, - { "name": "charset", "type": "string", "optional": true, "description": "Overrides charset of the content when content is served as text." } - ], - "returns": [ - { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise, errorCode is set to FileError::ErrorCode value." }, - { "name": "content", "type": "string", "optional": true, "description": "Content of the file." }, - { "name": "charset", "type": "string", "optional": true, "description": "Charset of the content if it is served as text." } - ], - "description": "Returns content of the file. Result should be sliced into [start, end)." - }, - { - "name": "deleteEntry", - "async": true, - "parameters": [ - { "name": "url", "type": "string", "description": "URL of the entry to delete." } - ], - "returns": [ - { "name": "errorCode", "type": "integer", "description": "0, if no error. Otherwise errorCode is set to FileError::ErrorCode value." } - ], - "description": "Deletes specified entry. If the entry is a directory, the agent deletes children recursively." - } - ] - }, - { - "domain": "DOM", - "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object that has an id. This id can be used to get additional information on the Node, resolve it into the JavaScript object wrapper, etc. It is important that client receives DOM events only for the nodes that are known to the client. Backend keeps track of the nodes that were sent to the client and never sends the same node twice. It is client's responsibility to collect information about the nodes that were sent to the client.

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

", - "types": [ - { - "id": "NodeId", - "type": "integer", - "description": "Unique DOM node identifier." - }, - { - "id": "BackendNodeId", - "type": "integer", - "description": "Unique DOM node identifier used to reference a node that may not have been pushed to the front-end.", - "hidden": true - }, - { - "id": "BackendNode", - "type": "object", - "properties": [ - { "name": "nodeType", "type": "integer", "description": "Node's nodeType." }, - { "name": "nodeName", "type": "string", "description": "Node's nodeName." }, - { "name": "backendNodeId", "$ref": "BackendNodeId" } - ], - "hidden": true, - "description": "Backend node with a friendly name." - }, - { - "id": "PseudoType", - "type": "string", - "enum": [ - "first-line", - "first-letter", - "before", - "after", - "backdrop", - "selection", - "first-line-inherited", - "scrollbar", - "scrollbar-thumb", - "scrollbar-button", - "scrollbar-track", - "scrollbar-track-piece", - "scrollbar-corner", - "resizer", - "input-list-button" - ], - "description": "Pseudo element type." + "description": "Pseudo element type." }, { "id": "ShadowRootType", "type": "string", - "enum": ["user-agent", "author"], + "enum": ["user-agent", "open", "closed"], "description": "Shadow root type." }, { @@ -2137,6 +2204,8 @@ "type": "object", "properties": [ { "name": "nodeId", "$ref": "NodeId", "description": "Node identifier that is passed into the rest of the DOM messages as the nodeId. Backend will only push node with given id once. It is aware of all requested nodes and will only fire DOM events for nodes known to the client." }, + { "name": "parentId", "$ref": "NodeId", "optional": true, "description": "The id of the parent node if any.", "experimental": true }, + { "name": "backendNodeId", "$ref": "BackendNodeId", "description": "The BackendNodeId for this node.", "experimental": true }, { "name": "nodeType", "type": "integer", "description": "Node's nodeType." }, { "name": "nodeName", "type": "string", "description": "Node's nodeName." }, { "name": "localName", "type": "string", "description": "Node's localName." }, @@ -2145,7 +2214,7 @@ { "name": "children", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Child nodes of this node when requested with children." }, { "name": "attributes", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Attributes of the Element node in the form of flat array [name1, value1, name2, value2]." }, { "name": "documentURL", "type": "string", "optional": true, "description": "Document URL that Document or FrameOwner node points to." }, - { "name": "baseURL", "type": "string", "optional": true, "description": "Base URL that Document or FrameOwner node uses for URL completion.", "hidden": true }, + { "name": "baseURL", "type": "string", "optional": true, "description": "Base URL that Document or FrameOwner node uses for URL completion.", "experimental": true }, { "name": "publicId", "type": "string", "optional": true, "description": "DocumentType's publicId." }, { "name": "systemId", "type": "string", "optional": true, "description": "DocumentType's systemId." }, { "name": "internalSubset", "type": "string", "optional": true, "description": "DocumentType's internalSubset." }, @@ -2154,27 +2223,14 @@ { "name": "value", "type": "string", "optional": true, "description": "Attr's value." }, { "name": "pseudoType", "$ref": "PseudoType", "optional": true, "description": "Pseudo element type for this node." }, { "name": "shadowRootType", "$ref": "ShadowRootType", "optional": true, "description": "Shadow root type." }, - { "name": "frameId", "$ref": "Page.FrameId", "optional": true, "description": "Frame ID for frame owner elements.", "hidden": true }, + { "name": "frameId", "$ref": "Page.FrameId", "optional": true, "description": "Frame ID for frame owner elements.", "experimental": true }, { "name": "contentDocument", "$ref": "Node", "optional": true, "description": "Content document for frame owner elements." }, - { "name": "shadowRoots", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Shadow root list for given element host.", "hidden": true }, - { "name": "templateContent", "$ref": "Node", "optional": true, "description": "Content document fragment for template elements.", "hidden": true }, - { "name": "pseudoElements", "type": "array", "items": { "$ref": "Node" }, "optional": true, "description": "Pseudo elements associated with this node.", "hidden": true }, + { "name": "shadowRoots", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Shadow root list for given element host.", "experimental": true }, + { "name": "templateContent", "$ref": "Node", "optional": true, "description": "Content document fragment for template elements.", "experimental": true }, + { "name": "pseudoElements", "type": "array", "items": { "$ref": "Node" }, "optional": true, "description": "Pseudo elements associated with this node.", "experimental": true }, { "name": "importedDocument", "$ref": "Node", "optional": true, "description": "Import document for the HTMLImport links." }, - { "name": "distributedNodes", "type": "array", "items": { "$ref": "BackendNode" }, "optional": true, "description": "Distributed nodes for given insertion point.", "hidden": true } - ], - "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type." - }, - { - "id": "EventListener", - "type": "object", - "hidden": true, - "properties": [ - { "name": "type", "type": "string", "description": "EventListener's type." }, - { "name": "useCapture", "type": "boolean", "description": "EventListener's useCapture." }, - { "name": "isAttribute", "type": "boolean", "description": "EventListener's isAttribute." }, - { "name": "nodeId", "$ref": "NodeId", "description": "Target DOMNode id." }, - { "name": "location", "$ref": "Debugger.Location", "description": "Handler code location." }, - { "name": "handler", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Event handler function value." } + { "name": "distributedNodes", "type": "array", "items": { "$ref": "BackendNode" }, "optional": true, "description": "Distributed nodes for given insertion point.", "experimental": true }, + { "name": "isSVG", "type": "boolean", "optional": true, "description": "Whether the node is SVG.", "experimental": true } ], "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type." }, @@ -2196,12 +2252,12 @@ "minItems": 8, "maxItems": 8, "description": "An array of quad vertices, x immediately followed by y for each point, points clock-wise.", - "hidden": true + "experimental": true }, { "id": "BoxModel", "type": "object", - "hidden": true, + "experimental": true, "properties": [ { "name": "content", "$ref": "Quad", "description": "Content box" }, { "name": "padding", "$ref": "Quad", "description": "Padding box" }, @@ -2216,7 +2272,7 @@ { "id": "ShapeOutsideInfo", "type": "object", - "hidden": true, + "experimental": true, "properties": [ { "name": "bounds", "$ref": "Quad", "description": "Shape bounds" }, { "name": "shape", "type": "array", "items": { "type": "any"}, "description": "Shape coordinate details" }, @@ -2227,7 +2283,7 @@ { "id": "Rect", "type": "object", - "hidden": true, + "experimental": true, "properties": [ { "name": "x", "type": "number", "description": "X coordinate" }, { "name": "y", "type": "number", "description": "Y coordinate" }, @@ -2235,23 +2291,6 @@ { "name": "height", "type": "number", "description": "Rectangle height" } ], "description": "Rectangle." - }, - { - "id": "HighlightConfig", - "type": "object", - "properties": [ - { "name": "showInfo", "type": "boolean", "optional": true, "description": "Whether the node info tooltip should be shown (default: false)." }, - { "name": "showRulers", "type": "boolean", "optional": true, "description": "Whether the rulers should be shown (default: false)." }, - { "name": "showExtensionLines", "type": "boolean", "optional": true, "description": "Whether the extension lines from node to the rulers should be shown (default: false)." }, - { "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." }, - { "name": "paddingColor", "$ref": "RGBA", "optional": true, "description": "The padding highlight fill color (default: transparent)." }, - { "name": "borderColor", "$ref": "RGBA", "optional": true, "description": "The border highlight fill color (default: transparent)." }, - { "name": "marginColor", "$ref": "RGBA", "optional": true, "description": "The margin highlight fill color (default: transparent)." }, - { "name": "eventTargetColor", "$ref": "RGBA", "optional": true, "hidden": true, "description": "The event target element highlight fill color (default: transparent)." }, - { "name": "shapeColor", "$ref": "RGBA", "optional": true, "hidden": true, "description": "The shape outside fill color (default: transparent)." }, - { "name": "shapeMarginColor", "$ref": "RGBA", "optional": true, "hidden": true, "description": "The shape margin fill color (default: transparent)." } - ], - "description": "Configuration data for the highlighting of page elements." } ], "commands": [ @@ -2265,16 +2304,43 @@ }, { "name": "getDocument", + "parameters": [ + { "name": "depth", "type": "integer", "optional": true, "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", "experimental": true }, + { "name": "pierce", "type": "boolean", "optional": true, "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).", "experimental": true } + ], "returns": [ { "name": "root", "$ref": "Node", "description": "Resulting node." } ], - "description": "Returns the root DOM node to the caller." + "description": "Returns the root DOM node (and optionally the subtree) to the caller." + }, + { + "name": "getFlattenedDocument", + "parameters": [ + { "name": "depth", "type": "integer", "optional": true, "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", "experimental": true }, + { "name": "pierce", "type": "boolean", "optional": true, "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).", "experimental": true } + ], + "returns": [ + { "name": "nodes", "type": "array", "items": { "$ref": "Node" }, "description": "Resulting node." } + ], + "description": "Returns the root DOM node (and optionally the subtree) to the caller." + }, + { + "name": "collectClassNamesFromSubtree", + "parameters": [ + { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to collect class names." } + ], + "returns": [ + {"name": "classNames", "type": "array", "items": { "type": "string" }, "description": "Class name list." } + ], + "description": "Collects class names for the node with given id and all of it's child nodes.", + "experimental": true }, { "name": "requestChildNodes", "parameters": [ { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get children for." }, - { "name": "depth", "type": "integer", "optional": true, "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", "hidden": true } + { "name": "depth", "type": "integer", "optional": true, "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", "experimental": true }, + { "name": "pierce", "type": "boolean", "optional": true, "description": "Whether or not iframes and shadow roots should be traversed when returning the sub-tree (default is false).", "experimental": true } ], "description": "Requests that children of the node with given id are returned to the caller in form of setChildNodes events where not only immediate children are retrieved, but all children down to the specified depth." }, @@ -2352,18 +2418,6 @@ ], "description": "Removes attribute with given name from an element with given id." }, - { - "name": "getEventListenersForNode", - "parameters": [ - { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get listeners for." }, - { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name for handler value. Handler value is not returned without this parameter specified." } - ], - "returns": [ - { "name": "listeners", "type": "array", "items": { "$ref": "EventListener" }, "description": "Array of relevant listeners." } - ], - "description": "Returns event listeners relevant to the node.", - "hidden": true - }, { "name": "getOuterHTML", "parameters": [ @@ -2386,14 +2440,14 @@ "name": "performSearch", "parameters": [ { "name": "query", "type": "string", "description": "Plain text or query selector or XPath search query." }, - { "name": "includeUserAgentShadowDOM", "type": "boolean", "optional": true, "description": "True to search in user agent shadow DOM.", "hidden": true } + { "name": "includeUserAgentShadowDOM", "type": "boolean", "optional": true, "description": "True to search in user agent shadow DOM.", "experimental": true } ], "returns": [ { "name": "searchId", "type": "string", "description": "Unique search session identifier." }, { "name": "resultCount", "type": "integer", "description": "Number of search results." } ], "description": "Searches for a given string in the DOM tree. Use getSearchResults to access search results or cancelSearch to end this search session.", - "hidden": true + "experimental": true }, { "name": "getSearchResults", @@ -2406,7 +2460,7 @@ { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the search result nodes." } ], "description": "Returns search results from given fromIndex to given toIndex from the sarch with the given identifier.", - "hidden": true + "experimental": true }, { "name": "discardSearchResults", @@ -2414,7 +2468,7 @@ { "name": "searchId", "type": "string", "description": "Unique search session identifier." } ], "description": "Discards search results from the session with the given id. getSearchResults should no longer be called for that search.", - "hidden": true + "experimental": true }, { "name": "requestNode", @@ -2426,61 +2480,20 @@ ], "description": "Requests that the node is sent to the caller given the JavaScript node object reference. All nodes that form the path from the node to the root are also sent to the client as a series of setChildNodes notifications." }, - { - "name": "setInspectModeEnabled", - "hidden": true, - "parameters": [ - { "name": "enabled", "type": "boolean", "description": "True to enable inspection mode, false to disable it." }, - { "name": "inspectUAShadowDOM", "type": "boolean", "optional": true, "description": "True to enable inspection mode for user agent shadow DOM." }, - { "name": "highlightConfig", "$ref": "HighlightConfig", "optional": true, "description": "A descriptor for the highlight appearance of hovered-over nodes. May be omitted if enabled == false." } - ], - "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection." - }, { "name": "highlightRect", - "parameters": [ - { "name": "x", "type": "integer", "description": "X coordinate" }, - { "name": "y", "type": "integer", "description": "Y coordinate" }, - { "name": "width", "type": "integer", "description": "Rectangle width" }, - { "name": "height", "type": "integer", "description": "Rectangle height" }, - { "name": "color", "$ref": "RGBA", "optional": true, "description": "The highlight fill color (default: transparent)." }, - { "name": "outlineColor", "$ref": "RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." } - ], - "description": "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport." - }, - { - "name": "highlightQuad", - "parameters": [ - { "name": "quad", "$ref": "Quad", "description": "Quad to highlight" }, - { "name": "color", "$ref": "RGBA", "optional": true, "description": "The highlight fill color (default: transparent)." }, - { "name": "outlineColor", "$ref": "RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." } - ], - "description": "Highlights given quad. Coordinates are absolute with respect to the main frame viewport.", - "hidden": true + "description": "Highlights given rectangle.", + "redirect": "Overlay" }, { "name": "highlightNode", - "parameters": [ - { "name": "highlightConfig", "$ref": "HighlightConfig", "description": "A descriptor for the highlight appearance." }, - { "name": "nodeId", "$ref": "NodeId", "optional": true, "description": "Identifier of the node to highlight." }, - { "name": "backendNodeId", "$ref": "BackendNodeId", "optional": true, "description": "Identifier of the backend node to highlight." }, - { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "optional": true, "description": "JavaScript object id of the node to be highlighted.", "hidden": true } - ], - "description": "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or objectId must be specified." + "description": "Highlights DOM node.", + "redirect": "Overlay" }, { "name": "hideHighlight", - "description": "Hides DOM node highlight." - }, - { - "name": "highlightFrame", - "parameters": [ - { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame to highlight." }, - { "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." }, - { "name": "contentOutlineColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight outline color (default: transparent)." } - ], - "description": "Highlights owner element of the frame with given id.", - "hidden": true + "description": "Hides any highlight.", + "redirect": "Overlay" }, { "name": "pushNodeByPathToFrontend", @@ -2491,7 +2504,7 @@ { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node for given path." } ], "description": "Requests that the node is sent to the caller given its path. // FIXME, use XPath", - "hidden": true + "experimental": true }, { "name": "pushNodesByBackendIdsToFrontend", @@ -2502,7 +2515,7 @@ { "name": "nodeIds", "type": "array", "items": {"$ref": "NodeId"}, "description": "The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds." } ], "description": "Requests that a batch of nodes is sent to the caller given their backend node ids.", - "hidden": true + "experimental": true }, { "name": "setInspectedNode", @@ -2510,7 +2523,7 @@ { "name": "nodeId", "$ref": "NodeId", "description": "DOM node id to be accessible by means of $x command line API." } ], "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).", - "hidden": true + "experimental": true }, { "name": "resolveNode", @@ -2544,7 +2557,7 @@ { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node clone." } ], "description": "Creates a deep copy of the specified node and places it into the target container before the given anchor.", - "hidden": true + "experimental": true }, { "name": "moveTo", @@ -2561,17 +2574,17 @@ { "name": "undo", "description": "Undoes the last performed action.", - "hidden": true + "experimental": true }, { "name": "redo", "description": "Re-does the last undone action.", - "hidden": true + "experimental": true }, { "name": "markUndoableState", "description": "Marks last undoable state.", - "hidden": true + "experimental": true }, { "name": "focus", @@ -2579,7 +2592,7 @@ { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to focus." } ], "description": "Focuses the given element.", - "hidden": true + "experimental": true }, { "name": "setFileInputFiles", @@ -2588,8 +2601,7 @@ { "name": "files", "type": "array", "items": { "type": "string" }, "description": "Array of file paths to set." } ], "description": "Sets files for the given file input element.", - "hidden": true, - "handlers": ["browser", "renderer"] + "experimental": true }, { "name": "getBoxModel", @@ -2600,19 +2612,20 @@ { "name": "model", "$ref": "BoxModel", "description": "Box model for the node." } ], "description": "Returns boxes for the currently selected nodes.", - "hidden": true + "experimental": true }, { "name": "getNodeForLocation", "parameters": [ { "name": "x", "type": "integer", "description": "X coordinate." }, - { "name": "y", "type": "integer", "description": "Y coordinate." } + { "name": "y", "type": "integer", "description": "Y coordinate." }, + { "name": "includeUserAgentShadowDOM", "type": "boolean", "optional": true, "description": "False to skip to the nearest non-UA shadow root ancestor (default: false)." } ], "returns": [ { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node at given coordinates." } ], "description": "Returns node id at given location.", - "hidden": true + "experimental": true }, { "name": "getRelayoutBoundary", @@ -2623,18 +2636,7 @@ { "name": "nodeId", "$ref": "NodeId", "description": "Relayout boundary node id for the given node." } ], "description": "Returns the id of the nearest ancestor that is a relayout boundary.", - "hidden": true - }, - { - "name": "getHighlightObjectForTest", - "parameters": [ - { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to get highlight object for." } - ], - "returns": [ - { "name": "highlight", "type": "object", "description": "Highlight data for the node." } - ], - "description": "For testing.", - "hidden": true + "experimental": true } ], "events": [ @@ -2642,14 +2644,6 @@ "name": "documentUpdated", "description": "Fired when Document has been totally updated. Node ids are no longer valid." }, - { - "name": "inspectNodeRequested", - "parameters": [ - { "name": "backendNodeId", "$ref": "BackendNodeId", "description": "Id of the node to inspect." } - ], - "description": "Fired when the node should be inspected. This happens after call to setInspectModeEnabled.", - "hidden" : true - }, { "name": "setChildNodes", "parameters": [ @@ -2681,7 +2675,7 @@ { "name": "nodeIds", "type": "array", "items": { "$ref": "NodeId" }, "description": "Ids of the nodes for which the inline styles have been invalidated." } ], "description": "Fired when Element's inline style is modified via a CSS property modification.", - "hidden": true + "experimental": true }, { "name": "characterDataModified", @@ -2723,7 +2717,7 @@ { "name": "root", "$ref": "Node", "description": "Shadow root." } ], "description": "Called when shadow root is pushed into the element.", - "hidden": true + "experimental": true }, { "name": "shadowRootPopped", @@ -2732,7 +2726,7 @@ { "name": "rootId", "$ref": "NodeId", "description": "Shadow root id." } ], "description": "Called when shadow root is popped from the element.", - "hidden": true + "experimental": true }, { "name": "pseudoElementAdded", @@ -2741,7 +2735,7 @@ { "name": "pseudoElement", "$ref": "Node", "description": "The added pseudo element." } ], "description": "Called when a pseudo element is added to an element.", - "hidden": true + "experimental": true }, { "name": "pseudoElementRemoved", @@ -2750,7 +2744,7 @@ { "name": "pseudoElementId", "$ref": "NodeId", "description": "The removed pseudo element id." } ], "description": "Called when a pseudo element is removed from an element.", - "hidden": true + "experimental": true }, { "name": "distributedNodesUpdated", @@ -2759,14 +2753,15 @@ { "name": "distributedNodes", "type": "array", "items": { "$ref": "BackendNode" }, "description": "Distributed nodes for given insertion point." } ], "description": "Called when distrubution is changed.", - "hidden": true + "experimental": true } ] }, { "domain": "CSS", - "hidden": true, + "experimental": true, "description": "This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) have an associated id used in subsequent operations on the related object. Each object type has a specific id structure, and those are not interchangeable between objects of different kinds. CSS objects can be loaded using the get*ForNode() calls (which accept a DOM node id). A client can also discover all the existing stylesheets with the getAllStyleSheets() method (or keeping track of the styleSheetAdded/styleSheetRemoved events) and subsequently load the required stylesheet contents using the getStyleSheet[Text]() methods.", + "dependencies": ["DOM"], "types": [ { "id": "StyleSheetId", @@ -2779,10 +2774,10 @@ "description": "Stylesheet type: \"injected\" for stylesheets injected via extension, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding the \"via inspector\" rules), \"regular\" for regular stylesheets." }, { - "id": "PseudoIdMatches", + "id": "PseudoElementMatches", "type": "object", "properties": [ - { "name": "pseudoId", "type": "integer", "description": "Pseudo style identifier (see enum PseudoId in ComputedStyleConstants.h)."}, + { "name": "pseudoType", "$ref": "DOM.PseudoType", "description": "Pseudo element type."}, { "name": "matches", "type": "array", "items": { "$ref": "RuleMatch" }, "description": "Matches of CSS rules applicable to the pseudo style."} ], "description": "CSS rule collection for a single pseudo style." @@ -2806,11 +2801,11 @@ "description": "Match data for a CSS rule." }, { - "id": "Selector", + "id": "Value", "type": "object", "properties": [ - { "name": "value", "type": "string", "description": "Selector text." }, - { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Selector range in the underlying resource (if available)." } + { "name": "text", "type": "string", "description": "Value text." }, + { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Value range in the underlying resource (if available)." } ], "description": "Data for a simple selector (these are delimited by commas in a selector list)." }, @@ -2818,7 +2813,7 @@ "id": "SelectorList", "type": "object", "properties": [ - { "name": "selectors", "type": "array", "items": { "$ref": "Selector" }, "description": "Selectors in the list." }, + { "name": "selectors", "type": "array", "items": { "$ref": "Value" }, "description": "Selectors in the list." }, { "name": "text", "type": "string", "description": "Rule selector text." } ], "description": "Selector list data." @@ -2838,7 +2833,8 @@ { "name": "hasSourceURL", "type": "boolean", "optional": true, "description": "Whether the sourceURL field value comes from the sourceURL comment." }, { "name": "isInline", "type": "boolean", "description": "Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags." }, { "name": "startLine", "type": "number", "description": "Line offset of the stylesheet within the resource (zero based)." }, - { "name": "startColumn", "type": "number", "description": "Column offset of the stylesheet within the resource (zero based)." } + { "name": "startColumn", "type": "number", "description": "Column offset of the stylesheet within the resource (zero based)." }, + { "name": "length", "type": "number", "description": "Size of the content (in characters).", "experimental": true } ], "description": "CSS stylesheet metainformation." }, @@ -2854,6 +2850,18 @@ ], "description": "CSS rule representation." }, + { + "id": "RuleUsage", + "type": "object", + "properties": [ + { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from." }, + { "name": "startOffset", "type": "number", "description": "Offset of the start of the rule (including selector) from the beginning of the stylesheet." }, + { "name": "endOffset", "type": "number", "description": "Offset of the end of the rule body from the beginning of the stylesheet." }, + { "name": "used", "type": "boolean", "description": "Indicates whether the rule was actually used by some element in the page." } + ], + "description": "CSS coverage information.", + "experimental": true + }, { "id": "SourceRange", "type": "object", @@ -2870,7 +2878,8 @@ "type": "object", "properties": [ { "name": "name", "type": "string", "description": "Shorthand name." }, - { "name": "value", "type": "string", "description": "Shorthand value." } + { "name": "value", "type": "string", "description": "Shorthand value." }, + { "name": "important", "type": "boolean", "optional": true, "description": "Whether the property has \"!important\" annotation (implies false if absent)." } ] }, { @@ -2916,8 +2925,8 @@ { "name": "source", "type": "string", "enum": ["mediaRule", "importRule", "linkedSheet", "inlineSheet"], "description": "Source of the media query: \"mediaRule\" if specified by a @media rule, \"importRule\" if specified by an @import rule, \"linkedSheet\" if specified by a \"media\" attribute in a linked stylesheet's LINK tag, \"inlineSheet\" if specified by a \"media\" attribute in an inline stylesheet's STYLE tag." }, { "name": "sourceURL", "type": "string", "optional": true, "description": "URL of the document containing the media query description." }, { "name": "range", "$ref": "SourceRange", "optional": true, "description": "The associated rule (@media or @import) header range in the enclosing stylesheet (if available)." }, - { "name": "parentStyleSheetId", "$ref": "StyleSheetId", "optional": true, "description": "Identifier of the stylesheet containing this object (if exists)." }, - { "name": "mediaList", "type": "array", "items": { "$ref": "MediaQuery" }, "optional": true, "hidden": true, "description": "Array of media queries." } + { "name": "styleSheetId", "$ref": "StyleSheetId", "optional": true, "description": "Identifier of the stylesheet containing this object (if exists)." }, + { "name": "mediaList", "type": "array", "items": { "$ref": "MediaQuery" }, "optional": true, "experimental": true, "description": "Array of media queries." } ], "description": "CSS media rule descriptor." }, @@ -2929,7 +2938,7 @@ { "name": "active", "type": "boolean", "description": "Whether the media query condition is satisfied." } ], "description": "Media query descriptor.", - "hidden": true + "experimental": true }, { "id": "MediaQueryExpression", @@ -2942,23 +2951,86 @@ { "name": "computedLength", "type": "number", "optional": true, "description": "Computed length of media query expression (if applicable)."} ], "description": "Media query expression descriptor.", - "hidden": true + "experimental": true }, { "id": "PlatformFontUsage", "type": "object", "properties": [ { "name": "familyName", "type": "string", "description": "Font's family name reported by platform."}, + { "name": "isCustomFont", "type": "boolean", "description": "Indicates if the font was downloaded or resolved locally."}, { "name": "glyphCount", "type": "number", "description": "Amount of glyphs that were rendered with this font."} ], "description": "Information about amount of glyphs that were rendered with given font.", - "hidden": true + "experimental": true + }, + { + "id": "CSSKeyframesRule", + "type": "object", + "properties": [ + { "name": "animationName", "$ref": "Value", "description": "Animation name." }, + { "name": "keyframes", "type": "array", "items": { "$ref": "CSSKeyframeRule" }, "description": "List of keyframes." } + ], + "description": "CSS keyframes rule representation." + }, + { + "id": "CSSKeyframeRule", + "type": "object", + "properties": [ + { "name": "styleSheetId", "$ref": "StyleSheetId", "optional": true, "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from." }, + { "name": "origin", "$ref": "StyleSheetOrigin", "description": "Parent stylesheet's origin."}, + { "name": "keyText", "$ref": "Value", "description": "Associated key text." }, + { "name": "style", "$ref": "CSSStyle", "description": "Associated style declaration." } + ], + "description": "CSS keyframe rule representation." + }, + { + "id": "StyleDeclarationEdit", + "type": "object", + "properties": [ + { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The css style sheet identifier." }, + { "name": "range", "$ref": "SourceRange", "description": "The range of the style text in the enclosing stylesheet." }, + { "name": "text", "type": "string", "description": "New style text."} + ], + "description": "A descriptor of operation to mutate style declaration text." + }, + { + "id": "InlineTextBox", + "type": "object", + "properties": [ + { "name": "boundingBox", "$ref": "DOM.Rect", "description": "The absolute position bounding box." }, + { "name": "startCharacterIndex", "type": "integer", "description": "The starting index in characters, for this post layout textbox substring." }, + { "name": "numCharacters", "type": "integer", "description": "The number of characters in this post layout textbox substring." } + ], + "description": "Details of post layout rendered text positions. The exact layout should not be regarded as stable and may change between versions.", + "experimental": true + }, + { + "id": "LayoutTreeNode", + "type": "object", + "properties": [ + { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The id of the related DOM node matching one from DOM.GetDocument." }, + { "name": "boundingBox", "$ref": "DOM.Rect", "description": "The absolute position bounding box." }, + { "name": "layoutText", "type": "string", "optional": true, "description": "Contents of the LayoutText if any" }, + { "name": "inlineTextNodes", "type": "array", "optional": true, "items": { "$ref": "InlineTextBox" }, "description": "The post layout inline text nodes, if any." }, + { "name": "styleIndex", "type": "integer", "optional": true, "description": "Index into the computedStyles array returned by getLayoutTreeAndStyles." } + ], + "description": "Details of an element in the DOM tree with a LayoutObject.", + "experimental": true + }, + { + "id": "ComputedStyle", + "type": "object", + "properties": [ + { "name": "properties", "type": "array", "items": { "$ref": "CSSComputedStyleProperty" } } + ], + "description": "A subset of the full ComputedStyle as defined by the request whitelist.", + "experimental": true } ], "commands": [ { "name": "enable", - "async": true, "description": "Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received." }, { @@ -2968,14 +3040,15 @@ { "name": "getMatchedStylesForNode", "parameters": [ - { "name": "nodeId", "$ref": "DOM.NodeId" }, - { "name": "excludePseudo", "type": "boolean", "optional": true, "description": "Whether to exclude pseudo styles (default: false)." }, - { "name": "excludeInherited", "type": "boolean", "optional": true, "description": "Whether to exclude inherited styles (default: false)." } + { "name": "nodeId", "$ref": "DOM.NodeId" } ], "returns": [ + { "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "Inline style for the specified DOM node." }, + { "name": "attributesStyle", "$ref": "CSSStyle", "optional": true, "description": "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\")."}, { "name": "matchedCSSRules", "type": "array", "items": { "$ref": "RuleMatch" }, "optional": true, "description": "CSS rules matching this node, from all applicable stylesheets." }, - { "name": "pseudoElements", "type": "array", "items": { "$ref": "PseudoIdMatches" }, "optional": true, "description": "Pseudo style matches for this node." }, - { "name": "inherited", "type": "array", "items": { "$ref": "InheritedStyleEntry" }, "optional": true, "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root)." } + { "name": "pseudoElements", "type": "array", "items": { "$ref": "PseudoElementMatches" }, "optional": true, "description": "Pseudo style matches for this node." }, + { "name": "inherited", "type": "array", "items": { "$ref": "InheritedStyleEntry" }, "optional": true, "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root)." }, + { "name": "cssKeyframesRules", "type": "array", "items": { "$ref": "CSSKeyframesRule" }, "optional": true, "description": "A list of CSS keyframed animations matching this node." } ], "description": "Returns requested styles for a DOM node identified by nodeId." }, @@ -3006,11 +3079,10 @@ { "name": "nodeId", "$ref": "DOM.NodeId" } ], "returns": [ - { "name": "cssFamilyName", "type": "string", "description": "Font family name which is determined by computed style." }, { "name": "fonts", "type": "array", "items": { "$ref": "PlatformFontUsage" }, "description": "Usage statistics for every employed platform font." } ], "description": "Requests information about platform fonts which we used to render child TextNodes in the given node.", - "hidden": true + "experimental": true }, { "name": "getStyleSheetText", @@ -3023,24 +3095,26 @@ "description": "Returns the current textual content and the URL for a stylesheet." }, { - "name": "setStyleSheetText", + "name": "collectClassNames", "parameters": [ - { "name": "styleSheetId", "$ref": "StyleSheetId" }, - { "name": "text", "type": "string" } + { "name": "styleSheetId", "$ref": "StyleSheetId" } ], - "description": "Sets the new stylesheet text." + "returns": [ + {"name": "classNames", "type": "array", "items": { "type": "string" }, "description": "Class name list." } + ], + "description": "Returns all class names from specified stylesheet.", + "experimental": true }, { - "name": "setPropertyText", + "name": "setStyleSheetText", "parameters": [ { "name": "styleSheetId", "$ref": "StyleSheetId" }, - { "name": "range", "$ref": "SourceRange", "description": "Either a source range of the property to be edited or an empty range representing a position for the property insertion." }, { "name": "text", "type": "string" } ], "returns": [ - { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the property text modification." } + { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with script (if any)." } ], - "description": "Either replaces a property identified by styleSheetId and range with text or inserts a new property text at the position identified by an empty range." + "description": "Sets the new stylesheet text." }, { "name": "setRuleSelector", @@ -3050,10 +3124,32 @@ { "name": "selector", "type": "string" } ], "returns": [ - { "name": "rule", "$ref": "CSSRule", "description": "The resulting rule after the selector modification." } + { "name": "selectorList", "$ref": "SelectorList", "description": "The resulting selector list after modification." } ], "description": "Modifies the rule selector." }, + { + "name": "setKeyframeKey", + "parameters": [ + { "name": "styleSheetId", "$ref": "StyleSheetId" }, + { "name": "range", "$ref": "SourceRange" }, + { "name": "keyText", "type": "string" } + ], + "returns": [ + { "name": "keyText", "$ref": "Value", "description": "The resulting key text after modification." } + ], + "description": "Modifies the keyframe rule key text." + }, + { + "name": "setStyleTexts", + "parameters": [ + { "name": "edits", "type": "array", "items": { "$ref": "StyleDeclarationEdit" }} + ], + "returns": [ + { "name": "styles", "type": "array", "items": { "$ref": "CSSStyle" }, "description": "The resulting styles after modification." } + ], + "description": "Applies specified style edits one after another in the given order." + }, { "name": "setMediaText", "parameters": [ @@ -3102,7 +3198,60 @@ { "name": "medias", "type": "array", "items": { "$ref": "CSSMedia" } } ], "description": "Returns all media queries parsed by the rendering engine.", - "hidden": true + "experimental": true + }, + { + "name": "setEffectivePropertyValueForNode", + "parameters": [ + { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The element id for which to set property." }, + { "name": "propertyName", "type": "string"}, + { "name": "value", "type": "string"} + ], + "description": "Find a rule with the given active property for the given node and set the new value for this property", + "experimental": true + }, + { + "name": "getBackgroundColors", + "parameters": [ + { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Id of the node to get background colors for." } + ], + "returns": [ + { "name": "backgroundColors", "type": "array", "items": { "type": "string" }, "description": "The range of background colors behind this element, if it contains any visible text. If no visible text is present, this will be undefined. In the case of a flat background color, this will consist of simply that color. In the case of a gradient, this will consist of each of the color stops. For anything more complicated, this will be an empty array. Images will be ignored (as if the image had failed to load).", "optional": true } + ], + "experimental": true + }, + { + "name": "getLayoutTreeAndStyles", + "parameters": [ + { "name": "computedStyleWhitelist", "type": "array", "items": { "type": "string" }, "description": "Whitelist of computed styles to return." } + ], + "returns": [ + { "name": "layoutTreeNodes", "type": "array", "items": { "$ref": "LayoutTreeNode" } }, + { "name": "computedStyles", "type": "array", "items": { "$ref": "ComputedStyle" } } + ], + "description": "For the main document and any content documents, return the LayoutTreeNodes and a whitelisted subset of the computed style. It only returns pushed nodes, on way to pull all nodes is to call DOM.getDocument with a depth of -1.", + "experimental": true + }, + { + "name": "startRuleUsageTracking", + "description": "Enables the selector recording.", + "experimental": true + }, + { + "name": "takeCoverageDelta", + "description": "Obtain list of rules that became used since last call to this method (or since start of coverage instrumentation)", + "returns": [ + { "name": "coverage", "type": "array", "items": { "$ref": "RuleUsage" } } + ], + "experimental": true + }, + { + "name": "stopRuleUsageTracking", + "returns": [ + { "name": "ruleUsage", "type": "array", "items": { "$ref": "RuleUsage" } } + ], + "description": "The list of rules with an indication of whether these were used", + "experimental": true } ], "events": [ @@ -3110,6 +3259,10 @@ "name": "mediaQueryResultChanged", "description": "Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features." }, + { + "name": "fontsUpdated", + "description": "Fires whenever a web font gets loaded." + }, { "name": "styleSheetChanged", "parameters": [ @@ -3134,665 +3287,66 @@ ] }, { - "domain": "Timeline", - "description": "Timeline domain is deprecated. Please use Tracing instead.", + "domain": "IO", + "description": "Input/Output operations for streams produced by DevTools.", + "experimental": true, "types": [ { - "id": "TimelineEvent", - "type": "object", - "properties": [ - { "name": "type", "type": "string", "description": "Event type." }, - { "name": "data", "type": "object", "description": "Event data." }, - { "name": "startTime", "type": "number", "description": "Start time." }, - { "name": "endTime", "type": "number", "optional": true, "description": "End time." }, - { "name": "children", "type": "array", "optional": true, "items": { "$ref": "TimelineEvent" }, "description": "Nested records." }, - { "name": "thread", "type": "string", "optional": true, "hidden": true, "description": "If present, identifies the thread that produced the event." }, - { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "hidden": true, "description": "Stack trace." }, - { "name": "frameId", "type": "string", "optional": true, "hidden": true, "description": "Unique identifier of the frame within the page that the event relates to." } - ], - "description": "Timeline record contains information about the recorded activity." + "id": "StreamHandle", + "type": "string" } ], "commands": [ { - "name": "enable", - "description": "Deprecated." - }, - { - "name": "disable", - "description": "Deprecated." - }, - { - "name": "start", + "name": "read", + "description": "Read a chunk of the stream", "parameters": [ - { "name": "maxCallStackDepth", "optional": true, "type": "integer", "description": "Samples JavaScript stack traces up to maxCallStackDepth, defaults to 5." }, - { "name": "bufferEvents", "optional": true, "type": "boolean", "hidden": true, "description": "Whether instrumentation events should be buffered and returned upon stop call." }, - { "name": "liveEvents", "optional": true, "type": "string", "hidden": true, "description": "Coma separated event types to issue although bufferEvents is set."}, - { "name": "includeCounters", "optional": true, "type": "boolean", "hidden": true, "description": "Whether counters data should be included into timeline events." }, - { "name": "includeGPUEvents", "optional": true, "type": "boolean", "hidden": true, "description": "Whether events from GPU process should be collected." } + { "name": "handle", "$ref": "StreamHandle", "description": "Handle of the stream to read." }, + { "name": "offset", "type": "integer", "optional": true, "description": "Seek to the specified offset before reading (if not specificed, proceed with offset following the last read)." }, + { "name": "size", "type": "integer", "optional": true, "description": "Maximum number of bytes to read (left upon the agent discretion if not specified)." } ], - "description": "Deprecated." + "returns": [ + { "name": "data", "type": "string", "description": "Data that were read." }, + { "name": "eof", "type": "boolean", "description": "Set if the end-of-file condition occured while reading." } + ] }, { - "name": "stop", - "description": "Deprecated." - } - ], - "events": [ - { - "name": "eventRecorded", - "parameters": [ - { "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." } - ], - "description": "Deprecated." - } - ] - }, - { - "domain": "Debugger", - "description": "Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.", - "types": [ - { - "id": "BreakpointId", - "type": "string", - "description": "Breakpoint identifier." - }, - { - "id": "ScriptId", - "type": "string", - "description": "Unique script identifier." - }, - { - "id": "CallFrameId", - "type": "string", - "description": "Call frame identifier." - }, - { - "id": "Location", - "type": "object", - "properties": [ - { "name": "scriptId", "$ref": "ScriptId", "description": "Script identifier as reported in the Debugger.scriptParsed." }, - { "name": "lineNumber", "type": "integer", "description": "Line number in the script (0-based)." }, - { "name": "columnNumber", "type": "integer", "optional": true, "description": "Column number in the script (0-based)." } - ], - "description": "Location in the source code." - }, - { - "id": "FunctionDetails", - "hidden": true, - "type": "object", - "properties": [ - { "name": "location", "$ref": "Location", "optional": true, "description": "Location of the function, none for native functions." }, - { "name": "functionName", "type": "string", "description": "Name of the function." }, - { "name": "isGenerator", "type": "boolean", "description": "Whether this is a generator function." }, - { "name": "scopeChain", "type": "array", "optional": true, "items": { "$ref": "Scope" }, "description": "Scope chain for this closure." } - ], - "description": "Information about the function." - }, - { - "id": "GeneratorObjectDetails", - "hidden": true, - "type": "object", - "properties": [ - { "name": "function", "$ref": "Runtime.RemoteObject", "description": "Generator function." }, - { "name": "functionName", "type": "string", "description": "Name of the generator function." }, - { "name": "status", "type": "string", "enum": ["running", "suspended", "closed"], "description": "Current generator object status." }, - { "name": "location", "$ref": "Location", "optional": true, "description": "If suspended, location where generator function was suspended (e.g. location of the last 'yield'). Otherwise, location of the generator function." } - ], - "description": "Information about the generator object." - }, - { - "id": "CollectionEntry", - "hidden": true, - "type": "object", - "properties": [ - { "name": "key", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Entry key of a map-like collection, otherwise not provided." }, - { "name": "value", "$ref": "Runtime.RemoteObject", "description": "Entry value." } - ], - "description": "Collection entry." - }, - { - "id": "CallFrame", - "type": "object", - "properties": [ - { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier. This identifier is only valid while the virtual machine is paused." }, - { "name": "functionName", "type": "string", "description": "Name of the JavaScript function called on this call frame." }, - { "name": "functionLocation", "$ref": "Location", "optional": true, "hidden": true, "description": "Location in the source code." }, - { "name": "location", "$ref": "Location", "description": "Location in the source code." }, - { "name": "scopeChain", "type": "array", "items": { "$ref": "Scope" }, "description": "Scope chain for this call frame." }, - { "name": "this", "$ref": "Runtime.RemoteObject", "description": "this object for this call frame." }, - { "name": "returnValue", "$ref": "Runtime.RemoteObject", "optional": true, "hidden": true, "description": "The value being returned, if the function is at return point." } - ], - "description": "JavaScript call frame. Array of call frames form the call stack." - }, - { - "id": "StackTrace", - "type": "object", - "properties": [ - { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call frames of the stack trace." }, - { "name": "description", "type": "string", "optional": true, "description": "String label of this stack trace. For async traces this may be a name of the function that initiated the async call." }, - { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any." } - ], - "description": "JavaScript call stack, including async stack traces.", - "hidden": true - }, - { - "id": "Scope", - "type": "object", - "properties": [ - { "name": "type", "type": "string", "enum": ["global", "local", "with", "closure", "catch", "block", "script"], "description": "Scope type." }, - { "name": "object", "$ref": "Runtime.RemoteObject", "description": "Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties." } - ], - "description": "Scope description." - }, - { - "id": "ExceptionDetails", - "type": "object", - "description": "Detailed information on exception (or error) that was thrown during script compilation or execution.", - "properties": [ - { "name": "text", "type": "string", "description": "Exception text." }, - { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." }, - { "name": "scriptId", "type": "string", "optional": true, "description": "Script ID of the message origin." }, - { "name": "line", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message." }, - { "name": "column", "type": "integer", "optional": true, "description": "Column number in the resource that generated this message." }, - { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages." } - ] - }, - { - "id": "SetScriptSourceError", - "type": "object", - "properties": [ - { "name": "compileError", "optional": true, "type": "object", "properties": - [ - { "name": "message", "type": "string", "description": "Compiler error message" }, - { "name": "lineNumber", "type": "integer", "description": "Compile error line number (1-based)" }, - { "name": "columnNumber", "type": "integer", "description": "Compile error column number (1-based)" } - ] - } - ], - "description": "Error data for setScriptSource command. compileError is a case type for uncompilable script source error.", - "hidden": true - }, - { - "id": "PromiseDetails", - "type": "object", - "description": "Information about the promise.", - "properties": [ - { "name": "id", "type": "integer", "description": "Unique id of the promise." }, - { "name": "status", "type": "string", "enum": ["pending", "resolved", "rejected"], "description": "Status of the promise." }, - { "name": "parentId", "type": "integer", "optional": true, "description": "Id of the parent promise." }, - { "name": "callFrame", "$ref": "Console.CallFrame", "optional": true, "description": "Top call frame on promise creation."}, - { "name": "creationTime", "type": "number", "optional": true, "description": "Creation time of the promise." }, - { "name": "settlementTime", "type": "number", "optional": true, "description": "Settlement time of the promise." }, - { "name": "creationStack", "$ref": "Console.StackTrace", "optional": true, "description": "JavaScript stack trace on promise creation." }, - { "name": "asyncCreationStack", "$ref": "Console.AsyncStackTrace", "optional": true, "description": "JavaScript asynchronous stack trace on promise creation, if available." }, - { "name": "settlementStack", "$ref": "Console.StackTrace", "optional": true, "description": "JavaScript stack trace on promise settlement." }, - { "name": "asyncSettlementStack", "$ref": "Console.AsyncStackTrace", "optional": true, "description": "JavaScript asynchronous stack trace on promise settlement, if available." } - ], - "hidden": true - }, - { - "id": "AsyncOperation", - "type": "object", - "description": "Information about the async operation.", - "properties": [ - { "name": "id", "type": "integer", "description": "Unique id of the async operation." }, - { "name": "description", "type": "string", "description": "String description of the async operation." }, - { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "Stack trace where async operation was scheduled." }, - { "name": "asyncStackTrace", "$ref": "Console.AsyncStackTrace", "optional": true, "description": "Asynchronous stack trace where async operation was scheduled, if available." } - ], - "hidden": true - }, - { - "id": "SearchMatch", - "type": "object", - "description": "Search match for resource.", - "properties": [ - { "name": "lineNumber", "type": "number", "description": "Line number in resource content." }, - { "name": "lineContent", "type": "string", "description": "Line with match content." } - ], - "hidden": true - } - ], - "commands": [ - { - "name": "enable", - "description": "Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received." - }, - { - "name": "disable", - "description": "Disables debugger for given page." - }, - { - "name": "setBreakpointsActive", - "parameters": [ - { "name": "active", "type": "boolean", "description": "New value for breakpoints active state." } - ], - "description": "Activates / deactivates all breakpoints on the page." - }, - { - "name": "setSkipAllPauses", - "hidden": true, - "parameters": [ - { "name": "skipped", "type": "boolean", "description": "New value for skip pauses state." } - ], - "description": "Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc)." - }, - { - "name": "setBreakpointByUrl", - "parameters": [ - { "name": "lineNumber", "type": "integer", "description": "Line number to set breakpoint at." }, - { "name": "url", "type": "string", "optional": true, "description": "URL of the resources to set breakpoint on." }, - { "name": "urlRegex", "type": "string", "optional": true, "description": "Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified." }, - { "name": "columnNumber", "type": "integer", "optional": true, "description": "Offset in the line to set breakpoint at." }, - { "name": "condition", "type": "string", "optional": true, "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true." } - ], - "returns": [ - { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." }, - { "name": "locations", "type": "array", "items": { "$ref": "Location" }, "description": "List of the locations this breakpoint resolved into upon addition." } - ], - "description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads." - }, - { - "name": "setBreakpoint", - "parameters": [ - { "name": "location", "$ref": "Location", "description": "Location to set breakpoint in." }, - { "name": "condition", "type": "string", "optional": true, "description": "Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true." } - ], - "returns": [ - { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." }, - { "name": "actualLocation", "$ref": "Location", "description": "Location this breakpoint resolved into." } - ], - "description": "Sets JavaScript breakpoint at a given location." - }, - { - "name": "removeBreakpoint", - "parameters": [ - { "name": "breakpointId", "$ref": "BreakpointId" } - ], - "description": "Removes JavaScript breakpoint." - }, - { - "name": "continueToLocation", - "parameters": [ - { "name": "location", "$ref": "Location", "description": "Location to continue to." }, - { "name": "interstatementLocation", "type": "boolean", "optional": true, "hidden": true, "description": "Allows breakpoints at the intemediate positions inside statements." } - ], - "description": "Continues execution until specific location is reached." - }, - { - "name": "stepOver", - "description": "Steps over the statement." - }, - { - "name": "stepInto", - "description": "Steps into the function call." - }, - { - "name": "stepOut", - "description": "Steps out of the function call." - }, - { - "name": "pause", - "description": "Stops on the next JavaScript statement." - }, - { - "name": "resume", - "description": "Resumes JavaScript execution." - }, - { - "name": "stepIntoAsync", - "description": "Steps into the first async operation handler that was scheduled by or after the current statement.", - "hidden": true - }, - { - "name": "searchInContent", - "parameters": [ - { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to search in." }, - { "name": "query", "type": "string", "description": "String to search for." }, - { "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." }, - { "name": "isRegex", "type": "boolean", "optional": true, "description": "If true, treats string parameter as regex." } - ], - "returns": [ - { "name": "result", "type": "array", "items": { "$ref": "SearchMatch" }, "description": "List of search matches." } - ], - "description": "Searches for given string in script content." - }, - { - "name": "canSetScriptSource", - "returns": [ - { "name": "result", "type": "boolean", "description": "True if setScriptSource is supported." } - ], - "description": "Always returns true." - }, - { - "name": "setScriptSource", - "parameters": [ - { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to edit." }, - { "name": "scriptSource", "type": "string", "description": "New content of the script." }, - { "name": "preview", "type": "boolean", "optional": true, "description": " If true the change will not actually be applied. Preview mode may be used to get result description without actually modifying the code.", "hidden": true } - ], - "returns": [ - { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing has happened while VM was stopped." }, - { "name": "result", "type": "object", "optional": true, "description": "VM-specific description of the changes applied.", "hidden": true }, - { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any.", "hidden": true } - ], - "error": { - "$ref": "SetScriptSourceError" - }, - "description": "Edits JavaScript source live." - }, - { - "name": "restartFrame", - "parameters": [ - { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier to evaluate on." } - ], - "returns": [ - { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "New stack trace." }, - { "name": "result", "type": "object", "description": "VM-specific description." }, - { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any." } - ], - "hidden": true, - "description": "Restarts particular call frame from the beginning." - }, - { - "name": "getScriptSource", - "parameters": [ - { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to get source for." } - ], - "returns": [ - { "name": "scriptSource", "type": "string", "description": "Script source." } - ], - "description": "Returns source for the script with given id." - }, - { - "name": "getFunctionDetails", - "hidden": true, - "parameters": [ - { "name": "functionId", "$ref": "Runtime.RemoteObjectId", "description": "Id of the function to get details for." } - ], - "returns": [ - { "name": "details", "$ref": "FunctionDetails", "description": "Information about the function." } - ], - "description": "Returns detailed information on given function." - }, - { - "name": "getGeneratorObjectDetails", - "hidden": true, - "parameters": [ - { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "Id of the generator object to get details for." } - ], - "returns": [ - { "name": "details", "$ref": "GeneratorObjectDetails", "description": "Information about the generator object." } - ], - "description": "Returns detailed information on given generator object." - }, - { - "name": "getCollectionEntries", - "hidden": true, - "parameters": [ - { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "Id of the collection to get entries for." } - ], - "returns": [ - { "name": "entries", "type": "array", "items": { "$ref": "CollectionEntry" }, "description": "Array of collection entries." } - ], - "description": "Returns entries of given collection." - }, - { - "name": "setPauseOnExceptions", - "parameters": [ - { "name": "state", "type": "string", "enum": ["none", "uncaught", "all"], "description": "Pause on exceptions mode." } - ], - "description": "Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none." - }, - { - "name": "evaluateOnCallFrame", - "parameters": [ - { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier to evaluate on." }, - { "name": "expression", "type": "string", "description": "Expression to evaluate." }, - { "name": "objectGroup", "type": "string", "optional": true, "description": "String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup)." }, - { "name": "includeCommandLineAPI", "type": "boolean", "optional": true, "description": "Specifies whether command line API should be available to the evaluated expression, defaults to false.", "hidden": true }, - { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether evaluation should stop on exceptions and mute console. Overrides setPauseOnException state.", "hidden": true }, - { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." }, - { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." } - ], - "returns": [ - { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Object wrapper for the evaluation result." }, - { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }, - { "name": "exceptionDetails", "$ref": "ExceptionDetails", "optional": true, "hidden": true, "description": "Exception details."} - ], - "description": "Evaluates expression on a given call frame." - }, - { - "name": "compileScript", - "hidden": true, - "parameters": [ - { "name": "expression", "type": "string", "description": "Expression to compile." }, - { "name": "sourceURL", "type": "string", "description": "Source url to be set for the script." }, - { "name": "persistScript", "type": "boolean", "description": "Specifies whether the compiled script should be persisted." }, - { "name": "executionContextId", "$ref": "Runtime.ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page." } - ], - "returns": [ - { "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." }, - { "name": "exceptionDetails", "$ref": "ExceptionDetails", "optional": true, "description": "Exception details."} - ], - "description": "Compiles expression." - }, - { - "name": "runScript", - "hidden": true, - "parameters": [ - { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to run." }, - { "name": "executionContextId", "$ref": "Runtime.ExecutionContextId", "optional": true, "description": "Specifies in which isolated context to perform script run. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the evaluation will be performed in the context of the inspected page." }, - { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." }, - { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "boolean", "optional": true, "description": "Specifies whether script run should stop on exceptions and mute console. Overrides setPauseOnException state." } - ], - "returns": [ - { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Run result." }, - { "name": "exceptionDetails", "$ref": "ExceptionDetails", "optional": true, "description": "Exception details."} - ], - "description": "Runs script with given id in a given context." - }, - { - "name": "setVariableValue", - "parameters": [ - { "name": "scopeNumber", "type": "integer", "description": "0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually." }, - { "name": "variableName", "type": "string", "description": "Variable name." }, - { "name": "newValue", "$ref": "Runtime.CallArgument", "description": "New variable value." }, - { "name": "callFrameId", "$ref": "CallFrameId", "optional": true, "description": "Id of callframe that holds variable." }, - { "name": "functionObjectId", "$ref": "Runtime.RemoteObjectId", "optional": true, "description": "Object id of closure (function) that holds variable." } - ], - "hidden": true, - "description": "Changes value of variable in a callframe or a closure. Either callframe or function must be specified. Object-based scopes are not supported and must be mutated manually." - }, - { - "name": "getStepInPositions", - "parameters": [ - { "name": "callFrameId", "$ref": "CallFrameId", "description": "Id of a call frame where the current statement should be analized" } - ], - "returns": [ - { "name": "stepInPositions", "type": "array", "items": { "$ref": "Location" }, "optional": true, "description": "experimental" } - ], - "hidden": true, - "description": "Lists all positions where step-in is possible for a current statement in a specified call frame" - }, - { - "name": "getBacktrace", - "returns": [ - { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." }, - { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any." } - ], - "hidden": true, - "description": "Returns call stack including variables changed since VM was paused. VM must be paused." - }, - { - "name": "skipStackFrames", - "parameters": [ - { "name": "script", "type": "string", "optional": true, "description": "Regular expression defining the scripts to ignore while stepping." }, - { "name": "skipContentScripts", "type": "boolean", "optional": true, "description": "True, if all content scripts should be ignored." } - ], - "hidden": true, - "description": "Makes backend skip steps in the sources with names matching given pattern. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful." - }, - { - "name": "setAsyncCallStackDepth", - "parameters": [ - { "name": "maxDepth", "type": "integer", "description": "Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default)." } - ], - "hidden": true, - "description": "Enables or disables async call stacks tracking." - }, - { - "name": "enablePromiseTracker", - "parameters": [ - { "name": "captureStacks", "type": "boolean", "optional": true, "description": "Whether to capture stack traces for promise creation and settlement events (default: false)." } - ], - "hidden": true, - "description": "Enables promise tracking, information about Promises created or updated will now be stored on the backend." - }, - { - "name": "disablePromiseTracker", - "hidden": true, - "description": "Disables promise tracking." - }, - { - "name": "getPromises", - "returns": [ - { "name": "promises", "type": "array", "items": { "$ref": "PromiseDetails" }, "description": "Information about stored promises." } - ], - "hidden": true, - "description": "Returns detailed information about all Promises that were created or updated after the enablePromiseTracker command, and have not been garbage collected yet." - }, - { - "name": "getPromiseById", - "parameters": [ - { "name": "promiseId", "type": "integer" }, - { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." } - ], - "returns": [ - { "name": "promise", "$ref": "Runtime.RemoteObject", "description": "Object wrapper for Promise with specified ID, if any." } - ], - "hidden": true, - "description": "Returns Promise with specified ID." - }, - { - "name": "flushAsyncOperationEvents", - "hidden": true, - "description": "Fires pending asyncOperationStarted events (if any), as if a debugger stepping session has just been started." - }, - { - "name": "setAsyncOperationBreakpoint", - "parameters": [ - { "name": "operationId", "type": "integer", "description": "ID of the async operation to set breakpoint for." } - ], - "hidden": true, - "description": "Sets breakpoint on AsyncOperation callback handler." - }, - { - "name": "removeAsyncOperationBreakpoint", - "parameters": [ - { "name": "operationId", "type": "integer", "description": "ID of the async operation to remove breakpoint for." } - ], - "hidden": true, - "description": "Removes AsyncOperation breakpoint." - } - ], - "events": [ - { - "name": "globalObjectCleared", - "description": "Called when global has been cleared and debugger client should reset its state. Happens upon navigation or reload." - }, - { - "name": "scriptParsed", - "parameters": [ - { "name": "scriptId", "$ref": "ScriptId", "description": "Identifier of the script parsed." }, - { "name": "url", "type": "string", "description": "URL or name of the script parsed (if any)." }, - { "name": "startLine", "type": "integer", "description": "Line offset of the script within the resource with given URL (for script tags)." }, - { "name": "startColumn", "type": "integer", "description": "Column offset of the script within the resource with given URL." }, - { "name": "endLine", "type": "integer", "description": "Last line of the script." }, - { "name": "endColumn", "type": "integer", "description": "Length of the last line of the script." }, - { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script." }, - { "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", "hidden": true }, - { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with script (if any)." }, - { "name": "hasSourceURL", "type": "boolean", "optional": true, "description": "True, if this script has sourceURL.", "hidden": true } - ], - "description": "Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger." - }, - { - "name": "scriptFailedToParse", - "parameters": [ - { "name": "scriptId", "$ref": "ScriptId", "description": "Identifier of the script parsed." }, - { "name": "url", "type": "string", "description": "URL or name of the script parsed (if any)." }, - { "name": "startLine", "type": "integer", "description": "Line offset of the script within the resource with given URL (for script tags)." }, - { "name": "startColumn", "type": "integer", "description": "Column offset of the script within the resource with given URL." }, - { "name": "endLine", "type": "integer", "description": "Last line of the script." }, - { "name": "endColumn", "type": "integer", "description": "Length of the last line of the script." }, - { "name": "isContentScript", "type": "boolean", "optional": true, "description": "Determines whether this script is a user extension script." }, - { "name": "isInternalScript", "type": "boolean", "optional": true, "description": "Determines whether this script is an internal script.", "hidden": true }, - { "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with script (if any)." }, - { "name": "hasSourceURL", "type": "boolean", "optional": true, "description": "True, if this script has sourceURL.", "hidden": true } - ], - "description": "Fired when virtual machine fails to parse the script." - }, - { - "name": "breakpointResolved", - "parameters": [ - { "name": "breakpointId", "$ref": "BreakpointId", "description": "Breakpoint unique identifier." }, - { "name": "location", "$ref": "Location", "description": "Actual breakpoint location." } - ], - "description": "Fired when breakpoint is resolved to an actual script and location." - }, - { - "name": "paused", - "parameters": [ - { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." }, - { "name": "reason", "type": "string", "enum": [ "XHR", "DOM", "EventListener", "exception", "assert", "CSPViolation", "debugCommand", "promiseRejection", "AsyncOperation", "other" ], "description": "Pause reason." }, - { "name": "data", "type": "object", "optional": true, "description": "Object containing break-specific auxiliary properties." }, - { "name": "hitBreakpoints", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Hit breakpoints IDs", "hidden": true }, - { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any.", "hidden": true } - ], - "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria." - }, - { - "name": "resumed", - "description": "Fired when the virtual machine resumed execution." - }, - { - "name": "promiseUpdated", - "parameters": [ - { "name": "eventType", "type": "string", "enum": ["new", "update", "gc"], "description": "Type of the event." }, - { "name": "promise", "$ref": "PromiseDetails", "description": "Information about the updated Promise." } - ], - "description": "Fired when a Promise is created, updated or garbage collected.", - "hidden": true - }, - { - "name": "asyncOperationStarted", + "name": "close", + "description": "Close the stream, discard any temporary backing storage.", "parameters": [ - { "name": "operation", "$ref": "AsyncOperation", "description": "Information about the async operation." } - ], - "description": "Fired when an async operation is scheduled (while in a debugger stepping session).", - "hidden": true - }, - { - "name": "asyncOperationCompleted", - "parameters": [ - { "name": "id", "type": "integer", "description": "ID of the async operation that was completed." } - ], - "description": "Fired when an async operation is completed (while in a debugger stepping session).", - "hidden": true + { "name": "handle", "$ref": "StreamHandle", "description": "Handle of the stream to close." } + ] } ] }, { "domain": "DOMDebugger", "description": "DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.", + "dependencies": ["DOM", "Debugger"], "types": [ { "id": "DOMBreakpointType", "type": "string", "enum": ["subtree-modified", "attribute-modified", "node-removed"], "description": "DOM breakpoint type." + }, + { + "id": "EventListener", + "type": "object", + "description": "Object event listener.", + "properties": [ + { "name": "type", "type": "string", "description": "EventListener's type." }, + { "name": "useCapture", "type": "boolean", "description": "EventListener's useCapture." }, + { "name": "passive", "type": "boolean", "description": "EventListener's passive flag." }, + { "name": "once", "type": "boolean", "description": "EventListener's once flag." }, + { "name": "scriptId", "$ref": "Runtime.ScriptId", "description": "Script id of the handler code." }, + { "name": "lineNumber", "type": "integer", "description": "Line number in the script (0-based)." }, + { "name": "columnNumber", "type": "integer", "description": "Column number in the script (0-based)." }, + { "name": "handler", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Event handler function value." }, + { "name": "originalHandler", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Event original handler function value." }, + { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "optional": true, "description": "Node the listener is added to (if any)." } + ], + "experimental": true } ], "commands": [ @@ -3816,7 +3370,7 @@ "name": "setEventListenerBreakpoint", "parameters": [ { "name": "eventName", "type": "string", "description": "DOM Event name to stop on (any DOM event will do)." }, - { "name": "targetName", "type": "string", "optional": true, "description": "EventTarget interface name to stop on. If equal to \"*\" or not provided, will stop on any EventTarget.", "hidden": true } + { "name": "targetName", "type": "string", "optional": true, "description": "EventTarget interface name to stop on. If equal to \"*\" or not provided, will stop on any EventTarget.", "experimental": true } ], "description": "Sets breakpoint on particular DOM event." }, @@ -3824,7 +3378,7 @@ "name": "removeEventListenerBreakpoint", "parameters": [ { "name": "eventName", "type": "string", "description": "Event name." }, - { "name": "targetName", "type": "string", "optional": true, "description": "EventTarget interface name.", "hidden": true } + { "name": "targetName", "type": "string", "optional": true, "description": "EventTarget interface name.", "experimental": true } ], "description": "Removes breakpoint on particular DOM event." }, @@ -3834,7 +3388,7 @@ { "name": "eventName", "type": "string", "description": "Instrumentation name to stop on." } ], "description": "Sets breakpoint on particular native event.", - "hidden": true + "experimental": true }, { "name": "removeInstrumentationBreakpoint", @@ -3842,7 +3396,7 @@ { "name": "eventName", "type": "string", "description": "Instrumentation name to stop on." } ], "description": "Removes breakpoint on particular native event.", - "hidden": true + "experimental": true }, { "name": "setXHRBreakpoint", @@ -3857,256 +3411,208 @@ { "name": "url", "type": "string", "description": "Resource URL substring." } ], "description": "Removes breakpoint from XMLHttpRequest." + }, + { + "name": "getEventListeners", + "experimental": true, + "parameters": [ + { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "Identifier of the object to return listeners for." }, + { "name": "depth", "type": "integer", "optional": true, "description": "The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.", "experimental": true }, + { "name": "pierce", "type": "boolean", "optional": true, "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Reports listeners for all contexts if pierce is enabled.", "experimental": true } + ], + "returns": [ + { "name": "listeners", "type": "array", "items": { "$ref": "EventListener" }, "description": "Array of relevant listeners." } + ], + "description": "Returns event listeners of the given object." } ] }, { - "domain": "Profiler", - "hidden": true, + "domain": "Target", + "description": "Supports additional targets discovery and allows to attach to them.", + "experimental": true, "types": [ { - "id": "CPUProfileNode", - "type": "object", - "description": "CPU Profile node. Holds callsite information, execution statistics and child nodes.", - "properties": [ - { "name": "functionName", "type": "string", "description": "Function name." }, - { "name": "scriptId", "$ref": "Debugger.ScriptId", "description": "Script identifier." }, - { "name": "url", "type": "string", "description": "URL." }, - { "name": "lineNumber", "type": "integer", "description": "1-based line number of the function start position." }, - { "name": "columnNumber", "type": "integer", "description": "1-based column number of the function start position." }, - { "name": "hitCount", "type": "integer", "description": "Number of samples where this node was on top of the call stack." }, - { "name": "callUID", "type": "number", "description": "Call UID." }, - { "name": "children", "type": "array", "items": { "$ref": "CPUProfileNode" }, "description": "Child nodes." }, - { "name": "deoptReason", "type": "string", "description": "The reason of being not optimized. The function may be deoptimized or marked as don't optimize."}, - { "name": "id", "type": "integer", "description": "Unique id of the node." }, - { "name": "positionTicks", "type": "array", "items": { "$ref": "PositionTickInfo" }, "description": "An array of source position ticks." } - ] + "id": "TargetID", + "type": "string" + }, + { + "id": "BrowserContextID", + "type": "string" }, { - "id": "CPUProfile", + "id": "TargetInfo", "type": "object", - "description": "Profile.", "properties": [ - { "name": "head", "$ref": "CPUProfileNode" }, - { "name": "startTime", "type": "number", "description": "Profiling start time in seconds." }, - { "name": "endTime", "type": "number", "description": "Profiling end time in seconds." }, - { "name": "samples", "optional": true, "type": "array", "items": { "type": "integer" }, "description": "Ids of samples top nodes." }, - { "name": "timestamps", "optional": true, "type": "array", "items": { "type": "number" }, "description": "Timestamps of the samples in microseconds." } + { "name": "targetId", "$ref": "TargetID" }, + { "name": "type", "type": "string" }, + { "name": "title", "type": "string" }, + { "name": "url", "type": "string" } ] }, { - "id": "PositionTickInfo", + "id": "RemoteLocation", "type": "object", - "description": "Specifies a number of samples attributed to a certain source position.", "properties": [ - { "name": "line", "type": "integer", "description": "Source line number (1-based)." }, - { "name": "ticks", "type": "integer", "description": "Number of samples attributed to the source line." } + { "name": "host", "type": "string" }, + { "name": "port", "type": "integer" } ] } ], "commands": [ { - "name": "enable" - }, - { - "name": "disable" - }, - { - "name": "setSamplingInterval", + "name": "setDiscoverTargets", + "description": "Controls whether to discover available targets and notify via targetCreated/targetDestroyed events.", "parameters": [ - { "name": "interval", "type": "integer", "description": "New sampling interval in microseconds." } - ], - "description": "Changes CPU profiler sampling interval. Must be called before CPU profiles recording started." - }, - { - "name": "start" - }, - { - "name": "stop", - "returns": [ - { "name": "profile", "$ref": "CPUProfile", "description": "Recorded profile." } + { "name": "discover", "type": "boolean", "description": "Whether to discover available targets." } ] - } - ], - "events": [ - { - "name": "consoleProfileStarted", - "parameters": [ - { "name": "id", "type": "string" }, - { "name": "location", "$ref": "Debugger.Location", "description": "Location of console.profile()." }, - { "name": "title", "type": "string", "optional": true, "description": "Profile title passed as argument to console.profile()." } - - ], - "description": "Sent when new profile recodring is started using console.profile() call." }, { - "name": "consoleProfileFinished", + "name": "setAutoAttach", + "description": "Controls whether to automatically attach to new targets which are considered to be related to this one. When turned on, attaches to all existing related targets as well. When turned off, automatically detaches from all currently attached targets.", "parameters": [ - { "name": "id", "type": "string" }, - { "name": "location", "$ref": "Debugger.Location", "description": "Location of console.profileEnd()." }, - { "name": "profile", "$ref": "CPUProfile" }, - { "name": "title", "type": "string", "optional": true, "description": "Profile title passed as argunet to console.profile()." } + { "name": "autoAttach", "type": "boolean", "description": "Whether to auto-attach to related targets." }, + { "name": "waitForDebuggerOnStart", "type": "boolean", "description": "Whether to pause new targets when attaching to them. Use Runtime.runIfWaitingForDebugger to run paused targets." } ] - } - ] - }, - { - "domain": "HeapProfiler", - "hidden": true, - "types": [ - { - "id": "HeapSnapshotObjectId", - "type": "string", - "description": "Heap snapshot object id." - } - ], - "commands": [ - { - "name": "enable" - }, - { - "name": "disable" }, { - "name": "startTrackingHeapObjects", + "name": "setAttachToFrames", "parameters": [ - { "name": "trackAllocations", "type": "boolean", "optional": true } + { "name": "value", "type": "boolean", "description": "Whether to attach to frames." } ] }, { - "name": "stopTrackingHeapObjects", + "name": "setRemoteLocations", + "description": "Enables target discovery for the specified locations, when setDiscoverTargets was set to true.", "parameters": [ - { "name": "reportProgress", "type": "boolean", "optional": true, "description": "If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped." } + { "name": "locations", "type": "array", "items": { "$ref": "RemoteLocation" }, "description": "List of remote locations." } ] - }, { - "name": "takeHeapSnapshot", + "name": "sendMessageToTarget", + "description": "Sends protocol message to the target with given id.", "parameters": [ - { "name": "reportProgress", "type": "boolean", "optional": true, "description": "If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken." } + { "name": "targetId", "$ref": "TargetID" }, + { "name": "message", "type": "string" } ] }, { - "name": "collectGarbage" - }, - { - "name": "getObjectByHeapObjectId", + "name": "getTargetInfo", + "description": "Returns information about a target.", "parameters": [ - { "name": "objectId", "$ref": "HeapSnapshotObjectId" }, - { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple objects." } + { "name": "targetId", "$ref": "TargetID" } ], "returns": [ - { "name": "result", "$ref": "Runtime.RemoteObject", "description": "Evaluation result." } + { "name": "targetInfo","$ref": "TargetInfo" } ] }, { - "name": "addInspectedHeapObject", + "name": "activateTarget", + "description": "Activates (focuses) the target.", "parameters": [ - { "name": "heapObjectId", "$ref": "HeapSnapshotObjectId", "description": "Heap snapshot object id to be accessible by means of $x command line API." } - ], - "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions)." + { "name": "targetId", "$ref": "TargetID" } + ] }, { - "name": "getHeapObjectId", + "name": "closeTarget", + "description": "Closes the target. If the target is a page that gets closed too.", "parameters": [ - { "name": "objectId", "$ref": "Runtime.RemoteObjectId", "description": "Identifier of the object to get heap object id for." } + { "name": "targetId", "$ref": "TargetID" } ], "returns": [ - { "name": "heapSnapshotObjectId", "$ref": "HeapSnapshotObjectId", "description": "Id of the heap snapshot object corresponding to the passed remote object id." } + { "name": "success", "type": "boolean" } ] - } - ], - "events": [ + }, { - "name": "addHeapSnapshotChunk", + "name": "attachToTarget", + "description": "Attaches to the target with given id.", "parameters": [ - { "name": "chunk", "type": "string" } + { "name": "targetId", "$ref": "TargetID" } + ], + "returns": [ + { "name": "success", "type": "boolean", "description": "Whether attach succeeded." } ] }, { - "name": "resetProfiles" - }, - { - "name": "reportHeapSnapshotProgress", + "name": "detachFromTarget", + "description": "Detaches from the target with given id.", "parameters": [ - { "name": "done", "type": "integer" }, - { "name": "total", "type": "integer" }, - { "name": "finished", "type": "boolean", "optional": true } + { "name": "targetId", "$ref": "TargetID" } ] }, { - "name": "lastSeenObjectId", - "description": "If heap objects tracking has been started then backend regulary sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.", - "parameters": [ - { "name": "lastSeenObjectId", "type": "integer" }, - { "name": "timestamp", "type": "number" } + "name": "createBrowserContext", + "description": "Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.", + "returns": [ + { "name": "browserContextId", "$ref": "BrowserContextID", "description": "The id of the context created." } ] }, { - "name": "heapStatsUpdate", - "description": "If heap objects tracking has been started then backend may send update for one or more fragments", + "name": "disposeBrowserContext", + "description": "Deletes a BrowserContext, will fail of any open page uses it.", "parameters": [ - { "name": "statsUpdate", "type": "array", "items": { "type": "integer" }, "description": "An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment."} + { "name": "browserContextId", "$ref": "BrowserContextID" } + ], + "returns": [ + { "name": "success", "type": "boolean" } ] - } - ] - }, - { - "domain": "Worker", - "hidden": true, - "types": [], - "commands": [ - { - "name": "enable" - }, - { - "name": "disable" }, { - "name": "sendMessageToWorker", + "name": "createTarget", + "description": "Creates a new page.", "parameters": [ - { "name": "workerId", "type": "string" }, - { "name": "message", "type": "string" } + { "name": "url", "type": "string", "description": "The initial URL the page will be navigated to." }, + { "name": "width", "type": "integer", "description": "Frame width in DIP (headless chrome only).", "optional": true }, + { "name": "height", "type": "integer", "description": "Frame height in DIP (headless chrome only).", "optional": true }, + { "name": "browserContextId", "$ref": "BrowserContextID", "description": "The browser context to create the page in (headless chrome only).", "optional": true } + ], + "returns": [ + { "name": "targetId", "$ref": "TargetID", "description": "The id of the page opened." } ] }, { - "name": "connectToWorker", - "parameters": [ - { "name": "workerId", "type": "string" } + "name": "getTargets", + "description": "Retrieves a list of available targets.", + "returns": [ + { "name": "targetInfos", "type": "array", "items": { "$ref": "TargetInfo" }, "description": "The list of targets." } ] - }, + } + ], + "events": [ { - "name": "disconnectFromWorker", + "name": "targetCreated", + "description": "Issued when a possible inspection target is created.", "parameters": [ - { "name": "workerId", "type": "string" } + { "name": "targetInfo", "$ref": "TargetInfo" } ] }, { - "name": "setAutoconnectToWorkers", + "name": "targetDestroyed", + "description": "Issued when a target is destroyed.", "parameters": [ - { "name": "value", "type": "boolean" } + { "name": "targetId", "$ref": "TargetID" } ] - } - ], - "events": [ + }, { - "name": "workerCreated", + "name": "attachedToTarget", + "description": "Issued when attached to target because of auto-attach or attachToTarget command.", "parameters": [ - { "name": "workerId", "type": "string" }, - { "name": "url", "type": "string" }, - { "name": "inspectorConnected", "type": "boolean" } + { "name": "targetInfo", "$ref": "TargetInfo" }, + { "name": "waitingForDebugger", "type": "boolean" } ] }, { - "name": "workerTerminated", + "name": "detachedFromTarget", + "description": "Issued when detached from target for any reason (including detachFromTarget command).", "parameters": [ - { "name": "workerId", "type": "string" } + { "name": "targetId", "$ref": "TargetID" } ] }, { - "name": "dispatchMessageFromWorker", + "name": "receivedMessageFromTarget", + "description": "Notifies about new protocol message from attached target.", "parameters": [ - { "name": "workerId", "type": "string" }, + { "name": "targetId", "$ref": "TargetID" }, { "name": "message", "type": "string" } ] } @@ -4114,7 +3620,7 @@ }, { "domain": "ServiceWorker", - "hidden": true, + "experimental": true, "types": [ { "id": "ServiceWorkerRegistration", @@ -4123,7 +3629,7 @@ "properties": [ { "name": "registrationId", "type": "string" }, { "name": "scopeURL", "type": "string" }, - { "name": "isDeleted", "type": "boolean", "optional": true } + { "name": "isDeleted", "type": "boolean" } ] }, { @@ -4147,7 +3653,9 @@ { "name": "runningStatus", "$ref": "ServiceWorkerVersionRunningStatus" }, { "name": "status", "$ref": "ServiceWorkerVersionStatus" }, { "name": "scriptLastModified", "type": "number", "optional": true, "description": "The Last-Modified header value of the main script." }, - { "name": "scriptResponseTime", "type": "number", "optional": true, "description": "The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated." } + { "name": "scriptResponseTime", "type": "number", "optional": true, "description": "The time at which the response headers of the main script were received from the server. For cached script it is the last time the cache entry was validated." }, + { "name": "controlledClients", "type": "array", "optional": true, "items": { "$ref": "Target.TargetID" } }, + { "name": "targetId", "$ref": "Target.TargetID", "optional": true } ] }, { @@ -4166,323 +3674,89 @@ ], "commands": [ { - "name": "enable", - "handlers": ["browser"] - }, - { - "name": "disable", - "handlers": ["browser"] - }, - { - "name": "sendMessage", - "parameters": [ - { "name": "workerId", "type": "string" }, - { "name": "message", "type": "string" } - ], - "handlers": ["browser"] + "name": "enable" }, { - "name": "stop", - "parameters": [ - { "name": "workerId", "type": "string" } - ], - "handlers": ["browser"] + "name": "disable" }, { "name": "unregister", "parameters": [ { "name": "scopeURL", "type": "string" } - ], - "handlers": ["browser"] + ] }, { "name": "updateRegistration", "parameters": [ { "name": "scopeURL", "type": "string" } - ], - "handlers": ["browser"] - }, - { - "name": "startWorker", - "parameters": [ - { "name": "scopeURL", "type": "string" } - ], - "handlers": ["browser"] - }, - { - "name": "stopWorker", - "parameters": [ - { "name": "versionId", "type": "string" } - ], - "handlers": ["browser"] - }, - { - "name": "inspectWorker", - "parameters": [ - { "name": "versionId", "type": "string" } - ], - "handlers": ["browser"] - }, - { - "name": "setDebugOnStart", - "parameters": [ - { "name": "debugOnStart", "type": "boolean" } - ], - "handlers": ["browser"] - }, - { - "name": "deliverPushMessage", - "parameters": [ - { "name": "origin", "type": "string" }, - { "name": "registrationId", "type": "string" }, - { "name": "data", "type": "string" } - ], - "handlers": ["browser"] - } - ], - "events": [ - { - "name": "workerCreated", - "parameters": [ - { "name": "workerId", "type": "string" }, - { "name": "url", "type": "string" } - ], - "handlers": ["browser"] - }, - { - "name": "workerTerminated", - "parameters": [ - { "name": "workerId", "type": "string" } - ], - "handlers": ["browser"] - }, - { - "name": "dispatchMessage", - "parameters": [ - { "name": "workerId", "type": "string" }, - { "name": "message", "type": "string" } - ], - "handlers": ["browser"] - }, - { - "name": "workerRegistrationUpdated", - "parameters": [ - { "name": "registrations", "type": "array", "items": { "$ref": "ServiceWorkerRegistration" } } - ], - "handlers": ["browser"] - }, - { - "name": "workerVersionUpdated", - "parameters": [ - { "name": "versions", "type": "array", "items": { "$ref": "ServiceWorkerVersion" } } - ], - "handlers": ["browser"] - }, - { - "name": "workerErrorReported", - "parameters": [ - { "name": "errorMessage", "$ref": "ServiceWorkerErrorMessage" } - ], - "handlers": ["browser"] - }, - { - "name": "debugOnStartUpdated", - "parameters": [ - { "name": "debugOnStart", "type": "boolean" } - ], - "handlers": ["browser"] - } - ] - }, - { - "domain": "Canvas", - "hidden": true, - "types": [ - { - "id": "ResourceId", - "type": "string", - "description": "Unique resource identifier." - }, - { - "id": "ResourceStateDescriptor", - "type": "object", - "description": "Resource state descriptor.", - "properties": [ - { "name": "name", "type": "string", "description": "State name." }, - { "name": "enumValueForName", "type": "string", "optional": true, "description": "String representation of the enum value, if name stands for an enum." }, - { "name": "value", "$ref": "CallArgument", "optional": true, "description": "The value associated with the particular state." }, - { "name": "values", "type": "array", "items": { "$ref": "ResourceStateDescriptor" }, "optional": true, "description": "Array of values associated with the particular state. Either value or values will be specified." }, - { "name": "isArray", "type": "boolean", "optional": true, "description": "True iff the given values items stand for an array rather than a list of grouped states." } - ] - }, - { - "id": "ResourceState", - "type": "object", - "description": "Resource state.", - "properties": [ - { "name": "id", "$ref": "ResourceId" }, - { "name": "traceLogId", "$ref": "TraceLogId" }, - { "name": "descriptors", "type": "array", "items": { "$ref": "ResourceStateDescriptor" }, "optional": true, "description": "Describes current Resource state." }, - { "name": "imageURL", "type": "string", "optional": true, "description": "Screenshot image data URL." } - ] - }, - { - "id": "CallArgument", - "type": "object", - "properties": [ - { "name": "description", "type": "string", "description": "String representation of the object." }, - { "name": "enumName", "type": "string", "optional": true, "description": "Enum name, if any, that stands for the value (for example, a WebGL enum name)." }, - { "name": "resourceId", "$ref": "ResourceId", "optional": true, "description": "Resource identifier. Specified for Resource objects only." }, - { "name": "type", "type": "string", "optional": true, "enum": ["object", "function", "undefined", "string", "number", "boolean"], "description": "Object type. Specified for non Resource objects only." }, - { "name": "subtype", "type": "string", "optional": true, "enum": ["array", "null", "node", "regexp", "date", "map", "set", "iterator", "generator", "error"], "description": "Object subtype hint. Specified for object type values only." }, - { "name": "remoteObject", "$ref": "Runtime.RemoteObject", "optional": true, "description": "The RemoteObject, if requested." } - ] - }, - { - "id": "Call", - "type": "object", - "properties": [ - { "name": "contextId", "$ref": "ResourceId" }, - { "name": "functionName", "type": "string", "optional": true }, - { "name": "arguments", "type": "array", "items": { "$ref": "CallArgument" }, "optional": true }, - { "name": "result", "$ref": "CallArgument", "optional": true }, - { "name": "isDrawingCall", "type": "boolean", "optional": true }, - { "name": "isFrameEndCall", "type": "boolean", "optional": true }, - { "name": "property", "type": "string", "optional": true }, - { "name": "value", "$ref": "CallArgument", "optional": true }, - { "name": "sourceURL", "type": "string", "optional": true }, - { "name": "lineNumber", "type": "integer", "optional": true }, - { "name": "columnNumber", "type": "integer", "optional": true } - ] - }, - { - "id": "TraceLogId", - "type": "string", - "description": "Unique trace log identifier." - }, - { - "id": "TraceLog", - "type": "object", - "properties": [ - { "name": "id", "$ref": "TraceLogId" }, - { "name": "calls", "type": "array", "items": { "$ref": "Call" } }, - { "name": "contexts", "type": "array", "items": { "$ref": "CallArgument" } }, - { "name": "startOffset", "type": "integer" }, - { "name": "alive", "type": "boolean" }, - { "name": "totalAvailableCalls", "type": "number" } - ] - } - ], - "commands": [ - { - "name": "enable", - "description": "Enables Canvas inspection." - }, - { - "name": "disable", - "description": "Disables Canvas inspection." - }, - { - "name": "dropTraceLog", - "parameters": [ - { "name": "traceLogId", "$ref": "TraceLogId" } ] }, { - "name": "hasUninstrumentedCanvases", - "returns": [ - { "name": "result", "type": "boolean" } - ], - "description": "Checks if there is any uninstrumented canvas in the inspected page." - }, - { - "name": "captureFrame", - "parameters": [ - { "name": "frameId", "$ref": "Page.FrameId", "optional": true, "description": "Identifier of the frame containing document whose canvases are to be captured. If omitted, main frame is assumed." } - ], - "returns": [ - { "name": "traceLogId", "$ref": "TraceLogId", "description": "Identifier of the trace log containing captured canvas calls." } - ], - "description": "Starts (or continues) a canvas frame capturing which will be stopped automatically after the next frame is prepared." + "name": "startWorker", + "parameters": [ + { "name": "scopeURL", "type": "string" } + ] }, { - "name": "startCapturing", + "name": "skipWaiting", "parameters": [ - { "name": "frameId", "$ref": "Page.FrameId", "optional": true, "description": "Identifier of the frame containing document whose canvases are to be captured. If omitted, main frame is assumed." } - ], - "returns": [ - { "name": "traceLogId", "$ref": "TraceLogId", "description": "Identifier of the trace log containing captured canvas calls." } - ], - "description": "Starts (or continues) consecutive canvas frames capturing. The capturing is stopped by the corresponding stopCapturing command." + { "name": "scopeURL", "type": "string" } + ] }, { - "name": "stopCapturing", + "name": "stopWorker", "parameters": [ - { "name": "traceLogId", "$ref": "TraceLogId" } + { "name": "versionId", "type": "string" } ] }, { - "name": "getTraceLog", + "name": "inspectWorker", "parameters": [ - { "name": "traceLogId", "$ref": "TraceLogId" }, - { "name": "startOffset", "type": "integer", "optional": true }, - { "name": "maxLength", "type": "integer", "optional": true } - ], - "returns": [ - { "name": "traceLog", "$ref": "TraceLog" } + { "name": "versionId", "type": "string" } ] }, { - "name": "replayTraceLog", + "name": "setForceUpdateOnPageLoad", "parameters": [ - { "name": "traceLogId", "$ref": "TraceLogId" }, - { "name": "stepNo", "type": "integer", "description": "Last call index in the trace log to replay (zero based)." } - ], - "returns": [ - { "name": "resourceState", "$ref": "ResourceState" }, - { "name": "replayTime", "type": "number", "description": "Replay time (in milliseconds)." } + { "name": "forceUpdateOnPageLoad", "type": "boolean" } ] }, { - "name": "getResourceState", + "name": "deliverPushMessage", "parameters": [ - { "name": "traceLogId", "$ref": "TraceLogId" }, - { "name": "resourceId", "$ref": "ResourceId" } - ], - "returns": [ - { "name": "resourceState", "$ref": "ResourceState" } + { "name": "origin", "type": "string" }, + { "name": "registrationId", "type": "string" }, + { "name": "data", "type": "string" } ] }, { - "name": "evaluateTraceLogCallArgument", + "name": "dispatchSyncEvent", "parameters": [ - { "name": "traceLogId", "$ref": "TraceLogId" }, - { "name": "callIndex", "type": "integer", "description": "Index of the call to evaluate on (zero based)." }, - { "name": "argumentIndex", "type": "integer", "description": "Index of the argument to evaluate (zero based). Provide -1 to evaluate call result." }, - { "name": "objectGroup", "type": "string", "optional": true, "description": "String object group name to put result into (allows rapid releasing resulting object handles using Runtime.releaseObjectGroup)." } - ], - "returns": [ - { "name": "result", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Object wrapper for the evaluation result." }, - { "name": "resourceState", "$ref": "ResourceState", "optional": true, "description": "State of the Resource object." } - ], - "description": "Evaluates a given trace call argument or its result." + { "name": "origin", "type": "string" }, + { "name": "registrationId", "type": "string" }, + { "name": "tag", "type": "string" }, + { "name": "lastChance", "type": "boolean" } + ] } ], "events": [ { - "name": "contextCreated", + "name": "workerRegistrationUpdated", "parameters": [ - { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame containing a canvas with a context." } - ], - "description": "Fired when a canvas context has been created in the given frame. The context may not be instrumented (see hasUninstrumentedCanvases command)." + { "name": "registrations", "type": "array", "items": { "$ref": "ServiceWorkerRegistration" } } + ] }, { - "name": "traceLogsRemoved", + "name": "workerVersionUpdated", "parameters": [ - { "name": "frameId", "$ref": "Page.FrameId", "optional": true, "description": "If given, trace logs from the given frame were removed." }, - { "name": "traceLogId", "$ref": "TraceLogId", "optional": true, "description": "If given, trace log with the given ID was removed." } - ], - "description": "Fired when a set of trace logs were removed from the backend. If no parameters are given, all trace logs were removed." + { "name": "versions", "type": "array", "items": { "$ref": "ServiceWorkerVersion" } } + ] + }, + { + "name": "workerErrorReported", + "parameters": [ + { "name": "errorMessage", "$ref": "ServiceWorkerErrorMessage" } + ] } ] }, @@ -4492,7 +3766,7 @@ { "id": "TouchPoint", "type": "object", - "hidden": true, + "experimental": true, "properties": [ { "name": "state", "type": "string", "enum": ["touchPressed", "touchReleased", "touchMoved", "touchStationary", "touchCancelled"], "description": "State of the touch point." }, { "name": "x", "type": "integer", "description": "X coordinate of the event relative to the main frame's viewport."}, @@ -4507,11 +3781,18 @@ { "id": "GestureSourceType", "type": "string", - "hidden": true, + "experimental": true, "enum": ["default", "touch", "mouse"] } ], "commands": [ + { + "name": "setIgnoreInputEvents", + "parameters": [ + { "name": "ignore", "type": "boolean", "description": "Ignores input events processing when set to true." } + ], + "description": "Ignores input events (useful while auditing page)." + }, { "name": "dispatchKeyEvent", "parameters": [ @@ -4522,14 +3803,14 @@ { "name": "unmodifiedText", "type": "string", "optional": true, "description": "Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: \"\")." }, { "name": "keyIdentifier", "type": "string", "optional": true, "description": "Unique key identifier (e.g., 'U+0041') (default: \"\")." }, { "name": "code", "type": "string", "optional": true, "description": "Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: \"\")." }, + { "name": "key", "type": "string", "optional": true, "description": "Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: \"\")." }, { "name": "windowsVirtualKeyCode", "type": "integer", "optional": true, "description": "Windows virtual key code (default: 0)." }, { "name": "nativeVirtualKeyCode", "type": "integer", "optional": true, "description": "Native virtual key code (default: 0)." }, { "name": "autoRepeat", "type": "boolean", "optional": true, "description": "Whether the event was generated from auto repeat (default: false)." }, { "name": "isKeypad", "type": "boolean", "optional": true, "description": "Whether the event was generated from the keypad (default: false)." }, { "name": "isSystemKey", "type": "boolean", "optional": true, "description": "Whether the event was a system key event (default: false)." } ], - "description": "Dispatches a key event to the page.", - "handlers": ["browser"] + "description": "Dispatches a key event to the page." }, { "name": "dispatchMouseEvent", @@ -4542,12 +3823,11 @@ { "name": "button", "type": "string", "enum": ["none", "left", "middle", "right"], "optional": true, "description": "Mouse button (default: \"none\")." }, { "name": "clickCount", "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." } ], - "description": "Dispatches a mouse event to the page.", - "handlers": ["browser"] + "description": "Dispatches a mouse event to the page." }, { "name": "dispatchTouchEvent", - "hidden": true, + "experimental": true, "parameters": [ { "name": "type", "type": "string", "enum": ["touchStart", "touchEnd", "touchMove"], "description": "Type of the touch event." }, { "name": "touchPoints", "type": "array", "items": { "$ref": "TouchPoint" }, "description": "Touch points." }, @@ -4558,7 +3838,7 @@ }, { "name": "emulateTouchFromMouseEvent", - "hidden": true, + "experimental": true, "parameters": [ { "name": "type", "type": "string", "enum": ["mousePressed", "mouseReleased", "mouseMoved", "mouseWheel"], "description": "Type of the mouse event." }, { "name": "x", "type": "integer", "description": "X coordinate of the mouse pointer in DIP."}, @@ -4570,12 +3850,10 @@ { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)." }, { "name": "clickCount", "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." } ], - "description": "Emulates touch event from the mouse event parameters.", - "handlers": ["browser"] + "description": "Emulates touch event from the mouse event parameters." }, { "name": "synthesizePinchGesture", - "async": true, "parameters": [ { "name": "x", "type": "integer", "description": "X coordinate of the start of the gesture in CSS pixels." }, { "name": "y", "type": "integer", "description": "Y coordinate of the start of the gesture in CSS pixels." }, @@ -4584,12 +3862,10 @@ { "name": "gestureSourceType", "$ref": "GestureSourceType", "optional": true, "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)." } ], "description": "Synthesizes a pinch gesture over a time period by issuing appropriate touch events.", - "hidden": true, - "handlers": ["browser"] + "experimental": true }, { "name": "synthesizeScrollGesture", - "async": true, "parameters": [ { "name": "x", "type": "integer", "description": "X coordinate of the start of the gesture in CSS pixels." }, { "name": "y", "type": "integer", "description": "Y coordinate of the start of the gesture in CSS pixels." }, @@ -4599,15 +3875,16 @@ { "name": "yOverscroll", "type": "integer", "optional": true, "description": "The number of additional pixels to scroll back along the Y axis, in addition to the given distance." }, { "name": "preventFling", "type": "boolean", "optional": true, "description": "Prevent fling (default: true)." }, { "name": "speed", "type": "integer", "optional": true, "description": "Swipe speed in pixels per second (default: 800)." }, - { "name": "gestureSourceType", "$ref": "GestureSourceType", "optional": true, "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)." } + { "name": "gestureSourceType", "$ref": "GestureSourceType", "optional": true, "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)." }, + { "name": "repeatCount", "type": "integer", "optional": true, "description": "The number of times to repeat the gesture (default: 0)." }, + { "name": "repeatDelayMs", "type": "integer", "optional": true, "description": "The number of milliseconds delay between each repeat. (default: 250)." }, + { "name": "interactionMarkerName", "type": "string", "optional": true, "description": "The name of the interaction markers to generate, if not empty (default: \"\")." } ], "description": "Synthesizes a scroll gesture over a time period by issuing appropriate touch events.", - "hidden": true, - "handlers": ["browser"] + "experimental": true }, { "name": "synthesizeTapGesture", - "async": true, "parameters": [ { "name": "x", "type": "integer", "description": "X coordinate of the start of the gesture in CSS pixels." }, { "name": "y", "type": "integer", "description": "Y coordinate of the start of the gesture in CSS pixels." }, @@ -4616,15 +3893,15 @@ { "name": "gestureSourceType", "$ref": "GestureSourceType", "optional": true, "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)." } ], "description": "Synthesizes a tap gesture over a time period by issuing appropriate touch events.", - "hidden": true, - "handlers": ["browser"] + "experimental": true } ], "events": [] }, { "domain": "LayerTree", - "hidden": true, + "experimental": true, + "dependencies": ["DOM"], "types": [ { "id": "LayerId", @@ -4787,7 +4064,7 @@ }, { "domain": "DeviceOrientation", - "hidden": true, + "experimental": true, "commands": [ { "name": "setDeviceOrientationOverride", @@ -4806,32 +4083,66 @@ }, { "domain": "Tracing", + "dependencies": ["IO"], + "experimental": true, + "types": [ + { + "id": "MemoryDumpConfig", + "type": "object", + "description": "Configuration for memory dump. Used only when \"memory-infra\" category is enabled." + }, + { + "id": "TraceConfig", + "type": "object", + "properties": [ + { "name": "recordMode", "type": "string", "optional": true, "enum": ["recordUntilFull", "recordContinuously", "recordAsMuchAsPossible", "echoToConsole"], "description": "Controls how the trace buffer stores data." }, + { "name": "enableSampling", "type": "boolean", "optional": true, "description": "Turns on JavaScript stack sampling." }, + { "name": "enableSystrace", "type": "boolean", "optional": true, "description": "Turns on system tracing." }, + { "name": "enableArgumentFilter", "type": "boolean", "optional": true, "description": "Turns on argument filter." }, + { "name": "includedCategories", "type": "array", "items": { "type": "string" }, "optional": true, "description": "Included category filters." }, + { "name": "excludedCategories", "type": "array", "items": { "type": "string" }, "optional": true, "description": "Excluded category filters." }, + { "name": "syntheticDelays", "type": "array", "items": { "type": "string" }, "optional": true, "description": "Configuration to synthesize the delays in tracing." }, + { "name": "memoryDumpConfig", "$ref": "MemoryDumpConfig", "optional": true, "description": "Configuration for memory dump triggers. Used only when \"memory-infra\" category is enabled." } + ] + } + ], "commands": [ { "name": "start", - "async": true, "description": "Start trace events collection.", "parameters": [ - { "name": "categories", "type": "string", "optional": true, "description": "Category/tag filter" }, - { "name": "options", "type": "string", "optional": true, "description": "Tracing options" }, - { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage events at this interval, specified in milliseconds" } - ], - "handlers": ["browser", "renderer"] + { "name": "categories", "type": "string", "optional": true, "deprecated": true, "description": "Category/tag filter" }, + { "name": "options", "type": "string", "optional": true, "deprecated": true, "description": "Tracing options" }, + { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage events at this interval, specified in milliseconds" }, + { "name": "transferMode", "type": "string", "enum": ["ReportEvents", "ReturnAsStream"], "optional": true, "description": "Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to ReportEvents)." }, + { "name": "traceConfig", "$ref": "TraceConfig", "optional": true, "description": "" } + ] }, { "name": "end", - "async": true, - "description": "Stop trace events collection.", - "handlers": ["browser", "renderer"] + "description": "Stop trace events collection." }, { "name": "getCategories", - "async": true, "description": "Gets supported tracing categories.", "returns": [ { "name": "categories", "type": "array", "items": { "type": "string" }, "description": "A list of supported tracing categories." } - ], - "handlers": ["browser"] + ] + }, + { + "name": "requestMemoryDump", + "description": "Request a global memory dump.", + "returns": [ + { "name": "dumpGuid", "type": "string", "description": "GUID of the resulting global memory dump." }, + { "name": "success", "type": "boolean", "description": "True iff the global memory dump succeeded." } + ] + }, + { + "name": "recordClockSyncMarker", + "description": "Record a clock sync marker in the trace.", + "parameters": [ + { "name": "syncId", "type": "string", "description": "The ID of this clock sync marker" } + ] } ], "events": [ @@ -4840,13 +4151,14 @@ "parameters": [ { "name": "value", "type": "array", "items": { "type": "object" } } ], - "description": "Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event.", - "handlers": ["browser"] + "description": "Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event." }, { "name": "tracingComplete", "description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.", - "handlers": ["browser"] + "parameters": [ + { "name": "stream", "$ref": "IO.StreamHandle", "optional": true, "description": "A handle of the stream that holds resulting trace data." } + ] }, { "name": "bufferUsage", @@ -4854,106 +4166,50 @@ { "name": "percentFull", "type": "number", "optional": true, "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size." }, { "name": "eventCount", "type": "number", "optional": true, "description": "An approximate number of events in the trace log." }, { "name": "value", "type": "number", "optional": true, "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size." } - ], - "handlers": ["browser"] - } - ] - }, - { - "domain": "Power", - "hidden": true, - "types": [ - { - "id": "PowerEvent", - "type": "object", - "properties": [ - { "name": "type", "type": "string", "description": "Power Event Type." }, - { "name": "timestamp", "type": "number", "description": "Power Event Time, in milliseconds." }, - { "name": "value", "type": "number", "description": "Power Event Value." } - ], - "description": "PowerEvent item" - } - ], - "commands": [ - { - "name": "start", - "description": "Start power events collection.", - "parameters": [], - "handlers": ["browser", "frontend"] - }, - { - "name": "end", - "description": "Stop power events collection.", - "parameters": [], - "handlers": ["browser", "frontend"] - }, - { - "name": "canProfilePower", - "description": "Tells whether power profiling is supported.", - "returns": [ - { "name": "result", "type": "boolean", "description": "True if power profiling is supported." } - ], - "hidden": true, - "handlers": ["browser", "frontend"] - }, - { - "name": "getAccuracyLevel", - "description": "Describes the accuracy level of the data provider.", - "returns": [ - { "name": "result", "type": "string", "enum": ["high", "moderate", "low"] } - ], - "handlers": ["browser", "frontend"] - } - ], - "events": [ - { - "name": "dataAvailable", - "parameters": [ - {"name": "value", "type": "array", "items": { "$ref": "PowerEvent" }, "description": "List of power events." } - ], - "handlers": ["browser", "frontend"] + ] } ] }, { "domain": "Animation", - "hidden": true, + "experimental": true, + "dependencies": ["Runtime", "DOM"], "types": [ { - "id": "AnimationPlayer", + "id": "Animation", "type": "object", - "hidden": true, + "experimental": true, "properties": [ - { "name": "id", "type": "string", "description": "AnimationPlayer's id." }, - { "name": "pausedState", "type": "boolean", "hidden": "true", "description": "AnimationPlayer's internal paused state." }, - { "name": "playState", "type": "string", "description": "AnimationPlayer's play state." }, - { "name": "playbackRate", "type": "number", "description": "AnimationPlayer's playback rate." }, - { "name": "startTime", "type": "number", "description": "AnimationPlayer's start time." }, - { "name": "currentTime", "type": "number", "description": "AnimationPlayer's current time." }, - { "name": "source", "$ref": "AnimationNode", "description": "AnimationPlayer's source animation node." }, - { "name": "type", "type": "string", "enum": ["CSSTransition", "CSSAnimation", "WebAnimation"], "description": "Animation type of AnimationPlayer." } + { "name": "id", "type": "string", "description": "Animation's id." }, + { "name": "name", "type": "string", "description": "Animation's name." }, + { "name": "pausedState", "type": "boolean", "experimental": true, "description": "Animation's internal paused state." }, + { "name": "playState", "type": "string", "description": "Animation's play state." }, + { "name": "playbackRate", "type": "number", "description": "Animation's playback rate." }, + { "name": "startTime", "type": "number", "description": "Animation's start time." }, + { "name": "currentTime", "type": "number", "description": "Animation's current time." }, + { "name": "source", "$ref": "AnimationEffect", "description": "Animation's source animation node." }, + { "name": "type", "type": "string", "enum": ["CSSTransition", "CSSAnimation", "WebAnimation"], "description": "Animation type of Animation." }, + { "name": "cssId", "type": "string", "optional": true, "description": "A unique ID for Animation representing the sources that triggered this CSS animation/transition."} ], - "description": "AnimationPlayer instance." + "description": "Animation instance." }, { - "id": "AnimationNode", + "id": "AnimationEffect", "type": "object", - "hidden": true, + "experimental": true, "properties": [ - { "name": "delay", "type": "number", "description": "AnimationNode's delay." }, - { "name": "endDelay", "type": "number", "description": "AnimationNode's end delay." }, - { "name": "playbackRate", "type": "number", "description": "AnimationNode's playbackRate." }, - { "name": "iterationStart", "type": "number", "description": "AnimationNode's iteration start." }, - { "name": "iterations", "type": "number", "description": "AnimationNode's iterations." }, - { "name": "duration", "type": "number", "description": "AnimationNode's iteration duration." }, - { "name": "direction", "type": "string", "description": "AnimationNode's playback direction." }, - { "name": "fill", "type": "string", "description": "AnimationNode's fill mode." }, - { "name": "name", "type": "string", "description": "AnimationNode's name." }, - { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "description": "AnimationNode's target node." }, - { "name": "keyframesRule", "$ref": "KeyframesRule", "optional": true, "description": "AnimationNode's keyframes." }, - { "name": "easing", "type": "string", "description": "AnimationNode's timing function." } - ], - "description": "AnimationNode instance" + { "name": "delay", "type": "number", "description": "AnimationEffect's delay." }, + { "name": "endDelay", "type": "number", "description": "AnimationEffect's end delay." }, + { "name": "iterationStart", "type": "number", "description": "AnimationEffect's iteration start." }, + { "name": "iterations", "type": "number", "description": "AnimationEffect's iterations." }, + { "name": "duration", "type": "number", "description": "AnimationEffect's iteration duration." }, + { "name": "direction", "type": "string", "description": "AnimationEffect's playback direction." }, + { "name": "fill", "type": "string", "description": "AnimationEffect's fill mode." }, + { "name": "backendNodeId", "$ref": "DOM.BackendNodeId", "description": "AnimationEffect's target node." }, + { "name": "keyframesRule", "$ref": "KeyframesRule", "optional": true, "description": "AnimationEffect's keyframes." }, + { "name": "easing", "type": "string", "description": "AnimationEffect's timing function." } + ], + "description": "AnimationEffect instance" }, { "id": "KeyframesRule", @@ -4969,7 +4225,7 @@ "type": "object", "properties": [ { "name": "offset", "type": "string", "description": "Keyframe's time offset." }, - { "name": "easing", "type": "string", "description": "AnimationNode's timing function." } + { "name": "easing", "type": "string", "description": "AnimationEffect's timing function." } ], "description": "Keyframe Style" } @@ -4980,16 +4236,8 @@ "description": "Enables animation domain notifications." }, { - "name": "getAnimationPlayersForNode", - "parameters": [ - { "name": "nodeId", "$ref": "DOM.NodeId", "description": "Id of the node to get animation players for." }, - { "name": "includeSubtreeAnimations", "type": "boolean", "description": "Include animations from elements subtree." } - ], - "returns": [ - { "name": "animationPlayers", "type": "array", "items": { "$ref": "AnimationPlayer" }, "description": "Array of animation players." } - ], - "description": "Returns animation players relevant to the node.", - "hidden": true + "name": "disable", + "description": "Disables animation domain notifications." }, { "name": "getPlaybackRate", @@ -5006,43 +4254,86 @@ "description": "Sets the playback rate of the document timeline." }, { - "name": "setCurrentTime", + "name": "getCurrentTime", + "parameters": [ + { "name": "id", "type": "string", "description": "Id of animation." } + ], + "returns": [ + { "name": "currentTime", "type": "number", "description": "Current time of the page." } + ], + "description": "Returns the current time of the an animation." + }, + { + "name": "setPaused", "parameters": [ - { "name": "currentTime", "type": "number", "description": "Current time for the page animation timeline" } + { "name": "animations", "type": "array", "items": { "type": "string" }, "description": "Animations to set the pause state of." }, + { "name": "paused", "type": "boolean", "description": "Paused state to set to." } ], - "description": "Sets the current time of the document timeline." + "description": "Sets the paused state of a set of animations." }, { "name": "setTiming", "parameters": [ - { "name": "playerId", "type": "string", "description": "AnimationPlayer id." }, + { "name": "animationId", "type": "string", "description": "Animation id." }, { "name": "duration", "type": "number", "description": "Duration of the animation." }, { "name": "delay", "type": "number", "description": "Delay of the animation." } ], "description": "Sets the timing of an animation node." + }, + { + "name": "seekAnimations", + "parameters": [ + { "name": "animations", "type": "array", "items": { "type": "string" }, "description": "List of animation ids to seek." }, + { "name": "currentTime", "type": "number", "description": "Set the current time of each animation." } + ], + "description": "Seek a set of animations to a particular time within each animation." + }, + { + "name": "releaseAnimations", + "parameters": [ + { "name": "animations", "type": "array", "items": { "type": "string" }, "description": "List of animation ids to seek." } + ], + "description": "Releases a set of animations to no longer be manipulated." + }, + { + "name": "resolveAnimation", + "parameters": [ + { "name": "animationId", "type": "string", "description": "Animation id." } + ], + "returns": [ + { "name": "remoteObject", "$ref": "Runtime.RemoteObject", "description": "Corresponding remote object." } + ], + "description": "Gets the remote object of the Animation." } ], "events": [ { - "name": "animationPlayerCreated", + "name": "animationCreated", + "parameters": [ + { "name": "id", "type": "string", "description": "Id of the animation that was created." } + ], + "description": "Event for each animation that has been created." + }, + { + "name": "animationStarted", "parameters": [ - { "name": "player", "$ref": "AnimationPlayer", "description": "AnimationPlayer that was created." }, - { "name": "resetTimeline", "type": "boolean", "description": "Whether the timeline should be reset." } + { "name": "animation", "$ref": "Animation", "description": "Animation that was started." } ], - "description": "Event for each animation player that has been created." + "description": "Event for animation that has been started." }, { - "name": "animationPlayerCanceled", + "name": "animationCanceled", "parameters": [ - { "name": "playerId", "type": "string", "description": "Id of the AnimationPlayer that was cancelled." } + { "name": "id", "type": "string", "description": "Id of the animation that was cancelled."} ], - "description": "Event for AnimationPlayers in the frontend that have been cancelled." + "description": "Event for when an animation has been cancelled." } ] }, { "domain": "Accessibility", - "hidden": true, + "experimental": true, + "dependencies": ["DOM"], "types": [ { "id": "AXNodeId", @@ -5052,23 +4343,31 @@ { "id": "AXValueType", "type": "string", - "enum": [ "boolean", "tristate", "booleanOrUndefined", "idref", "idrefList", "integer", "number", "string", "token", "tokenList", "domRelation", "role", "internalRole" ], + "enum": [ "boolean", "tristate", "booleanOrUndefined", "idref", "idrefList", "integer", "node", "nodeList", "number", "string", "computedString", "token", "tokenList", "domRelation", "role", "internalRole", "valueUndefined" ], "description": "Enum of possible property types." }, { - "id": "AXPropertySourceType", + "id": "AXValueSourceType", "type": "string", - "enum": [ "attribute", "implicit", "style" ], + "enum": [ "attribute", "implicit", "style", "contents", "placeholder", "relatedElement" ], "description": "Enum of possible property sources." }, + { "id": "AXValueNativeSourceType", + "type": "string", + "enum": [ "figcaption", "label", "labelfor", "labelwrapped", "legend", "tablecaption", "title", "other" ], + "description": "Enum of possible native property sources (as a subtype of a particular AXValueSourceType)." + }, { - "id": "AXPropertySource", + "id": "AXValueSource", "type": "object", "properties": [ - { "name": "name", "type": "string", "description": "The name/label of this source." }, - { "name": "sourceType", "$ref": "AXPropertySourceType", "description": "What type of source this is." }, - { "name": "value", "type": "any", "description": "The value of this property source." }, - { "name": "type", "$ref": "AXValueType", "description": "What type the value should be interpreted as." }, + { "name": "type", "$ref": "AXValueSourceType", "description": "What type of source this is." }, + { "name": "value", "$ref": "AXValue", "description": "The value of this property source.", "optional": true }, + { "name": "attribute", "type": "string", "description": "The name of the relevant attribute, if any.", "optional": true }, + { "name": "attributeValue", "$ref": "AXValue", "description": "The value of the relevant attribute, if any.", "optional": true }, + { "name": "superseded", "type": "boolean", "description": "Whether this source is superseded by a higher priority source.", "optional": true }, + { "name": "nativeSource", "$ref": "AXValueNativeSourceType", "description": "The native markup source for this value, e.g. a