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

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: Don't fix bug in this patch 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 530aa2361e6114eccbf1c958911a20146224372f..657ab21231a7a9314ffbc9fe81297272ae56de4f 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,14 +372,14 @@ 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);
return m_frame->eventHandler().sendContextMenuEvent(mouseEvent);
}
WebInputEventResult GestureManager::handleGestureShowPress() {
- m_lastShowPressTimestamp = WTF::monotonicallyIncreasingTime();
+ m_lastShowPressTimestamp = TimeTicks::Now();
FrameView* view = m_frame->view();
if (!view)
@@ -404,7 +404,7 @@ FrameHost* GestureManager::frameHost() const {
return &m_frame->page()->frameHost();
}
-double GestureManager::getLastShowPressTimestamp() const {
+TimeTicks GestureManager::getLastShowPressTimestamp() const {
return m_lastShowPressTimestamp;
}

Powered by Google App Engine
This is Rietveld 408576698