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

Unified Diff: third_party/WebKit/Source/core/events/MouseEvent.cpp

Issue 1352523002: Use high precision timestamp for Event.timestamp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 2 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/MouseEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/MouseEvent.cpp b/third_party/WebKit/Source/core/events/MouseEvent.cpp
index a922a7bbd1e6ce4bb960b0cd8701f53e5dc61e50..b07622da5042124dd8a6d6383a7c8269283158ed 100644
--- a/third_party/WebKit/Source/core/events/MouseEvent.cpp
+++ b/third_party/WebKit/Source/core/events/MouseEvent.cpp
@@ -120,7 +120,7 @@ MouseEvent::MouseEvent(const AtomicString& eventType, bool canBubble, bool cance
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey,
short button, unsigned short buttons, PassRefPtrWillBeRawPtr<EventTarget> relatedTarget,
PlatformMouseEvent::SyntheticEventType syntheticEventType,
- double uiCreateTime)
+ double timestamp)
: MouseRelatedEvent(eventType, canBubble, cancelable, view, detail, IntPoint(screenX, screenY),
IntPoint(windowX, windowY),
IntPoint(movementX, movementY),
@@ -132,7 +132,7 @@ MouseEvent::MouseEvent(const AtomicString& eventType, bool canBubble, bool cance
, m_relatedTarget(relatedTarget)
, m_syntheticEventType(syntheticEventType)
{
- setUICreateTime(uiCreateTime);
+ setPlatformTimeStamp(timestamp);
}
MouseEvent::MouseEvent(const AtomicString& eventType, const MouseEventInit& initializer)
« no previous file with comments | « third_party/WebKit/Source/core/events/KeyboardEvent.cpp ('k') | third_party/WebKit/Source/core/events/TouchEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698