Ria Runjie Jiang | dc1f153 | 2015-06-04 15:24:38 -0700 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
John McCutchan | f9ad1a7 | 2015-07-30 09:06:39 -0700 | [diff] [blame] | 5 | [DartPackage="mojo_services"] |
Ria Runjie Jiang | dc1f153 | 2015-06-04 15:24:38 -0700 | [diff] [blame] | 6 | module prediction; |
| 7 | |
Ria Runjie Jiang | 1e6163c | 2015-08-06 13:06:25 -0700 | [diff] [blame] | 8 | struct PrevWordInfo { |
| 9 | string word; |
| 10 | bool is_beginning_of_sentence; |
Ria Runjie Jiang | dc1f153 | 2015-06-04 15:24:38 -0700 | [diff] [blame] | 11 | }; |
| 12 | |
| 13 | struct PredictionInfo { |
Ria Runjie Jiang | 1e6163c | 2015-08-06 13:06:25 -0700 | [diff] [blame] | 14 | array<PrevWordInfo> previous_words; |
| 15 | string current_word; |
Ria Runjie Jiang | dc1f153 | 2015-06-04 15:24:38 -0700 | [diff] [blame] | 16 | }; |
| 17 | |
| 18 | interface PredictionService { |
Ria Runjie Jiang | dc1f153 | 2015-06-04 15:24:38 -0700 | [diff] [blame] | 19 | GetPredictionList(PredictionInfo prediction_info) => (array<string>? prediction_list); |
| 20 | }; |