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

Unified Diff: ui/events/ozone/evdev/input_device_factory_evdev_proxy.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
Index: ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc
diff --git a/ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc b/ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc
index ceb2efae109f0941b77b97dae8eb2dec65919249..cc23da34836804f99959f88a59f31d26356cecd6 100644
--- a/ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc
+++ b/ui/events/ozone/evdev/input_device_factory_evdev_proxy.cc
@@ -20,6 +20,15 @@ void ForwardGetTouchDeviceStatusReply(
reply_runner->PostTask(FROM_HERE, base::Bind(reply, base::Passed(&status)));
}
+void ForwardGetTouchEventLogReply(
+ scoped_refptr<base::SingleThreadTaskRunner> reply_runner,
+ const GetTouchEventLogReply& reply,
+ scoped_ptr<std::vector<base::FilePath>> log_paths) {
+ // Thread hop back to UI for reply.
+ reply_runner->PostTask(FROM_HERE,
+ base::Bind(reply, base::Passed(&log_paths)));
+}
+
} // namespace
InputDeviceFactoryEvdevProxy::InputDeviceFactoryEvdevProxy(
@@ -88,4 +97,15 @@ void InputDeviceFactoryEvdevProxy::GetTouchDeviceStatus(
base::ThreadTaskRunnerHandle::Get(), reply)));
}
+void InputDeviceFactoryEvdevProxy::GetTouchEventLog(
+ const base::FilePath& out_dir,
+ const GetTouchEventLogReply& reply) {
+ task_runner_->PostTask(
+ FROM_HERE,
+ base::Bind(&InputDeviceFactoryEvdev::GetTouchEventLog,
+ input_device_factory_, out_dir,
+ base::Bind(&ForwardGetTouchEventLogReply,
+ base::ThreadTaskRunnerHandle::Get(), reply)));
+}
+
} // namespace ui
« no previous file with comments | « ui/events/ozone/evdev/input_device_factory_evdev_proxy.h ('k') | ui/events/ozone/evdev/libgestures_glue/gesture_feedback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698