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

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

Issue 1035513002: ozone: evdev: Remove native size member from TouchEventConverterEvdev (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
« no previous file with comments | « ui/events/ozone/evdev/touch_event_converter_evdev.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/touch_event_converter_evdev.cc
diff --git a/ui/events/ozone/evdev/touch_event_converter_evdev.cc b/ui/events/ozone/evdev/touch_event_converter_evdev.cc
index 2be21ce9ba0e4dcac3100dcd25b578dafb754914..2832b45a3e46f5cd50dd7a3c81fcd1eba2241ed6 100644
--- a/ui/events/ozone/evdev/touch_event_converter_evdev.cc
+++ b/ui/events/ozone/evdev/touch_event_converter_evdev.cc
@@ -114,8 +114,6 @@ void TouchEventConverterEvdev::Initialize(const EventDeviceInfo& info) {
cal.bezel_bottom);
}
- native_size_ = gfx::Size(x_num_tuxels_, y_num_tuxels_);
-
events_.resize(touch_points_);
for (size_t i = 0; i < events_.size(); ++i) {
events_[i].finger_ = info.GetSlotValue(ABS_MT_TRACKING_ID, i);
@@ -143,7 +141,7 @@ bool TouchEventConverterEvdev::HasTouchscreen() const {
}
gfx::Size TouchEventConverterEvdev::GetTouchscreenSize() const {
- return native_size_;
+ return gfx::Size(x_num_tuxels_, y_num_tuxels_);
}
int TouchEventConverterEvdev::GetTouchPoints() const {
« no previous file with comments | « ui/events/ozone/evdev/touch_event_converter_evdev.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698