| 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_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
| 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 // User input events. | 66 // User input events. |
| 67 void DispatchKeyEvent(const KeyEventParams& params); | 67 void DispatchKeyEvent(const KeyEventParams& params); |
| 68 void DispatchMouseMoveEvent(const MouseMoveEventParams& params); | 68 void DispatchMouseMoveEvent(const MouseMoveEventParams& params); |
| 69 void DispatchMouseButtonEvent(const MouseButtonEventParams& params); | 69 void DispatchMouseButtonEvent(const MouseButtonEventParams& params); |
| 70 void DispatchMouseWheelEvent(const MouseWheelEventParams& params); | 70 void DispatchMouseWheelEvent(const MouseWheelEventParams& params); |
| 71 void DispatchPinchEvent(const PinchEventParams& params); | 71 void DispatchPinchEvent(const PinchEventParams& params); |
| 72 void DispatchScrollEvent(const ScrollEventParams& params); | 72 void DispatchScrollEvent(const ScrollEventParams& params); |
| 73 void DispatchTouchEvent(const TouchEventParams& params); | 73 void DispatchTouchEvent(const TouchEventParams& params); |
| 74 | 74 |
| 75 // Device lifecycle events. | 75 // Device lifecycle events. |
| 76 void DispatchKeyboardDevicesUpdated( | 76 void DispatchKeyboardDevicesUpdated(const std::vector<InputDevice>& devices); |
| 77 const std::vector<KeyboardDevice>& devices); | |
| 78 void DispatchTouchscreenDevicesUpdated( | 77 void DispatchTouchscreenDevicesUpdated( |
| 79 const std::vector<TouchscreenDevice>& devices); | 78 const std::vector<TouchscreenDevice>& devices); |
| 80 void DispatchMouseDevicesUpdated(const std::vector<InputDevice>& devices); | 79 void DispatchMouseDevicesUpdated(const std::vector<InputDevice>& devices); |
| 81 void DispatchTouchpadDevicesUpdated(const std::vector<InputDevice>& devices); | 80 void DispatchTouchpadDevicesUpdated(const std::vector<InputDevice>& devices); |
| 82 void DispatchDeviceListsComplete(); | 81 void DispatchDeviceListsComplete(); |
| 83 | 82 |
| 84 protected: | 83 protected: |
| 85 // DeviceEventObserver overrides: | 84 // DeviceEventObserver overrides: |
| 86 // | 85 // |
| 87 // Callback for device add (on UI thread). | 86 // Callback for device add (on UI thread). |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 136 |
| 138 // Support weak pointers for attach & detach callbacks. | 137 // Support weak pointers for attach & detach callbacks. |
| 139 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; | 138 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; |
| 140 | 139 |
| 141 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); | 140 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); |
| 142 }; | 141 }; |
| 143 | 142 |
| 144 } // namespace ui | 143 } // namespace ui |
| 145 | 144 |
| 146 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 145 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
| OLD | NEW |