Commit 138a53f2 authored by moshayedi's avatar moshayedi Committed by Commit Bot

keyboard::SendKeyEvent() doesn't need to send events to InputMethod directly.

WindowEventDispatcher does the dispatch to InputMethod.

BUG=NONE

Review-Url: https://codereview.chromium.org/2943973003
Cr-Commit-Position: refs/heads/master@{#480977}
parent f7abd4c1
...@@ -348,13 +348,9 @@ bool SendKeyEvent(const std::string type, ...@@ -348,13 +348,9 @@ bool SendKeyEvent(const std::string type,
code, code,
dom_code, dom_code,
modifiers); modifiers);
if (input_method) { ui::EventDispatchDetails details =
input_method->DispatchKeyEvent(&event); host->event_sink()->OnEventFromSource(&event);
} else { CHECK(!details.dispatcher_destroyed);
ui::EventDispatchDetails details =
host->event_sink()->OnEventFromSource(&event);
CHECK(!details.dispatcher_destroyed);
}
} }
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment