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/monitor_udev.h

Issue 250793005: Refactor Udev device support in Ozone and add a DRM hotplug monitor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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/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_

Powered by Google App Engine
This is Rietveld 408576698