chromium/out/Default/gen/chrome/browser/lens/core/mojom/text.mojom-shared.h

// chrome/browser/lens/core/mojom/text.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 CHROME_BROWSER_LENS_CORE_MOJOM_TEXT_MOJOM_SHARED_H_
#define CHROME_BROWSER_LENS_CORE_MOJOM_TEXT_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 "chrome/browser/lens/core/mojom/text.mojom-shared-internal.h"
#include "chrome/browser/lens/core/mojom/geometry.mojom-shared.h"
#include "ui/gfx/geometry/mojom/geometry.mojom-shared.h"
#include "mojo/public/mojom/base/big_buffer.mojom-shared.h"
#include "skia/public/mojom/skcolor.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"






namespace lens::mojom {
class TextDataView;

class TextLayoutDataView;

class WordDataView;

class LineDataView;

class BackgroundImageDataDataView;

class TranslatedLineDataView;

class TranslatedParagraphDataView;

class ParagraphDataView;

class FormulaMetadataDataView;



}  // lens::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::lens::mojom::TextDataView> {};

template <>
struct MojomTypeTraits<::lens::mojom::TextLayoutDataView> {};

template <>
struct MojomTypeTraits<::lens::mojom::WordDataView> {};

template <>
struct MojomTypeTraits<::lens::mojom::LineDataView> {};

template <>
struct MojomTypeTraits<::lens::mojom::BackgroundImageDataDataView> {};

template <>
struct MojomTypeTraits<::lens::mojom::TranslatedLineDataView> {};

template <>
struct MojomTypeTraits<::lens::mojom::TranslatedParagraphDataView> {};

template <>
struct MojomTypeTraits<::lens::mojom::ParagraphDataView> {};

template <>
struct MojomTypeTraits<::lens::mojom::FormulaMetadataDataView> {};

}  // namespace internal
}  // namespace mojo


namespace lens::mojom {


enum class WritingDirection : int32_t {};

 std::ostream& operator<<(std::ostream& os, WritingDirection value);
inline bool IsKnownEnumValue(WritingDirection value) {}


enum class Alignment : int32_t {};

 std::ostream& operator<<(std::ostream& os, Alignment value);
inline bool IsKnownEnumValue(Alignment value) {}


class TextDataView {};


class TextLayoutDataView {};


class WordDataView {};


class LineDataView {};


class BackgroundImageDataDataView {};


class TranslatedLineDataView {};


class TranslatedParagraphDataView {};


class ParagraphDataView {};


class FormulaMetadataDataView {};


}  // lens::mojom

namespace std {

template <>
struct hash<::lens::mojom::WritingDirection>
    : public mojo::internal::EnumHashImpl<::lens::mojom::WritingDirection> {};

template <>
struct hash<::lens::mojom::Alignment>
    : public mojo::internal::EnumHashImpl<::lens::mojom::Alignment> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::lens::mojom::WritingDirection, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::lens::mojom::Alignment, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::lens::mojom::TextDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::lens::mojom::TextLayoutDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::lens::mojom::WordDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::lens::mojom::LineDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::lens::mojom::BackgroundImageDataDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::lens::mojom::TranslatedLineDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::lens::mojom::TranslatedParagraphDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::lens::mojom::ParagraphDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::lens::mojom::FormulaMetadataDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace lens::mojom {

inline void TextDataView::GetTextLayoutDataView(
    TextLayoutDataView* output) {}
inline void TextDataView::GetContentLanguageDataView(
    mojo::StringDataView* output) {}


inline void TextLayoutDataView::GetParagraphsDataView(
    mojo::ArrayDataView<ParagraphDataView>* output) {}


inline void WordDataView::GetPlainTextDataView(
    mojo::StringDataView* output) {}
inline void WordDataView::GetTextSeparatorDataView(
    mojo::StringDataView* output) {}
inline void WordDataView::GetGeometryDataView(
    ::lens::mojom::GeometryDataView* output) {}
inline void WordDataView::GetFormulaMetadataDataView(
    FormulaMetadataDataView* output) {}


inline void LineDataView::GetWordsDataView(
    mojo::ArrayDataView<WordDataView>* output) {}
inline void LineDataView::GetGeometryDataView(
    ::lens::mojom::GeometryDataView* output) {}


inline void BackgroundImageDataDataView::GetBackgroundImageDataView(
    ::mojo_base::mojom::BigBufferDataView* output) {}
inline void BackgroundImageDataDataView::GetImageSizeDataView(
    ::gfx::mojom::SizeDataView* output) {}
inline void BackgroundImageDataDataView::GetTextMaskDataView(
    ::mojo_base::mojom::BigBufferDataView* output) {}


inline void TranslatedLineDataView::GetWordsDataView(
    mojo::ArrayDataView<WordDataView>* output) {}
inline void TranslatedLineDataView::GetTranslationDataView(
    mojo::StringDataView* output) {}
inline void TranslatedLineDataView::GetTextColorDataView(
    ::skia::mojom::SkColorDataView* output) {}
inline void TranslatedLineDataView::GetBackgroundPrimaryColorDataView(
    ::skia::mojom::SkColorDataView* output) {}
inline void TranslatedLineDataView::GetBackgroundImageDataDataView(
    BackgroundImageDataDataView* output) {}
inline void TranslatedLineDataView::GetGeometryDataView(
    ::lens::mojom::GeometryDataView* output) {}


inline void TranslatedParagraphDataView::GetLinesDataView(
    mojo::ArrayDataView<TranslatedLineDataView>* output) {}
inline void TranslatedParagraphDataView::GetContentLanguageDataView(
    mojo::StringDataView* output) {}


inline void ParagraphDataView::GetLinesDataView(
    mojo::ArrayDataView<LineDataView>* output) {}
inline void ParagraphDataView::GetTranslationDataView(
    TranslatedParagraphDataView* output) {}
inline void ParagraphDataView::GetGeometryDataView(
    ::lens::mojom::GeometryDataView* output) {}
inline void ParagraphDataView::GetContentLanguageDataView(
    mojo::StringDataView* output) {}


inline void FormulaMetadataDataView::GetLatexDataView(
    mojo::StringDataView* output) {}



}  // lens::mojom

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

namespace perfetto {

template <>
struct  TraceFormatTraits<::lens::mojom::WritingDirection> {};

} // namespace perfetto

namespace perfetto {

template <>
struct  TraceFormatTraits<::lens::mojom::Alignment> {};

} // namespace perfetto

#endif  // CHROME_BROWSER_LENS_CORE_MOJOM_TEXT_MOJOM_SHARED_H_