#ifndef DEVICE_GAMEPAD_PUBLIC_MOJOM_GAMEPAD_MOJOM_SHARED_H_
#define DEVICE_GAMEPAD_PUBLIC_MOJOM_GAMEPAD_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 "device/gamepad/public/mojom/gamepad.mojom-shared-internal.h"
#include "mojo/public/mojom/base/shared_memory.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "base/component_export.h"
namespace device::mojom {
class GamepadQuaternionDataView;
class GamepadVectorDataView;
class GamepadButtonDataView;
class ButtonChangeDataView;
class AxisChangeDataView;
class GamepadChangesDataView;
class GamepadTouchDataView;
class GamepadPoseDataView;
class GamepadHapticActuatorDataView;
class GamepadDataView;
class GamepadEffectParametersDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::device::mojom::GamepadQuaternionDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::GamepadVectorDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::GamepadButtonDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::ButtonChangeDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::AxisChangeDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::GamepadChangesDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::GamepadTouchDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::GamepadPoseDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::GamepadHapticActuatorDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::GamepadDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::GamepadEffectParametersDataView> { … };
}
}
namespace devicemojom
namespace std {
template <>
struct hash<::device::mojom::GamepadMapping>
: public mojo::internal::EnumHashImpl<::device::mojom::GamepadMapping> { … };
template <>
struct hash<::device::mojom::GamepadHand>
: public mojo::internal::EnumHashImpl<::device::mojom::GamepadHand> { … };
template <>
struct hash<::device::mojom::GamepadHapticActuatorType>
: public mojo::internal::EnumHashImpl<::device::mojom::GamepadHapticActuatorType> { … };
template <>
struct hash<::device::mojom::GamepadHapticEffectType>
: public mojo::internal::EnumHashImpl<::device::mojom::GamepadHapticEffectType> { … };
template <>
struct hash<::device::mojom::GamepadHapticsResult>
: public mojo::internal::EnumHashImpl<::device::mojom::GamepadHapticsResult> { … };
}
namespace mojo {
namespace internal {
Serializer< ::device::mojom::GamepadMapping, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadHand, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadHapticActuatorType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadHapticEffectType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadHapticsResult, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadQuaternionDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadVectorDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadButtonDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::ButtonChangeDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::AxisChangeDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadChangesDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadTouchDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadPoseDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadHapticActuatorDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::GamepadEffectParametersDataView, MaybeConstUserType>;
}
}
namespace device::mojom {
inline void ButtonChangeDataView::GetButtonSnapshotDataView(
GamepadButtonDataView* output) { … }
inline void GamepadChangesDataView::GetButtonChangesDataView(
mojo::ArrayDataView<ButtonChangeDataView>* output) { … }
inline void GamepadChangesDataView::GetAxisChangesDataView(
mojo::ArrayDataView<AxisChangeDataView>* output) { … }
inline void GamepadPoseDataView::GetOrientationDataView(
GamepadQuaternionDataView* output) { … }
inline void GamepadPoseDataView::GetPositionDataView(
GamepadVectorDataView* output) { … }
inline void GamepadPoseDataView::GetAngularVelocityDataView(
GamepadVectorDataView* output) { … }
inline void GamepadPoseDataView::GetLinearVelocityDataView(
GamepadVectorDataView* output) { … }
inline void GamepadPoseDataView::GetAngularAccelerationDataView(
GamepadVectorDataView* output) { … }
inline void GamepadPoseDataView::GetLinearAccelerationDataView(
GamepadVectorDataView* output) { … }
inline void GamepadDataView::GetIdDataView(
mojo::ArrayDataView<uint16_t>* output) { … }
inline void GamepadDataView::GetAxesDataView(
mojo::ArrayDataView<double>* output) { … }
inline void GamepadDataView::GetButtonsDataView(
mojo::ArrayDataView<GamepadButtonDataView>* output) { … }
inline void GamepadDataView::GetVibrationActuatorDataView(
GamepadHapticActuatorDataView* output) { … }
inline void GamepadDataView::GetPoseDataView(
GamepadPoseDataView* output) { … }
inline void GamepadDataView::GetTouchEventsDataView(
mojo::ArrayDataView<GamepadTouchDataView>* output) { … }
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(GAMEPAD_MOJOM_SHARED) TraceFormatTraits<::device::mojom::GamepadMapping> { … };
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(GAMEPAD_MOJOM_SHARED) TraceFormatTraits<::device::mojom::GamepadHand> { … };
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(GAMEPAD_MOJOM_SHARED) TraceFormatTraits<::device::mojom::GamepadHapticActuatorType> { … };
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(GAMEPAD_MOJOM_SHARED) TraceFormatTraits<::device::mojom::GamepadHapticEffectType> { … };
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(GAMEPAD_MOJOM_SHARED) TraceFormatTraits<::device::mojom::GamepadHapticsResult> { … };
}
#endif