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

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: format README and CHROMIUM.diff Created 5 years, 4 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
« no previous file with comments | « services/prediction/dictionary_service.cc ('k') | services/prediction/input_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5f7caa4d2ceeb7e50b5d33c5441e7b793754bf80
--- /dev/null
+++ b/services/prediction/input_info.h
@@ -0,0 +1,38 @@
+// 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(mojo::String& input, int input_size);
+ ~InputInfo();
+
+ int* GetCodepoints();
+ int* GetXCoordinates();
+ int* GetYCoordinates();
+ int* GetPointerIds();
+ int* GetTimes();
+ int GetRealSize();
+
+ private:
+ void ProcessInput(mojo::String& input, int input_size);
+
+ int real_size_;
+ int* codepoints_;
+ int* x_coordinates_;
+ int* y_coordinates_;
+ int* pointer_ids_;
+ int* times_;
+
+}; // class InputInfo
+
+} // namespace prediction
+
+#endif // SERVICES_PREDICTION_INPUT_INFO_H_
« no previous file with comments | « services/prediction/dictionary_service.cc ('k') | services/prediction/input_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698