Beispiel #1
0
 internal protected virtual void OnBeforePopup(BeforePopupEventArgs e)
 {
     if (BeforePopup != null)
         BeforePopup(this, e);
     else
         e.Handled = false;
 }
Beispiel #2
0
        protected override bool OnBeforePopup(CefBrowser browser, CefFrame frame, string targetUrl, string targetFrameName, CefWindowOpenDisposition targetDisposition, bool userGesture, CefPopupFeatures popupFeatures, CefWindowInfo windowInfo, ref CefClient client, CefBrowserSettings settings, ref bool noJavascriptAccess)
        {
            var e = new BeforePopupEventArgs(frame, targetUrl, targetFrameName, popupFeatures, windowInfo, client, settings,
                                             noJavascriptAccess);

            m_core.InvokeAsyncIfPossible(() => m_core.OnBeforePopup(e));

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

            return(e.Handled);
        }