CefJsonWriterOptions.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // This file manually written from cef/include/internal/cef_types.h.
  3. // C API name: cef_json_writer_options_t.
  4. //
  5. namespace Xilium.CefGlue
  6. {
  7. using System;
  8. /// <summary>
  9. /// Options that can be passed to CefWriteJSON.
  10. /// </summary>
  11. [Flags]
  12. public enum CefJsonWriterOptions
  13. {
  14. /// <summary>
  15. /// Default behavior.
  16. /// </summary>
  17. Default = 0,
  18. /// <summary>
  19. /// This option instructs the writer that if a Binary value is encountered,
  20. /// the value (and key if within a dictionary) will be omitted from the
  21. /// output, and success will be returned. Otherwise, if a binary value is
  22. /// encountered, failure will be returned.
  23. /// </summary>
  24. OmitBinaryValues = 1 << 0,
  25. /// <summary>
  26. /// This option instructs the writer to write doubles that have no fractional
  27. /// part as a normal integer (i.e., without using exponential notation
  28. /// or appending a '.0') as long as the value is within the range of a
  29. /// 64-bit int.
  30. /// </summary>
  31. OmitDoubleTypePreservation = 1 << 1,
  32. /// <summary>
  33. /// Return a slightly nicer formatted json string (pads with whitespace to
  34. /// help with readability).
  35. /// </summary>
  36. PrettyPrint = 1 << 2,
  37. }
  38. }