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

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

Issue 2542693002: Use WTF::TimeTicks to represent timestamp in Platform/Core event types (Closed)
Patch Set: rebase Created 4 years 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/Event.h
diff --git a/third_party/WebKit/Source/core/events/Event.h b/third_party/WebKit/Source/core/events/Event.h
index 3cb3cf06f16d8dbcafbf1f8e06f49cbbcb20e7e2..0c8cc52238514c54a7af228feaa6b8e53a3d5793 100644
--- a/third_party/WebKit/Source/core/events/Event.h
+++ b/third_party/WebKit/Source/core/events/Event.h
@@ -32,6 +32,7 @@
#include "core/events/EventInit.h"
#include "core/events/EventPath.h"
#include "platform/heap/Handle.h"
+#include "wtf/Time.h"
#include "wtf/text/AtomicString.h"
namespace blink {
@@ -156,7 +157,7 @@ class CORE_EXPORT Event : public GarbageCollectedFinalized<Event>,
// using the platform timestamp (see |m_platformTimeStamp|).
// For more info see http://crbug.com/160524
double timeStamp(ScriptState*) const;
- double platformTimeStamp() const { return m_platformTimeStamp; }
+ TimeTicks platformTimeStamp() const { return m_platformTimeStamp; }
void stopPropagation() { m_propagationStopped = true; }
void setStopPropagation(bool stopPropagation) {
@@ -270,11 +271,11 @@ class CORE_EXPORT Event : public GarbageCollectedFinalized<Event>,
bool canBubble,
bool cancelable,
ComposedMode,
- double platformTimeStamp);
+ TimeTicks platformTimeStamp);
Event(const AtomicString& type,
bool canBubble,
bool cancelable,
- double platformTimeStamp);
+ TimeTicks platformTimeStamp);
Event(const AtomicString& type,
bool canBubble,
bool cancelable,
@@ -322,7 +323,7 @@ class CORE_EXPORT Event : public GarbageCollectedFinalized<Event>,
// 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;
+ TimeTicks m_platformTimeStamp;
};
#define DEFINE_EVENT_TYPE_CASTS(typeName) \
« no previous file with comments | « third_party/WebKit/Source/core/events/DragEvent.cpp ('k') | third_party/WebKit/Source/core/events/Event.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698