#include "services/device/public/mojom/wake_lock.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/wake_lock.mojom-params-data.h"
namespace device {
namespace mojom {
NOINLINE static const char* WakeLockTypeToStringHelper(WakeLockType value) { … }
std::string WakeLockTypeToString(WakeLockType value) { … }
std::ostream& operator<<(std::ostream& os, WakeLockType value) { … }
NOINLINE static const char* WakeLockReasonToStringHelper(WakeLockReason value) { … }
std::string WakeLockReasonToString(WakeLockReason value) { … }
std::ostream& operator<<(std::ostream& os, WakeLockReason value) { … }
namespace internal {
bool WakeLock_RequestWakeLock_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WakeLock_RequestWakeLock_Params_Data::WakeLock_RequestWakeLock_Params_Data()
: … { … }
bool WakeLock_CancelWakeLock_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WakeLock_CancelWakeLock_Params_Data::WakeLock_CancelWakeLock_Params_Data()
: … { … }
bool WakeLock_AddClient_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WakeLock_AddClient_Params_Data::WakeLock_AddClient_Params_Data()
: … { … }
bool WakeLock_ChangeType_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WakeLock_ChangeType_Params_Data::WakeLock_ChangeType_Params_Data()
: … { … }
bool WakeLock_ChangeType_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WakeLock_ChangeType_ResponseParams_Data::WakeLock_ChangeType_ResponseParams_Data()
: … { … }
bool WakeLock_HasWakeLockForTests_Params_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WakeLock_HasWakeLockForTests_Params_Data::WakeLock_HasWakeLockForTests_Params_Data()
: … { … }
bool WakeLock_HasWakeLockForTests_ResponseParams_Data::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
WakeLock_HasWakeLockForTests_ResponseParams_Data::WakeLock_HasWakeLockForTests_ResponseParams_Data()
: … { … }
}
}
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::WakeLockType>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::WakeLockType value) { … }
}
namespace perfetto {
void TraceFormatTraits<::device::mojom::WakeLockReason>::WriteIntoTrace(
perfetto::TracedValue context, ::device::mojom::WakeLockReason value) { … }
}