CefCallback.cs 703 B

123456789101112131415161718192021222324252627282930
  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. /// Generic callback interface used for asynchronous continuation.
  10. /// </summary>
  11. public sealed unsafe partial class CefCallback
  12. {
  13. /// <summary>
  14. /// Continue processing.
  15. /// </summary>
  16. public void Continue()
  17. {
  18. cef_callback_t.cont(_self);
  19. }
  20. /// <summary>
  21. /// Cancel processing.
  22. /// </summary>
  23. public void Cancel()
  24. {
  25. cef_callback_t.cancel(_self);
  26. }
  27. }
  28. }