CefStringVisitor.cs 697 B

123456789101112131415161718192021222324252627
  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. /// Implement this interface to receive string values asynchronously.
  10. /// </summary>
  11. public abstract unsafe partial class CefStringVisitor
  12. {
  13. private void visit(cef_string_visitor_t* self, cef_string_t* @string)
  14. {
  15. CheckSelf(self);
  16. Visit(cef_string_t.ToString(@string));
  17. }
  18. /// <summary>
  19. /// Method that will be executed.
  20. /// </summary>
  21. protected abstract void Visit(string value);
  22. }
  23. }