| Index: ash/host/ash_remote_window_tree_host_win.cc
|
| diff --git a/ash/host/ash_remote_window_tree_host_win.cc b/ash/host/ash_remote_window_tree_host_win.cc
|
| index 5f109d97e06057ead42eb995430c6780c2018059..b51f1a603c987c3265a28c90df0b444f90e68f5c 100644
|
| --- a/ash/host/ash_remote_window_tree_host_win.cc
|
| +++ b/ash/host/ash_remote_window_tree_host_win.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "ash/host/root_window_transformer.h"
|
| #include "ash/ime/input_method_event_handler.h"
|
| +#include "ui/events/event_processor.h"
|
| #include "ui/gfx/geometry/insets.h"
|
| #include "ui/gfx/transform.h"
|
|
|
| @@ -61,14 +62,12 @@ bool AshRemoteWindowTreeHostWin::DispatchKeyEventPostIME(
|
| const ui::KeyEvent& event) {
|
| ui::KeyEvent event_copy(event);
|
| input_method_handler()->SetPostIME(true);
|
| - ui::EventSource::DeliverEventToProcessor(&event_copy);
|
| + ui::EventDispatchDetails details =
|
| + event_processor()->OnEventFromSource(&event_copy);
|
| + if (details.dispatcher_destroyed)
|
| + return true;
|
| input_method_handler()->SetPostIME(false);
|
| return event_copy.stopped_propagation();
|
| }
|
|
|
| -ui::EventDispatchDetails AshRemoteWindowTreeHostWin::DeliverEventToProcessor(
|
| - ui::Event* event) {
|
| - return ui::EventSource::DeliverEventToProcessor(event);
|
| -}
|
| -
|
| } // namespace ash
|
|
|