MenuHandler.cs 1015 B

12345678910111213141516171819202122232425262728
  1. using CefSharp;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace efunbox_xyyf_windows.cusview
  8. {
  9. public class MenuHandler : IContextMenuHandler
  10. {
  11. public void OnBeforeContextMenu(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, IMenuModel model)
  12. {
  13. model.Clear();
  14. }
  15. public bool OnContextMenuCommand(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, CefMenuCommand commandId, CefEventFlags eventFlags)
  16. {
  17. return false;
  18. }
  19. public void OnContextMenuDismissed(IWebBrowser browserControl, IBrowser browser, IFrame frame)
  20. {
  21. }
  22. public bool RunContextMenu(IWebBrowser browserControl, IBrowser browser, IFrame frame, IContextMenuParams parameters, IMenuModel model, IRunContextMenuCallback callback)
  23. {
  24. return false;
  25. }
  26. }
  27. }