| Index: ui/events/device_data_manager.cc
|
| diff --git a/ui/events/device_data_manager.cc b/ui/events/device_data_manager.cc
|
| index e7eb1147c8b339b741a0b6838ab8e87d93106621..d255b871abc80b10082d7408e92e25deafc7cb9a 100644
|
| --- a/ui/events/device_data_manager.cc
|
| +++ b/ui/events/device_data_manager.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/at_exit.h"
|
| #include "base/bind.h"
|
| #include "base/logging.h"
|
| +#include "ui/events/input_device_event_observer.h"
|
| #include "ui/gfx/display.h"
|
| #include "ui/gfx/geometry/point3_f.h"
|
|
|
| @@ -108,4 +109,21 @@ int64_t DeviceDataManager::GetDisplayForTouchDevice(int touch_device_id) const {
|
| return gfx::Display::kInvalidDisplayID;
|
| }
|
|
|
| +void DeviceDataManager::OnTouchscreenDevicesUpdated(
|
| + const std::vector<TouchscreenDevice>& devices) {
|
| + touchscreen_devices_ = devices;
|
| +
|
| + FOR_EACH_OBSERVER(InputDeviceEventObserver,
|
| + observers_,
|
| + OnInputDeviceConfigurationChanged());
|
| +}
|
| +
|
| +void DeviceDataManager::AddObserver(InputDeviceEventObserver* observer) {
|
| + observers_.AddObserver(observer);
|
| +}
|
| +
|
| +void DeviceDataManager::RemoveObserver(InputDeviceEventObserver* observer) {
|
| + observers_.RemoveObserver(observer);
|
| +}
|
| +
|
| } // namespace ui
|
|
|