#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_HANDWRITING_HANDWRITING_MOJOM_BLINK_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_HANDWRITING_HANDWRITING_MOJOM_BLINK_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"
#include "third_party/blink/public/mojom/handwriting/handwriting.mojom-shared.h"
#include "third_party/blink/public/mojom/handwriting/handwriting.mojom-blink-forward.h"
#include "mojo/public/mojom/base/time.mojom-blink.h"
#include "ui/gfx/geometry/mojom/geometry.mojom-blink.h"
#include "mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h"
#include "mojo/public/cpp/bindings/lib/wtf_hash_util.h"
#include "third_party/blink/renderer/platform/wtf/hash_functions.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#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/renderer/platform/platform_export.h"
namespace handwriting::mojom::blink {
class HandwritingRecognizerProxy;
template <typename ImplRefTraits>
class HandwritingRecognizerStub;
class HandwritingRecognizerRequestValidator;
class HandwritingRecognizerResponseValidator;
class PLATFORM_EXPORT HandwritingRecognizer
: public HandwritingRecognizerInterfaceBase { … };
class HandwritingRecognitionServiceProxy;
template <typename ImplRefTraits>
class HandwritingRecognitionServiceStub;
class HandwritingRecognitionServiceRequestValidator;
class HandwritingRecognitionServiceResponseValidator;
class PLATFORM_EXPORT HandwritingRecognitionService
: public HandwritingRecognitionServiceInterfaceBase { … };
class PLATFORM_EXPORT HandwritingRecognizerProxy
: public HandwritingRecognizer { … };
class PLATFORM_EXPORT HandwritingRecognitionServiceProxy
: public HandwritingRecognitionService { … };
class PLATFORM_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 PLATFORM_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 PLATFORM_EXPORT HandwritingRecognizerRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT HandwritingRecognitionServiceRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT HandwritingRecognizerResponseValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT HandwritingRecognitionServiceResponseValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT HandwritingDrawingSegment { … };
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 PLATFORM_EXPORT HandwritingHints { … };
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 PLATFORM_EXPORT HandwritingPoint { … };
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 PLATFORM_EXPORT HandwritingStroke { … };
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 PLATFORM_EXPORT HandwritingSegment { … };
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 PLATFORM_EXPORT HandwritingPrediction { … };
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 PLATFORM_EXPORT HandwritingHintsQueryResult { … };
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 PLATFORM_EXPORT QueryHandwritingRecognizerResult { … };
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 PLATFORM_EXPORT HandwritingModelConstraint { … };
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) { … }
}
namespace mojo {
template <>
struct PLATFORM_EXPORT StructTraits<::handwriting::mojom::blink::HandwritingPoint::DataView,
::handwriting::mojom::blink::HandwritingPointPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::handwriting::mojom::blink::HandwritingStroke::DataView,
::handwriting::mojom::blink::HandwritingStrokePtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::handwriting::mojom::blink::HandwritingDrawingSegment::DataView,
::handwriting::mojom::blink::HandwritingDrawingSegmentPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::handwriting::mojom::blink::HandwritingSegment::DataView,
::handwriting::mojom::blink::HandwritingSegmentPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::handwriting::mojom::blink::HandwritingPrediction::DataView,
::handwriting::mojom::blink::HandwritingPredictionPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::handwriting::mojom::blink::HandwritingHints::DataView,
::handwriting::mojom::blink::HandwritingHintsPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::handwriting::mojom::blink::HandwritingHintsQueryResult::DataView,
::handwriting::mojom::blink::HandwritingHintsQueryResultPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::handwriting::mojom::blink::QueryHandwritingRecognizerResult::DataView,
::handwriting::mojom::blink::QueryHandwritingRecognizerResultPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::handwriting::mojom::blink::HandwritingModelConstraint::DataView,
::handwriting::mojom::blink::HandwritingModelConstraintPtr> { … };
}
#endif