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
3 // found in the LICENSE file.
5 #ifndef UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_FEEDBACK_H_
6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_FEEDBACK_H_
12 #include "base/callback.h"
13 #include "base/files/file_path.h"
14 #include "base/files/file_util.h"
15 #include "ui/events/ozone/evdev/touch_event_converter_evdev.h"
19 // Touch event log paths.
20 const char kTouchpadGestureLogPath
[] =
21 "/home/chronos/user/log/touchpad_activity.txt";
22 const char kTouchpadEvdevLogPath
[] =
23 "/home/chronos/user/log/cmt_input_events.dat";
24 const char kInputEventsLogFile
[] =
25 "/home/chronos/user/log/evdev_input_events.dat";
27 class GesturePropertyProvider
;
29 typedef base::Callback
<void(scoped_ptr
<std::vector
<base::FilePath
>>)>
30 GetTouchEventLogReply
;
32 // Utility functions for generating gesture related logs. These logs will be
33 // included in user feedback reports.
34 void DumpTouchDeviceStatus(GesturePropertyProvider
* provider
,
37 void DumpTouchEventLog(
38 std::map
<base::FilePath
, EventConverterEvdev
*>& converter
,
39 GesturePropertyProvider
* provider
,
40 const base::FilePath
& out_dir
,
41 scoped_ptr
<std::vector
<base::FilePath
>> log_paths
,
42 const GetTouchEventLogReply
& reply
);
46 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_FEEDBACK_H_