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

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

Issue 10816008: ash: Record some additional information about the gestures. (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 fbda748285f388ff413800e85dfeb35f00f5f1f3..8c18e5640b7ceabd487dfb0d3e8f27ac40100adf 100644
--- a/ui/base/gestures/gesture_types.cc
+++ b/ui/base/gestures/gesture_types.cc
@@ -9,7 +9,8 @@ namespace ui {
GestureEventDetails::GestureEventDetails(ui::EventType type,
float delta_x,
float delta_y)
- : type_(type) {
+ : type_(type),
+ touch_points_(1) {
switch (type_) {
case ui::ET_GESTURE_SCROLL_UPDATE:
data.scroll.x = delta_x;
@@ -33,7 +34,7 @@ GestureEventDetails::GestureEventDetails(ui::EventType type,
case ui::ET_GESTURE_BEGIN:
case ui::ET_GESTURE_END:
- data.touch_points = static_cast<int>(delta_x);
+ set_touch_points(static_cast<int>(delta_x));
CHECK_EQ(0.f, delta_y) << "Unknown data in delta_y for begin/end";
break;
« 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