#ifndef CONTENT_COMMON_INPUT_INPUT_INJECTOR_MOJOM_SHARED_H_
#define CONTENT_COMMON_INPUT_INPUT_INJECTOR_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 "content/common/input/input_injector.mojom-shared-internal.h"
#include "ui/gfx/geometry/mojom/geometry.mojom-shared.h"
#include "ui/events/mojom/scroll_granularity.mojom-shared.h"
#include "mojo/public/mojom/base/time.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"
#include "mojo/public/cpp/bindings/native_enum.h"
#include "mojo/public/cpp/bindings/lib/native_struct_serialization.h"
#include "base/component_export.h"
namespace content::mojom {
class SyntheticSmoothDragDataView;
class SyntheticSmoothScrollDataView;
class SyntheticPinchDataView;
class SyntheticTapDataView;
class SyntheticPointerActionParamsDataView;
class SyntheticPointerActionDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::content::mojom::SyntheticSmoothDragDataView> { … };
template <>
struct MojomTypeTraits<::content::mojom::SyntheticSmoothScrollDataView> { … };
template <>
struct MojomTypeTraits<::content::mojom::SyntheticPinchDataView> { … };
template <>
struct MojomTypeTraits<::content::mojom::SyntheticTapDataView> { … };
template <>
struct MojomTypeTraits<::content::mojom::SyntheticPointerActionParamsDataView> { … };
template <>
struct MojomTypeTraits<::content::mojom::SyntheticPointerActionDataView> { … };
}
}
namespace contentmojom
namespace std {
template <>
struct hash<::content::mojom::GestureSourceType>
: public mojo::internal::EnumHashImpl<::content::mojom::GestureSourceType> { … };
template <>
struct hash<::content::mojom::PointerActionType>
: public mojo::internal::EnumHashImpl<::content::mojom::PointerActionType> { … };
template <>
struct hash<::content::mojom::SyntheticButton>
: public mojo::internal::EnumHashImpl<::content::mojom::SyntheticButton> { … };
template <>
struct hash<::content::mojom::InputEventPattern>
: public mojo::internal::EnumHashImpl<::content::mojom::InputEventPattern> { … };
}
namespace mojo {
namespace internal {
Serializer< ::content::mojom::GestureSourceType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::content::mojom::PointerActionType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::content::mojom::SyntheticButton, MaybeConstUserType>;
}
namespace internal {
Serializer< ::content::mojom::InputEventPattern, MaybeConstUserType>;
}
namespace internal {
Serializer< ::content::mojom::SyntheticSmoothDragDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::content::mojom::SyntheticSmoothScrollDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::content::mojom::SyntheticPinchDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::content::mojom::SyntheticTapDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::content::mojom::SyntheticPointerActionParamsDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::content::mojom::SyntheticPointerActionDataView, MaybeConstUserType>;
}
}
namespace content::mojom {
inline void SyntheticSmoothDragDataView::GetStartPointDataView(
::gfx::mojom::PointFDataView* output) { … }
inline void SyntheticSmoothDragDataView::GetDistancesDataView(
mojo::ArrayDataView<::gfx::mojom::Vector2dFDataView>* output) { … }
inline void SyntheticSmoothScrollDataView::GetAnchorDataView(
::gfx::mojom::PointFDataView* output) { … }
inline void SyntheticSmoothScrollDataView::GetDistancesDataView(
mojo::ArrayDataView<::gfx::mojom::Vector2dFDataView>* output) { … }
inline void SyntheticPinchDataView::GetAnchorDataView(
::gfx::mojom::PointFDataView* output) { … }
inline void SyntheticTapDataView::GetPositionDataView(
::gfx::mojom::PointFDataView* output) { … }
inline void SyntheticPointerActionParamsDataView::GetPositionDataView(
::gfx::mojom::PointFDataView* output) { … }
inline void SyntheticPointerActionParamsDataView::GetTimestampDataView(
::mojo_base::mojom::TimeTicksDataView* output) { … }
inline void SyntheticPointerActionParamsDataView::GetDurationDataView(
::mojo_base::mojom::TimeDeltaDataView* output) { … }
inline void SyntheticPointerActionDataView::GetParamsDataView(
mojo::ArrayDataView<mojo::ArrayDataView<SyntheticPointerActionParamsDataView>>* output) { … }
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_CONTENT_EXPORT) TraceFormatTraits<::content::mojom::GestureSourceType> { … };
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_CONTENT_EXPORT) TraceFormatTraits<::content::mojom::PointerActionType> { … };
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_CONTENT_EXPORT) TraceFormatTraits<::content::mojom::SyntheticButton> { … };
}
namespace perfetto {
template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_CONTENT_EXPORT) TraceFormatTraits<::content::mojom::InputEventPattern> { … };
}
#endif