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

Unified Diff: ui/events/ozone/evdev/device_manager_evdev.cc

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
« no previous file with comments | « ui/events/ozone/evdev/device_manager_evdev.h ('k') | ui/events/ozone/evdev/device_manager_udev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/device_manager_evdev.cc
diff --git a/ui/events/ozone/evdev/device_manager_evdev.cc b/ui/events/ozone/evdev/device_manager_evdev.cc
deleted file mode 100644
index 24b4631f7879a6ca0f28139687beca620b8a38f6..0000000000000000000000000000000000000000
--- a/ui/events/ozone/evdev/device_manager_evdev.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// 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.
-
-#include "ui/events/ozone/evdev/device_manager_evdev.h"
-
-#include "base/files/file_enumerator.h"
-#include "base/files/file_path.h"
-
-namespace ui {
-
-namespace {
-
-class DeviceManagerManual : public DeviceManagerEvdev {
- public:
- DeviceManagerManual() {}
- virtual ~DeviceManagerManual() {}
-
- // Enumerate existing devices & start watching for device changes.
- virtual void ScanAndStartMonitoring(const EvdevDeviceCallback& device_added,
- const EvdevDeviceCallback& device_removed)
- OVERRIDE {
- base::FileEnumerator file_enum(base::FilePath("/dev/input"),
- false,
- base::FileEnumerator::FILES,
- "event*[0-9]");
- for (base::FilePath path = file_enum.Next(); !path.empty();
- path = file_enum.Next())
- device_added.Run(path);
- }
-
- virtual void Stop() OVERRIDE {}
-};
-
-} // namespace
-
-DeviceManagerEvdev::~DeviceManagerEvdev() {}
-
-scoped_ptr<DeviceManagerEvdev> CreateDeviceManagerManual() {
- return make_scoped_ptr<DeviceManagerEvdev>(new DeviceManagerManual);
-}
-
-} // namespace ui
« no previous file with comments | « ui/events/ozone/evdev/device_manager_evdev.h ('k') | ui/events/ozone/evdev/device_manager_udev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698