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

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: remove duplicate variables & unneeded #include 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
« no previous file with comments | « ui/events/ozone/evdev/key_event_converter.cc ('k') | ui/events/ozone/evdev/touch_event_converter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..12be498a1bfc25146e9ca6df5d9f08b07163ffde 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.
@@ -50,12 +53,6 @@ class EVENTS_EXPORT TouchEventConverterEvdev : public EventConverterOzone {
// Touch point currently being updated from the /dev/input/event* stream.
int current_slot_;
- // File descriptor for the /dev/input/event* instance.
- int fd_;
-
- // Path to input device.
- base::FilePath path_;
-
// Bit field tracking which in-progress touch points have been modified
// without a syn event.
std::bitset<MAX_FINGERS> altered_slots_;
« no previous file with comments | « ui/events/ozone/evdev/key_event_converter.cc ('k') | ui/events/ozone/evdev/touch_event_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698