Beispiel #1
0
        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);
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
 internal void OnBeforePopup(BeforePopupEventArgs e)
 {
     if (BeforePopup != null)
     {
         BeforePopup(this, e);
     }
     else
     {
         LoadURL(e.TargetUrl);
         e.Handled = true;
     }
 }
Beispiel #4
0
 internal void OnBeforePopup( BeforePopupEventArgs e )
 {
     if( BeforePopup != null )
     {
         BeforePopup( this, e );
     }
     else
     {
         LoadURL( e.TargetUrl );
         e.Handled = true;
     }
 }