using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace CefSharp { /// /// Handler methods that get called AFTER the Popup is created. /// public interface IPopupHandler { /// /// Called before the passed popup window (browser) is closed. /// /// The IWebBrowser control this popup is related to. /// The popup window instance that is closing. void OnBeforeClose(IWebBrowser browserControl, IBrowser browser); /// /// Called after the paased popup window (browser) is created. /// /// The IWebBrowser control this popup is related to. /// The popup window instance that was just created. void OnAfterCreated(IWebBrowser browserControl, IBrowser browser); void OnFaviconUrlChange(IWebBrowser browserControl, IBrowser browser, List iconUrls); void OnLoadingStateChange(IWebBrowser browserControl, IBrowser browser, bool isLoading, bool canGoBack, bool canGoForward); void OnStatusMessage(IWebBrowser browserControl, IBrowser browser, string message); void OnFrameLoadStart(IWebBrowser browserControl, IBrowser browser, FrameLoadStartEventArgs frameLoadStartArgs); void OnFrameLoadEnd(IWebBrowser browserControl, IBrowser browser, FrameLoadEndEventArgs frameLoadEndArgs); /// /// Called when the resource load for a navigation fails or is canceled. /// |errorCode| is the error code number, |errorText| is the error text and /// |failedUrl| is the URL that failed to load. See net\base\net_error_list.h /// for complete descriptions of the error codes. /// void OnLoadError(IWebBrowser browserControl, IBrowser browser, LoadErrorEventArgs loadErrorArgs); } }