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

Side by Side Diff: third_party/WebKit/Source/core/events/PointerEventFactory.h

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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef PointerEventFactory_h 5 #ifndef PointerEventFactory_h
6 #define PointerEventFactory_h 6 #define PointerEventFactory_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/events/PointerEvent.h" 9 #include "core/events/PointerEvent.h"
10 #include "platform/wtf/Allocator.h" 10 #include "platform/wtf/Allocator.h"
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 PointerEventFactory(); 29 PointerEventFactory();
30 ~PointerEventFactory(); 30 ~PointerEventFactory();
31 31
32 PointerEvent* Create(const AtomicString& mouse_event_name, 32 PointerEvent* Create(const AtomicString& mouse_event_name,
33 const WebMouseEvent&, 33 const WebMouseEvent&,
34 const Vector<WebMouseEvent>&, 34 const Vector<WebMouseEvent>&,
35 LocalDOMWindow*); 35 LocalDOMWindow*);
36 36
37 PointerEvent* Create(const WebTouchPoint&, 37 PointerEvent* Create(const WebTouchPoint&,
38 const Vector<WebTouchPoint>&, 38 const Vector<std::pair<WebTouchPoint, TimeTicks>>&,
39 WebInputEvent::Modifiers, 39 WebInputEvent::Modifiers,
40 TimeTicks event_platform_time_stamp,
40 LocalFrame*, 41 LocalFrame*,
41 DOMWindow*); 42 DOMWindow*);
42 43
43 PointerEvent* CreatePointerCancelEvent( 44 PointerEvent* CreatePointerCancelEvent(
44 const int pointer_id, 45 const int pointer_id,
45 const WebPointerProperties::PointerType); 46 const WebPointerProperties::PointerType,
47 TimeTicks platfrom_time_stamp);
46 48
47 // For creating capture events (i.e got/lostpointercapture) 49 // For creating capture events (i.e got/lostpointercapture)
48 PointerEvent* CreatePointerCaptureEvent(PointerEvent*, const AtomicString&); 50 PointerEvent* CreatePointerCaptureEvent(PointerEvent*, const AtomicString&);
49 51
50 // For creating boundary events (i.e pointerout/leave/over/enter) 52 // For creating boundary events (i.e pointerout/leave/over/enter)
51 PointerEvent* CreatePointerBoundaryEvent(PointerEvent*, 53 PointerEvent* CreatePointerBoundaryEvent(PointerEvent*,
52 const AtomicString&, 54 const AtomicString&,
53 EventTarget*); 55 EventTarget*);
54 56
55 // Clear all the existing ids. 57 // Clear all the existing ids.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 WebPointerProperties::PointerType::kLastEntry) + 128 WebPointerProperties::PointerType::kLastEntry) +
127 1]; 129 1];
128 int id_count_[static_cast<int>( 130 int id_count_[static_cast<int>(
129 WebPointerProperties::PointerType::kLastEntry) + 131 WebPointerProperties::PointerType::kLastEntry) +
130 1]; 132 1];
131 }; 133 };
132 134
133 } // namespace blink 135 } // namespace blink
134 136
135 #endif // PointerEventFactory_h 137 #endif // PointerEventFactory_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/PointerEvent.cpp ('k') | third_party/WebKit/Source/core/events/PointerEventFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698