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

Unified Diff: third_party/WebKit/Source/core/input/GestureManager.cpp

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/input/GestureManager.cpp
diff --git a/third_party/WebKit/Source/core/input/GestureManager.cpp b/third_party/WebKit/Source/core/input/GestureManager.cpp
index 0069478c6619095e104540f5418062d28131420a..74e568da44c2ce018848dd2b8cdeb9095dfae753 100644
--- a/third_party/WebKit/Source/core/input/GestureManager.cpp
+++ b/third_party/WebKit/Source/core/input/GestureManager.cpp
@@ -35,7 +35,7 @@ GestureManager::GestureManager(LocalFrame& frame,
void GestureManager::clear() {
m_suppressMouseEventsFromGestures = false;
m_longTapShouldInvokeContextMenu = false;
- m_lastShowPressTimestamp = 0;
+ m_lastShowPressTimestamp = TimeTicks();
}
DEFINE_TRACE(GestureManager) {
@@ -372,7 +372,7 @@ WebInputEventResult GestureManager::sendContextMenuEventForGesture(
WebPointerProperties::Button::Right, eventType, /* clickCount */ 1,
static_cast<PlatformEvent::Modifiers>(
modifiers | PlatformEvent::Modifiers::RightButtonDown),
- PlatformMouseEvent::FromTouch, WTF::monotonicallyIncreasingTime(),
+ PlatformMouseEvent::FromTouch, TimeTicks::Now(),
WebPointerProperties::PointerType::Mouse);
if (!m_suppressMouseEventsFromGestures && m_frame->view()) {
@@ -390,7 +390,7 @@ WebInputEventResult GestureManager::sendContextMenuEventForGesture(
}
WebInputEventResult GestureManager::handleGestureShowPress() {
- m_lastShowPressTimestamp = WTF::monotonicallyIncreasingTime();
+ m_lastShowPressTimestamp = TimeTicks::Now();
FrameView* view = m_frame->view();
if (!view)
@@ -415,7 +415,7 @@ FrameHost* GestureManager::frameHost() const {
return &m_frame->page()->frameHost();
}
-double GestureManager::getLastShowPressTimestamp() const {
+TimeTicks GestureManager::getLastShowPressTimestamp() const {
return m_lastShowPressTimestamp;
}
« no previous file with comments | « third_party/WebKit/Source/core/input/GestureManager.h ('k') | third_party/WebKit/Source/core/input/MouseEventManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698