Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2044)

Unified Diff: services/prediction/input_info.h

Issue 1247903003: Add spellcheck and word suggestion to the prediction service (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/prediction/input_info.h
diff --git a/services/prediction/input_info.h b/services/prediction/input_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..27afd3f73afd1351180cb82272fd1bc851f7230c
--- /dev/null
+++ b/services/prediction/input_info.h
@@ -0,0 +1,37 @@
+// Copyright 2015 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 SERVICES_PREDICTION_INPUT_INFO_H_
+#define SERVICES_PREDICTION_INPUT_INFO_H_
+
+#include "mojo/services/prediction/public/interfaces/prediction.mojom.h"
+
+namespace prediction {
+
+class InputInfo {
+ public:
+ InputInfo(int input_size);
+ ~InputInfo();
+
+ int* GetCodepoints();
+ int* GetXCoordinates();
+ int* GetYCoordinates();
+ int* GetPointerIds();
+ int* GetTimes();
+
+ void ProcessInput(mojo::String& input);
+
+ private:
+ int size;
+ int* codepoints;
+ int* x_coordinates;
+ int* y_coordinates;
+ int* pointer_ids;
+ int* times;
+
+}; // class InputInfo
+
+} // namespace prediction
+
+#endif // SERVICES_PREDICTION_INPUT_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698