CefCompletionCallback.cs 688 B

1234567891011121314151617181920212223242526
  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 completion.
  10. /// </summary>
  11. public abstract unsafe partial class CefCompletionCallback
  12. {
  13. private void on_complete(cef_completion_callback_t* self)
  14. {
  15. CheckSelf(self);
  16. OnComplete();
  17. }
  18. /// <summary>
  19. /// Method that will be called once the task is complete.
  20. /// </summary>
  21. protected abstract void OnComplete();
  22. }
  23. }