Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / events / ozone / evdev / libgestures_glue / gesture_feedback.h
blob3aebfbc9ec8c3c4e25fc2ad7f44cbd61f9b7afb8
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_
8 #include <map>
9 #include <string>
10 #include <vector>
12 #include "base/callback.h"
13 #include "base/files/file_path.h"
14 #include "base/files/file_util.h"
15 #include "base/memory/scoped_vector.h"
16 #include "ui/events/ozone/evdev/touch_event_converter_evdev.h"
18 namespace ui {
20 // Touch event log paths.
21 const char kTouchpadGestureLogPath[] =
22 "/home/chronos/user/log/touchpad_activity.txt";
23 const char kTouchpadEvdevLogPath[] =
24 "/home/chronos/user/log/cmt_input_events.dat";
25 const char kInputEventsLogFile[] =
26 "/home/chronos/user/log/evdev_input_events.dat";
28 class GesturePropertyProvider;
30 typedef base::Callback<void(scoped_ptr<std::vector<base::FilePath>>)>
31 GetTouchEventLogReply;
33 // Utility functions for generating gesture related logs. These logs will be
34 // included in user feedback reports.
35 void DumpTouchDeviceStatus(GesturePropertyProvider* provider,
36 std::string* status);
38 void DumpTouchEventLog(
39 std::map<base::FilePath, EventConverterEvdev*>& converter,
40 GesturePropertyProvider* provider,
41 const base::FilePath& out_dir,
42 scoped_ptr<std::vector<base::FilePath>> log_paths,
43 const GetTouchEventLogReply& reply);
45 } // namespace ui
47 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_FEEDBACK_H_