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 #ifndef UI_EVENTS_DEVICE_HOTPLUG_EVENT_OBSERVER_H_ | 5 #ifndef UI_EVENTS_DEVICE_HOTPLUG_EVENT_OBSERVER_H_ |
6 #define UI_EVENTS_DEVICE_HOTPLUG_EVENT_OBSERVER_H_ | 6 #define UI_EVENTS_DEVICE_HOTPLUG_EVENT_OBSERVER_H_ |
7 | 7 |
8 #include "ui/events/events_base_export.h" | 8 #include "ui/events/events_base_export.h" |
9 #include "ui/events/keyboard_device.h" | |
9 #include "ui/events/touchscreen_device.h" | 10 #include "ui/events/touchscreen_device.h" |
10 | 11 |
11 namespace ui { | 12 namespace ui { |
12 | 13 |
13 // Listener for specific input device hotplug events. | 14 // Listener for specific input device hotplug events. |
14 class EVENTS_BASE_EXPORT DeviceHotplugEventObserver { | 15 class EVENTS_BASE_EXPORT DeviceHotplugEventObserver { |
15 public: | 16 public: |
16 virtual ~DeviceHotplugEventObserver() {} | 17 virtual ~DeviceHotplugEventObserver() {} |
17 | 18 |
18 // On a hotplug event this is called with the list of available devices. | 19 // On a hotplug event this is called with the list of available touchscreen |
dnicoara
2014/10/02 13:58:20
nit: remove extra space
rsadam
2014/10/02 14:59:31
Done.
| |
20 // devices. | |
19 virtual void OnTouchscreenDevicesUpdated( | 21 virtual void OnTouchscreenDevicesUpdated( |
20 const std::vector<TouchscreenDevice>& devices) = 0; | 22 const std::vector<TouchscreenDevice>& devices) = 0; |
23 | |
24 // On a hotplug event this is called with the list of available keyboard | |
25 // devices. | |
26 virtual void OnKeyboardDevicesUpdated( | |
27 const std::vector<KeyboardDevice>& devices) = 0; | |
28 | |
29 // Called on any hotplug event. | |
30 virtual void OnInputDeviceConfigurationChanged(); | |
21 }; | 31 }; |
22 | 32 |
23 } // namespace ui | 33 } // namespace ui |
24 | 34 |
25 #endif // UI_EVENTS_DEVICE_HOTPLUG_EVENT_OBSERVER_H_ | 35 #endif // UI_EVENTS_DEVICE_HOTPLUG_EVENT_OBSERVER_H_ |
OLD | NEW |