using System; using Xilium.CefGlue.Common.Handlers; namespace Xilium.CefGlue.Common { internal interface ICefBrowserHost { void HandleBrowserCreated(CefBrowser browser); void HandleBrowserDestroyed(CefBrowser browser); bool HandleBrowserClose(CefBrowser browser); void HandleAddressChange(CefBrowser browser, CefFrame frame, string url); void HandleTitleChange(CefBrowser browser, string title); bool HandleTooltip(CefBrowser browser, string text); void HandleStatusMessage(CefBrowser browser, string value); bool HandleConsoleMessage(CefBrowser browser, CefLogSeverity level, string message, string source, int line); void HandleLoadStart(CefBrowser browser, CefFrame frame, CefTransitionType transitionType); void HandleLoadEnd(CefBrowser browser, CefFrame frame, int httpStatusCode); void HandleLoadError(CefBrowser browser, CefFrame frame, CefErrorCode errorCode, string errorText, string failedUrl); void HandleLoadingStateChange(CefBrowser browser, bool isLoading, bool canGoBack, bool canGoForward); void HandleOpenContextMenu(CefContextMenuParams parameters, CefMenuModel model, CefRunContextMenuCallback callback); void HandleCloseContextMenu(); void HandleException(Exception exception); ContextMenuHandler ContextMenuHandler { get; set; } DialogHandler DialogHandler { get; set; } DownloadHandler DownloadHandler { get; set; } DragHandler DragHandler { get; set; } FindHandler FindHandler { get; set; } FocusHandler FocusHandler { get; set; } KeyboardHandler KeyboardHandler { get; set; } RequestHandler RequestHandler { get; set; } LifeSpanHandler LifeSpanHandler { get; set; } DisplayHandler DisplayHandler { get; set; } RenderHandler RenderHandler { get; set; } JSDialogHandler JSDialogHandler { get; set; } } }