| 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 #include "device/hid/input_service_linux.h" | 5 #include "device/hid/input_service_linux.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/scoped_observer.h" | 13 #include "base/scoped_observer.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 16 #include "base/threading/thread_restrictions.h" | 16 #include "base/threading/thread_restrictions.h" |
| 17 #include "device/core/device_monitor_linux.h" | 17 #include "device/base/device_monitor_linux.h" |
| 18 #include "device/udev_linux/udev.h" | 18 #include "device/udev_linux/udev.h" |
| 19 | 19 |
| 20 namespace device { | 20 namespace device { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 const char kSubsystemHid[] = "hid"; | 24 const char kSubsystemHid[] = "hid"; |
| 25 const char kSubsystemInput[] = "input"; | 25 const char kSubsystemInput[] = "input"; |
| 26 const char kSubsystemMisc[] = "misc"; | 26 const char kSubsystemMisc[] = "misc"; |
| 27 const char kTypeBluetooth[] = "bluetooth"; | 27 const char kTypeBluetooth[] = "bluetooth"; |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 void InputServiceLinux::RemoveDevice(const std::string& id) { | 247 void InputServiceLinux::RemoveDevice(const std::string& id) { |
| 248 devices_.erase(id); | 248 devices_.erase(id); |
| 249 FOR_EACH_OBSERVER(Observer, observers_, OnInputDeviceRemoved(id)); | 249 FOR_EACH_OBSERVER(Observer, observers_, OnInputDeviceRemoved(id)); |
| 250 } | 250 } |
| 251 | 251 |
| 252 bool InputServiceLinux::CalledOnValidThread() const { | 252 bool InputServiceLinux::CalledOnValidThread() const { |
| 253 return thread_checker_.CalledOnValidThread(); | 253 return thread_checker_.CalledOnValidThread(); |
| 254 } | 254 } |
| 255 | 255 |
| 256 } // namespace device | 256 } // namespace device |
| OLD | NEW |