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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/ozone/evdev/libgestures_glue/gesture_feedback.h
diff --git a/ui/events/ozone/evdev/libgestures_glue/gesture_feedback.h b/ui/events/ozone/evdev/libgestures_glue/gesture_feedback.h
new file mode 100644
index 0000000000000000000000000000000000000000..c2a96198cdf06861af064e401e5b6d1ca0d0c8b7
--- /dev/null
+++ b/ui/events/ozone/evdev/libgestures_glue/gesture_feedback.h
@@ -0,0 +1,40 @@
+// 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 <string>
+#include <vector>
+
+#include "base/callback.h"
+#include "base/files/file_util.h"
+#include "base/memory/scoped_vector.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";
+
+class GesturePropertyProvider;
+
+typedef base::Callback<void(scoped_ptr<std::vector<base::FilePath>>)>
+ GetTouchEventLogReply;
+
+// 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(GesturePropertyProvider* provider,
+ const base::FilePath& out_dir,
+ scoped_ptr<std::vector<base::FilePath>> log_paths,
+ const GetTouchEventLogReply& reply);
+
+} // namespace ui
+
+#endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_FEEDBACK_H_

Powered by Google App Engine
This is Rietveld 408576698