Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: ui/base/ime/input_method_delegate.cc

Issue 2957173004: Make DispatchKeyEventPostIME() asynchronous.
Patch Set: cleanup. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« ui/base/ime/input_method_delegate.h ('K') | « ui/base/ime/input_method_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698