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

Unified Diff: ash/touch_hud/touch_hud_renderer.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: ash/touch_hud/touch_hud_renderer.cc
diff --git a/ash/touch_hud/touch_hud_renderer.cc b/ash/touch_hud/touch_hud_renderer.cc
index daedba347e386f07ca1079a7a497a667fb1ae376..d6ce0c342093b11776ee02b21e0cfb135c52d5f4 100644
--- a/ash/touch_hud/touch_hud_renderer.cc
+++ b/ash/touch_hud/touch_hud_renderer.cc
@@ -145,12 +145,12 @@ void TouchHudRenderer::Clear() {
void TouchHudRenderer::HandleTouchEvent(const ui::LocatedEvent& event) {
int id = 0;
if (event.IsTouchEvent()) {
- id = event.AsTouchEvent()->touch_id();
+ id = event.AsTouchEvent()->pointer_details().id;
} else {
DCHECK(event.IsPointerEvent());
DCHECK(event.AsPointerEvent()->pointer_details().pointer_type ==
ui::EventPointerType::POINTER_TYPE_TOUCH);
- id = event.AsPointerEvent()->pointer_id();
+ id = event.AsPointerEvent()->pointer_details().id;
}
if (event.type() == ui::ET_TOUCH_PRESSED ||
event.type() == ui::ET_POINTER_DOWN) {

Powered by Google App Engine
This is Rietveld 408576698