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 #include <algorithm> | 5 #include <algorithm> |
6 #include <deque> | 6 #include <deque> |
7 #include <fstream> | 7 #include <fstream> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "mojo/services/prediction/public/interfaces/prediction.mojom.h" | 15 #include "mojo/services/prediction/interfaces/prediction.mojom.h" |
16 #include "mojo/tools/embed/data.h" | 16 #include "mojo/tools/embed/data.h" |
17 #include "services/prediction/dictionary_service.h" | 17 #include "services/prediction/dictionary_service.h" |
18 #include "services/prediction/input_info.h" | 18 #include "services/prediction/input_info.h" |
19 #include "services/prediction/kDictFile.h" | 19 #include "services/prediction/kDictFile.h" |
20 #include "services/prediction/key_set.h" | 20 #include "services/prediction/key_set.h" |
21 #include "services/prediction/proximity_info_factory.h" | 21 #include "services/prediction/proximity_info_factory.h" |
22 #include "third_party/android_prediction/suggest/core/dictionary/dictionary.h" | 22 #include "third_party/android_prediction/suggest/core/dictionary/dictionary.h" |
23 #include "third_party/android_prediction/suggest/core/result/suggestion_results.
h" | 23 #include "third_party/android_prediction/suggest/core/result/suggestion_results.
h" |
24 #include "third_party/android_prediction/suggest/core/session/dic_traverse_sessi
on.h" | 24 #include "third_party/android_prediction/suggest/core/session/dic_traverse_sessi
on.h" |
25 #include "third_party/android_prediction/suggest/core/session/prev_words_info.h" | 25 #include "third_party/android_prediction/suggest/core/session/prev_words_info.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 prev_word_codepoint_count[i] = prev_word_size; | 191 prev_word_codepoint_count[i] = prev_word_size; |
192 are_beginning_of_sentence[i] = prev_words[i]->is_beginning_of_sentence; | 192 are_beginning_of_sentence[i] = prev_words[i]->is_beginning_of_sentence; |
193 } | 193 } |
194 latinime::PrevWordsInfo prev_words_info = | 194 latinime::PrevWordsInfo prev_words_info = |
195 latinime::PrevWordsInfo(prev_word_codepoints, prev_word_codepoint_count, | 195 latinime::PrevWordsInfo(prev_word_codepoints, prev_word_codepoint_count, |
196 are_beginning_of_sentence, prevwords_count); | 196 are_beginning_of_sentence, prevwords_count); |
197 return prev_words_info; | 197 return prev_words_info; |
198 } | 198 } |
199 | 199 |
200 } // namespace prediction | 200 } // namespace prediction |
OLD | NEW |