/// <summary> /// ShowDevTools. /// </summary> public void ShowDevTools() { var host = this.WebBrowser.CefBrowser.GetHost(); var wi = CefWindowInfo.Create(); wi.SetAsPopup(IntPtr.Zero, "DevTools"); var client = new DevToolsWebClient(); host.ShowDevTools(wi, client, this.BrowserSettings, new CefPoint(0, 0)); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (_client != null) { _client.Dispose(); _client = null; } _browser = null; if (Disposed != null) { Disposed(this, EventArgs.Empty); } } }
public DevToolsWebBrowser() { _client = new DevToolsWebClient(this); }