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

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

Issue 893753002: Dump touchpad event logs for touch log source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot rebase Created 5 years, 9 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
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_INPUT_DEVICE_FACTORY_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_EVDEV_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 27
28 #if !defined(USE_EVDEV) 28 #if !defined(USE_EVDEV)
29 #error Missing dependency on ui/events/ozone:events_ozone_evdev 29 #error Missing dependency on ui/events/ozone:events_ozone_evdev
30 #endif 30 #endif
31 31
32 #if defined(USE_EVDEV_GESTURES) 32 #if defined(USE_EVDEV_GESTURES)
33 class GesturePropertyProvider; 33 class GesturePropertyProvider;
34 #endif 34 #endif
35 35
36 typedef base::Callback<void(scoped_ptr<std::string>)> GetTouchDeviceStatusReply; 36 typedef base::Callback<void(scoped_ptr<std::string>)> GetTouchDeviceStatusReply;
37 typedef base::Callback<void(scoped_ptr<std::vector<base::FilePath>>)>
38 GetTouchEventLogReply;
37 39
38 // Manager for event device objects. All device I/O starts here. 40 // Manager for event device objects. All device I/O starts here.
39 class EVENTS_OZONE_EVDEV_EXPORT InputDeviceFactoryEvdev { 41 class EVENTS_OZONE_EVDEV_EXPORT InputDeviceFactoryEvdev {
40 public: 42 public:
41 InputDeviceFactoryEvdev(scoped_ptr<DeviceEventDispatcherEvdev> dispatcher, 43 InputDeviceFactoryEvdev(scoped_ptr<DeviceEventDispatcherEvdev> dispatcher,
42 CursorDelegateEvdev* cursor); 44 CursorDelegateEvdev* cursor);
43 ~InputDeviceFactoryEvdev(); 45 ~InputDeviceFactoryEvdev();
44 46
45 // Open & start reading a newly plugged-in input device. 47 // Open & start reading a newly plugged-in input device.
46 void AddInputDevice(int id, const base::FilePath& path); 48 void AddInputDevice(int id, const base::FilePath& path);
(...skipping 10 matching lines...) Expand all
57 // Disables all keys on the internal keyboard except |excepted_keys|. 59 // Disables all keys on the internal keyboard except |excepted_keys|.
58 void DisableInternalKeyboardExceptKeys( 60 void DisableInternalKeyboardExceptKeys(
59 scoped_ptr<std::set<DomCode>> excepted_keys); 61 scoped_ptr<std::set<DomCode>> excepted_keys);
60 62
61 // Enables all keys on the internal keyboard. 63 // Enables all keys on the internal keyboard.
62 void EnableInternalKeyboard(); 64 void EnableInternalKeyboard();
63 65
64 // Bits from InputController that have to be answered on IO. 66 // Bits from InputController that have to be answered on IO.
65 void UpdateInputDeviceSettings(const InputDeviceSettingsEvdev& settings); 67 void UpdateInputDeviceSettings(const InputDeviceSettingsEvdev& settings);
66 void GetTouchDeviceStatus(const GetTouchDeviceStatusReply& reply); 68 void GetTouchDeviceStatus(const GetTouchDeviceStatusReply& reply);
69 void GetTouchEventLog(const base::FilePath& out_dir,
70 const GetTouchEventLogReply& reply);
67 71
68 base::WeakPtr<InputDeviceFactoryEvdev> GetWeakPtr(); 72 base::WeakPtr<InputDeviceFactoryEvdev> GetWeakPtr();
69 73
70 private: 74 private:
71 // Open device at path & starting processing events (on UI thread). 75 // Open device at path & starting processing events (on UI thread).
72 void AttachInputDevice(scoped_ptr<EventConverterEvdev> converter); 76 void AttachInputDevice(scoped_ptr<EventConverterEvdev> converter);
73 77
74 // Close device at path (on UI thread). 78 // Close device at path (on UI thread).
75 void DetachInputDevice(const base::FilePath& file_path); 79 void DetachInputDevice(const base::FilePath& file_path);
76 80
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 125
122 // Support weak pointers for attach & detach callbacks. 126 // Support weak pointers for attach & detach callbacks.
123 base::WeakPtrFactory<InputDeviceFactoryEvdev> weak_ptr_factory_; 127 base::WeakPtrFactory<InputDeviceFactoryEvdev> weak_ptr_factory_;
124 128
125 DISALLOW_COPY_AND_ASSIGN(InputDeviceFactoryEvdev); 129 DISALLOW_COPY_AND_ASSIGN(InputDeviceFactoryEvdev);
126 }; 130 };
127 131
128 } // namespace ui 132 } // namespace ui
129 133
130 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_EVDEV_H_ 134 #endif // UI_EVENTS_OZONE_EVDEV_INPUT_DEVICE_FACTORY_EVDEV_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/input_controller_evdev.cc ('k') | ui/events/ozone/evdev/input_device_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698