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

Side by Side Diff: device/hid/input_service_linux.cc

Issue 2417043002: Move device/core files to device/base directory. (Closed)
Patch Set: Fix ChromeOS build Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « device/hid/hid_service_win.h ('k') | device/serial/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « device/hid/hid_service_win.h ('k') | device/serial/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698