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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module prediction; 5 module prediction;
6 6
7 struct Settings {
8 bool correction_enabled;
9 bool block_potentially_offensive;
10 bool space_aware_gesture_enabled;
11 };
12
13 struct PredictionInfo { 7 struct PredictionInfo {
14 array<string> previous_words; 8 » array<string> previous_words;
15 string current_word; 9 » array<bool> are_beginning_of_sentence;»
APW 2015/07/23 18:02:15 You should make a struct that has a string and boo
riajiang 2015/07/31 02:13:04 Done. I don't think we need that to search for wo
APW 2015/07/31 21:49:15 What do you use the other is_beginning_of_sentence
10 » string current_word;
16 }; 11 };
17 12
18 interface PredictionService { 13 interface PredictionService {
19 SetSettings(Settings settings);
20
21 GetPredictionList(PredictionInfo prediction_info) => (array<string>? predictio n_list); 14 GetPredictionList(PredictionInfo prediction_info) => (array<string>? predictio n_list);
22 }; 15 };
OLDNEW
« no previous file with comments | « DEPS ('k') | services/prediction/BUILD.gn » ('j') | services/prediction/dictionary_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698