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 780be37131a5aa33416070187adf5d9f83057405..09cd64e030c1c56e09fe79553c61bc6235d0a8bc 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 = TimeTicks(); |
+ m_lastShowPressTimestamp.reset(); |
} |
DEFINE_TRACE(GestureManager) { |
@@ -426,7 +426,8 @@ FrameHost* GestureManager::frameHost() const { |
return &m_frame->page()->frameHost(); |
} |
-TimeTicks GestureManager::getLastShowPressTimestamp() const { |
+WTF::Optional<WTF::TimeTicks> GestureManager::getLastShowPressTimestamp() |
+ const { |
return m_lastShowPressTimestamp; |
} |