| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/events/event.h" | 5 #include "ui/events/event.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 | 10 |
| (...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 touch_id_(touch_id), | 848 touch_id_(touch_id), |
| 849 unique_event_id_(ui::GetNextTouchEventId()), | 849 unique_event_id_(ui::GetNextTouchEventId()), |
| 850 rotation_angle_(angle), | 850 rotation_angle_(angle), |
| 851 may_cause_scrolling_(false), | 851 may_cause_scrolling_(false), |
| 852 should_remove_native_touch_id_mapping_(false), | 852 should_remove_native_touch_id_mapping_(false), |
| 853 pointer_details_(PointerDetails(EventPointerType::POINTER_TYPE_TOUCH, | 853 pointer_details_(PointerDetails(EventPointerType::POINTER_TYPE_TOUCH, |
| 854 radius_x, | 854 radius_x, |
| 855 radius_y, | 855 radius_y, |
| 856 force, | 856 force, |
| 857 /* tilt_x */ 0.0f, | 857 /* tilt_x */ 0.0f, |
| 858 /* tilt_y */ 0.0f)) { | 858 /* tilt_y */ 0.0f, |
| 859 /* tangentialPressure */ 0.0f, |
| 860 /* twist */ 0)) { |
| 859 latency()->AddLatencyNumber(INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0); | 861 latency()->AddLatencyNumber(INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0); |
| 860 FixRotationAngle(); | 862 FixRotationAngle(); |
| 861 } | 863 } |
| 862 | 864 |
| 863 TouchEvent::TouchEvent(const TouchEvent& copy) | 865 TouchEvent::TouchEvent(const TouchEvent& copy) |
| 864 : LocatedEvent(copy), | 866 : LocatedEvent(copy), |
| 865 touch_id_(copy.touch_id_), | 867 touch_id_(copy.touch_id_), |
| 866 unique_event_id_(copy.unique_event_id_), | 868 unique_event_id_(copy.unique_event_id_), |
| 867 rotation_angle_(copy.rotation_angle_), | 869 rotation_angle_(copy.rotation_angle_), |
| 868 may_cause_scrolling_(copy.may_cause_scrolling_), | 870 may_cause_scrolling_(copy.may_cause_scrolling_), |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1390 flags | EF_FROM_TOUCH), | 1392 flags | EF_FROM_TOUCH), |
| 1391 details_(details), | 1393 details_(details), |
| 1392 unique_touch_event_id_(unique_touch_event_id) { | 1394 unique_touch_event_id_(unique_touch_event_id) { |
| 1393 latency()->set_source_event_type(ui::SourceEventType::TOUCH); | 1395 latency()->set_source_event_type(ui::SourceEventType::TOUCH); |
| 1394 } | 1396 } |
| 1395 | 1397 |
| 1396 GestureEvent::~GestureEvent() { | 1398 GestureEvent::~GestureEvent() { |
| 1397 } | 1399 } |
| 1398 | 1400 |
| 1399 } // namespace ui | 1401 } // namespace ui |
| OLD | NEW |