| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 void Init(); | 58 void Init(); |
| 59 | 59 |
| 60 void WarpCursorTo(gfx::AcceleratedWidget widget, | 60 void WarpCursorTo(gfx::AcceleratedWidget widget, |
| 61 const gfx::PointF& location); | 61 const gfx::PointF& location); |
| 62 | 62 |
| 63 std::unique_ptr<SystemInputInjector> CreateSystemInputInjector(); | 63 std::unique_ptr<SystemInputInjector> CreateSystemInputInjector(); |
| 64 | 64 |
| 65 InputControllerEvdev* input_controller() { return &input_controller_; } | 65 InputControllerEvdev* input_controller() { return &input_controller_; } |
| 66 | 66 |
| 67 // User input events. | 67 // User input events. |
| 68 void DispatchGamepadEvent(const GamepadEventParams& params); |
| 68 void DispatchKeyEvent(const KeyEventParams& params); | 69 void DispatchKeyEvent(const KeyEventParams& params); |
| 69 void DispatchMouseMoveEvent(const MouseMoveEventParams& params); | 70 void DispatchMouseMoveEvent(const MouseMoveEventParams& params); |
| 70 void DispatchMouseButtonEvent(const MouseButtonEventParams& params); | 71 void DispatchMouseButtonEvent(const MouseButtonEventParams& params); |
| 71 void DispatchMouseWheelEvent(const MouseWheelEventParams& params); | 72 void DispatchMouseWheelEvent(const MouseWheelEventParams& params); |
| 72 void DispatchPinchEvent(const PinchEventParams& params); | 73 void DispatchPinchEvent(const PinchEventParams& params); |
| 73 void DispatchScrollEvent(const ScrollEventParams& params); | 74 void DispatchScrollEvent(const ScrollEventParams& params); |
| 74 void DispatchTouchEvent(const TouchEventParams& params); | 75 void DispatchTouchEvent(const TouchEventParams& params); |
| 75 | 76 |
| 76 // Device lifecycle events. | 77 // Device lifecycle events. |
| 78 void DispatchGamepadDevicesUpdated(const std::vector<InputDevice>& devices); |
| 77 void DispatchKeyboardDevicesUpdated(const std::vector<InputDevice>& devices); | 79 void DispatchKeyboardDevicesUpdated(const std::vector<InputDevice>& devices); |
| 78 void DispatchTouchscreenDevicesUpdated( | 80 void DispatchTouchscreenDevicesUpdated( |
| 79 const std::vector<TouchscreenDevice>& devices); | 81 const std::vector<TouchscreenDevice>& devices); |
| 80 void DispatchMouseDevicesUpdated(const std::vector<InputDevice>& devices); | 82 void DispatchMouseDevicesUpdated(const std::vector<InputDevice>& devices); |
| 81 void DispatchTouchpadDevicesUpdated(const std::vector<InputDevice>& devices); | 83 void DispatchTouchpadDevicesUpdated(const std::vector<InputDevice>& devices); |
| 82 void DispatchDeviceListsComplete(); | 84 void DispatchDeviceListsComplete(); |
| 83 void DispatchStylusStateChanged(StylusState stylus_state); | 85 void DispatchStylusStateChanged(StylusState stylus_state); |
| 84 | 86 |
| 85 protected: | 87 protected: |
| 86 // DeviceEventObserver overrides: | 88 // DeviceEventObserver overrides: |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 140 |
| 139 // Support weak pointers for attach & detach callbacks. | 141 // Support weak pointers for attach & detach callbacks. |
| 140 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; | 142 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; |
| 141 | 143 |
| 142 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); | 144 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); |
| 143 }; | 145 }; |
| 144 | 146 |
| 145 } // namespace ui | 147 } // namespace ui |
| 146 | 148 |
| 147 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 149 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
| OLD | NEW |