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

Unified Diff: ui/events/ozone/evdev/touch_event_converter_evdev.h

Issue 991533002: Port Chromium OS touch noise filtering to Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/touch_event_converter_evdev.h
diff --git a/ui/events/ozone/evdev/touch_event_converter_evdev.h b/ui/events/ozone/evdev/touch_event_converter_evdev.h
index f522921da46912af1c748c8d0a72f1ceb009ac80..664eb3903b199fe4b3e7fd9ab80f9e34af4ed593 100644
--- a/ui/events/ozone/evdev/touch_event_converter_evdev.h
+++ b/ui/events/ozone/evdev/touch_event_converter_evdev.h
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
+#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_pump_libevent.h"
#include "ui/events/event_constants.h"
#include "ui/events/ozone/evdev/event_converter_evdev.h"
@@ -18,6 +19,7 @@
namespace ui {
class TouchEvent;
+class TouchNoiseRemover;
class DeviceEventDispatcherEvdev;
@@ -67,8 +69,6 @@ class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev
void ProcessAbs(const input_event& input);
void ProcessSyn(const input_event& input);
- void ReportEvent(int touch_id,
- const InProgressEvents& event, const base::TimeDelta& delta);
void ReportEvents(base::TimeDelta delta);
// Dispatcher for events.
@@ -104,6 +104,9 @@ class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev
// In-progress touch points.
std::vector<InProgressEvents> events_;
+ // Filters out touch noise.
+ scoped_ptr<TouchNoiseRemover> touch_noise_remover_;
+
DISALLOW_COPY_AND_ASSIGN(TouchEventConverterEvdev);
};

Powered by Google App Engine
This is Rietveld 408576698