Пример #1
0
        //TODO: there might be a change in the current version of CEF
        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);

			_core.InvokeIfRequired(() => _core.OnBeforePopup(e));

			client = e.Client;
			noJavascriptAccess = e.NoJavascriptAccess;

			return e.Handled;
		}
 internal protected virtual void OnBeforePopup(BeforePopupEventArgs e)
 {
     if (BeforePopup != null)
         BeforePopup(this, e);
     else
         e.Handled = false;
 }