OLD | NEW |
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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
6 module prediction; | 6 module prediction; |
7 | 7 |
8 struct Settings { | 8 struct PrevWordInfo { |
9 bool correction_enabled; | 9 » string word; |
10 bool block_potentially_offensive; | 10 » bool is_beginning_of_sentence; |
11 bool space_aware_gesture_enabled; | |
12 }; | 11 }; |
13 | 12 |
14 struct PredictionInfo { | 13 struct PredictionInfo { |
15 array<string> previous_words; | 14 » array<PrevWordInfo> previous_words; |
16 string current_word; | 15 » string current_word; |
17 }; | 16 }; |
18 | 17 |
19 interface PredictionService { | 18 interface PredictionService { |
20 SetSettings(Settings settings); | |
21 | |
22 GetPredictionList(PredictionInfo prediction_info) => (array<string>? predictio
n_list); | 19 GetPredictionList(PredictionInfo prediction_info) => (array<string>? predictio
n_list); |
23 }; | 20 }; |
OLD | NEW |