blob: e1397244bf754d7cfea720ad296a74d667542f72 [file] [log] [blame]
Ria Runjie Jiangdc1f1532015-06-04 15:24:38 -07001// 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 McCutchanf9ad1a72015-07-30 09:06:39 -07005[DartPackage="mojo_services"]
Ria Runjie Jiangdc1f1532015-06-04 15:24:38 -07006module prediction;
7
Ria Runjie Jiang1e6163c2015-08-06 13:06:25 -07008struct PrevWordInfo {
9 string word;
10 bool is_beginning_of_sentence;
Ria Runjie Jiangdc1f1532015-06-04 15:24:38 -070011};
12
13struct PredictionInfo {
Ria Runjie Jiang1e6163c2015-08-06 13:06:25 -070014 array<PrevWordInfo> previous_words;
15 string current_word;
Ria Runjie Jiangdc1f1532015-06-04 15:24:38 -070016};
17
18interface PredictionService {
Ria Runjie Jiangdc1f1532015-06-04 15:24:38 -070019 GetPredictionList(PredictionInfo prediction_info) => (array<string>? prediction_list);
20};