blob: aae398a05711830c820579ed6fd651ab7ecf3fdf [file] [log] [blame]
// 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 "content/browser/handwriting/handwriting_recognizer_impl.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/bind.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
namespace content {
// static
void HandwritingRecognizerImpl::Create(
handwriting::mojom::HandwritingModelConstraintPtr model_constraint,
handwriting::mojom::HandwritingRecognitionService::
CreateHandwritingRecognizerCallback callback) {
std::move(callback).Run(
handwriting::mojom::CreateHandwritingRecognizerResult::kNotSupported,
mojo::NullRemote());
}
HandwritingRecognizerImpl::HandwritingRecognizerImpl() = default;
HandwritingRecognizerImpl::~HandwritingRecognizerImpl() = default;
void HandwritingRecognizerImpl::GetPrediction(
std::vector<handwriting::mojom::HandwritingStrokePtr> strokes,
handwriting::mojom::HandwritingHintsPtr hints,
GetPredictionCallback callback) {
std::move(callback).Run(absl::nullopt);
}
} // namespace content