chromium/out/Default/gen/device/gamepad/public/mojom/gamepad.mojom-shared.h

// device/gamepad/public/mojom/gamepad.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;



}  // device::mojom

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 internal
}  // namespace mojo


namespace devicemojom  // device::mojom

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 std

namespace mojo {


namespace internal {

Serializer< ::device::mojom::GamepadMapping, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadHand, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadHapticActuatorType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadHapticEffectType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadHapticsResult, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadQuaternionDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadVectorDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadButtonDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::ButtonChangeDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::AxisChangeDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadChangesDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadTouchDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadPoseDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadHapticActuatorDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::device::mojom::GamepadEffectParametersDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


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) {}





}  // device::mojom

// Declare TraceFormatTraits for enums, which should be defined in ::perfetto
// namespace.

namespace perfetto {

template <>
struct COMPONENT_EXPORT(GAMEPAD_MOJOM_SHARED) TraceFormatTraits<::device::mojom::GamepadMapping> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(GAMEPAD_MOJOM_SHARED) TraceFormatTraits<::device::mojom::GamepadHand> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(GAMEPAD_MOJOM_SHARED) TraceFormatTraits<::device::mojom::GamepadHapticActuatorType> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(GAMEPAD_MOJOM_SHARED) TraceFormatTraits<::device::mojom::GamepadHapticEffectType> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(GAMEPAD_MOJOM_SHARED) TraceFormatTraits<::device::mojom::GamepadHapticsResult> {};

} // namespace perfetto

#endif  // DEVICE_GAMEPAD_PUBLIC_MOJOM_GAMEPAD_MOJOM_SHARED_H_