public bool OnBeforePopup(CefSharp.IWebBrowser chromiumWebBrowser, CefSharp.IBrowser browser, CefSharp.IFrame frame, string targetUrl, string targetFrameName, CefSharp.WindowOpenDisposition targetDisposition, bool userGesture, CefSharp.IPopupFeatures popupFeatures, CefSharp.IWindowInfo windowInfo, CefSharp.IBrowserSettings browserSettings, ref bool noJavascriptAccess, out CefSharp.IWebBrowser newBrowser) { newBrowser = null; if (BeforePopupEvent == null) { return(false); } NewWindowEventArgs e = new NewWindowEventArgs(chromiumWebBrowser, browser, frame, targetUrl, targetFrameName, targetDisposition, windowInfo); BeforePopupEvent(this, e); if (e.newBrowser == null) { return(false); } //newBrowser = e.newBrowser; return(true); }
public virtual void CreateBrowser(CefSharp.IWindowInfo windowInfo, CefSharp.IBrowserSettings browserSettings, CefSharp.IRequestContext requestContext, string address) { }
public NewWindowEventArgs(CefSharp.IWebBrowser chromiumWebBrowser, CefSharp.IBrowser browser, CefSharp.IFrame frame, string targetUrl, string targetFrameName, CefSharp.WindowOpenDisposition targetDisposition, CefSharp.IWindowInfo windowInfo) { this.chromiumWebBrowser = chromiumWebBrowser; this.browser = browser; this.frame = frame; this.targetUrl = targetUrl; this.targetFrameName = targetFrameName; this.targetDisposition = targetDisposition; this.windowInfo = windowInfo; }