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)); |
} |