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

// device/vr/public/mojom/xr_session.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_VR_PUBLIC_MOJOM_XR_SESSION_MOJOM_SHARED_H_
#define DEVICE_VR_PUBLIC_MOJOM_XR_SESSION_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/vr/public/mojom/xr_session.mojom-shared-internal.h"
#include "skia/public/mojom/bitmap.mojom-shared.h"
#include "ui/gfx/geometry/mojom/geometry.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 "base/component_export.h"




namespace device::mojom {
class XRTrackedImageDataView;

class XRDepthOptionsDataView;

class XRSessionOptionsDataView;

class XrFrameStatisticsDataView;

class XrLogMessageDataView;



}  // device::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::device::mojom::XRTrackedImageDataView> {};

template <>
struct MojomTypeTraits<::device::mojom::XRDepthOptionsDataView> {};

template <>
struct MojomTypeTraits<::device::mojom::XRSessionOptionsDataView> {};

template <>
struct MojomTypeTraits<::device::mojom::XrFrameStatisticsDataView> {};

template <>
struct MojomTypeTraits<::device::mojom::XrLogMessageDataView> {};

}  // namespace internal
}  // namespace mojo


namespace devicemojom  // device::mojom

namespace std {

template <>
struct hash<::device::mojom::RequestSessionError>
    : public mojo::internal::EnumHashImpl<::device::mojom::RequestSessionError> {};

template <>
struct hash<::device::mojom::XRSessionFeature>
    : public mojo::internal::EnumHashImpl<::device::mojom::XRSessionFeature> {};

template <>
struct hash<::device::mojom::XRSessionMode>
    : public mojo::internal::EnumHashImpl<::device::mojom::XRSessionMode> {};

template <>
struct hash<::device::mojom::XRDepthUsage>
    : public mojo::internal::EnumHashImpl<::device::mojom::XRDepthUsage> {};

template <>
struct hash<::device::mojom::XRDepthDataFormat>
    : public mojo::internal::EnumHashImpl<::device::mojom::XRDepthDataFormat> {};

}  // namespace std

namespace mojo {


namespace internal {

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

}  // namespace internal


namespace internal {

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

}  // namespace internal


namespace internal {

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

}  // namespace internal


namespace internal {

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

}  // namespace internal


namespace internal {

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

}  // namespace internal


namespace internal {

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

}  // namespace internal


namespace internal {

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

}  // namespace internal


namespace internal {

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

}  // namespace internal


namespace internal {

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

}  // namespace internal


namespace internal {

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

}  // namespace internal

}  // namespace mojo


namespace device::mojom {

inline void XRTrackedImageDataView::GetBitmapDataView(
    ::skia::mojom::BitmapN32DataView* output) {}
inline void XRTrackedImageDataView::GetSizeInPixelsDataView(
    ::gfx::mojom::SizeDataView* output) {}


inline void XRDepthOptionsDataView::GetUsagePreferencesDataView(
    mojo::ArrayDataView<XRDepthUsage>* output) {}
inline void XRDepthOptionsDataView::GetDataFormatPreferencesDataView(
    mojo::ArrayDataView<XRDepthDataFormat>* output) {}


inline void XRSessionOptionsDataView::GetRequiredFeaturesDataView(
    mojo::ArrayDataView<XRSessionFeature>* output) {}
inline void XRSessionOptionsDataView::GetOptionalFeaturesDataView(
    mojo::ArrayDataView<XRSessionFeature>* output) {}
inline void XRSessionOptionsDataView::GetTrackedImagesDataView(
    mojo::ArrayDataView<XRTrackedImageDataView>* output) {}
inline void XRSessionOptionsDataView::GetDepthOptionsDataView(
    XRDepthOptionsDataView* output) {}


inline void XrFrameStatisticsDataView::GetDurationDataView(
    ::mojo_base::mojom::TimeDeltaDataView* output) {}
inline void XrFrameStatisticsDataView::GetFrameDataTimeDataView(
    ::mojo_base::mojom::TimeDeltaDataView* output) {}
inline void XrFrameStatisticsDataView::GetPageAnimationFrameTimeDataView(
    ::mojo_base::mojom::TimeDeltaDataView* output) {}


inline void XrLogMessageDataView::GetMessageDataView(
    mojo::StringDataView* output) {}



}  // device::mojom

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

namespace perfetto {

template <>
struct COMPONENT_EXPORT(DEVICE_XR_COMMON_MOJO_BINDINGS_SHARED) TraceFormatTraits<::device::mojom::RequestSessionError> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(DEVICE_XR_COMMON_MOJO_BINDINGS_SHARED) TraceFormatTraits<::device::mojom::XRSessionFeature> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(DEVICE_XR_COMMON_MOJO_BINDINGS_SHARED) TraceFormatTraits<::device::mojom::XRSessionMode> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(DEVICE_XR_COMMON_MOJO_BINDINGS_SHARED) TraceFormatTraits<::device::mojom::XRDepthUsage> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(DEVICE_XR_COMMON_MOJO_BINDINGS_SHARED) TraceFormatTraits<::device::mojom::XRDepthDataFormat> {};

} // namespace perfetto

#endif  // DEVICE_VR_PUBLIC_MOJOM_XR_SESSION_MOJOM_SHARED_H_