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

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

Issue 137273009: evdev: Factor common code out of key & touch converters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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.h
diff --git a/ui/events/ozone/evdev/touch_event_converter.h b/ui/events/ozone/evdev/touch_event_converter.h
index 1d2817c657597adc6f4dd56b80b1f5903f447fa3..6f777e670a0f038e372a4a34b23543e9ff196b1c 100644
--- a/ui/events/ozone/evdev/touch_event_converter.h
+++ b/ui/events/ozone/evdev/touch_event_converter.h
@@ -11,30 +11,33 @@
#include "base/files/file_path.h"
#include "ui/events/event_constants.h"
#include "ui/events/events_export.h"
+#include "ui/events/ozone/evdev/event_converter.h"
+#include "ui/events/ozone/evdev/event_modifiers.h"
#include "ui/events/ozone/event_converter_ozone.h"
namespace ui {
class TouchEvent;
-class EVENTS_EXPORT TouchEventConverterEvdev : public EventConverterOzone {
+class EVENTS_EXPORT TouchEventConverterEvdev : public EventConverterEvdev {
public:
enum {
MAX_FINGERS = 11
};
- TouchEventConverterEvdev(int fd, base::FilePath path);
+ TouchEventConverterEvdev(int fd,
+ base::FilePath path,
+ EventModifiersEvdev* modifiers);
virtual ~TouchEventConverterEvdev();
+ protected:
+ void ProcessEvents(const struct input_event* inputs, int count) OVERRIDE;
+
private:
friend class MockTouchEventConverterEvdev;
// Unsafe part of initialization.
void Init();
- // Overidden from base::MessagePumpLibevent::Watcher.
- virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE;
- virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE;
-
// Pressure values.
int pressure_min_;
int pressure_max_; // Used to normalize pressure values.

Powered by Google App Engine
This is Rietveld 408576698