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

Unified Diff: ash/host/ash_window_tree_host_unified.cc

Issue 1257603006: Refactoring for the InputMethod & InputMethodDelegate interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ash/host/ash_window_tree_host_unified.cc
diff --git a/ash/host/ash_window_tree_host_unified.cc b/ash/host/ash_window_tree_host_unified.cc
index 0fcb4b3ef2e7dd818075f9854e8e85cd5ea27298..2e36150d07837bf49ba22f420a9e309fc732b6b7 100644
--- a/ash/host/ash_window_tree_host_unified.cc
+++ b/ash/host/ash_window_tree_host_unified.cc
@@ -182,16 +182,14 @@ void AshWindowTreeHostUnified::OnWindowDestroying(aura::Window* window) {
mirroring_hosts_.erase(iter);
}
-bool AshWindowTreeHostUnified::DispatchKeyEventPostIME(
- const ui::KeyEvent& event) {
- ui::KeyEvent event_copy(event);
+ui::EventDispatchDetails AshWindowTreeHostUnified::DispatchKeyEventPostIME(
+ ui::KeyEvent* event) {
input_method_handler()->SetPostIME(true);
ui::EventDispatchDetails details =
- event_processor()->OnEventFromSource(&event_copy);
- if (details.dispatcher_destroyed)
- return true;
- input_method_handler()->SetPostIME(false);
- return event_copy.stopped_propagation();
+ event_processor()->OnEventFromSource(event);
+ if (!details.dispatcher_destroyed)
+ input_method_handler()->SetPostIME(false);
+ return details;
}
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698