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/bind.h" | 8 #include "base/bind.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "ui/base/ime/ime_bridge.h" | 10 #include "ui/base/ime/ime_bridge.h" |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 context_->Blur(); | 313 context_->Blur(); |
314 context_->Focus(); | 314 context_->Focus(); |
315 } | 315 } |
316 | 316 |
317 composition_.Clear(); | 317 composition_.Clear(); |
318 result_text_.clear(); | 318 result_text_.clear(); |
319 is_sync_mode_ = false; | 319 is_sync_mode_ = false; |
320 composition_changed_ = false; | 320 composition_changed_ = false; |
321 } | 321 } |
322 | 322 |
323 void InputMethodAuraLinux::OnInputLocaleChanged() { | |
324 } | |
325 | |
326 std::string InputMethodAuraLinux::GetInputLocale() { | |
327 return ""; | |
328 } | |
329 | |
330 bool InputMethodAuraLinux::IsCandidatePopupOpen() const { | 323 bool InputMethodAuraLinux::IsCandidatePopupOpen() const { |
331 // There seems no way to detect candidate windows or any popups. | 324 // There seems no way to detect candidate windows or any popups. |
332 return false; | 325 return false; |
333 } | 326 } |
334 | 327 |
335 // Overriden from ui::LinuxInputMethodContextDelegate | 328 // Overriden from ui::LinuxInputMethodContextDelegate |
336 | 329 |
337 void InputMethodAuraLinux::OnCommit(const base::string16& text) { | 330 void InputMethodAuraLinux::OnCommit(const base::string16& text) { |
338 if (suppress_next_result_ || !GetTextInputClient()) { | 331 if (suppress_next_result_ || !GetTextInputClient()) { |
339 suppress_next_result_ = false; | 332 suppress_next_result_ = false; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 client->ConfirmCompositionText(); | 441 client->ConfirmCompositionText(); |
449 | 442 |
450 if (GetEngine()) | 443 if (GetEngine()) |
451 GetEngine()->Reset(); | 444 GetEngine()->Reset(); |
452 } | 445 } |
453 | 446 |
454 ResetContext(); | 447 ResetContext(); |
455 } | 448 } |
456 | 449 |
457 } // namespace ui | 450 } // namespace ui |
OLD | NEW |