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

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

Issue 951063004: ozone: evdev: Keep track of settings & apply to new devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/class/struct/ 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
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.cc ('k') | ui/events/ozone/evdev/input_controller_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/input_controller_evdev.h
diff --git a/ui/events/ozone/evdev/input_controller_evdev.h b/ui/events/ozone/evdev/input_controller_evdev.h
index d5e26eccc279b14caf45258c6876e2875ea9bb24..21ffe7b99ffed10e80385c0b5dd04f400cbd1001 100644
--- a/ui/events/ozone/evdev/input_controller_evdev.h
+++ b/ui/events/ozone/evdev/input_controller_evdev.h
@@ -8,7 +8,9 @@
#include <string>
#include "base/basictypes.h"
+#include "base/memory/weak_ptr.h"
#include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
+#include "ui/events/ozone/evdev/input_device_settings_evdev.h"
#include "ui/ozone/public/input_controller.h"
namespace ui {
@@ -60,6 +62,18 @@ class EVENTS_OZONE_EVDEV_EXPORT InputControllerEvdev : public InputController {
void EnableInternalKeyboard() override;
private:
+ // Post task to update settings.
+ void ScheduleUpdateDeviceSettings();
+
+ // Send settings update to input_device_factory_.
+ void UpdateDeviceSettings();
+
+ // Configuration that needs to be passed on to InputDeviceFactory.
+ InputDeviceSettingsEvdev input_device_settings_;
+
+ // Task to update config from input_device_settings_ is pending.
+ bool settings_update_pending_;
+
// Factory for devices. Needed to update device config.
InputDeviceFactoryEvdevProxy* input_device_factory_;
@@ -73,6 +87,8 @@ class EVENTS_OZONE_EVDEV_EXPORT InputControllerEvdev : public InputController {
bool has_mouse_;
bool has_touchpad_;
+ base::WeakPtrFactory<InputControllerEvdev> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(InputControllerEvdev);
};
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.cc ('k') | ui/events/ozone/evdev/input_controller_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698