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 <iterator> | 5 #include <iterator> |
6 #include <sstream> | 6 #include <sstream> |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "services/keyboard_native/predictor.h" | 10 #include "services/keyboard_native/predictor.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 if (i < input_list.size()) { | 119 if (i < input_list.size()) { |
120 change_text = std::string(input_list[i].data()); | 120 change_text = std::string(input_list[i].data()); |
121 } else { | 121 } else { |
122 change_text = ""; | 122 change_text = ""; |
123 } | 123 } |
124 static_cast<TextUpdateKey*>(suggestion_keys_[i])->ChangeText(change_text); | 124 static_cast<TextUpdateKey*>(suggestion_keys_[i])->ChangeText(change_text); |
125 } | 125 } |
126 on_update_callback_.Run(); | 126 on_update_callback_.Run(); |
127 } | 127 } |
128 | 128 |
129 } // namespace keyboard | 129 } // namespace keyboard |
OLD | NEW |