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

Side by Side Diff: ui/events/ozone/evdev/libgestures_glue/gesture_feedback.h

Issue 893753002: Dump touchpad event logs for touch log source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored the code per previous comments. Created 5 years, 10 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698