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

new protocol (chrome 62)

+ deprecated json field support (-> obsolete)
+ event with dictionary support
+ updated sample not to use deprecated command (SetVisibleSizeCommand ->
SetDeviceMetricsOverrideCommand)
parent 4f3d1c43
No related branches found
No related tags found
No related merge requests found
Showing
with 38 additions and 25 deletions
using MasterDevs.ChromeDevTools;using Newtonsoft.Json;
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
{
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......@@ -13,5 +14,20 @@ namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string[] BackgroundColors { get; set; }
/// <summary>
/// Gets or sets The computed font size for this node, as a CSS computed value string (e.g. '12px').
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string ComputedFontSize { get; set; }
/// <summary>
/// Gets or sets The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or '100').
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string ComputedFontWeight { get; set; }
/// <summary>
/// Gets or sets The computed font size for the document body, as a computed CSS value string (e.g. '16px').
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string ComputedBodyFontSize { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
{
/// <summary>
/// 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.
/// </summary>
[CommandResponse(ProtocolName.CSS.GetLayoutTreeAndStyles)]
[SupportedBy("Chrome")]
public class GetLayoutTreeAndStylesCommandResponse
{
/// <summary>
/// Gets or sets LayoutTreeNodes
/// </summary>
public LayoutTreeNode[] LayoutTreeNodes { get; set; }
/// <summary>
/// Gets or sets ComputedStyles
/// </summary>
public ComputedStyle[] ComputedStyles { get; set; }
}
}
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
using MasterDevs.ChromeDevTools;using Newtonsoft.Json;
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
{
......
using MasterDevs.ChromeDevTools;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace MasterDevs.ChromeDevTools.Protocol.Chrome.CSS
......
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