Index: ui/events/ozone/monitor_udev.h |
diff --git a/ui/events/ozone/monitor_udev.h b/ui/events/ozone/monitor_udev.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1bb7baaf9d70426292988de902d1be66d0f1dfac |
--- /dev/null |
+++ b/ui/events/ozone/monitor_udev.h |
@@ -0,0 +1,26 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef UI_EVENTS_OZONE_MONITOR_UDEV_H_ |
+#define UI_EVENTS_OZONE_MONITOR_UDEV_H_ |
+ |
+#include "ui/events/events_export.h" |
+#include "ui/events/ozone/scoped_udev.h" |
+ |
+namespace ui { |
+ |
+// Interface for a Udev device monitor. Implementors will register with |
+// DeviceUdev and receive events when changes to devices are detected. |
spang
2014/04/25 20:42:07
You could probably delete this entire interface an
|
+class EVENTS_EXPORT MonitorUdev { |
+ public: |
+ virtual ~MonitorUdev() {}; |
+ |
+ // Called when a Udev event is processed. |device| is the Udev device that |
+ // triggered the event. |
+ virtual void HandleUdevEvent(scoped_udev_device device) = 0; |
+}; |
+ |
+} // namespace ui |
+ |
+#endif // UI_EVENTS_OZONE_MONITOR_UDEV_H_ |