ozone: evdev: Convert touchpad disable & internal key filter to settings
commit8d1b68b3925e2c6c2fe5d29849004ec872fee705
authorspang <spang@chromium.org>
Fri, 19 Jun 2015 01:29:57 +0000 (18 18:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 19 Jun 2015 01:30:38 +0000 (19 01:30 +0000)
tree09314c12e35eddfe666d587b9627f8c2a96a450b
parentc5bbbbfedd1369a7fddca5fde9a8b643befc9cd2
ozone: evdev: Convert touchpad disable & internal key filter to settings

This applies the "disable internal touchpad" and "filter all internal
keys except whitelisted ones" features non-racily at startup and after
hotplug events.

This is in preparation for fixing crbug.com/457077. Disabling touchpad
in touchview mode and disabling all devices in ReleaseDisplayOwnership
will use the same functionality.

BUG=457077
TEST=Add --ash-enable-touch-view-testing on pixel & hack
     EnableMaximizeModeWindowManager() to enable key filtering
     regardless of hinge state. Keys filtered except power.

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

Cr-Commit-Position: refs/heads/master@{#335189}
15 files changed:
ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_ozone.cc
ui/events/ozone/evdev/event_converter_evdev.cc
ui/events/ozone/evdev/event_converter_evdev.h
ui/events/ozone/evdev/event_converter_evdev_impl.cc
ui/events/ozone/evdev/event_converter_evdev_impl.h
ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc
ui/events/ozone/evdev/input_controller_evdev.cc
ui/events/ozone/evdev/input_controller_evdev.h
ui/events/ozone/evdev/input_device_factory_evdev.cc
ui/events/ozone/evdev/input_device_factory_evdev.h
ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc
ui/events/ozone/evdev/input_device_factory_evdev_proxy.h
ui/events/ozone/evdev/input_device_settings_evdev.h
ui/ozone/public/input_controller.cc
ui/ozone/public/input_controller.h