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

Unified Diff: ui/events/gesture_event_details.cc

Issue 351683002: Adds link disambiguation popup support to Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: first patch ready for review Created 6 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
Index: ui/events/gesture_event_details.cc
diff --git a/ui/events/gesture_event_details.cc b/ui/events/gesture_event_details.cc
index 3f478e5aaabce15848e5b1fe6f733e689ad9e994..72204ca30eba00bb22704eee5db075eaa831d8c3 100644
--- a/ui/events/gesture_event_details.cc
+++ b/ui/events/gesture_event_details.cc
@@ -65,6 +65,14 @@ GestureEventDetails::GestureEventDetails(ui::EventType type,
}
}
+GestureEventDetails::GestureEventDetails(const GestureEventDetails& details)
+ : type_(details.type_),
+ touch_points_(details.touch_points_),
+ bounding_box_(details.bounding_box_),
+ oldest_touch_id_(details.oldest_touch_id_) {
+ memcpy(&data, &details.data, sizeof(Details));
cpu_(ooo_6.6-7.5) 2014/07/20 01:50:44 can the sizeof() be of (*details.data) ?
luken 2014/07/21 18:01:29 Isn't it the same thing? details.data is of type D
+}
+
GestureEventDetails::Details::Details() {
memset(this, 0, sizeof(Details));
}

Powered by Google App Engine
This is Rietveld 408576698