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