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

Unified Diff: third_party/WebKit/Source/core/events/PointerEvent.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 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..971f7497687edc6d5581c133ba2af0a16350ba97 100644
--- a/third_party/WebKit/Source/core/events/PointerEvent.h
+++ b/third_party/WebKit/Source/core/events/PointerEvent.h
@@ -15,8 +15,13 @@ class CORE_EXPORT PointerEvent final : public MouseEvent {
public:
static PointerEvent* Create(const AtomicString& type,
+ const PointerEventInit& initializer,
+ TimeTicks platform_time_stamp) {
+ return new PointerEvent(type, initializer, platform_time_stamp);
+ }
+ static PointerEvent* Create(const AtomicString& type,
const PointerEventInit& initializer) {
- return new PointerEvent(type, initializer);
+ return PointerEvent::Create(type, initializer, TimeTicks::Now());
}
int pointerId() const { return pointer_id_; }
@@ -41,7 +46,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_;
« no previous file with comments | « third_party/WebKit/Source/core/events/MouseEvent.cpp ('k') | third_party/WebKit/Source/core/events/PointerEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698