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

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

Issue 150633005: evdev: Support device hotplug with udev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add TODOs Created 6 years, 11 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/key_event_converter.cc ('k') | ui/events/ozone/evdev/touch_event_converter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/scoped_udev.h
diff --git a/ui/events/ozone/evdev/scoped_udev.h b/ui/events/ozone/evdev/scoped_udev.h
index c71950821c34bc221d997ec78bd8f1503fa8d48a..21063e3225d4c633055dfd9718757e5d90aab008 100644
--- a/ui/events/ozone/evdev/scoped_udev.h
+++ b/ui/events/ozone/evdev/scoped_udev.h
@@ -37,6 +37,14 @@ struct UdevEnumerateDeleter {
typedef scoped_ptr<struct udev_enumerate, UdevEnumerateDeleter>
scoped_udev_enumerate;
+// Scoped struct udev_monitor.
+struct UdevMonitorDeleter {
+ void operator()(struct udev_monitor* udev_monitor) {
+ udev_monitor_unref(udev_monitor);
+ }
+};
+typedef scoped_ptr<struct udev_monitor, UdevMonitorDeleter> scoped_udev_monitor;
+
} // namespace ui
#endif // UI_EVENTS_OZONE_EVDEV_SCOPED_UDEV_H_
« no previous file with comments | « ui/events/ozone/evdev/key_event_converter.cc ('k') | ui/events/ozone/evdev/touch_event_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698