| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DEVICE_HID_HID_SERVICE_LINUX_H_ | 5 #ifndef DEVICE_HID_HID_SERVICE_LINUX_H_ |
| 6 #define DEVICE_HID_HID_SERVICE_LINUX_H_ | 6 #define DEVICE_HID_HID_SERVICE_LINUX_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "device/hid/device_monitor_linux.h" | 10 #include "device/hid/device_monitor_linux.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 virtual scoped_refptr<HidConnection> Connect(const HidDeviceId& device_id) | 25 virtual scoped_refptr<HidConnection> Connect(const HidDeviceId& device_id) |
| 26 OVERRIDE; | 26 OVERRIDE; |
| 27 | 27 |
| 28 // Implements DeviceMonitorLinux::Observer: | 28 // Implements DeviceMonitorLinux::Observer: |
| 29 virtual void OnDeviceAdded(udev_device* device) OVERRIDE; | 29 virtual void OnDeviceAdded(udev_device* device) OVERRIDE; |
| 30 virtual void OnDeviceRemoved(udev_device* device) OVERRIDE; | 30 virtual void OnDeviceRemoved(udev_device* device) OVERRIDE; |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 virtual ~HidServiceLinux(); | 33 virtual ~HidServiceLinux(); |
| 34 | 34 |
| 35 static bool FindHidrawDevNode(udev_device* parent, std::string* result); | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(HidServiceLinux); | 35 DISALLOW_COPY_AND_ASSIGN(HidServiceLinux); |
| 38 }; | 36 }; |
| 39 | 37 |
| 40 } // namespace device | 38 } // namespace device |
| 41 | 39 |
| 42 #endif // DEVICE_HID_HID_SERVICE_LINUX_H_ | 40 #endif // DEVICE_HID_HID_SERVICE_LINUX_H_ |
| OLD | NEW |