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

Unified Diff: third_party/WebKit/Source/core/events/PointerEvent.h

Issue 2834183002: Add time stamp to the constructor of the events (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/events/PointerEvent.h
diff --git a/third_party/WebKit/Source/core/events/PointerEvent.h b/third_party/WebKit/Source/core/events/PointerEvent.h
index 234a33cb98bd27d1bb7a9e62426ad4dd263b9fec..2e888994d4e3e11918484e2a325cc06e00961b98 100644
--- a/third_party/WebKit/Source/core/events/PointerEvent.h
+++ b/third_party/WebKit/Source/core/events/PointerEvent.h
@@ -14,9 +14,11 @@ class CORE_EXPORT PointerEvent final : public MouseEvent {
DEFINE_WRAPPERTYPEINFO();
public:
- static PointerEvent* Create(const AtomicString& type,
- const PointerEventInit& initializer) {
- return new PointerEvent(type, initializer);
+ static PointerEvent* Create(
+ const AtomicString& type,
+ const PointerEventInit& initializer,
+ TimeTicks platform_time_stamp = TimeTicks::Now()) {
+ return new PointerEvent(type, initializer, platform_time_stamp);
}
int pointerId() const { return pointer_id_; }
@@ -41,7 +43,9 @@ class CORE_EXPORT PointerEvent final : public MouseEvent {
DECLARE_VIRTUAL_TRACE();
private:
- PointerEvent(const AtomicString&, const PointerEventInit&);
+ PointerEvent(const AtomicString&,
+ const PointerEventInit&,
+ TimeTicks platform_time_stamp);
int pointer_id_;
double width_;

Powered by Google App Engine
This is Rietveld 408576698