Skip to content
Snippets Groups Projects
Commit 24147496 authored by svatal's avatar svatal
Browse files
protocol conflicts resolved using master - regeneration needed
parents 3207391a f37da538
No related branches found
No related tags found
No related merge requests found
Showing
with 241 additions and 52 deletions
...@@ -5,7 +5,7 @@ using System.Collections.Generic; ...@@ -5,7 +5,7 @@ using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM
{ {
/// <summary> /// <summary>
/// Returns the root DOM node to the caller. /// Returns the root DOM node (and optionally the subtree) to the caller.
/// </summary> /// </summary>
[CommandResponse(ProtocolName.DOM.GetDocument)] [CommandResponse(ProtocolName.DOM.GetDocument)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM
{
/// <summary>
/// Returns the root DOM node (and optionally the subtree) to the caller.
/// </summary>
[Command(ProtocolName.DOM.GetFlattenedDocument)]
[SupportedBy("Chrome")]
public class GetFlattenedDocumentCommand
{
/// <summary>
/// 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.
/// </summary>
public long Depth { get; set; }
/// <summary>
/// Gets or sets Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false).
/// </summary>
public bool Pierce { get; set; }
}
}
...@@ -5,15 +5,15 @@ using System.Collections.Generic; ...@@ -5,15 +5,15 @@ using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM
{ {
/// <summary> /// <summary>
/// Returns event listeners relevant to the node. /// Returns the root DOM node (and optionally the subtree) to the caller.
/// </summary> /// </summary>
[CommandResponse(ProtocolName.DOM.GetEventListenersForNode)] [CommandResponse(ProtocolName.DOM.GetFlattenedDocument)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
public class GetEventListenersForNodeCommandResponse public class GetFlattenedDocumentCommandResponse
{ {
/// <summary> /// <summary>
/// Gets or sets Array of relevant listeners. /// Gets or sets Resulting node.
/// </summary> /// </summary>
public EventListener[] Listeners { get; set; } public Node[] Nodes { get; set; }
} }
} }
...@@ -26,6 +26,10 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM ...@@ -26,6 +26,10 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public bool? ShowExtensionLines { get; set; } public bool? ShowExtensionLines { get; set; }
/// <summary> /// <summary>
/// Gets or sets DisplayAsMaterial
/// </summary>
public bool DisplayAsMaterial { get; set; }
/// <summary>
/// Gets or sets The content box highlight fill color (default: transparent). /// Gets or sets The content box highlight fill color (default: transparent).
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
...@@ -60,5 +64,9 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM ...@@ -60,5 +64,9 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public RGBA ShapeMarginColor { get; set; } public RGBA ShapeMarginColor { get; set; }
/// <summary>
/// Gets or sets Selectors to highlight relevant nodes.
/// </summary>
public string SelectorList { get; set; }
} }
} }
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Runtime.Serialization;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM{
/// <summary>
///
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum InspectMode
{
SearchForNode,
SearchForUAShadowDOM,
None,
}
}
...@@ -3,7 +3,7 @@ using MasterDevs.ChromeDevTools;using Newtonsoft.Json; ...@@ -3,7 +3,7 @@ using MasterDevs.ChromeDevTools;using Newtonsoft.Json;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM
{ {
/// <summary> /// <summary>
/// Fired when the node should be inspected. This happens after call to <code>setInspectModeEnabled</code>. /// Fired when the node should be inspected. This happens after call to <code>setInspectMode</code>.
/// </summary> /// </summary>
[Event(ProtocolName.DOM.InspectNodeRequested)] [Event(ProtocolName.DOM.InspectNodeRequested)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
......
...@@ -15,6 +15,14 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM ...@@ -15,6 +15,14 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM
/// </summary> /// </summary>
public long NodeId { get; set; } public long NodeId { get; set; }
/// <summary> /// <summary>
/// Gets or sets The id of the parent node if any.
/// </summary>
public long ParentId { get; set; }
/// <summary>
/// Gets or sets The BackendNodeId for this node.
/// </summary>
public long BackendNodeId { get; set; }
/// <summary>
/// Gets or sets <code>Node</code>'s nodeType. /// Gets or sets <code>Node</code>'s nodeType.
/// </summary> /// </summary>
public long NodeType { get; set; } public long NodeType { get; set; }
...@@ -130,5 +138,9 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM ...@@ -130,5 +138,9 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public BackendNode[] DistributedNodes { get; set; } public BackendNode[] DistributedNodes { get; set; }
/// <summary>
/// Gets or sets Whether the node is SVG.
/// </summary>
public bool IsSVG { get; set; }
} }
} }
using MasterDevs.ChromeDevTools;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM
{
[Event(ProtocolName.DOM.NodeHighlightRequested)]
[SupportedBy("Chrome")]
public class NodeHighlightRequestedEvent
{
/// <summary>
/// Gets or sets NodeId
/// </summary>
public long NodeId { get; set; }
}
}
...@@ -7,9 +7,9 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM ...@@ -7,9 +7,9 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM
/// <summary> /// <summary>
/// Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection. /// Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted. Backend then generates 'inspectNodeRequested' event upon element selection.
/// </summary> /// </summary>
[CommandResponse(ProtocolName.DOM.SetInspectModeEnabled)] [CommandResponse(ProtocolName.DOM.SetInspectMode)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
public class SetInspectModeEnabledCommandResponse public class SetInspectModeCommandResponse
{ {
} }
} }
...@@ -13,6 +13,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM{ ...@@ -13,6 +13,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM{
{ {
[EnumMember(Value = "user-agent")] [EnumMember(Value = "user-agent")]
User_agent, User_agent,
Author, Open,
Closed,
} }
} }
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger
{
/// <summary>
/// Object event listener.
/// </summary>
[SupportedBy("Chrome")]
public class EventListener
{
/// <summary>
/// Gets or sets <code>EventListener</code>'s type.
/// </summary>
public string Type { get; set; }
/// <summary>
/// Gets or sets <code>EventListener</code>'s useCapture.
/// </summary>
public bool UseCapture { get; set; }
/// <summary>
/// Gets or sets <code>EventListener</code>'s passive flag.
/// </summary>
public bool Passive { get; set; }
/// <summary>
/// Gets or sets <code>EventListener</code>'s once flag.
/// </summary>
public bool Once { get; set; }
/// <summary>
/// Gets or sets Script id of the handler code.
/// </summary>
public string ScriptId { get; set; }
/// <summary>
/// Gets or sets Line number in the script (0-based).
/// </summary>
public long LineNumber { get; set; }
/// <summary>
/// Gets or sets Column number in the script (0-based).
/// </summary>
public long ColumnNumber { get; set; }
/// <summary>
/// Gets or sets Event handler function value.
/// </summary>
public Runtime.RemoteObject Handler { get; set; }
/// <summary>
/// Gets or sets Event original handler function value.
/// </summary>
public Runtime.RemoteObject OriginalHandler { get; set; }
/// <summary>
/// Gets or sets Node the listener is added to (if any).
/// </summary>
public long BackendNodeId { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger
{
/// <summary>
/// Returns event listeners of the given object.
/// </summary>
[Command(ProtocolName.DOMDebugger.GetEventListeners)]
[SupportedBy("Chrome")]
public class GetEventListenersCommand
{
/// <summary>
/// Gets or sets Identifier of the object to return listeners for.
/// </summary>
public string ObjectId { get; set; }
/// <summary>
/// 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.
/// </summary>
public long Depth { get; set; }
/// <summary>
/// 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.
/// </summary>
public bool Pierce { get; set; }
}
}
...@@ -2,12 +2,12 @@ using MasterDevs.ChromeDevTools; ...@@ -2,12 +2,12 @@ using MasterDevs.ChromeDevTools;
using Newtonsoft.Json; using Newtonsoft.Json;
using System.Collections.Generic; using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Runtime namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMDebugger
{ {
/// <summary> /// <summary>
/// Returns event listeners of the given object. /// Returns event listeners of the given object.
/// </summary> /// </summary>
[CommandResponse(ProtocolName.Runtime.GetEventListeners)] [CommandResponse(ProtocolName.DOMDebugger.GetEventListeners)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
public class GetEventListenersCommandResponse public class GetEventListenersCommandResponse
{ {
......
...@@ -2,15 +2,15 @@ using MasterDevs.ChromeDevTools; ...@@ -2,15 +2,15 @@ using MasterDevs.ChromeDevTools;
using Newtonsoft.Json; using Newtonsoft.Json;
using System.Collections.Generic; using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMStorage
{ {
[Command(ProtocolName.Canvas.DropTraceLog)] [Command(ProtocolName.DOMStorage.Clear)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
public class DropTraceLogCommand public class ClearCommand
{ {
/// <summary> /// <summary>
/// Gets or sets TraceLogId /// Gets or sets StorageId
/// </summary> /// </summary>
public string TraceLogId { get; set; } public StorageId StorageId { get; set; }
} }
} }
...@@ -2,11 +2,11 @@ using MasterDevs.ChromeDevTools; ...@@ -2,11 +2,11 @@ using MasterDevs.ChromeDevTools;
using Newtonsoft.Json; using Newtonsoft.Json;
using System.Collections.Generic; using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Worker namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOMStorage
{ {
[CommandResponse(ProtocolName.Worker.Disable)] [CommandResponse(ProtocolName.DOMStorage.Clear)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
public class DisableCommandResponse public class ClearCommandResponse
{ {
} }
} }
...@@ -2,37 +2,29 @@ using MasterDevs.ChromeDevTools; ...@@ -2,37 +2,29 @@ using MasterDevs.ChromeDevTools;
using Newtonsoft.Json; using Newtonsoft.Json;
using System.Collections.Generic; using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Canvas namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger
{ {
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
public class TraceLog public class BreakLocation
{ {
/// <summary> /// <summary>
/// Gets or sets Id /// Gets or sets Script identifier as reported in the <code>Debugger.scriptParsed</code>.
/// </summary> /// </summary>
public string Id { get; set; } public string ScriptId { get; set; }
/// <summary> /// <summary>
/// Gets or sets Calls /// Gets or sets Line number in the script (0-based).
/// </summary> /// </summary>
public Call[] Calls { get; set; } public long LineNumber { get; set; }
/// <summary> /// <summary>
/// Gets or sets Contexts /// Gets or sets Column number in the script (0-based).
/// </summary> /// </summary>
public CallArgument[] Contexts { get; set; } public long ColumnNumber { get; set; }
/// <summary> /// <summary>
/// Gets or sets StartOffset /// Gets or sets Type
/// </summary> /// </summary>
public long StartOffset { get; set; } public string Type { get; set; }
/// <summary>
/// Gets or sets Alive
/// </summary>
public bool Alive { get; set; }
/// <summary>
/// Gets or sets TotalAvailableCalls
/// </summary>
public double TotalAvailableCalls { get; set; }
} }
} }
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger
{
/// <summary>
/// Enables promise tracking, information about <code>Promise</code>s created or updated will now be stored on the backend.
/// </summary>
[CommandResponse(ProtocolName.Debugger.EnablePromiseTracker)]
[SupportedBy("Chrome")]
public class EnablePromiseTrackerCommandResponse
{
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger
{
/// <summary>
/// Fires pending <code>asyncOperationStarted</code> events (if any), as if a debugger stepping session has just been started.
/// </summary>
[Command(ProtocolName.Debugger.FlushAsyncOperationEvents)]
[SupportedBy("Chrome")]
public class FlushAsyncOperationEventsCommand
{
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger
{
/// <summary>
/// Fires pending <code>asyncOperationStarted</code> events (if any), as if a debugger stepping session has just been started.
/// </summary>
[CommandResponse(ProtocolName.Debugger.FlushAsyncOperationEvents)]
[SupportedBy("Chrome")]
public class FlushAsyncOperationEventsCommandResponse
{
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment