Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc

Issue 956793002: ozone: evdev: Keep track of settings & apply to new devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2311
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc
diff --git a/ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc b/ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc
index 7ee1d6e47a10a2077336d5f07231e53b8d574327..ceb2efae109f0941b77b97dae8eb2dec65919249 100644
--- a/ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc
+++ b/ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc
@@ -71,46 +71,11 @@ void InputDeviceFactoryEvdevProxy::EnableInternalKeyboard() {
input_device_factory_));
}
-void InputDeviceFactoryEvdevProxy::SetTouchpadSensitivity(int value) {
+void InputDeviceFactoryEvdevProxy::UpdateInputDeviceSettings(
+ const InputDeviceSettingsEvdev& settings) {
task_runner_->PostTask(
- FROM_HERE, base::Bind(&InputDeviceFactoryEvdev::SetTouchpadSensitivity,
- input_device_factory_, value));
-}
-
-void InputDeviceFactoryEvdevProxy::SetTapToClick(bool enabled) {
- task_runner_->PostTask(FROM_HERE,
- base::Bind(&InputDeviceFactoryEvdev::SetTapToClick,
- input_device_factory_, enabled));
-}
-
-void InputDeviceFactoryEvdevProxy::SetThreeFingerClick(bool enabled) {
- task_runner_->PostTask(
- FROM_HERE, base::Bind(&InputDeviceFactoryEvdev::SetThreeFingerClick,
- input_device_factory_, enabled));
-}
-
-void InputDeviceFactoryEvdevProxy::SetTapDragging(bool enabled) {
- task_runner_->PostTask(FROM_HERE,
- base::Bind(&InputDeviceFactoryEvdev::SetTapDragging,
- input_device_factory_, enabled));
-}
-
-void InputDeviceFactoryEvdevProxy::SetNaturalScroll(bool enabled) {
- task_runner_->PostTask(FROM_HERE,
- base::Bind(&InputDeviceFactoryEvdev::SetNaturalScroll,
- input_device_factory_, enabled));
-}
-
-void InputDeviceFactoryEvdevProxy::SetMouseSensitivity(int value) {
- task_runner_->PostTask(
- FROM_HERE, base::Bind(&InputDeviceFactoryEvdev::SetMouseSensitivity,
- input_device_factory_, value));
-}
-
-void InputDeviceFactoryEvdevProxy::SetTapToClickPaused(bool state) {
- task_runner_->PostTask(
- FROM_HERE, base::Bind(&InputDeviceFactoryEvdev::SetTapToClickPaused,
- input_device_factory_, state));
+ FROM_HERE, base::Bind(&InputDeviceFactoryEvdev::UpdateInputDeviceSettings,
+ input_device_factory_, settings));
}
void InputDeviceFactoryEvdevProxy::GetTouchDeviceStatus(
« no previous file with comments | « ui/events/ozone/evdev/input_device_factory_evdev_proxy.h ('k') | ui/events/ozone/evdev/input_device_settings_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698