| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/base/ime/input_method_delegate.h" |
| 6 |
| 7 #include "base/callback.h" |
| 8 #include "ui/events/event.h" |
| 9 |
| 10 namespace ui { |
| 11 namespace internal { |
| 12 |
| 13 ui::EventDispatchDetails InputMethodDelegate::DispatchKeyEventPostIME( |
| 14 ui::KeyEvent* key_event, |
| 15 std::unique_ptr<base::Callback<void(bool)>> ack_callback) { |
| 16 ui::EventDispatchDetails details = DispatchKeyEventPostIME(key_event); |
| 17 if (ack_callback) |
| 18 ack_callback->Run(key_event->stopped_propagation()); |
| 19 return details; |
| 20 } |
| 21 |
| 22 } // namespace internal |
| 23 } // namespace ui |
| OLD | NEW |