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

// third_party/blink/public/mojom/handwriting/handwriting.mojom.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 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_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_HANDWRITING_HANDWRITING_MOJOM_H_

#include <stdint.h>

#include <limits>
#include <optional>
#include <type_traits>
#include <utility>

#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"

#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"

#include "third_party/blink/public/mojom/handwriting/handwriting.mojom-features.h"  // IWYU pragma: export
#include "third_party/blink/public/mojom/handwriting/handwriting.mojom-shared.h"  // IWYU pragma: export
#include "third_party/blink/public/mojom/handwriting/handwriting.mojom-forward.h"  // IWYU pragma: export
#include "mojo/public/mojom/base/time.mojom.h"
#include "ui/gfx/geometry/mojom/geometry.mojom.h"
#include <string>
#include <vector>

#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"


#include "third_party/blink/public/common/common_export.h"




namespace handwriting::mojom {

class HandwritingRecognizerProxy;

template <typename ImplRefTraits>
class HandwritingRecognizerStub;

class HandwritingRecognizerRequestValidator;
class HandwritingRecognizerResponseValidator;


class BLINK_COMMON_EXPORT HandwritingRecognizer
    : public HandwritingRecognizerInterfaceBase {};

class HandwritingRecognitionServiceProxy;

template <typename ImplRefTraits>
class HandwritingRecognitionServiceStub;

class HandwritingRecognitionServiceRequestValidator;
class HandwritingRecognitionServiceResponseValidator;


class BLINK_COMMON_EXPORT HandwritingRecognitionService
    : public HandwritingRecognitionServiceInterfaceBase {};



class BLINK_COMMON_EXPORT HandwritingRecognizerProxy
    : public HandwritingRecognizer {};



class BLINK_COMMON_EXPORT HandwritingRecognitionServiceProxy
    : public HandwritingRecognitionService {};
class BLINK_COMMON_EXPORT HandwritingRecognizerStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<HandwritingRecognizer>>
class HandwritingRecognizerStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  HandwritingRecognizerStub() = default;
  ~HandwritingRecognizerStub() override = default;

  void set_sink(ImplPointerType sink) {}
  ImplPointerType& sink() {}

  bool Accept(mojo::Message* message) override {}

  bool AcceptWithResponder(
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {}

 private:
  ImplPointerType sink_;
};
class BLINK_COMMON_EXPORT HandwritingRecognitionServiceStubDispatch {};

template <typename ImplRefTraits =
              mojo::RawPtrImplRefTraits<HandwritingRecognitionService>>
class HandwritingRecognitionServiceStub
    : public mojo::MessageReceiverWithResponderStatus {
 public:
  using ImplPointerType = typename ImplRefTraits::PointerType;

  HandwritingRecognitionServiceStub() = default;
  ~HandwritingRecognitionServiceStub() override = default;

  void set_sink(ImplPointerType sink) {}
  ImplPointerType& sink() {}

  bool Accept(mojo::Message* message) override {}

  bool AcceptWithResponder(
      mojo::Message* message,
      std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override {}

 private:
  ImplPointerType sink_;
};
class BLINK_COMMON_EXPORT HandwritingRecognizerRequestValidator : public mojo::MessageReceiver {};
class BLINK_COMMON_EXPORT HandwritingRecognitionServiceRequestValidator : public mojo::MessageReceiver {};
class BLINK_COMMON_EXPORT HandwritingRecognizerResponseValidator : public mojo::MessageReceiver {};
class BLINK_COMMON_EXPORT HandwritingRecognitionServiceResponseValidator : public mojo::MessageReceiver {};







class BLINK_COMMON_EXPORT HandwritingDrawingSegment {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, HandwritingDrawingSegment::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, HandwritingDrawingSegment::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, HandwritingDrawingSegment::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, HandwritingDrawingSegment::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}







class BLINK_COMMON_EXPORT HandwritingHints {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, HandwritingHints::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, HandwritingHints::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, HandwritingHints::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, HandwritingHints::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}










class BLINK_COMMON_EXPORT HandwritingPoint {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, HandwritingPoint::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, HandwritingPoint::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, HandwritingPoint::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, HandwritingPoint::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class BLINK_COMMON_EXPORT HandwritingStroke {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, HandwritingStroke::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, HandwritingStroke::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, HandwritingStroke::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, HandwritingStroke::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}






class BLINK_COMMON_EXPORT HandwritingSegment {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, HandwritingSegment::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, HandwritingSegment::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, HandwritingSegment::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, HandwritingSegment::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class BLINK_COMMON_EXPORT HandwritingPrediction {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, HandwritingPrediction::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, HandwritingPrediction::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, HandwritingPrediction::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, HandwritingPrediction::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}






class BLINK_COMMON_EXPORT HandwritingHintsQueryResult {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, HandwritingHintsQueryResult::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, HandwritingHintsQueryResult::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, HandwritingHintsQueryResult::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, HandwritingHintsQueryResult::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class BLINK_COMMON_EXPORT QueryHandwritingRecognizerResult {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, QueryHandwritingRecognizerResult::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, QueryHandwritingRecognizerResult::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, QueryHandwritingRecognizerResult::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, QueryHandwritingRecognizerResult::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}





class BLINK_COMMON_EXPORT HandwritingModelConstraint {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
template <typename T, HandwritingModelConstraint::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);

template <typename T, HandwritingModelConstraint::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) {}

template <typename T, HandwritingModelConstraint::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) {}

template <typename T, HandwritingModelConstraint::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) {}

template <typename StructPtrType>
HandwritingPointPtr HandwritingPoint::Clone() const {}

template <typename T, HandwritingPoint::EnableIfSame<T>*>
bool HandwritingPoint::Equals(const T& other_struct) const {}

template <typename T, HandwritingPoint::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
HandwritingStrokePtr HandwritingStroke::Clone() const {}

template <typename T, HandwritingStroke::EnableIfSame<T>*>
bool HandwritingStroke::Equals(const T& other_struct) const {}

template <typename T, HandwritingStroke::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
HandwritingDrawingSegmentPtr HandwritingDrawingSegment::Clone() const {}

template <typename T, HandwritingDrawingSegment::EnableIfSame<T>*>
bool HandwritingDrawingSegment::Equals(const T& other_struct) const {}

template <typename T, HandwritingDrawingSegment::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
HandwritingSegmentPtr HandwritingSegment::Clone() const {}

template <typename T, HandwritingSegment::EnableIfSame<T>*>
bool HandwritingSegment::Equals(const T& other_struct) const {}

template <typename T, HandwritingSegment::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
HandwritingPredictionPtr HandwritingPrediction::Clone() const {}

template <typename T, HandwritingPrediction::EnableIfSame<T>*>
bool HandwritingPrediction::Equals(const T& other_struct) const {}

template <typename T, HandwritingPrediction::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
HandwritingHintsPtr HandwritingHints::Clone() const {}

template <typename T, HandwritingHints::EnableIfSame<T>*>
bool HandwritingHints::Equals(const T& other_struct) const {}

template <typename T, HandwritingHints::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
HandwritingHintsQueryResultPtr HandwritingHintsQueryResult::Clone() const {}

template <typename T, HandwritingHintsQueryResult::EnableIfSame<T>*>
bool HandwritingHintsQueryResult::Equals(const T& other_struct) const {}

template <typename T, HandwritingHintsQueryResult::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
QueryHandwritingRecognizerResultPtr QueryHandwritingRecognizerResult::Clone() const {}

template <typename T, QueryHandwritingRecognizerResult::EnableIfSame<T>*>
bool QueryHandwritingRecognizerResult::Equals(const T& other_struct) const {}

template <typename T, QueryHandwritingRecognizerResult::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}
template <typename StructPtrType>
HandwritingModelConstraintPtr HandwritingModelConstraint::Clone() const {}

template <typename T, HandwritingModelConstraint::EnableIfSame<T>*>
bool HandwritingModelConstraint::Equals(const T& other_struct) const {}

template <typename T, HandwritingModelConstraint::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) {}


}  // handwriting::mojom

namespace mojo {


template <>
struct BLINK_COMMON_EXPORT StructTraits<::handwriting::mojom::HandwritingPoint::DataView,
                                         ::handwriting::mojom::HandwritingPointPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::handwriting::mojom::HandwritingStroke::DataView,
                                         ::handwriting::mojom::HandwritingStrokePtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::handwriting::mojom::HandwritingDrawingSegment::DataView,
                                         ::handwriting::mojom::HandwritingDrawingSegmentPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::handwriting::mojom::HandwritingSegment::DataView,
                                         ::handwriting::mojom::HandwritingSegmentPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::handwriting::mojom::HandwritingPrediction::DataView,
                                         ::handwriting::mojom::HandwritingPredictionPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::handwriting::mojom::HandwritingHints::DataView,
                                         ::handwriting::mojom::HandwritingHintsPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::handwriting::mojom::HandwritingHintsQueryResult::DataView,
                                         ::handwriting::mojom::HandwritingHintsQueryResultPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::handwriting::mojom::QueryHandwritingRecognizerResult::DataView,
                                         ::handwriting::mojom::QueryHandwritingRecognizerResultPtr> {};


template <>
struct BLINK_COMMON_EXPORT StructTraits<::handwriting::mojom::HandwritingModelConstraint::DataView,
                                         ::handwriting::mojom::HandwritingModelConstraintPtr> {};

}  // namespace mojo

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_HANDWRITING_HANDWRITING_MOJOM_H_