Skip to content
Snippets Groups Projects
Commit 379098f0 authored by brewdente's avatar brewdente
Browse files

Adding all the fiels that didn't get committed but should've with the big rename commit.

parent 7794deb8
No related branches found
No related tags found
No related merge requests found
Showing
with 386 additions and 0 deletions
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Searches for a given string in the DOM tree. Use <code>getSearchResults</code> to access search results or <code>cancelSearch</code> to end this search session.
/// </summary>
[Command(ProtocolName.DOM.PerformSearch)]
public class PerformSearchCommand
{
/// <summary>
/// Gets or sets Plain text or query selector or XPath search query.
/// </summary>
public string Query { get; set; }
/// <summary>
/// Gets or sets True to search in user agent shadow DOM.
/// </summary>
public bool IncludeUserAgentShadowDOM { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Searches for a given string in the DOM tree. Use <code>getSearchResults</code> to access search results or <code>cancelSearch</code> to end this search session.
/// </summary>
[CommandResponse(ProtocolName.DOM.PerformSearch)]
public class PerformSearchCommandResponse
{
/// <summary>
/// Gets or sets Unique search session identifier.
/// </summary>
public string SearchId { get; set; }
/// <summary>
/// Gets or sets Number of search results.
/// </summary>
public long ResultCount { get; set; }
}
}
using MasterDevs.ChromeDevTools;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Called when a pseudo element is added to an element.
/// </summary>
[Event(ProtocolName.DOM.PseudoElementAdded)]
public class PseudoElementAddedEvent
{
/// <summary>
/// Gets or sets Pseudo element's parent element id.
/// </summary>
public long ParentId { get; set; }
/// <summary>
/// Gets or sets The added pseudo element.
/// </summary>
public Node PseudoElement { get; set; }
}
}
using MasterDevs.ChromeDevTools;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Called when a pseudo element is removed from an element.
/// </summary>
[Event(ProtocolName.DOM.PseudoElementRemoved)]
public class PseudoElementRemovedEvent
{
/// <summary>
/// Gets or sets Pseudo element's parent element id.
/// </summary>
public long ParentId { get; set; }
/// <summary>
/// Gets or sets The removed pseudo element id.
/// </summary>
public long PseudoElementId { get; set; }
}
}
using MasterDevs.ChromeDevTools;
namespace MasterDevs.ChromeDevTools.Protocol.DOM{
/// <summary>
/// Pseudo element type.
/// </summary>
public enum PseudoType
{
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,
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Requests that the node is sent to the caller given its path. // FIXME, use XPath
/// </summary>
[Command(ProtocolName.DOM.PushNodeByPathToFrontend)]
public class PushNodeByPathToFrontendCommand
{
/// <summary>
/// Gets or sets Path to node in the proprietary format.
/// </summary>
public string Path { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Requests that the node is sent to the caller given its path. // FIXME, use XPath
/// </summary>
[CommandResponse(ProtocolName.DOM.PushNodeByPathToFrontend)]
public class PushNodeByPathToFrontendCommandResponse
{
/// <summary>
/// Gets or sets Id of the node for given path.
/// </summary>
public long NodeId { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Requests that a batch of nodes is sent to the caller given their backend node ids.
/// </summary>
[Command(ProtocolName.DOM.PushNodesByBackendIdsToFrontend)]
public class PushNodesByBackendIdsToFrontendCommand
{
/// <summary>
/// Gets or sets The array of backend node ids.
/// </summary>
public long[] BackendNodeIds { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Requests that a batch of nodes is sent to the caller given their backend node ids.
/// </summary>
[CommandResponse(ProtocolName.DOM.PushNodesByBackendIdsToFrontend)]
public class PushNodesByBackendIdsToFrontendCommandResponse
{
/// <summary>
/// Gets or sets The array of ids of pushed nodes that correspond to the backend ids specified in backendNodeIds.
/// </summary>
public long[] NodeIds { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Executes <code>querySelectorAll</code> on a given node.
/// </summary>
[Command(ProtocolName.DOM.QuerySelectorAll)]
public class QuerySelectorAllCommand
{
/// <summary>
/// Gets or sets Id of the node to query upon.
/// </summary>
public long NodeId { get; set; }
/// <summary>
/// Gets or sets Selector string.
/// </summary>
public string Selector { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Executes <code>querySelectorAll</code> on a given node.
/// </summary>
[CommandResponse(ProtocolName.DOM.QuerySelectorAll)]
public class QuerySelectorAllCommandResponse
{
/// <summary>
/// Gets or sets Query selector result.
/// </summary>
public long[] NodeIds { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Executes <code>querySelector</code> on a given node.
/// </summary>
[Command(ProtocolName.DOM.QuerySelector)]
public class QuerySelectorCommand
{
/// <summary>
/// Gets or sets Id of the node to query upon.
/// </summary>
public long NodeId { get; set; }
/// <summary>
/// Gets or sets Selector string.
/// </summary>
public string Selector { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Executes <code>querySelector</code> on a given node.
/// </summary>
[CommandResponse(ProtocolName.DOM.QuerySelector)]
public class QuerySelectorCommandResponse
{
/// <summary>
/// Gets or sets Query selector result.
/// </summary>
public long NodeId { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// A structure holding an RGBA color.
/// </summary>
public class RGBA
{
/// <summary>
/// Gets or sets The red component, in the [0-255] range.
/// </summary>
public long R { get; set; }
/// <summary>
/// Gets or sets The green component, in the [0-255] range.
/// </summary>
public long G { get; set; }
/// <summary>
/// Gets or sets The blue component, in the [0-255] range.
/// </summary>
public long B { get; set; }
/// <summary>
/// Gets or sets The alpha component, in the [0-1] range (default: 1).
/// </summary>
public double A { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Re-does the last undone action.
/// </summary>
[Command(ProtocolName.DOM.Redo)]
public class RedoCommand
{
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Re-does the last undone action.
/// </summary>
[CommandResponse(ProtocolName.DOM.Redo)]
public class RedoCommandResponse
{
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Removes attribute with given name from an element with given id.
/// </summary>
[Command(ProtocolName.DOM.RemoveAttribute)]
public class RemoveAttributeCommand
{
/// <summary>
/// Gets or sets Id of the element to remove attribute from.
/// </summary>
public long NodeId { get; set; }
/// <summary>
/// Gets or sets Name of the attribute to remove.
/// </summary>
public string Name { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Removes attribute with given name from an element with given id.
/// </summary>
[CommandResponse(ProtocolName.DOM.RemoveAttribute)]
public class RemoveAttributeCommandResponse
{
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Removes node with given id.
/// </summary>
[Command(ProtocolName.DOM.RemoveNode)]
public class RemoveNodeCommand
{
/// <summary>
/// Gets or sets Id of the node to remove.
/// </summary>
public long NodeId { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.DOM
{
/// <summary>
/// Removes node with given id.
/// </summary>
[CommandResponse(ProtocolName.DOM.RemoveNode)]
public class RemoveNodeCommandResponse
{
}
}
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