ICefBrowserHost.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using Xilium.CefGlue.Common.Handlers;
  3. namespace Xilium.CefGlue.Common
  4. {
  5. internal interface ICefBrowserHost
  6. {
  7. void HandleBrowserCreated(CefBrowser browser);
  8. void HandleBrowserDestroyed(CefBrowser browser);
  9. bool HandleBrowserClose(CefBrowser browser);
  10. void HandleAddressChange(CefBrowser browser, CefFrame frame, string url);
  11. void HandleTitleChange(CefBrowser browser, string title);
  12. bool HandleTooltip(CefBrowser browser, string text);
  13. void HandleStatusMessage(CefBrowser browser, string value);
  14. bool HandleConsoleMessage(CefBrowser browser, CefLogSeverity level, string message, string source, int line);
  15. void HandleLoadStart(CefBrowser browser, CefFrame frame, CefTransitionType transitionType);
  16. void HandleLoadEnd(CefBrowser browser, CefFrame frame, int httpStatusCode);
  17. void HandleLoadError(CefBrowser browser, CefFrame frame, CefErrorCode errorCode, string errorText, string failedUrl);
  18. void HandleLoadingStateChange(CefBrowser browser, bool isLoading, bool canGoBack, bool canGoForward);
  19. void HandleOpenContextMenu(CefContextMenuParams parameters, CefMenuModel model, CefRunContextMenuCallback callback);
  20. void HandleCloseContextMenu();
  21. void HandleException(Exception exception);
  22. ContextMenuHandler ContextMenuHandler { get; set; }
  23. DialogHandler DialogHandler { get; set; }
  24. DownloadHandler DownloadHandler { get; set; }
  25. DragHandler DragHandler { get; set; }
  26. FindHandler FindHandler { get; set; }
  27. FocusHandler FocusHandler { get; set; }
  28. KeyboardHandler KeyboardHandler { get; set; }
  29. RequestHandler RequestHandler { get; set; }
  30. LifeSpanHandler LifeSpanHandler { get; set; }
  31. DisplayHandler DisplayHandler { get; set; }
  32. RenderHandler RenderHandler { get; set; }
  33. JSDialogHandler JSDialogHandler { get; set; }
  34. }
  35. }