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 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_TEST_UTIL_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_TEST_UTIL_H_ |
6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_TEST_UTIL_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_TEST_UTIL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include <memory> |
9 | 9 |
10 #include "ui/events/ozone/evdev/event_dispatch_callback.h" | 10 #include "ui/events/ozone/evdev/event_dispatch_callback.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
14 class CursorDelegateEvdev; | 14 class CursorDelegateEvdev; |
15 class DeviceManager; | 15 class DeviceManager; |
16 class DeviceEventDispatcherEvdev; | 16 class DeviceEventDispatcherEvdev; |
17 class EventFactoryEvdev; | 17 class EventFactoryEvdev; |
18 class KeyboardLayoutEngine; | 18 class KeyboardLayoutEngine; |
19 | 19 |
20 scoped_ptr<DeviceManager> CreateDeviceManagerForTest(); | 20 std::unique_ptr<DeviceManager> CreateDeviceManagerForTest(); |
21 | 21 |
22 scoped_ptr<EventFactoryEvdev> CreateEventFactoryEvdevForTest( | 22 std::unique_ptr<EventFactoryEvdev> CreateEventFactoryEvdevForTest( |
23 CursorDelegateEvdev* cursor, | 23 CursorDelegateEvdev* cursor, |
24 DeviceManager* device_manager, | 24 DeviceManager* device_manager, |
25 KeyboardLayoutEngine* keyboard_layout_engine, | 25 KeyboardLayoutEngine* keyboard_layout_engine, |
26 const EventDispatchCallback& callback); | 26 const EventDispatchCallback& callback); |
27 | 27 |
28 scoped_ptr<DeviceEventDispatcherEvdev> CreateDeviceEventDispatcherEvdevForTest( | 28 std::unique_ptr<DeviceEventDispatcherEvdev> |
29 EventFactoryEvdev* event_factory); | 29 CreateDeviceEventDispatcherEvdevForTest(EventFactoryEvdev* event_factory); |
30 | 30 |
31 } // namespace ui | 31 } // namespace ui |
32 | 32 |
33 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_TEST_UTIL_H_ | 33 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_TEST_UTIL_H_ |
OLD | NEW |