protected override bool OnBeforePopup(CefBrowser browser, CefFrame frame, string targetUrl, string targetFrameName, CefPopupFeatures popupFeatures, CefWindowInfo windowInfo, ref CefClient client, CefBrowserSettings settings, ref bool noJavascriptAccess) { var e = new BeforePopupEventArgs(frame, targetUrl, targetFrameName, popupFeatures, windowInfo, client, settings, noJavascriptAccess); this.owner.OnBeforePopup(e); client = e.Client; noJavascriptAccess = e.NoJavascriptAccess; return(e.Handled); }
protected override bool OnBeforePopup( CefBrowser browser, CefFrame frame, string targetUrl, string targetFrameName, CefPopupFeatures popupFeatures, CefWindowInfo windowInfo, ref CefClient client, CefBrowserSettings settings, ref bool noJavascriptAccess ) { var e = new BeforePopupEventArgs( frame, targetUrl, targetFrameName, popupFeatures, windowInfo, client, settings, noJavascriptAccess ); this.owner.OnBeforePopup( e ); client = e.Client; noJavascriptAccess = e.NoJavascriptAccess; return e.Handled; }
internal void OnBeforePopup(BeforePopupEventArgs e) { if (BeforePopup != null) { BeforePopup(this, e); } else { LoadURL(e.TargetUrl); e.Handled = true; } }
internal void OnBeforePopup( BeforePopupEventArgs e ) { if( BeforePopup != null ) { BeforePopup( this, e ); } else { LoadURL( e.TargetUrl ); e.Handled = true; } }