| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "ui/events/ozone/evdev/event_converter_test_util.h" | 5 #include "ui/events/ozone/evdev/event_converter_test_util.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "ui/events/ozone/device/device_manager.h" | 10 #include "ui/events/ozone/device/device_manager.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 void DispatchScrollEvent(const ScrollEventParams& params) override { | 57 void DispatchScrollEvent(const ScrollEventParams& params) override { |
| 58 event_factory_evdev_->DispatchScrollEvent(params); | 58 event_factory_evdev_->DispatchScrollEvent(params); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void DispatchTouchEvent(const TouchEventParams& params) override { | 61 void DispatchTouchEvent(const TouchEventParams& params) override { |
| 62 event_factory_evdev_->DispatchTouchEvent(params); | 62 event_factory_evdev_->DispatchTouchEvent(params); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void DispatchKeyboardDevicesUpdated( | 65 void DispatchKeyboardDevicesUpdated( |
| 66 const std::vector<KeyboardDevice>& devices) override { | 66 const std::vector<InputDevice>& devices) override { |
| 67 event_factory_evdev_->DispatchKeyboardDevicesUpdated(devices); | 67 event_factory_evdev_->DispatchKeyboardDevicesUpdated(devices); |
| 68 } | 68 } |
| 69 void DispatchTouchscreenDevicesUpdated( | 69 void DispatchTouchscreenDevicesUpdated( |
| 70 const std::vector<TouchscreenDevice>& devices) override { | 70 const std::vector<TouchscreenDevice>& devices) override { |
| 71 event_factory_evdev_->DispatchTouchscreenDevicesUpdated(devices); | 71 event_factory_evdev_->DispatchTouchscreenDevicesUpdated(devices); |
| 72 } | 72 } |
| 73 void DispatchMouseDevicesUpdated( | 73 void DispatchMouseDevicesUpdated( |
| 74 const std::vector<InputDevice>& devices) override { | 74 const std::vector<InputDevice>& devices) override { |
| 75 event_factory_evdev_->DispatchMouseDevicesUpdated(devices); | 75 event_factory_evdev_->DispatchMouseDevicesUpdated(devices); |
| 76 } | 76 } |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 std::unique_ptr<EventFactoryEvdev> CreateEventFactoryEvdevForTest( | 120 std::unique_ptr<EventFactoryEvdev> CreateEventFactoryEvdevForTest( |
| 121 CursorDelegateEvdev* cursor, | 121 CursorDelegateEvdev* cursor, |
| 122 DeviceManager* device_manager, | 122 DeviceManager* device_manager, |
| 123 KeyboardLayoutEngine* keyboard_layout_engine, | 123 KeyboardLayoutEngine* keyboard_layout_engine, |
| 124 const EventDispatchCallback& callback) { | 124 const EventDispatchCallback& callback) { |
| 125 return base::WrapUnique(new TestEventFactoryEvdev( | 125 return base::WrapUnique(new TestEventFactoryEvdev( |
| 126 cursor, device_manager, keyboard_layout_engine, callback)); | 126 cursor, device_manager, keyboard_layout_engine, callback)); |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace ui | 129 } // namespace ui |
| OLD | NEW |