| 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_DEVICES_DEVICE_HOTPLUG_EVENT_OBSERVER_H_ | 5 #ifndef UI_EVENTS_DEVICES_DEVICE_HOTPLUG_EVENT_OBSERVER_H_ |
| 6 #define UI_EVENTS_DEVICES_DEVICE_HOTPLUG_EVENT_OBSERVER_H_ | 6 #define UI_EVENTS_DEVICES_DEVICE_HOTPLUG_EVENT_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ui/events/devices/events_devices_export.h" | 10 #include "ui/events/devices/events_devices_export.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // On a hotplug event this is called with the list of available mice. The set | 33 // On a hotplug event this is called with the list of available mice. The set |
| 34 // of mice may not have changed. | 34 // of mice may not have changed. |
| 35 virtual void OnMouseDevicesUpdated( | 35 virtual void OnMouseDevicesUpdated( |
| 36 const std::vector<InputDevice>& devices) = 0; | 36 const std::vector<InputDevice>& devices) = 0; |
| 37 | 37 |
| 38 // On a hotplug event this is called with the list of available touchpads. The | 38 // On a hotplug event this is called with the list of available touchpads. The |
| 39 // set of touchpads may not have changed. | 39 // set of touchpads may not have changed. |
| 40 virtual void OnTouchpadDevicesUpdated( | 40 virtual void OnTouchpadDevicesUpdated( |
| 41 const std::vector<InputDevice>& devices) = 0; | 41 const std::vector<InputDevice>& devices) = 0; |
| 42 | 42 |
| 43 // On a hotplug event this is called with the list of available gamepads.The |
| 44 // set of gamepads may not have changed. |
| 45 virtual void OnGamepadDevicesUpdated( |
| 46 const std::vector<InputDevice>& devices) = 0; |
| 47 |
| 43 // On completion of the initial startup scan. This means all of the above | 48 // On completion of the initial startup scan. This means all of the above |
| 44 // OnDevicesUpdated() methods have been called with a complete list. | 49 // OnDevicesUpdated() methods have been called with a complete list. |
| 45 virtual void OnDeviceListsComplete() = 0; | 50 virtual void OnDeviceListsComplete() = 0; |
| 46 | 51 |
| 47 // The stylus was removed or inserted into the device; |state| contains the | 52 // The stylus was removed or inserted into the device; |state| contains the |
| 48 // new stylus state. | 53 // new stylus state. |
| 49 virtual void OnStylusStateChanged(StylusState state) = 0; | 54 virtual void OnStylusStateChanged(StylusState state) = 0; |
| 50 }; | 55 }; |
| 51 | 56 |
| 52 } // namespace ui | 57 } // namespace ui |
| 53 | 58 |
| 54 #endif // UI_EVENTS_DEVICES_DEVICE_HOTPLUG_EVENT_OBSERVER_H_ | 59 #endif // UI_EVENTS_DEVICES_DEVICE_HOTPLUG_EVENT_OBSERVER_H_ |
| OLD | NEW |