Skip to content
Snippets Groups Projects
Commit 8203b745 authored by svatal's avatar svatal
Browse files

new protocols - Chrome 60

parent 548620f9
No related branches found
No related tags found
No related merge requests found
Showing
with 165 additions and 41 deletions
...@@ -16,7 +16,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger ...@@ -16,7 +16,7 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger
/// </summary> /// </summary>
public Location Start { get; set; } public Location Start { get; set; }
/// <summary> /// <summary>
/// Gets or sets End of range to search possible breakpoint locations in (excluding). When not specifed, end of scripts is used as end of range. /// 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.
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public Location End { get; set; } public Location End { get; set; }
......
...@@ -66,5 +66,10 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger ...@@ -66,5 +66,10 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public long? Length { get; set; } public long? Length { get; set; }
/// <summary>
/// Gets or sets JavaScript top stack frame of where the script parsed event was triggered if available.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public Runtime.StackTrace StackTrace { get; set; }
} }
} }
...@@ -71,5 +71,10 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger ...@@ -71,5 +71,10 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Debugger
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public long? Length { get; set; } public long? Length { get; set; }
/// <summary>
/// Gets or sets JavaScript top stack frame of where the script parsed event was triggered if available.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public Runtime.StackTrace StackTrace { get; set; }
} }
} }
...@@ -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.HeapProfiler namespace MasterDevs.ChromeDevTools.Protocol.Chrome.HeapProfiler
{ {
/// <summary> /// <summary>
/// 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.
/// </summary> /// </summary>
[Event(ProtocolName.HeapProfiler.LastSeenObjectId)] [Event(ProtocolName.HeapProfiler.LastSeenObjectId)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Input
{
/// <summary>
/// Ignores input events (useful while auditing page).
/// </summary>
[Command(ProtocolName.Input.SetIgnoreInputEvents)]
[SupportedBy("Chrome")]
public class SetIgnoreInputEventsCommand
{
/// <summary>
/// Gets or sets Ignores input events processing when set to true.
/// </summary>
public bool Ignore { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Input
{
/// <summary>
/// Ignores input events (useful while auditing page).
/// </summary>
[CommandResponse(ProtocolName.Input.SetIgnoreInputEvents)]
[SupportedBy("Chrome")]
public class SetIgnoreInputEventsCommandResponse
{
}
}
...@@ -40,5 +40,10 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network ...@@ -40,5 +40,10 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network
/// Gets or sets The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ /// Gets or sets The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
/// </summary> /// </summary>
public string ReferrerPolicy { get; set; } public string ReferrerPolicy { get; set; }
/// <summary>
/// Gets or sets Whether is loaded via link preload.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public bool? IsLinkPreload { get; set; }
} }
} }
...@@ -5,15 +5,15 @@ using System.Collections.Generic; ...@@ -5,15 +5,15 @@ using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network
{ {
/// <summary> /// <summary>
/// Cancels blocking of a specific URL from loading. /// Blocks URLs from loading.
/// </summary> /// </summary>
[Command(ProtocolName.Network.RemoveBlockedURL)] [Command(ProtocolName.Network.SetBlockedURLs)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
public class RemoveBlockedURLCommand public class SetBlockedURLsCommand
{ {
/// <summary> /// <summary>
/// Gets or sets URL to stop blocking. /// Gets or sets URL patterns to block. Wildcards ('*') are allowed.
/// </summary> /// </summary>
public string Url { get; set; } public string[] Urls { get; set; }
} }
} }
...@@ -5,11 +5,11 @@ using System.Collections.Generic; ...@@ -5,11 +5,11 @@ using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network
{ {
/// <summary> /// <summary>
/// Blocks specific URL from loading. /// Blocks URLs from loading.
/// </summary> /// </summary>
[CommandResponse(ProtocolName.Network.AddBlockedURL)] [CommandResponse(ProtocolName.Network.SetBlockedURLs)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
public class AddBlockedURLCommandResponse public class SetBlockedURLsCommandResponse
{ {
} }
} }
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Network
{
/// <summary>
/// Toggles monitoring of XMLHttpRequest. If <code>true</code>, console will receive messages upon each XHR issued.
/// </summary>
[CommandResponse(ProtocolName.Network.SetMonitoringXHREnabled)]
[SupportedBy("Chrome")]
public class SetMonitoringXHREnabledCommandResponse
{
}
}
...@@ -2,14 +2,14 @@ using MasterDevs.ChromeDevTools; ...@@ -2,14 +2,14 @@ using MasterDevs.ChromeDevTools;
using Newtonsoft.Json; using Newtonsoft.Json;
using System.Collections.Generic; using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Page namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay
{ {
/// <summary> /// <summary>
/// Configures overlay. /// Disables domain notifications.
/// </summary> /// </summary>
[CommandResponse(ProtocolName.Page.ConfigureOverlay)] [Command(ProtocolName.Overlay.Disable)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
public class ConfigureOverlayCommandResponse public class DisableCommand
{ {
} }
} }
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay
{
/// <summary>
/// Disables domain notifications.
/// </summary>
[CommandResponse(ProtocolName.Overlay.Disable)]
[SupportedBy("Chrome")]
public class DisableCommandResponse
{
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay
{
/// <summary>
/// Enables domain notifications.
/// </summary>
[Command(ProtocolName.Overlay.Enable)]
[SupportedBy("Chrome")]
public class EnableCommand
{
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay
{
/// <summary>
/// Enables domain notifications.
/// </summary>
[CommandResponse(ProtocolName.Overlay.Enable)]
[SupportedBy("Chrome")]
public class EnableCommandResponse
{
}
}
...@@ -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.DOM namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay
{ {
/// <summary> /// <summary>
/// For testing. /// For testing.
/// </summary> /// </summary>
[Command(ProtocolName.DOM.GetHighlightObjectForTest)] [Command(ProtocolName.Overlay.GetHighlightObjectForTest)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
public class GetHighlightObjectForTestCommand public class GetHighlightObjectForTestCommand
{ {
......
...@@ -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.DOM namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay
{ {
/// <summary> /// <summary>
/// For testing. /// For testing.
/// </summary> /// </summary>
[CommandResponse(ProtocolName.DOM.GetHighlightObjectForTest)] [CommandResponse(ProtocolName.Overlay.GetHighlightObjectForTest)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
public class GetHighlightObjectForTestCommandResponse public class GetHighlightObjectForTestCommandResponse
{ {
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay
{
/// <summary>
/// Hides any highlight.
/// </summary>
[Command(ProtocolName.Overlay.HideHighlight)]
[SupportedBy("Chrome")]
public class HideHighlightCommand
{
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay
{
/// <summary>
/// Hides any highlight.
/// </summary>
[CommandResponse(ProtocolName.Overlay.HideHighlight)]
[SupportedBy("Chrome")]
public class HideHighlightCommandResponse
{
}
}
...@@ -2,7 +2,7 @@ using MasterDevs.ChromeDevTools; ...@@ -2,7 +2,7 @@ using MasterDevs.ChromeDevTools;
using Newtonsoft.Json; using Newtonsoft.Json;
using System.Collections.Generic; using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay
{ {
/// <summary> /// <summary>
/// Configuration data for the highlighting of page elements. /// Configuration data for the highlighting of page elements.
...@@ -34,37 +34,37 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM ...@@ -34,37 +34,37 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM
/// 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)]
public RGBA ContentColor { get; set; } public DOM.RGBA ContentColor { get; set; }
/// <summary> /// <summary>
/// Gets or sets The padding highlight fill color (default: transparent). /// Gets or sets The padding highlight fill color (default: transparent).
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public RGBA PaddingColor { get; set; } public DOM.RGBA PaddingColor { get; set; }
/// <summary> /// <summary>
/// Gets or sets The border highlight fill color (default: transparent). /// Gets or sets The border highlight fill color (default: transparent).
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public RGBA BorderColor { get; set; } public DOM.RGBA BorderColor { get; set; }
/// <summary> /// <summary>
/// Gets or sets The margin highlight fill color (default: transparent). /// Gets or sets The margin highlight fill color (default: transparent).
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public RGBA MarginColor { get; set; } public DOM.RGBA MarginColor { get; set; }
/// <summary> /// <summary>
/// Gets or sets The event target element highlight fill color (default: transparent). /// Gets or sets The event target element highlight fill color (default: transparent).
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public RGBA EventTargetColor { get; set; } public DOM.RGBA EventTargetColor { get; set; }
/// <summary> /// <summary>
/// Gets or sets The shape outside fill color (default: transparent). /// Gets or sets The shape outside fill color (default: transparent).
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public RGBA ShapeColor { get; set; } public DOM.RGBA ShapeColor { get; set; }
/// <summary> /// <summary>
/// Gets or sets The shape margin fill color (default: transparent). /// Gets or sets The shape margin fill color (default: transparent).
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public RGBA ShapeMarginColor { get; set; } public DOM.RGBA ShapeMarginColor { get; set; }
/// <summary> /// <summary>
/// Gets or sets Selectors to highlight relevant nodes. /// Gets or sets Selectors to highlight relevant nodes.
/// </summary> /// </summary>
......
...@@ -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.DOM namespace MasterDevs.ChromeDevTools.Protocol.Chrome.Overlay
{ {
/// <summary> /// <summary>
/// Highlights owner element of the frame with given id. /// Highlights owner element of the frame with given id.
/// </summary> /// </summary>
[Command(ProtocolName.DOM.HighlightFrame)] [Command(ProtocolName.Overlay.HighlightFrame)]
[SupportedBy("Chrome")] [SupportedBy("Chrome")]
public class HighlightFrameCommand public class HighlightFrameCommand
{ {
...@@ -19,11 +19,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM ...@@ -19,11 +19,11 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.DOM
/// 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)]
public RGBA ContentColor { get; set; } public DOM.RGBA ContentColor { get; set; }
/// <summary> /// <summary>
/// Gets or sets The content box highlight outline color (default: transparent). /// Gets or sets The content box highlight outline color (default: transparent).
/// </summary> /// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public RGBA ContentOutlineColor { get; set; } public DOM.RGBA ContentOutlineColor { get; set; }
} }
} }
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