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

Unified Diff: mojo/services/prediction/public/interfaces/prediction.mojom

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 | « examples/keyboard_client/keyboard_client.cc ('k') | services/keyboard_native/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/prediction/public/interfaces/prediction.mojom
diff --git a/mojo/services/prediction/public/interfaces/prediction.mojom b/mojo/services/prediction/public/interfaces/prediction.mojom
index 58fa8d2510fc15c521985958293dedb68c8091ed..e1397244bf754d7cfea720ad296a74d667542f72 100644
--- a/mojo/services/prediction/public/interfaces/prediction.mojom
+++ b/mojo/services/prediction/public/interfaces/prediction.mojom
@@ -5,19 +5,16 @@
[DartPackage="mojo_services"]
module prediction;
-struct Settings {
- bool correction_enabled;
- bool block_potentially_offensive;
- bool space_aware_gesture_enabled;
+struct PrevWordInfo {
+ string word;
+ bool is_beginning_of_sentence;
};
struct PredictionInfo {
- array<string> previous_words;
- string current_word;
+ array<PrevWordInfo> previous_words;
+ string current_word;
};
interface PredictionService {
- SetSettings(Settings settings);
-
GetPredictionList(PredictionInfo prediction_info) => (array<string>? prediction_list);
};
« no previous file with comments | « examples/keyboard_client/keyboard_client.cc ('k') | services/keyboard_native/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698