ozone: evdev: Add enable_repeat flag to key events
commit0afad074fc161435572f4bb2f33037456afd2b62
authorspang <spang@chromium.org>
Mon, 8 Jun 2015 21:40:32 +0000 (8 14:40 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 8 Jun 2015 21:41:34 +0000 (8 21:41 +0000)
tree307cbf72d5ec70708cbe37cdb5ac21d76a4dc1f6
parent2f05d06ac77a620dbc2f136c757867e68b389010
ozone: evdev: Add enable_repeat flag to key events

This adds an enable_repeat flag to key events that enables local key
repeat. The flag is true for keyboard devices and false for keys
injected by the remoting host.

This also changes the semantics of consecutive keypresses for the same
key. Previously they were completely ignored, now they are considered
repeats. This is used by the remoting host to implement remote repeat.

The remoting host no longer uses the input controller to change the
global key repeat setting; it's now set exclusively from prefs.

BUG=496420
TEST=visit rbyers.github.io/eventTest.html
     via it2me from chromebook to chromebook
     key repeat works normally

Review URL: https://codereview.chromium.org/1166113003

Cr-Commit-Position: refs/heads/master@{#333349}
remoting/host/input_injector_chromeos.cc
ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
ui/events/ozone/evdev/device_event_dispatcher_evdev.h
ui/events/ozone/evdev/event_converter_evdev_impl.cc
ui/events/ozone/evdev/event_factory_evdev.cc
ui/events/ozone/evdev/input_injector_evdev.cc
ui/events/ozone/evdev/input_injector_evdev.h
ui/events/ozone/evdev/keyboard_evdev.cc
ui/events/ozone/evdev/keyboard_evdev.h
ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc
ui/ozone/public/system_input_injector.h