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" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/task_runner.h" | 12 #include "base/task_runner.h" |
13 #include "ui/events/ozone/device/device_event_observer.h" | 13 #include "ui/events/ozone/device/device_event_observer.h" |
14 #include "ui/events/ozone/evdev/event_converter_evdev.h" | 14 #include "ui/events/ozone/evdev/event_converter_evdev.h" |
15 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" | 15 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" |
16 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" | 16 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" |
| 17 #include "ui/events/ozone/evdev/keyboard_evdev.h" |
17 #include "ui/events/platform/platform_event_source.h" | 18 #include "ui/events/platform/platform_event_source.h" |
18 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
19 | 20 |
20 namespace gfx { | 21 namespace gfx { |
21 class PointF; | 22 class PointF; |
22 } // namespace gfx | 23 } // namespace gfx |
23 | 24 |
24 namespace ui { | 25 namespace ui { |
25 | 26 |
26 class CursorDelegateEvdev; | 27 class CursorDelegateEvdev; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 64 |
64 // Used to uniquely identify input devices. | 65 // Used to uniquely identify input devices. |
65 int last_device_id_; | 66 int last_device_id_; |
66 | 67 |
67 // Interface for scanning & monitoring input devices. | 68 // Interface for scanning & monitoring input devices. |
68 DeviceManager* device_manager_; // Not owned. | 69 DeviceManager* device_manager_; // Not owned. |
69 | 70 |
70 // Task runner for event dispatch. | 71 // Task runner for event dispatch. |
71 scoped_refptr<base::TaskRunner> ui_task_runner_; | 72 scoped_refptr<base::TaskRunner> ui_task_runner_; |
72 | 73 |
| 74 // Dispatch callback for events. |
| 75 EventDispatchCallback dispatch_callback_; |
| 76 |
73 // Modifier key state (shift, ctrl, etc). | 77 // Modifier key state (shift, ctrl, etc). |
74 EventModifiersEvdev modifiers_; | 78 EventModifiersEvdev modifiers_; |
75 | 79 |
| 80 // Keyboard state. |
| 81 KeyboardEvdev keyboard_; |
| 82 |
76 // Cursor movement. | 83 // Cursor movement. |
77 CursorDelegateEvdev* cursor_; | 84 CursorDelegateEvdev* cursor_; |
78 | 85 |
79 // Dispatch callback for events. | |
80 EventDispatchCallback dispatch_callback_; | |
81 | |
82 // Support weak pointers for attach & detach callbacks. | 86 // Support weak pointers for attach & detach callbacks. |
83 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; | 87 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; |
84 | 88 |
85 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); | 89 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); |
86 }; | 90 }; |
87 | 91 |
88 } // namespace ui | 92 } // namespace ui |
89 | 93 |
90 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ | 94 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ |
OLD | NEW |