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

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

Issue 616633002: [Ozone-Evdev] Propagate touchscreen device information to DeviceDataManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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 eedb243b6c4fa8c188b27fdd0f9c01eee0b168f3..f85e0febdc0dc1126ceed9e7bc5ef4ff7dff4fcc 100644
--- a/ui/events/ozone/evdev/touch_event_converter_evdev.h
+++ b/ui/events/ozone/evdev/touch_event_converter_evdev.h
@@ -27,10 +27,15 @@ class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev
};
TouchEventConverterEvdev(int fd,
base::FilePath path,
+ int id,
const EventDeviceInfo& info,
const EventDispatchCallback& dispatch);
virtual ~TouchEventConverterEvdev();
+ // EventConverterEvdev:
+ virtual bool HasTouchscreen() const OVERRIDE;
+ virtual gfx::Size GetTouchscreenSize() const OVERRIDE;
+
private:
friend class MockTouchEventConverterEvdev;
@@ -77,6 +82,9 @@ class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev
float y_min_pixels_;
float y_num_pixels_;
+ // Size of the touchscreen as reported by the driver.
+ gfx::Size native_size_;
+
// Touch point currently being updated from the /dev/input/event* stream.
int current_slot_;

Powered by Google App Engine
This is Rietveld 408576698