#ifndef SERVICES_IMAGE_ANNOTATION_PUBLIC_MOJOM_IMAGE_ANNOTATION_MOJOM_SHARED_H_
#define SERVICES_IMAGE_ANNOTATION_PUBLIC_MOJOM_IMAGE_ANNOTATION_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/image_annotation/public/mojom/image_annotation.mojom-shared-internal.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"
namespace image_annotation::mojom {
class AnnotationDataView;
class AnnotateImageResultDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::image_annotation::mojom::AnnotationDataView> { … };
template <>
struct MojomTypeTraits<::image_annotation::mojom::AnnotateImageResultDataView> { … };
}
}
namespace image_annotation::mojom {
enum class AnnotateImageError : int32_t { … };
std::ostream& operator<<(std::ostream& os, AnnotateImageError value);
inline bool IsKnownEnumValue(AnnotateImageError value) { … }
enum class AnnotationType : int32_t { … };
std::ostream& operator<<(std::ostream& os, AnnotationType value);
inline bool IsKnownEnumValue(AnnotationType value) { … }
class ImageProcessorInterfaceBase { … };
ImageProcessorPtrDataView;
ImageProcessorRequestDataView;
ImageProcessorAssociatedPtrInfoDataView;
ImageProcessorAssociatedRequestDataView;
class AnnotatorInterfaceBase { … };
AnnotatorPtrDataView;
AnnotatorRequestDataView;
AnnotatorAssociatedPtrInfoDataView;
AnnotatorAssociatedRequestDataView;
class ImageAnnotationServiceInterfaceBase { … };
ImageAnnotationServicePtrDataView;
ImageAnnotationServiceRequestDataView;
ImageAnnotationServiceAssociatedPtrInfoDataView;
ImageAnnotationServiceAssociatedRequestDataView;
class AnnotationDataView { … };
class AnnotateImageResultDataView { … };
}
namespace std {
template <>
struct hash<::image_annotation::mojom::AnnotateImageError>
: public mojo::internal::EnumHashImpl<::image_annotation::mojom::AnnotateImageError> { … };
template <>
struct hash<::image_annotation::mojom::AnnotationType>
: public mojo::internal::EnumHashImpl<::image_annotation::mojom::AnnotationType> { … };
}
namespace mojo {
namespace internal {
Serializer< ::image_annotation::mojom::AnnotateImageError, MaybeConstUserType>;
}
namespace internal {
Serializer< ::image_annotation::mojom::AnnotationType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::image_annotation::mojom::AnnotationDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::image_annotation::mojom::AnnotateImageResultDataView, MaybeConstUserType>;
}
}
namespace image_annotation::mojom {
inline void AnnotationDataView::GetTextDataView(
mojo::StringDataView* output) { … }
inline void AnnotateImageResultDataView::GetAnnotationsDataView(
mojo::ArrayDataView<AnnotationDataView>* output) const { … }
}
namespace perfetto {
template <>
struct TraceFormatTraits<::image_annotation::mojom::AnnotateImageError> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::image_annotation::mojom::AnnotationType> { … };
}
#endif