OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_FEEDBACK_H_ |
| 6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_FEEDBACK_H_ |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/callback.h" |
| 12 #include "base/files/file_util.h" |
| 13 #include "base/memory/scoped_vector.h" |
| 14 |
| 15 namespace ui { |
| 16 |
| 17 // Touch event log paths. |
| 18 const char kTouchpadGestureLogPath[] = |
| 19 "/home/chronos/user/log/touchpad_activity.txt"; |
| 20 const char kTouchpadEvdevLogPath[] = |
| 21 "/home/chronos/user/log/cmt_input_events.dat"; |
| 22 |
| 23 class GesturePropertyProvider; |
| 24 |
| 25 typedef base::Callback<void(scoped_ptr<std::vector<base::FilePath>>)> |
| 26 GetTouchEventLogReply; |
| 27 |
| 28 // Utility functions for generating gesture related logs. These logs will be |
| 29 // included in user feedback reports. |
| 30 void DumpTouchDeviceStatus(GesturePropertyProvider* provider, |
| 31 std::string* status); |
| 32 |
| 33 void DumpTouchEventLog(GesturePropertyProvider* provider, |
| 34 const base::FilePath& out_dir, |
| 35 scoped_ptr<std::vector<base::FilePath>> log_paths, |
| 36 const GetTouchEventLogReply& reply); |
| 37 |
| 38 } // namespace ui |
| 39 |
| 40 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_FEEDBACK_H_ |
OLD | NEW |