| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "ui/views/mus/input_method_mus.h" | 5 #include "ui/views/mus/input_method_mus.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" |
| 9 #include "services/ui/public/cpp/window.h" | 10 #include "services/ui/public/cpp/window.h" |
| 10 #include "services/ui/public/interfaces/constants.mojom.h" | 11 #include "services/ui/public/interfaces/constants.mojom.h" |
| 11 #include "services/ui/public/interfaces/ime/ime.mojom.h" | 12 #include "services/ui/public/interfaces/ime/ime.mojom.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 #include "ui/platform_window/mojo/ime_type_converters.h" | 15 #include "ui/platform_window/mojo/ime_type_converters.h" |
| 15 #include "ui/platform_window/mojo/text_input_state.mojom.h" | 16 #include "ui/platform_window/mojo/text_input_state.mojom.h" |
| 16 #include "ui/views/mus/text_input_client_impl.h" | 17 #include "ui/views/mus/text_input_client_impl.h" |
| 17 | 18 |
| 18 using ui::mojom::EventResult; | 19 using ui::mojom::EventResult; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 event_result = EventResult::HANDLED; | 156 event_result = EventResult::HANDLED; |
| 156 } | 157 } |
| 157 // |ack_callback| can be null if the standard form of DispatchKeyEvent() is | 158 // |ack_callback| can be null if the standard form of DispatchKeyEvent() is |
| 158 // called instead of the version which provides a callback. In mus+ash we | 159 // called instead of the version which provides a callback. In mus+ash we |
| 159 // use the version with callback, but some unittests use the standard form. | 160 // use the version with callback, but some unittests use the standard form. |
| 160 if (ack_callback) | 161 if (ack_callback) |
| 161 ack_callback->Run(event_result); | 162 ack_callback->Run(event_result); |
| 162 } | 163 } |
| 163 | 164 |
| 164 } // namespace views | 165 } // namespace views |
| OLD | NEW |