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

Unified Diff: ui/events/ozone/evdev/event_factory_evdev.cc

Issue 889403003: Make PointerDeviceObserver work under Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/ozone/evdev/event_factory_evdev.cc
diff --git a/ui/events/ozone/evdev/event_factory_evdev.cc b/ui/events/ozone/evdev/event_factory_evdev.cc
index ed201d33dcbbce420f485e90b2abce3457dd838a..11ede97501eca3850152b579567df1bd6baf73b4 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -254,12 +254,16 @@ void EventFactoryEvdev::DispatchMouseDevicesUpdated(
const std::vector<InputDevice>& devices) {
// There's no list of mice in DeviceDataManager.
spang 2015/02/03 20:43:22 Just noticed these comments got left behind. Somet
pkotwicz 2015/02/04 03:33:41 There still isn't a list of mice in DeviceDataMana
input_controller_.set_has_mouse(devices.size() != 0);
+ DeviceHotplugEventObserver* observer = DeviceDataManager::GetInstance();
+ observer->OnMouseDevicesUpdated(devices);
}
void EventFactoryEvdev::DispatchTouchpadDevicesUpdated(
const std::vector<InputDevice>& devices) {
// There's no list of touchpads in DeviceDataManager.
input_controller_.set_has_touchpad(devices.size() != 0);
+ DeviceHotplugEventObserver* observer = DeviceDataManager::GetInstance();
+ observer->OnTouchpadDevicesUpdated(devices);
}
« no previous file with comments | « ui/events/devices/x11/device_data_manager_x11_unittest.cc ('k') | ui/events/platform/x11/x11_hotplug_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698