Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: ui/events/ozone/evdev/event_factory_evdev.h

Issue 875513005: [PATCH 10/11] ozone: evdev: Add a device factory proxy that forwards to device thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates for events_unittests Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/events/ozone/BUILD.gn ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 12 matching lines...) Expand all
23 23
24 namespace gfx { 24 namespace gfx {
25 class PointF; 25 class PointF;
26 } // namespace gfx 26 } // namespace gfx
27 27
28 namespace ui { 28 namespace ui {
29 29
30 class CursorDelegateEvdev; 30 class CursorDelegateEvdev;
31 class DeviceManager; 31 class DeviceManager;
32 class InputDeviceFactoryEvdev; 32 class InputDeviceFactoryEvdev;
33 class InputDeviceFactoryProxyEvdev;
alexst (slow to review) 2015/01/28 19:52:58 InputDeviceFactoryEvdevProxy? I think it's weird t
spang 2015/01/28 21:10:25 Done.
33 class SystemInputInjector; 34 class SystemInputInjector;
34 enum class DomCode; 35 enum class DomCode;
35 36
36 #if !defined(USE_EVDEV) 37 #if !defined(USE_EVDEV)
37 #error Missing dependency on ui/events/ozone:events_ozone_evdev 38 #error Missing dependency on ui/events/ozone:events_ozone_evdev
38 #endif 39 #endif
39 40
40 // Ozone events implementation for the Linux input subsystem ("evdev"). 41 // Ozone events implementation for the Linux input subsystem ("evdev").
41 class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver, 42 class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver,
42 public PlatformEventSource { 43 public PlatformEventSource {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 int NextDeviceId(); 98 int NextDeviceId();
98 99
99 // Used to uniquely identify input devices. 100 // Used to uniquely identify input devices.
100 int last_device_id_; 101 int last_device_id_;
101 102
102 // Interface for scanning & monitoring input devices. 103 // Interface for scanning & monitoring input devices.
103 DeviceManager* device_manager_; // Not owned. 104 DeviceManager* device_manager_; // Not owned.
104 105
105 // Factory for per-device objects. 106 // Factory for per-device objects.
106 scoped_ptr<InputDeviceFactoryEvdev> input_device_factory_; 107 scoped_ptr<InputDeviceFactoryEvdev> input_device_factory_;
108 scoped_ptr<InputDeviceFactoryProxyEvdev> input_device_factory_proxy_;
107 109
108 // Dispatch callback for events. 110 // Dispatch callback for events.
109 EventDispatchCallback dispatch_callback_; 111 EventDispatchCallback dispatch_callback_;
110 112
111 // Modifier key state (shift, ctrl, etc). 113 // Modifier key state (shift, ctrl, etc).
112 EventModifiersEvdev modifiers_; 114 EventModifiersEvdev modifiers_;
113 115
114 // Mouse button map. 116 // Mouse button map.
115 MouseButtonMapEvdev button_map_; 117 MouseButtonMapEvdev button_map_;
116 118
(...skipping 11 matching lines...) Expand all
128 130
129 // Support weak pointers for attach & detach callbacks. 131 // Support weak pointers for attach & detach callbacks.
130 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; 132 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_;
131 133
132 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); 134 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev);
133 }; 135 };
134 136
135 } // namespace ui 137 } // namespace ui
136 138
137 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ 139 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/BUILD.gn ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698