#ifndef SERVICES_DEVICE_PUBLIC_MOJOM_SENSOR_MOJOM_SHARED_H_
#define SERVICES_DEVICE_PUBLIC_MOJOM_SENSOR_MOJOM_SHARED_H_
#include <stdint.h>
#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "services/device/public/mojom/sensor.mojom-shared-internal.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"
namespace device::mojom {
class SensorReadingRawDataView;
class SensorConfigurationDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::device::mojom::SensorReadingRawDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::SensorConfigurationDataView> { … };
}
}
namespace device::mojom {
enum class SensorType : int32_t { … };
std::ostream& operator<<(std::ostream& os, SensorType value);
inline bool IsKnownEnumValue(SensorType value) { … }
enum class ReportingMode : int32_t { … };
std::ostream& operator<<(std::ostream& os, ReportingMode value);
inline bool IsKnownEnumValue(ReportingMode value) { … }
class SensorInterfaceBase { … };
SensorPtrDataView;
SensorRequestDataView;
SensorAssociatedPtrInfoDataView;
SensorAssociatedRequestDataView;
class SensorClientInterfaceBase { … };
SensorClientPtrDataView;
SensorClientRequestDataView;
SensorClientAssociatedPtrInfoDataView;
SensorClientAssociatedRequestDataView;
class SensorReadingRawDataView { … };
class SensorConfigurationDataView { … };
}
namespace std {
template <>
struct hash<::device::mojom::SensorType>
: public mojo::internal::EnumHashImpl<::device::mojom::SensorType> { … };
template <>
struct hash<::device::mojom::ReportingMode>
: public mojo::internal::EnumHashImpl<::device::mojom::ReportingMode> { … };
}
namespace mojo {
namespace internal {
Serializer< ::device::mojom::SensorType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::ReportingMode, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SensorReadingRawDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SensorConfigurationDataView, MaybeConstUserType>;
}
}
namespace device::mojom {
inline void SensorReadingRawDataView::GetValuesDataView(
mojo::ArrayDataView<double>* output) { … }
}
namespace perfetto {
template <>
struct TraceFormatTraits<::device::mojom::SensorType> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::device::mojom::ReportingMode> { … };
}
#endif