43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
//
|
|
// This file manually written from cef/include/internal/cef_types.h.
|
|
// C API name: cef_json_writer_options_t.
|
|
//
|
|
namespace Cef3
|
|
{
|
|
using System;
|
|
|
|
/// <summary>
|
|
/// Options that can be passed to CefWriteJSON.
|
|
/// </summary>
|
|
[Flags]
|
|
public enum CefJsonWriterOptions
|
|
{
|
|
/// <summary>
|
|
/// Default behavior.
|
|
/// </summary>
|
|
Default = 0,
|
|
|
|
/// <summary>
|
|
/// This option instructs the writer that if a Binary value is encountered,
|
|
/// the value (and key if within a dictionary) will be omitted from the
|
|
/// output, and success will be returned. Otherwise, if a binary value is
|
|
/// encountered, failure will be returned.
|
|
/// </summary>
|
|
OmitBinaryValues = 1 << 0,
|
|
|
|
/// <summary>
|
|
/// This option instructs the writer to write doubles that have no fractional
|
|
/// part as a normal integer (i.e., without using exponential notation
|
|
/// or appending a '.0') as long as the value is within the range of a
|
|
/// 64-bit int.
|
|
/// </summary>
|
|
OmitDoubleTypePreservation = 1 << 1,
|
|
|
|
/// <summary>
|
|
/// Return a slightly nicer formatted json string (pads with whitespace to
|
|
/// help with readability).
|
|
/// </summary>
|
|
PrettyPrint = 1 << 2,
|
|
}
|
|
}
|