Index: ui/aura/window_tree_host.cc |
diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc |
index 7c875e031ade14c751dcf3d5f5cffa8464953b66..c65c9271f4bc3bbdf7a0f6ffc03ec1d7ea6d6297 100644 |
--- a/ui/aura/window_tree_host.cc |
+++ b/ui/aura/window_tree_host.cc |
@@ -195,8 +195,7 @@ void WindowTreeHost::SetSharedInputMethod(ui::InputMethod* input_method) { |
bool WindowTreeHost::DispatchKeyEventPostIME(const ui::KeyEvent& event) { |
ui::KeyEvent copied_event(event); |
- ui::EventDispatchDetails details = |
- event_processor()->OnEventFromSource(&copied_event); |
+ ui::EventDispatchDetails details = SendEventToProcessor(&copied_event); |
DCHECK(!details.dispatcher_destroyed); |
return copied_event.stopped_propagation(); |
} |
@@ -306,18 +305,6 @@ ui::EventProcessor* WindowTreeHost::GetEventProcessor() { |
return event_processor(); |
} |
-ui::EventDispatchDetails WindowTreeHost::DeliverEventToProcessor( |
- ui::Event* event) { |
- if (event->IsKeyEvent()) { |
- GetInputMethod()->DispatchKeyEvent(*static_cast<ui::KeyEvent*>(event)); |
- event->StopPropagation(); |
- // TODO(shuchen): pass around the EventDispatchDetails from |
- // DispatchKeyEventPostIME instead of creating new from here. |
- return ui::EventDispatchDetails(); |
- } |
- return ui::EventSource::DeliverEventToProcessor(event); |
-} |
- |
//////////////////////////////////////////////////////////////////////////////// |
// WindowTreeHost, private: |