Move keyboard::SendKeyEvent to ChromeVirtualKeyboardDelegate

This CL moves SendKeyEvent to ChromeVirtualKeyboardDelegate
which is the only place it is used.

It also:
* Uses aura::EventInjector instead of EventSink::OnEventFromSource so
  that events will be injected properly in Mash.
* Removes the undocumented histogram (without documentation it is very
  unlikely that it is used): VirtualKeyboard.KeystrokesBetweenBackspaces

Bug: 876138
Change-Id: I39836f5593587c32ccb229ca32a2126199500533
Commit-Queue: Steven Bennetts <>
Reviewed-by: Darren Shen <>
Reviewed-by: Xiyuan Xia <>
Reviewed-by: Shu Chen <>
Cr-Commit-Position: refs/heads/master@{#606899}
3 files changed