#include "services/device/public/mojom/pressure_update.mojom-shared.h"
#include <ostream>
#include <utility>
#include "base/strings/stringprintf.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/lib/validation_util.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"
#include "services/device/public/mojom/pressure_update.mojom-params-data.h"
namespace device {
namespace mojom {
NOINLINE static const char* PressureSourceToStringHelper(PressureSource value) { … }
std::string PressureSourceToString(PressureSource value) { … }
std::ostream& operator<<(std::ostream& os, PressureSource value) { … }
NOINLINE static const char* PressureStateToStringHelper(PressureState value) { … }
std::string PressureStateToString(PressureState value) { … }
std::ostream& operator<<(std::ostream& os, PressureState value) { … }
namespace internal {
bool PressureUpdate_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PressureUpdate_Data::PressureUpdate_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::PressureSource>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::PressureSource value) { … }
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::PressureState>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::PressureState value) { … }
}