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

Unified Diff: ui/chromeos/touch_accessibility_enabler.cc

Issue 2655303004: Add id properties to PointerEvent (Closed)
Patch Set: pointer id Created 3 years, 10 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/chromeos/touch_accessibility_enabler.cc
diff --git a/ui/chromeos/touch_accessibility_enabler.cc b/ui/chromeos/touch_accessibility_enabler.cc
index 07d5c80005516624d0102259d5707ff9b41e162c..6e23f4bf3b735b6e710766df9501d7d6c22fbd11 100644
--- a/ui/chromeos/touch_accessibility_enabler.cc
+++ b/ui/chromeos/touch_accessibility_enabler.cc
@@ -60,7 +60,7 @@ void TouchAccessibilityEnabler::HandleTouchEvent(const ui::TouchEvent& event) {
DCHECK(!(event.flags() & ui::EF_TOUCH_ACCESSIBILITY));
const ui::EventType type = event.type();
const gfx::PointF& location = event.location_f();
- const int touch_id = event.touch_id();
+ const int touch_id = event.pointer_details().id;
if (type == ui::ET_TOUCH_PRESSED) {
touch_locations_.insert(std::pair<int, gfx::PointF>(touch_id, location));

Powered by Google App Engine
This is Rietveld 408576698