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 "ui/events/device_data_manager.h" | 5 #include "ui/events/devices/device_data_manager.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "ui/events/input_device_event_observer.h" | 10 #include "ui/events/devices/input_device_event_observer.h" |
11 #include "ui/gfx/display.h" | 11 #include "ui/gfx/display.h" |
12 #include "ui/gfx/geometry/point3_f.h" | 12 #include "ui/gfx/geometry/point3_f.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 bool InputDeviceEquals(const ui::InputDevice& a, const ui::InputDevice& b) { | 18 bool InputDeviceEquals(const ui::InputDevice& a, const ui::InputDevice& b) { |
19 return a.id == b.id; | 19 return a.id == b.id; |
20 } | 20 } |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 void DeviceDataManager::AddObserver(InputDeviceEventObserver* observer) { | 152 void DeviceDataManager::AddObserver(InputDeviceEventObserver* observer) { |
153 observers_.AddObserver(observer); | 153 observers_.AddObserver(observer); |
154 } | 154 } |
155 | 155 |
156 void DeviceDataManager::RemoveObserver(InputDeviceEventObserver* observer) { | 156 void DeviceDataManager::RemoveObserver(InputDeviceEventObserver* observer) { |
157 observers_.RemoveObserver(observer); | 157 observers_.RemoveObserver(observer); |
158 } | 158 } |
159 | 159 |
160 } // namespace ui | 160 } // namespace ui |
OLD | NEW |