chromium/out/Default/gen/third_party/blink/public/mojom/handwriting/handwriting.mojom-shared.h

// third_party/blink/public/mojom/handwriting/handwriting.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 THIRD_PARTY_BLINK_PUBLIC_MOJOM_HANDWRITING_HANDWRITING_MOJOM_SHARED_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_HANDWRITING_HANDWRITING_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 "third_party/blink/public/mojom/handwriting/handwriting.mojom-shared-internal.h"
#include "mojo/public/mojom/base/time.mojom-shared.h"
#include "ui/gfx/geometry/mojom/geometry.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 handwriting::mojom {
class HandwritingPointDataView;

class HandwritingStrokeDataView;

class HandwritingDrawingSegmentDataView;

class HandwritingSegmentDataView;

class HandwritingPredictionDataView;

class HandwritingHintsDataView;

class HandwritingHintsQueryResultDataView;

class QueryHandwritingRecognizerResultDataView;

class HandwritingModelConstraintDataView;



}  // handwriting::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::handwriting::mojom::HandwritingPointDataView> {};

template <>
struct MojomTypeTraits<::handwriting::mojom::HandwritingStrokeDataView> {};

template <>
struct MojomTypeTraits<::handwriting::mojom::HandwritingDrawingSegmentDataView> {};

template <>
struct MojomTypeTraits<::handwriting::mojom::HandwritingSegmentDataView> {};

template <>
struct MojomTypeTraits<::handwriting::mojom::HandwritingPredictionDataView> {};

template <>
struct MojomTypeTraits<::handwriting::mojom::HandwritingHintsDataView> {};

template <>
struct MojomTypeTraits<::handwriting::mojom::HandwritingHintsQueryResultDataView> {};

template <>
struct MojomTypeTraits<::handwriting::mojom::QueryHandwritingRecognizerResultDataView> {};

template <>
struct MojomTypeTraits<::handwriting::mojom::HandwritingModelConstraintDataView> {};

}  // namespace internal
}  // namespace mojo


namespace handwritingmojom  // handwriting::mojom

namespace std {

template <>
struct hash<::handwriting::mojom::HandwritingRecognitionType>
    : public mojo::internal::EnumHashImpl<::handwriting::mojom::HandwritingRecognitionType> {};

template <>
struct hash<::handwriting::mojom::HandwritingInputType>
    : public mojo::internal::EnumHashImpl<::handwriting::mojom::HandwritingInputType> {};

template <>
struct hash<::handwriting::mojom::CreateHandwritingRecognizerResult>
    : public mojo::internal::EnumHashImpl<::handwriting::mojom::CreateHandwritingRecognizerResult> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::handwriting::mojom::HandwritingRecognitionType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::handwriting::mojom::HandwritingInputType, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::handwriting::mojom::CreateHandwritingRecognizerResult, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::handwriting::mojom::HandwritingPointDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::handwriting::mojom::HandwritingStrokeDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::handwriting::mojom::HandwritingDrawingSegmentDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::handwriting::mojom::HandwritingSegmentDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::handwriting::mojom::HandwritingPredictionDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::handwriting::mojom::HandwritingHintsDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::handwriting::mojom::HandwritingHintsQueryResultDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::handwriting::mojom::QueryHandwritingRecognizerResultDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::handwriting::mojom::HandwritingModelConstraintDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace handwriting::mojom {

inline void HandwritingPointDataView::GetLocationDataView(
    ::gfx::mojom::PointFDataView* output) {}
inline void HandwritingPointDataView::GetTDataView(
    ::mojo_base::mojom::TimeDeltaDataView* output) {}


inline void HandwritingStrokeDataView::GetPointsDataView(
    mojo::ArrayDataView<HandwritingPointDataView>* output) {}




inline void HandwritingSegmentDataView::GetGraphemeDataView(
    mojo::StringDataView* output) {}
inline void HandwritingSegmentDataView::GetDrawingSegmentsDataView(
    mojo::ArrayDataView<HandwritingDrawingSegmentDataView>* output) {}


inline void HandwritingPredictionDataView::GetTextDataView(
    mojo::StringDataView* output) {}
inline void HandwritingPredictionDataView::GetSegmentationResultDataView(
    mojo::ArrayDataView<HandwritingSegmentDataView>* output) {}


inline void HandwritingHintsDataView::GetRecognitionTypeDataView(
    mojo::StringDataView* output) {}
inline void HandwritingHintsDataView::GetInputTypeDataView(
    mojo::StringDataView* output) {}
inline void HandwritingHintsDataView::GetTextContextDataView(
    mojo::StringDataView* output) {}


inline void HandwritingHintsQueryResultDataView::GetRecognitionTypeDataView(
    mojo::ArrayDataView<HandwritingRecognitionType>* output) {}
inline void HandwritingHintsQueryResultDataView::GetInputTypeDataView(
    mojo::ArrayDataView<HandwritingInputType>* output) {}


inline void QueryHandwritingRecognizerResultDataView::GetHintsDataView(
    HandwritingHintsQueryResultDataView* output) {}


inline void HandwritingModelConstraintDataView::GetLanguagesDataView(
    mojo::ArrayDataView<mojo::StringDataView>* output) {}



}  // handwriting::mojom

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

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::handwriting::mojom::HandwritingRecognitionType> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::handwriting::mojom::HandwritingInputType> {};

} // namespace perfetto

namespace perfetto {

template <>
struct COMPONENT_EXPORT(MOJOM_SHARED_BLINK_COMMON_EXPORT) TraceFormatTraits<::handwriting::mojom::CreateHandwritingRecognizerResult> {};

} // namespace perfetto

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_HANDWRITING_HANDWRITING_MOJOM_SHARED_H_