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

Unified Diff: ui/base/gestures/gesture_types.cc

Issue 10937038: gesture recognizer: Recognizer rotation gestures. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « ui/base/gestures/gesture_types.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_types.cc
diff --git a/ui/base/gestures/gesture_types.cc b/ui/base/gestures/gesture_types.cc
index ba659c5c23fa92bb01b5de31bac56cb236fdd92f..8487929afd02f3593ac0dfb256ca689a00ef2ec7 100644
--- a/ui/base/gestures/gesture_types.cc
+++ b/ui/base/gestures/gesture_types.cc
@@ -28,8 +28,8 @@ GestureEventDetails::GestureEventDetails(ui::EventType type,
break;
case ui::ET_GESTURE_PINCH_UPDATE:
- data.scale = delta_x;
- CHECK_EQ(0.f, delta_y) << "Unknown data in delta_y for pinch";
+ data.pinch.scale = delta_x;
+ data.pinch.rotation = delta_y;
break;
case ui::ET_GESTURE_MULTIFINGER_SWIPE:
« no previous file with comments | « ui/base/gestures/gesture_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698