CefRunContextMenuCallback.cs 913 B

12345678910111213141516171819202122232425262728293031
  1. namespace Xilium.CefGlue
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Diagnostics;
  6. using System.Runtime.InteropServices;
  7. using Xilium.CefGlue.Interop;
  8. /// <summary>
  9. /// Callback interface used for continuation of custom context menu display.
  10. /// </summary>
  11. public sealed unsafe partial class CefRunContextMenuCallback
  12. {
  13. /// <summary>
  14. /// Complete context menu display by selecting the specified |command_id| and
  15. /// |event_flags|.
  16. /// </summary>
  17. public void Continue(int commandId, CefEventFlags eventFlags)
  18. {
  19. cef_run_context_menu_callback_t.cont(_self, commandId, eventFlags);
  20. }
  21. /// <summary>
  22. /// Cancel context menu display.
  23. /// </summary>
  24. public void Cancel()
  25. {
  26. cef_run_context_menu_callback_t.cancel(_self);
  27. }
  28. }
  29. }