| 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/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/gfx/display.h" | 10 #include "ui/gfx/display.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 *y = point.y(); | 69 *y = point.y(); |
| 70 } | 70 } |
| 71 } | 71 } |
| 72 | 72 |
| 73 int64_t DeviceDataManager::GetDisplayForTouchDevice(int touch_device_id) const { | 73 int64_t DeviceDataManager::GetDisplayForTouchDevice(int touch_device_id) const { |
| 74 if (IsTouchDeviceIdValid(touch_device_id)) | 74 if (IsTouchDeviceIdValid(touch_device_id)) |
| 75 return touch_device_to_display_map_[touch_device_id]; | 75 return touch_device_to_display_map_[touch_device_id]; |
| 76 return gfx::Display::kInvalidDisplayID; | 76 return gfx::Display::kInvalidDisplayID; |
| 77 } | 77 } |
| 78 | 78 |
| 79 std::vector<TouchscreenDevice> DeviceDataManager::GetTouchscreenDevices() { |
| 80 return std::vector<TouchscreenDevice>(); |
| 81 } |
| 82 |
| 83 void DeviceDataManager::AddObserver(InputDeviceEventObserver* observer) { |
| 84 observers_.AddObserver(observer); |
| 85 } |
| 86 |
| 87 void DeviceDataManager::RemoveObserver(InputDeviceEventObserver* observer) { |
| 88 observers_.RemoveObserver(observer); |
| 89 } |
| 90 |
| 79 } // namespace ui | 91 } // namespace ui |
| OLD | NEW |