| 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 #ifndef SERVICES_KEYBOARD_NATIVE_PREDICTOR_H_ | 5 #ifndef SERVICES_KEYBOARD_NATIVE_PREDICTOR_H_ |
| 6 #define SERVICES_KEYBOARD_NATIVE_PREDICTOR_H_ | 6 #define SERVICES_KEYBOARD_NATIVE_PREDICTOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "mojo/public/cpp/application/connect.h" | 11 #include "mojo/public/cpp/application/connect.h" |
| 12 #include "mojo/public/interfaces/application/shell.mojom.h" | 12 #include "mojo/public/interfaces/application/shell.mojom.h" |
| 13 #include "mojo/services/prediction/public/interfaces/prediction.mojom.h" | 13 #include "mojo/services/prediction/interfaces/prediction.mojom.h" |
| 14 #include "services/keyboard_native/key_layout.h" | 14 #include "services/keyboard_native/key_layout.h" |
| 15 | 15 |
| 16 namespace keyboard { | 16 namespace keyboard { |
| 17 | 17 |
| 18 class Predictor { | 18 class Predictor { |
| 19 public: | 19 public: |
| 20 Predictor(mojo::Shell* shell); | 20 Predictor(mojo::Shell* shell); |
| 21 ~Predictor(); | 21 ~Predictor(); |
| 22 | 22 |
| 23 void SetSuggestionKeys(std::vector<KeyLayout::Key*> suggestion_keys); | 23 void SetSuggestionKeys(std::vector<KeyLayout::Key*> suggestion_keys); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 42 std::string current_word_; | 42 std::string current_word_; |
| 43 std::vector<std::string> previous_words_; | 43 std::vector<std::string> previous_words_; |
| 44 base::Callback<void()> on_update_callback_; | 44 base::Callback<void()> on_update_callback_; |
| 45 | 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(Predictor); | 46 DISALLOW_COPY_AND_ASSIGN(Predictor); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace keyboard | 49 } // namespace keyboard |
| 50 | 50 |
| 51 #endif // SERVICES_KEYBOARD_NATIVE_PREDICTOR_H_ | 51 #endif // SERVICES_KEYBOARD_NATIVE_PREDICTOR_H_ |
| OLD | NEW |