chromium/third_party/blink/renderer/modules/handwriting/handwriting_type_converters.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/modules/handwriting/handwriting_type_converters.h"

#include "third_party/blink/public/mojom/handwriting/handwriting.mojom-blink.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_drawing_segment.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_hints.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_hints_query_result.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_input_type.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_model_constraint.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_point.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_prediction.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_recognition_type.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_recognizer_query_result.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_segment.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_handwriting_stroke.h"
#include "third_party/blink/renderer/modules/handwriting/handwriting_stroke.h"
#include "third_party/blink/renderer/modules/modules_export.h"

namespace mojo {

HandwritingDrawingSegmentPtr;
HandwritingHintsPtr;
HandwritingPointPtr;
HandwritingPredictionPtr;
HandwritingSegmentPtr;
HandwritingStrokePtr;

// Converters from IDL to Mojo.

// static
HandwritingPointPtr
TypeConverter<HandwritingPointPtr, blink::HandwritingPoint*>::Convert(
    const blink::HandwritingPoint* input) {}

// static
HandwritingStrokePtr
TypeConverter<HandwritingStrokePtr, blink::HandwritingStroke*>::Convert(
    const blink::HandwritingStroke* input) {}

// static
HandwritingHintsPtr
TypeConverter<HandwritingHintsPtr, blink::HandwritingHints*>::Convert(
    const blink::HandwritingHints* input) {}

// Converters from Mojo to IDL.

// static
blink::HandwritingPoint*
TypeConverter<blink::HandwritingPoint*, HandwritingPointPtr>::Convert(
    const HandwritingPointPtr& input) {}

// static
blink::HandwritingStroke*
TypeConverter<blink::HandwritingStroke*, HandwritingStrokePtr>::Convert(
    const HandwritingStrokePtr& input) {}

// static
blink::HandwritingDrawingSegment*
TypeConverter<blink::HandwritingDrawingSegment*, HandwritingDrawingSegmentPtr>::
    Convert(const HandwritingDrawingSegmentPtr& input) {}

// static
blink::HandwritingSegment*
TypeConverter<blink::HandwritingSegment*,
              handwriting::mojom::blink::HandwritingSegmentPtr>::
    Convert(const handwriting::mojom::blink::HandwritingSegmentPtr& input) {}

// static
blink::HandwritingPrediction*
TypeConverter<blink::HandwritingPrediction*,
              handwriting::mojom::blink::HandwritingPredictionPtr>::
    Convert(const handwriting::mojom::blink::HandwritingPredictionPtr& input) {}

// static
handwriting::mojom::blink::HandwritingModelConstraintPtr
TypeConverter<handwriting::mojom::blink::HandwritingModelConstraintPtr,
              blink::HandwritingModelConstraint*>::
    Convert(const blink::HandwritingModelConstraint* input) {}

Vector<blink::V8HandwritingRecognitionType> ConvertRecognitionType(
    const Vector<handwriting::mojom::blink::HandwritingRecognitionType>&
        input) {}

Vector<blink::V8HandwritingInputType> ConvertInputType(
    const Vector<handwriting::mojom::blink::HandwritingInputType>& input) {}

// static
blink::HandwritingRecognizerQueryResult*
TypeConverter<blink::HandwritingRecognizerQueryResult*,
              handwriting::mojom::blink::QueryHandwritingRecognizerResultPtr>::
    Convert(
        const handwriting::mojom::blink::QueryHandwritingRecognizerResultPtr&
            input) {}

}  // namespace mojo