OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ui/base/ime/input_method_auralinux.h" | 5 #include "ui/base/ime/input_method_auralinux.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/environment.h" | 8 #include "base/environment.h" |
9 #include "ui/base/ime/linux/linux_input_method_context_factory.h" | 9 #include "ui/base/ime/linux/linux_input_method_context_factory.h" |
10 #include "ui/base/ime/text_input_client.h" | 10 #include "ui/base/ime/text_input_client.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 composition_changed_ = false; | 205 composition_changed_ = false; |
206 } | 206 } |
207 | 207 |
208 void InputMethodAuraLinux::OnInputLocaleChanged() { | 208 void InputMethodAuraLinux::OnInputLocaleChanged() { |
209 } | 209 } |
210 | 210 |
211 std::string InputMethodAuraLinux::GetInputLocale() { | 211 std::string InputMethodAuraLinux::GetInputLocale() { |
212 return ""; | 212 return ""; |
213 } | 213 } |
214 | 214 |
215 bool InputMethodAuraLinux::IsActive() { | |
216 // InputMethodAuraLinux is always ready and up. | |
217 return true; | |
218 } | |
219 | |
220 bool InputMethodAuraLinux::IsCandidatePopupOpen() const { | 215 bool InputMethodAuraLinux::IsCandidatePopupOpen() const { |
221 // There seems no way to detect candidate windows or any popups. | 216 // There seems no way to detect candidate windows or any popups. |
222 return false; | 217 return false; |
223 } | 218 } |
224 | 219 |
225 // Overriden from ui::LinuxInputMethodContextDelegate | 220 // Overriden from ui::LinuxInputMethodContextDelegate |
226 | 221 |
227 void InputMethodAuraLinux::OnCommit(const base::string16& text) { | 222 void InputMethodAuraLinux::OnCommit(const base::string16& text) { |
228 if (suppress_next_result_ || !GetTextInputClient()) { | 223 if (suppress_next_result_ || !GetTextInputClient()) { |
229 suppress_next_result_ = false; | 224 suppress_next_result_ = false; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 | 324 |
330 void InputMethodAuraLinux::ConfirmCompositionText() { | 325 void InputMethodAuraLinux::ConfirmCompositionText() { |
331 TextInputClient* client = GetTextInputClient(); | 326 TextInputClient* client = GetTextInputClient(); |
332 if (client && client->HasCompositionText()) | 327 if (client && client->HasCompositionText()) |
333 client->ConfirmCompositionText(); | 328 client->ConfirmCompositionText(); |
334 | 329 |
335 ResetContext(); | 330 ResetContext(); |
336 } | 331 } |
337 | 332 |
338 } // namespace ui | 333 } // namespace ui |
OLD | NEW |