/// <summary> /// Sets or clears an override of the default background color of the frame. This override is used /// if the content does not specify one. /// </summary> /// <param name = "color">RGBA of the default background color. If not specified, any existing override will be public async System.Threading.Tasks.Task <DevToolsMethodResponse> SetDefaultBackgroundColorOverrideAsync(CefSharp.DevTools.DOM.RGBA color = null) { ValidateSetDefaultBackgroundColorOverride(color); var dict = new System.Collections.Generic.Dictionary <string, object>(); if ((color) != (null)) { dict.Add("color", color.ToDictionary()); } var methodResult = await _client.ExecuteDevToolsMethodAsync("Emulation.setDefaultBackgroundColorOverride", dict); return(methodResult); }
partial void ValidateHighlightFrame(string frameId, CefSharp.DevTools.DOM.RGBA contentColor = null, CefSharp.DevTools.DOM.RGBA contentOutlineColor = null);
partial void ValidateSetDefaultBackgroundColorOverride(CefSharp.DevTools.DOM.RGBA color = null);
/// <summary> /// Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport. /// </summary> /// <param name = "x">X coordinate</param> /// <param name = "y">Y coordinate</param> /// <param name = "width">Rectangle width</param> /// <param name = "height">Rectangle height</param> /// <param name = "color">The highlight fill color (default: transparent).</param> /// <param name = "outlineColor">The highlight outline color (default: transparent).</param> /// <returns>returns System.Threading.Tasks.Task<DevToolsMethodResponse></returns> public async System.Threading.Tasks.Task <DevToolsMethodResponse> HighlightRectAsync(int x, int y, int width, int height, CefSharp.DevTools.DOM.RGBA color = null, CefSharp.DevTools.DOM.RGBA outlineColor = null) { ValidateHighlightRect(x, y, width, height, color, outlineColor); var dict = new System.Collections.Generic.Dictionary <string, object>(); dict.Add("x", x); dict.Add("y", y); dict.Add("width", width); dict.Add("height", height); if ((color) != (null)) { dict.Add("color", color.ToDictionary()); } if ((outlineColor) != (null)) { dict.Add("outlineColor", outlineColor.ToDictionary()); } var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.highlightRect", dict); return(methodResult); }
partial void ValidateHighlightRect(int x, int y, int width, int height, CefSharp.DevTools.DOM.RGBA color = null, CefSharp.DevTools.DOM.RGBA outlineColor = null);
/// <summary> /// Highlights given quad. Coordinates are absolute with respect to the main frame viewport. /// </summary> /// <param name = "quad">Quad to highlight</param> /// <param name = "color">The highlight fill color (default: transparent).</param> /// <param name = "outlineColor">The highlight outline color (default: transparent).</param> /// <returns>returns System.Threading.Tasks.Task<DevToolsMethodResponse></returns> public async System.Threading.Tasks.Task <DevToolsMethodResponse> HighlightQuadAsync(long[] quad, CefSharp.DevTools.DOM.RGBA color = null, CefSharp.DevTools.DOM.RGBA outlineColor = null) { ValidateHighlightQuad(quad, color, outlineColor); var dict = new System.Collections.Generic.Dictionary <string, object>(); dict.Add("quad", quad); if ((color) != (null)) { dict.Add("color", color.ToDictionary()); } if ((outlineColor) != (null)) { dict.Add("outlineColor", outlineColor.ToDictionary()); } var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.highlightQuad", dict); return(methodResult); }
partial void ValidateHighlightQuad(long[] quad, CefSharp.DevTools.DOM.RGBA color = null, CefSharp.DevTools.DOM.RGBA outlineColor = null);
/// <summary> /// Highlights owner element of the frame with given id. /// </summary> /// <param name = "frameId">Identifier of the frame to highlight.</param> /// <param name = "contentColor">The content box highlight fill color (default: transparent).</param> /// <param name = "contentOutlineColor">The content box highlight outline color (default: transparent).</param> /// <returns>returns System.Threading.Tasks.Task<DevToolsMethodResponse></returns> public async System.Threading.Tasks.Task <DevToolsMethodResponse> HighlightFrameAsync(string frameId, CefSharp.DevTools.DOM.RGBA contentColor = null, CefSharp.DevTools.DOM.RGBA contentOutlineColor = null) { ValidateHighlightFrame(frameId, contentColor, contentOutlineColor); var dict = new System.Collections.Generic.Dictionary <string, object>(); dict.Add("frameId", frameId); if ((contentColor) != (null)) { dict.Add("contentColor", contentColor.ToDictionary()); } if ((contentOutlineColor) != (null)) { dict.Add("contentOutlineColor", contentOutlineColor.ToDictionary()); } var methodResult = await _client.ExecuteDevToolsMethodAsync("Overlay.highlightFrame", dict); return(methodResult); }