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/environment.h" | 9 #include "base/environment.h" |
9 #include "ui/base/ime/ime_bridge.h" | 10 #include "ui/base/ime/ime_bridge.h" |
10 #include "ui/base/ime/ime_engine_handler_interface.h" | 11 #include "ui/base/ime/ime_engine_handler_interface.h" |
11 #include "ui/base/ime/linux/linux_input_method_context_factory.h" | 12 #include "ui/base/ime/linux/linux_input_method_context_factory.h" |
12 #include "ui/base/ime/text_input_client.h" | 13 #include "ui/base/ime/text_input_client.h" |
13 #include "ui/events/event.h" | 14 #include "ui/events/event.h" |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
17 ui::IMEEngineHandlerInterface* GetEngine() { | 18 ui::IMEEngineHandlerInterface* GetEngine() { |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 client->ConfirmCompositionText(); | 448 client->ConfirmCompositionText(); |
448 | 449 |
449 if (GetEngine()) | 450 if (GetEngine()) |
450 GetEngine()->Reset(); | 451 GetEngine()->Reset(); |
451 } | 452 } |
452 | 453 |
453 ResetContext(); | 454 ResetContext(); |
454 } | 455 } |
455 | 456 |
456 } // namespace ui | 457 } // namespace ui |
OLD | NEW |