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

Unified Diff: sky/engine/core/events/Event.h

Issue 880473003: sky-scrollable should use a reasonable fling curve (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Now with heights Created 5 years, 11 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: sky/engine/core/events/Event.h
diff --git a/sky/engine/core/events/Event.h b/sky/engine/core/events/Event.h
index 91e55bf208bfe0f1f2764ea2cdc58b5455c27a8f..5514cf302b74743fc0621c39ca37c6b9a424655c 100644
--- a/sky/engine/core/events/Event.h
+++ b/sky/engine/core/events/Event.h
@@ -25,7 +25,6 @@
#define SKY_ENGINE_CORE_EVENTS_EVENT_H_
#include "sky/engine/bindings/core/v8/ScriptWrappable.h"
-#include "sky/engine/core/dom/DOMTimeStamp.h"
#include "sky/engine/core/events/EventPath.h"
#include "sky/engine/platform/heap/Handle.h"
#include "sky/engine/wtf/RefCounted.h"
@@ -103,7 +102,7 @@ public:
bool bubbles() const { return m_canBubble; }
bool cancelable() const { return m_cancelable; }
- DOMTimeStamp timeStamp() const { return m_createTime; }
+ double timeStamp() const { return m_timeStamp; }
void stopPropagation() { m_propagationStopped = true; }
void stopImmediatePropagation() { m_immediatePropagationStopped = true; }
@@ -164,6 +163,8 @@ protected:
virtual void receivedTarget();
bool dispatched() const { return m_target; }
+ double m_timeStamp;
+
private:
AtomicString m_type;
bool m_canBubble;
@@ -178,7 +179,6 @@ private:
unsigned short m_eventPhase;
RefPtr<EventTarget> m_currentTarget;
RefPtr<EventTarget> m_target;
- DOMTimeStamp m_createTime;
RefPtr<Event> m_underlyingEvent;
OwnPtr<EventPath> m_eventPath;
};

Powered by Google App Engine
This is Rietveld 408576698