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

Unified Diff: ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc

Issue 893753002: Dump touchpad event logs for touch log source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot rebase 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
« no previous file with comments | « ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc ('k') | ui/events/ozone/events_ozone.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc
diff --git a/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc b/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc
index 4db958dbd3354ad36fb4ccec88c2b6937f925338..393cb8e14fdf60cd70ab659975c6c6b95c620b99 100644
--- a/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc
+++ b/ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc
@@ -22,6 +22,7 @@
#include "base/strings/string_util.h"
#include "base/strings/stringize_macros.h"
#include "base/strings/stringprintf.h"
+#include "ui/events/ozone/evdev/libgestures_glue/gesture_feedback.h"
#include "ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h"
// Severity level for general info logging purpose.
@@ -556,6 +557,12 @@ std::ostream& operator<<(std::ostream& out,
return out << s;
}
+// A relay function that dumps evdev log to a place that we have access to
+// (the default directory is inaccessible without X11).
+void DumpTouchEvdevDebugLog(void* data) {
+ Event_Dump_Debug_Log_To(data, ui::kTouchpadEvdevLogPath);
+}
+
} // namespace
// GesturesProp logging function.
@@ -1426,8 +1433,8 @@ bool GesturesPropFunctionsWrapper::InitializeDeviceProperties(
// set.
GesturesProp* dump_debug_log_prop = CreateBoolSingle(
device_data, "Dump Debug Log", &properties->dump_debug_log, false);
- RegisterHandlers(
- device_data, dump_debug_log_prop, device, NULL, Event_Dump_Debug_Log);
+ RegisterHandlers(device_data, dump_debug_log_prop, device, NULL,
+ DumpTouchEvdevDebugLog);
// Whether to do the gesture recognition or just passing the multi-touch data
// to upper layers.
« no previous file with comments | « ui/events/ozone/evdev/libgestures_glue/gesture_feedback.cc ('k') | ui/events/ozone/events_ozone.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698