| Index: third_party/WebKit/Source/core/events/Event.h
|
| diff --git a/third_party/WebKit/Source/core/events/Event.h b/third_party/WebKit/Source/core/events/Event.h
|
| index f0ee9c3637b3875a633d56950d83e070999912c5..f11cef2e7ec07b6caf08383e5fa9672bd42c0bc4 100644
|
| --- a/third_party/WebKit/Source/core/events/Event.h
|
| +++ b/third_party/WebKit/Source/core/events/Event.h
|
| @@ -122,7 +122,15 @@ public:
|
|
|
| bool bubbles() const { return m_canBubble; }
|
| bool cancelable() const { return m_cancelable; }
|
| - DOMTimeStamp timeStamp() const { return m_createTime; }
|
| +
|
| + // Event creation timestamp in milliseconds. If |HiResEventTimeStamp|
|
| + // runtime feature is enabled it returns a DOMHighResTimeStamp using the
|
| + // platform timestamp (see |m_platformTimeStamp|) otherwise it returns a
|
| + // DOMTimeStamp that represents the current object's construction time (see
|
| + // |m_createTime|). For more info see http://crbug.com/160524
|
| + double timeStamp(ScriptState*) const;
|
| + double platformTimeStamp() const { return m_platformTimeStamp; }
|
| + void setPlatformTimeStamp(double platformTimeStamp) { m_platformTimeStamp = platformTimeStamp; }
|
|
|
| void stopPropagation() { m_propagationStopped = true; }
|
| void stopImmediatePropagation() { m_immediatePropagationStopped = true; }
|
| @@ -183,9 +191,6 @@ public:
|
|
|
| bool isBeingDispatched() const { return eventPhase(); }
|
|
|
| - double uiCreateTime() const { return m_uiCreateTime; }
|
| - void setUICreateTime(double uiCreateTime) { m_uiCreateTime = uiCreateTime; }
|
| -
|
| // Events that must not leak across isolated world, similar to how
|
| // ErrorEvent behaves, can override this method.
|
| virtual bool canBeDispatchedInWorld(const DOMWrapperWorld&) const { return true; }
|
| @@ -225,7 +230,10 @@ private:
|
| DOMTimeStamp m_createTime;
|
| RefPtrWillBeMember<Event> m_underlyingEvent;
|
| OwnPtrWillBeMember<EventPath> m_eventPath;
|
| - double m_uiCreateTime; // For input events, the time the event was recorded by the UI.
|
| + // The monotonic platform time in seconds, for input events it is the
|
| + // event timestamp provided by the host OS and reported in the original
|
| + // WebInputEvent instance.
|
| + double m_platformTimeStamp;
|
| };
|
|
|
| #define DEFINE_EVENT_TYPE_CASTS(typeName) \
|
|
|