public void OnNewWindow(NewWindowEventArgs e) { if (StartNewWindow != null) { StartNewWindow(this, e); } }
public bool OnBeforePopup(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser) { ExtChromiumBrowser webBrowser = chromiumWebBrowser as ExtChromiumBrowser; Action action = new Action(() => { NewWindowEventArgs e = new NewWindowEventArgs(windowInfo, targetUrl); webBrowser.OnNewWindow(e); }); webBrowser.Invoke(action); newBrowser = null; return(true); }