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

Unified Diff: ui/events/device_data_manager.cc

Issue 618283003: Adds special support to the device manager for keyboards devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/device_data_manager.cc
diff --git a/ui/events/device_data_manager.cc b/ui/events/device_data_manager.cc
index d255b871abc80b10082d7408e92e25deafc7cb9a..fd9976461a658ffe6227b62d3d8d32bcb7daa26e 100644
--- a/ui/events/device_data_manager.cc
+++ b/ui/events/device_data_manager.cc
@@ -112,7 +112,14 @@ int64_t DeviceDataManager::GetDisplayForTouchDevice(int touch_device_id) const {
void DeviceDataManager::OnTouchscreenDevicesUpdated(
const std::vector<TouchscreenDevice>& devices) {
touchscreen_devices_ = devices;
+}
+
+void DeviceDataManager::OnKeyboardDevicesUpdated(
+ const std::vector<KeyboardDevice>& devices) {
+ keyboard_devices_ = devices;
+}
+void DeviceDataManager::OnInputDeviceConfigurationChanged() {
FOR_EACH_OBSERVER(InputDeviceEventObserver,
observers_,
OnInputDeviceConfigurationChanged());

Powered by Google App Engine
This is Rietveld 408576698