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

// third_party/blink/public/mojom/handwriting/handwriting.mojom-blink.cc 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.

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "third_party/blink/public/mojom/handwriting/handwriting.mojom-blink.h"

#include <math.h>
#include <stdint.h>
#include <utility>

#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

#include "third_party/blink/public/mojom/handwriting/handwriting.mojom-params-data.h"
#include "third_party/blink/public/mojom/handwriting/handwriting.mojom-shared-message-ids.h"

#include "third_party/blink/public/mojom/handwriting/handwriting.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/handwriting/handwriting.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"


namespace handwriting::mojom::blink {
HandwritingPoint::HandwritingPoint()
    :{}

HandwritingPoint::HandwritingPoint(
    const ::gfx::PointF& location_in,
    std::optional<::base::TimeDelta> t_in)
    :{}

HandwritingPoint::~HandwritingPoint() = default;

void HandwritingPoint::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool HandwritingPoint::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
HandwritingStroke::HandwritingStroke()
    :{}

HandwritingStroke::HandwritingStroke(
    WTF::Vector<HandwritingPointPtr> points_in)
    :{}

HandwritingStroke::~HandwritingStroke() = default;

void HandwritingStroke::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool HandwritingStroke::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
HandwritingDrawingSegment::HandwritingDrawingSegment()
    :{}

HandwritingDrawingSegment::HandwritingDrawingSegment(
    uint32_t stroke_index_in,
    uint32_t begin_point_index_in,
    uint32_t end_point_index_in)
    :{}

HandwritingDrawingSegment::~HandwritingDrawingSegment() = default;
size_t HandwritingDrawingSegment::Hash(size_t seed) const {}

void HandwritingDrawingSegment::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool HandwritingDrawingSegment::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
HandwritingSegment::HandwritingSegment()
    :{}

HandwritingSegment::HandwritingSegment(
    const WTF::String& grapheme_in,
    uint32_t begin_index_in,
    uint32_t end_index_in,
    WTF::Vector<HandwritingDrawingSegmentPtr> drawing_segments_in)
    :{}

HandwritingSegment::~HandwritingSegment() = default;

void HandwritingSegment::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool HandwritingSegment::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
HandwritingPrediction::HandwritingPrediction()
    :{}

HandwritingPrediction::HandwritingPrediction(
    const WTF::String& text_in,
    WTF::Vector<HandwritingSegmentPtr> segmentation_result_in)
    :{}

HandwritingPrediction::~HandwritingPrediction() = default;

void HandwritingPrediction::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool HandwritingPrediction::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
HandwritingHints::HandwritingHints()
    :{}

HandwritingHints::HandwritingHints(
    const WTF::String& recognition_type_in,
    const WTF::String& input_type_in,
    const WTF::String& text_context_in,
    uint32_t alternatives_in)
    :{}

HandwritingHints::~HandwritingHints() = default;

void HandwritingHints::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool HandwritingHints::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
HandwritingHintsQueryResult::HandwritingHintsQueryResult()
    :{}

HandwritingHintsQueryResult::HandwritingHintsQueryResult(
    WTF::Vector<HandwritingRecognitionType> recognition_type_in,
    WTF::Vector<HandwritingInputType> input_type_in,
    bool text_context_in,
    bool alternatives_in)
    :{}

HandwritingHintsQueryResult::~HandwritingHintsQueryResult() = default;

void HandwritingHintsQueryResult::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool HandwritingHintsQueryResult::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
QueryHandwritingRecognizerResult::QueryHandwritingRecognizerResult()
    :{}

QueryHandwritingRecognizerResult::QueryHandwritingRecognizerResult(
    bool text_alternatives_in,
    bool text_segmentation_in,
    HandwritingHintsQueryResultPtr hints_in)
    :{}

QueryHandwritingRecognizerResult::~QueryHandwritingRecognizerResult() = default;

void QueryHandwritingRecognizerResult::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool QueryHandwritingRecognizerResult::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
HandwritingModelConstraint::HandwritingModelConstraint()
    :{}

HandwritingModelConstraint::HandwritingModelConstraint(
    WTF::Vector<WTF::String> languages_in)
    :{}

HandwritingModelConstraint::~HandwritingModelConstraint() = default;

void HandwritingModelConstraint::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool HandwritingModelConstraint::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char HandwritingRecognizer::Name_[] =;

HandwritingRecognizer::IPCStableHashFunction HandwritingRecognizer::MessageToMethodInfo_(mojo::Message& message) {}


const char* HandwritingRecognizer::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t HandwritingRecognizer::GetPrediction_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class HandwritingRecognizer_GetPrediction_ForwardToCallback
    : public mojo::MessageReceiver {};

HandwritingRecognizerProxy::HandwritingRecognizerProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void HandwritingRecognizerProxy::GetPrediction(
    WTF::Vector<HandwritingStrokePtr> in_strokes, HandwritingHintsPtr in_hints, GetPredictionCallback callback) {}
class HandwritingRecognizer_GetPrediction_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void HandwritingRecognizer_GetPrediction_ProxyToResponder::Run(
    std::optional<WTF::Vector<HandwritingPredictionPtr>> in_prediction) {}

// static
bool HandwritingRecognizerStubDispatch::Accept(
    HandwritingRecognizer* impl,
    mojo::Message* message) {}

// static
bool HandwritingRecognizerStubDispatch::AcceptWithResponder(
    HandwritingRecognizer* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kHandwritingRecognizerValidationInfo[] =;

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

bool HandwritingRecognizerResponseValidator::Accept(mojo::Message* message) {}
const char HandwritingRecognitionService::Name_[] =;

HandwritingRecognitionService::IPCStableHashFunction HandwritingRecognitionService::MessageToMethodInfo_(mojo::Message& message) {}


const char* HandwritingRecognitionService::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t HandwritingRecognitionService::CreateHandwritingRecognizer_Sym::IPCStableHash() {}
uint32_t HandwritingRecognitionService::QueryHandwritingRecognizer_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class HandwritingRecognitionService_CreateHandwritingRecognizer_ForwardToCallback
    : public mojo::MessageReceiver {};

class HandwritingRecognitionService_QueryHandwritingRecognizer_ForwardToCallback
    : public mojo::MessageReceiver {};

HandwritingRecognitionServiceProxy::HandwritingRecognitionServiceProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void HandwritingRecognitionServiceProxy::CreateHandwritingRecognizer(
    HandwritingModelConstraintPtr in_constraint, CreateHandwritingRecognizerCallback callback) {}

void HandwritingRecognitionServiceProxy::QueryHandwritingRecognizer(
    HandwritingModelConstraintPtr in_constraint, QueryHandwritingRecognizerCallback callback) {}
class HandwritingRecognitionService_CreateHandwritingRecognizer_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void HandwritingRecognitionService_CreateHandwritingRecognizer_ProxyToResponder::Run(
    CreateHandwritingRecognizerResult in_result, ::mojo::PendingRemote<HandwritingRecognizer> in_handwriting_recognizer) {}
class HandwritingRecognitionService_QueryHandwritingRecognizer_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void HandwritingRecognitionService_QueryHandwritingRecognizer_ProxyToResponder::Run(
    QueryHandwritingRecognizerResultPtr in_result) {}

// static
bool HandwritingRecognitionServiceStubDispatch::Accept(
    HandwritingRecognitionService* impl,
    mojo::Message* message) {}

// static
bool HandwritingRecognitionServiceStubDispatch::AcceptWithResponder(
    HandwritingRecognitionService* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kHandwritingRecognitionServiceValidationInfo[] =;

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

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


}  // handwriting::mojom::blink


namespace mojo {


// static
bool StructTraits<::handwriting::mojom::blink::HandwritingPoint::DataView, ::handwriting::mojom::blink::HandwritingPointPtr>::Read(
    ::handwriting::mojom::blink::HandwritingPoint::DataView input,
    ::handwriting::mojom::blink::HandwritingPointPtr* output) {}


// static
bool StructTraits<::handwriting::mojom::blink::HandwritingStroke::DataView, ::handwriting::mojom::blink::HandwritingStrokePtr>::Read(
    ::handwriting::mojom::blink::HandwritingStroke::DataView input,
    ::handwriting::mojom::blink::HandwritingStrokePtr* output) {}


// static
bool StructTraits<::handwriting::mojom::blink::HandwritingDrawingSegment::DataView, ::handwriting::mojom::blink::HandwritingDrawingSegmentPtr>::Read(
    ::handwriting::mojom::blink::HandwritingDrawingSegment::DataView input,
    ::handwriting::mojom::blink::HandwritingDrawingSegmentPtr* output) {}


// static
bool StructTraits<::handwriting::mojom::blink::HandwritingSegment::DataView, ::handwriting::mojom::blink::HandwritingSegmentPtr>::Read(
    ::handwriting::mojom::blink::HandwritingSegment::DataView input,
    ::handwriting::mojom::blink::HandwritingSegmentPtr* output) {}


// static
bool StructTraits<::handwriting::mojom::blink::HandwritingPrediction::DataView, ::handwriting::mojom::blink::HandwritingPredictionPtr>::Read(
    ::handwriting::mojom::blink::HandwritingPrediction::DataView input,
    ::handwriting::mojom::blink::HandwritingPredictionPtr* output) {}


// static
bool StructTraits<::handwriting::mojom::blink::HandwritingHints::DataView, ::handwriting::mojom::blink::HandwritingHintsPtr>::Read(
    ::handwriting::mojom::blink::HandwritingHints::DataView input,
    ::handwriting::mojom::blink::HandwritingHintsPtr* output) {}


// static
bool StructTraits<::handwriting::mojom::blink::HandwritingHintsQueryResult::DataView, ::handwriting::mojom::blink::HandwritingHintsQueryResultPtr>::Read(
    ::handwriting::mojom::blink::HandwritingHintsQueryResult::DataView input,
    ::handwriting::mojom::blink::HandwritingHintsQueryResultPtr* output) {}


// static
bool StructTraits<::handwriting::mojom::blink::QueryHandwritingRecognizerResult::DataView, ::handwriting::mojom::blink::QueryHandwritingRecognizerResultPtr>::Read(
    ::handwriting::mojom::blink::QueryHandwritingRecognizerResult::DataView input,
    ::handwriting::mojom::blink::QueryHandwritingRecognizerResultPtr* output) {}


// static
bool StructTraits<::handwriting::mojom::blink::HandwritingModelConstraint::DataView, ::handwriting::mojom::blink::HandwritingModelConstraintPtr>::Read(
    ::handwriting::mojom::blink::HandwritingModelConstraint::DataView input,
    ::handwriting::mojom::blink::HandwritingModelConstraintPtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace handwriting::mojom::blink {


void HandwritingRecognizerInterceptorForTesting::GetPrediction(WTF::Vector<HandwritingStrokePtr> strokes, HandwritingHintsPtr hints, GetPredictionCallback callback) {}
HandwritingRecognizerAsyncWaiter::HandwritingRecognizerAsyncWaiter(
    HandwritingRecognizer* proxy) :{}

HandwritingRecognizerAsyncWaiter::~HandwritingRecognizerAsyncWaiter() = default;

void HandwritingRecognizerAsyncWaiter::GetPrediction(
    WTF::Vector<HandwritingStrokePtr> strokes, HandwritingHintsPtr hints, std::optional<WTF::Vector<HandwritingPredictionPtr>>* out_prediction) {}

std::optional<WTF::Vector<HandwritingPredictionPtr>> HandwritingRecognizerAsyncWaiter::GetPrediction(
    WTF::Vector<HandwritingStrokePtr> strokes, HandwritingHintsPtr hints) {}




void HandwritingRecognitionServiceInterceptorForTesting::CreateHandwritingRecognizer(HandwritingModelConstraintPtr constraint, CreateHandwritingRecognizerCallback callback) {}
void HandwritingRecognitionServiceInterceptorForTesting::QueryHandwritingRecognizer(HandwritingModelConstraintPtr constraint, QueryHandwritingRecognizerCallback callback) {}
HandwritingRecognitionServiceAsyncWaiter::HandwritingRecognitionServiceAsyncWaiter(
    HandwritingRecognitionService* proxy) :{}

HandwritingRecognitionServiceAsyncWaiter::~HandwritingRecognitionServiceAsyncWaiter() = default;

void HandwritingRecognitionServiceAsyncWaiter::CreateHandwritingRecognizer(
    HandwritingModelConstraintPtr constraint, CreateHandwritingRecognizerResult* out_result, ::mojo::PendingRemote<HandwritingRecognizer>* out_handwriting_recognizer) {}



void HandwritingRecognitionServiceAsyncWaiter::QueryHandwritingRecognizer(
    HandwritingModelConstraintPtr constraint, QueryHandwritingRecognizerResultPtr* out_result) {}

QueryHandwritingRecognizerResultPtr HandwritingRecognitionServiceAsyncWaiter::QueryHandwritingRecognizer(
    HandwritingModelConstraintPtr constraint) {}






}  // handwriting::mojom::blink


#if defined(__clang__)
#pragma clang diagnostic pop
#endif