| // Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_FEEDBACK_H_ |
| #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_FEEDBACK_H_ |
| |
| #include <map> |
| #include <string> |
| #include <vector> |
| |
| #include "base/files/file_path.h" |
| #include "base/files/file_util.h" |
| #include "ui/events/ozone/evdev/touch_event_converter_evdev.h" |
| #include "ui/ozone/public/input_controller.h" |
| |
| namespace ui { |
| |
| // Touch event log paths. |
| const char kTouchpadGestureLogPath[] = |
| "/home/chronos/user/log/touchpad_activity.txt"; |
| const char kTouchpadEvdevLogPath[] = |
| "/home/chronos/user/log/cmt_input_events.dat"; |
| const char kInputEventsLogFile[] = |
| "/home/chronos/user/log/evdev_input_events.dat"; |
| |
| class GesturePropertyProvider; |
| |
| // Utility functions for generating gesture related logs. These logs will be |
| // included in user feedback reports. |
| void DumpTouchDeviceStatus(GesturePropertyProvider* provider, |
| std::string* status); |
| |
| void DumpTouchEventLog( |
| const std::map<base::FilePath, std::unique_ptr<EventConverterEvdev>>& |
| converter, |
| GesturePropertyProvider* provider, |
| const base::FilePath& out_dir, |
| InputController::GetTouchEventLogReply reply); |
| |
| } // namespace ui |
| |
| #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_FEEDBACK_H_ |