| // chromeos/services/machine_learning/public/mojom/web_platform_handwriting.mojom-test-utils.h is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROMEOS_SERVICES_MACHINE_LEARNING_PUBLIC_MOJOM_WEB_PLATFORM_HANDWRITING_MOJOM_TEST_UTILS_H_ |
| #define CHROMEOS_SERVICES_MACHINE_LEARNING_PUBLIC_MOJOM_WEB_PLATFORM_HANDWRITING_MOJOM_TEST_UTILS_H_ |
| |
| #include "chromeos/services/machine_learning/public/mojom/web_platform_handwriting.mojom.h" |
| #include "base/component_export.h" |
| |
| |
| namespace chromeos { |
| namespace machine_learning { |
| namespace web_platform { |
| namespace mojom { |
| |
| |
| class COMPONENT_EXPORT(MLSERVICE_MOJOM) HandwritingRecognizerInterceptorForTesting : public HandwritingRecognizer { |
| virtual HandwritingRecognizer* GetForwardingInterface() = 0; |
| void GetPrediction(std::vector<HandwritingStrokePtr> strokes, HandwritingHintsPtr hints, GetPredictionCallback callback) override; |
| }; |
| class COMPONENT_EXPORT(MLSERVICE_MOJOM) HandwritingRecognizerAsyncWaiter { |
| public: |
| explicit HandwritingRecognizerAsyncWaiter(HandwritingRecognizer* proxy); |
| |
| HandwritingRecognizerAsyncWaiter(const HandwritingRecognizerAsyncWaiter&) = delete; |
| HandwritingRecognizerAsyncWaiter& operator=(const HandwritingRecognizerAsyncWaiter&) = delete; |
| |
| ~HandwritingRecognizerAsyncWaiter(); |
| void GetPrediction( |
| std::vector<HandwritingStrokePtr> strokes, HandwritingHintsPtr hints, absl::optional<std::vector<HandwritingPredictionPtr>>* out_prediction); |
| |
| private: |
| HandwritingRecognizer* const proxy_; |
| }; |
| |
| |
| |
| |
| } // namespace mojom |
| } // namespace web_platform |
| } // namespace machine_learning |
| } // namespace chromeos |
| |
| #endif // CHROMEOS_SERVICES_MACHINE_LEARNING_PUBLIC_MOJOM_WEB_PLATFORM_HANDWRITING_MOJOM_TEST_UTILS_H_ |