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

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

Issue 10808083: gesture recognizer: Expose bounding-box for the points in a gesture-event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 years, 5 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 8c18e5640b7ceabd487dfb0d3e8f27ac40100adf..2d329803be72029844d4b22839589e78ba6ae142 100644
--- a/ui/base/gestures/gesture_types.cc
+++ b/ui/base/gestures/gesture_types.cc
@@ -22,22 +22,11 @@ GestureEventDetails::GestureEventDetails(ui::EventType type,
data.velocity.y = delta_y;
break;
- case ui::ET_GESTURE_TAP:
- data.radius.x = delta_x;
- data.radius.y = delta_y;
- break;
-
case ui::ET_GESTURE_LONG_PRESS:
data.touch_id = static_cast<int>(delta_x);
CHECK_EQ(0.f, delta_y) << "Unknown data in delta_y for long press.";
break;
- case ui::ET_GESTURE_BEGIN:
- case ui::ET_GESTURE_END:
- set_touch_points(static_cast<int>(delta_x));
- CHECK_EQ(0.f, delta_y) << "Unknown data in delta_y for begin/end";
- break;
-
case ui::ET_GESTURE_PINCH_UPDATE:
data.scale = delta_x;
CHECK_EQ(0.f, delta_y) << "Unknown data in delta_y for pinch";
« 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