示例#1
0
        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);
        }
示例#2
0
 public virtual void CreateBrowser(CefSharp.IWindowInfo windowInfo, CefSharp.IBrowserSettings browserSettings, CefSharp.IRequestContext requestContext, string address)
 {
 }
示例#3
0
 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;
 }