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

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

Issue 2656843003: Do not expose is_null API for time values in Blink (Closed)
Patch Set: Created 3 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: 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;
}

Powered by Google App Engine
This is Rietveld 408576698