Factor out key auto repeat code into a helper class

This CL factors out KeyboardEvDev class' key auto repeat logic
into a helper class: EventAutoRepeatHandler.
There is no functionality change, but it allows other classes
to make use of it, including WaylandKeyboard.

In a follow up CL, an extra hook will be added so that
clients of the newly added class have a chance to avoid spurios
repeats, by (sync) querying the system of key up events.
This is helpful whenever input latency increases.

BUG=578890

Change-Id: Ie30f5f4bad1d9f344e62484cfc108f87b025d025
Reviewed-on: https://chromium-review.googlesource.com/868890
Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org>
Reviewed-by: Michael Spang <spang@chromium.org>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#530509}
5 files changed