base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON().
[chromium-blink-merge.git] / ui / events / ozone / device / device_manager_manual.cc
blobc86ffccf62bdae50079e2927d77841a24cefdc7d
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/events/ozone/device/device_manager_manual.h"
7 #include "base/files/file_enumerator.h"
8 #include "ui/events/ozone/device/device_event.h"
9 #include "ui/events/ozone/device/device_event_observer.h"
11 namespace ui {
13 DeviceManagerManual::DeviceManagerManual() {}
15 DeviceManagerManual::~DeviceManagerManual() {}
17 void DeviceManagerManual::ScanDevices(DeviceEventObserver* observer) {
18 base::FileEnumerator file_enum(base::FilePath("/dev/input"),
19 false,
20 base::FileEnumerator::FILES,
21 "event*[0-9]");
22 for (base::FilePath path = file_enum.Next(); !path.empty();
23 path = file_enum.Next()) {
24 DeviceEvent event(DeviceEvent::INPUT, DeviceEvent::ADD, path);
25 observer->OnDeviceEvent(event);
29 void DeviceManagerManual::AddObserver(DeviceEventObserver* observer) {}
31 void DeviceManagerManual::RemoveObserver(DeviceEventObserver* observer) {}
33 } // namespace ui