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 "chrome/browser/chromeos/device/input_service_proxy.h" | 5 #include "chrome/browser/chromeos/device/input_service_proxy.h" |
6 | 6 |
7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
| 8 #include "base/macros.h" |
8 #include "base/task_runner_util.h" | 9 #include "base/task_runner_util.h" |
9 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
10 | 11 |
11 using content::BrowserThread; | 12 using content::BrowserThread; |
12 using device::InputServiceLinux; | 13 using device::InputServiceLinux; |
13 | 14 |
14 typedef device::InputServiceLinux::InputDeviceInfo InputDeviceInfo; | 15 typedef device::InputServiceLinux::InputDeviceInfo InputDeviceInfo; |
15 | 16 |
16 namespace chromeos { | 17 namespace chromeos { |
17 | 18 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 DCHECK(thread_checker_.CalledOnValidThread()); | 149 DCHECK(thread_checker_.CalledOnValidThread()); |
149 FOR_EACH_OBSERVER(Observer, observers_, OnInputDeviceAdded(info)); | 150 FOR_EACH_OBSERVER(Observer, observers_, OnInputDeviceAdded(info)); |
150 } | 151 } |
151 | 152 |
152 void InputServiceProxy::OnDeviceRemoved(const std::string& id) { | 153 void InputServiceProxy::OnDeviceRemoved(const std::string& id) { |
153 DCHECK(thread_checker_.CalledOnValidThread()); | 154 DCHECK(thread_checker_.CalledOnValidThread()); |
154 FOR_EACH_OBSERVER(Observer, observers_, OnInputDeviceRemoved(id)); | 155 FOR_EACH_OBSERVER(Observer, observers_, OnInputDeviceRemoved(id)); |
155 } | 156 } |
156 | 157 |
157 } // namespace chromeos | 158 } // namespace chromeos |
OLD | NEW |