OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "core/events/PointerEvent.h" | 5 #include "core/events/PointerEvent.h" |
6 | 6 |
7 #include "core/dom/Element.h" | 7 #include "core/dom/Element.h" |
8 #include "core/events/EventDispatcher.h" | 8 #include "core/events/EventDispatcher.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 PointerEvent::PointerEvent(const AtomicString& type, | 12 PointerEvent::PointerEvent(const AtomicString& type, |
13 const PointerEventInit& initializer) | 13 const PointerEventInit& initializer, |
14 : MouseEvent(type, initializer), | 14 TimeTicks platform_time_stamp) |
| 15 : MouseEvent(type, initializer, platform_time_stamp), |
15 pointer_id_(0), | 16 pointer_id_(0), |
16 width_(0), | 17 width_(0), |
17 height_(0), | 18 height_(0), |
18 pressure_(0), | 19 pressure_(0), |
19 tilt_x_(0), | 20 tilt_x_(0), |
20 tilt_y_(0), | 21 tilt_y_(0), |
21 tangential_pressure_(0), | 22 tangential_pressure_(0), |
22 twist_(0), | 23 twist_(0), |
23 is_primary_(false) { | 24 is_primary_(false) { |
24 if (initializer.hasPointerId()) | 25 if (initializer.hasPointerId()) |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 89 |
89 DCHECK(!Event().target() || Event().target() != Event().relatedTarget()); | 90 DCHECK(!Event().target() || Event().target() != Event().relatedTarget()); |
90 | 91 |
91 Event().GetEventPath().AdjustForRelatedTarget(dispatcher.GetNode(), | 92 Event().GetEventPath().AdjustForRelatedTarget(dispatcher.GetNode(), |
92 Event().relatedTarget()); | 93 Event().relatedTarget()); |
93 | 94 |
94 return dispatcher.Dispatch(); | 95 return dispatcher.Dispatch(); |
95 } | 96 } |
96 | 97 |
97 } // namespace blink | 98 } // namespace blink |
OLD | NEW |