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

Unified Diff: ui/events/ozone/evdev/input_device_factory_evdev.h

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.h
diff --git a/ui/events/ozone/evdev/input_device_factory_evdev.h b/ui/events/ozone/evdev/input_device_factory_evdev.h
index 919fb74376c6f86e8f1f41a0a8423480a6833773..2444898b390ed40f8356ae35964c8dc66216f536 100644
--- a/ui/events/ozone/evdev/input_device_factory_evdev.h
+++ b/ui/events/ozone/evdev/input_device_factory_evdev.h
@@ -17,6 +17,7 @@
#include "ui/events/ozone/evdev/event_converter_evdev.h"
#include "ui/events/ozone/evdev/event_device_info.h"
#include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
+#include "ui/events/ozone/evdev/input_device_settings_evdev.h"
namespace ui {
@@ -61,13 +62,7 @@ class EVENTS_OZONE_EVDEV_EXPORT InputDeviceFactoryEvdev {
void EnableInternalKeyboard();
// Bits from InputController that have to be answered on IO.
- void SetTouchpadSensitivity(int value);
- void SetTapToClick(bool enabled);
- void SetThreeFingerClick(bool enabled);
- void SetTapDragging(bool enabled);
- void SetNaturalScroll(bool enabled);
- void SetMouseSensitivity(int value);
- void SetTapToClickPaused(bool state);
+ void UpdateInputDeviceSettings(const InputDeviceSettingsEvdev& settings);
void GetTouchDeviceStatus(const GetTouchDeviceStatusReply& reply);
base::WeakPtr<InputDeviceFactoryEvdev> GetWeakPtr();
@@ -79,6 +74,9 @@ class EVENTS_OZONE_EVDEV_EXPORT InputDeviceFactoryEvdev {
// Close device at path (on UI thread).
void DetachInputDevice(const base::FilePath& file_path);
+ // Sync input_device_settings_ to attached devices.
+ void ApplyInputDeviceSettings();
+
// Update observers on device changes.
void UpdateDirtyFlags(const EventConverterEvdev* converter);
void NotifyDevicesUpdated();
@@ -118,6 +116,9 @@ class EVENTS_OZONE_EVDEV_EXPORT InputDeviceFactoryEvdev {
bool mouse_list_dirty_;
bool touchpad_list_dirty_;
+ // Device settings. These primarily affect libgestures behavior.
+ InputDeviceSettingsEvdev input_device_settings_;
+
// Support weak pointers for attach & detach callbacks.
base::WeakPtrFactory<InputDeviceFactoryEvdev> weak_ptr_factory_;
« no previous file with comments | « ui/events/ozone/evdev/input_controller_evdev.cc ('k') | ui/events/ozone/evdev/input_device_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698