| 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_INPUT_INJECTOR_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_INPUT_INJECTOR_EVDEV_H_ |
| 6 #define UI_EVENTS_OZONE_EVDEV_INPUT_INJECTOR_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_INPUT_INJECTOR_EVDEV_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/events/ozone/evdev/event_dispatch_callback.h" | 9 #include "ui/events/ozone/evdev/event_dispatch_callback.h" |
| 10 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" | 10 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" |
| 11 #include "ui/ozone/public/system_input_injector.h" | 11 #include "ui/ozone/public/system_input_injector.h" |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 | 14 |
| 15 class Event; | |
| 16 class CursorDelegateEvdev; | 15 class CursorDelegateEvdev; |
| 17 class DeviceEventDispatcherEvdev; | 16 class DeviceEventDispatcherEvdev; |
| 18 | 17 |
| 19 class EVENTS_OZONE_EVDEV_EXPORT InputInjectorEvdev | 18 class EVENTS_OZONE_EVDEV_EXPORT InputInjectorEvdev |
| 20 : public SystemInputInjector { | 19 : public SystemInputInjector { |
| 21 public: | 20 public: |
| 22 InputInjectorEvdev(std::unique_ptr<DeviceEventDispatcherEvdev> dispatcher, | 21 InputInjectorEvdev(std::unique_ptr<DeviceEventDispatcherEvdev> dispatcher, |
| 23 CursorDelegateEvdev* cursor); | 22 CursorDelegateEvdev* cursor); |
| 24 | 23 |
| 25 ~InputInjectorEvdev() override; | 24 ~InputInjectorEvdev() override; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 39 // Interface for dispatching events. | 38 // Interface for dispatching events. |
| 40 std::unique_ptr<DeviceEventDispatcherEvdev> dispatcher_; | 39 std::unique_ptr<DeviceEventDispatcherEvdev> dispatcher_; |
| 41 | 40 |
| 42 DISALLOW_COPY_AND_ASSIGN(InputInjectorEvdev); | 41 DISALLOW_COPY_AND_ASSIGN(InputInjectorEvdev); |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 } // namespace ui | 44 } // namespace ui |
| 46 | 45 |
| 47 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_INJECTOR_EVDEV_H_ | 46 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_INJECTOR_EVDEV_H_ |
| 48 | 47 |
| OLD | NEW |