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

Side by Side Diff: third_party/WebKit/Source/core/events/PointerEvent.cpp

Issue 2834183002: Add time stamp to the constructor of the events (Closed)
Patch Set: Fix typos Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/PointerEvent.h ('k') | third_party/WebKit/Source/core/events/PointerEventFactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698