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

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

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.h
diff --git a/third_party/WebKit/Source/core/input/GestureManager.h b/third_party/WebKit/Source/core/input/GestureManager.h
index 1cae20431ac0f32362b68ba3603c1692b7bc49d1..8e992f2d3f503ff1b7297c0784865a0adc615331 100644
--- a/third_party/WebKit/Source/core/input/GestureManager.h
+++ b/third_party/WebKit/Source/core/input/GestureManager.h
@@ -11,6 +11,7 @@
#include "core/page/EventWithHitTestResults.h"
#include "platform/PlatformEvent.h"
#include "public/platform/WebInputEventResult.h"
+#include "wtf/Optional.h"
namespace blink {
@@ -43,7 +44,7 @@ class CORE_EXPORT GestureManager
// TODO(nzolghadr): This can probably be hidden and the related logic
// be moved to this class (see crrev.com/112023010). Since that might cause
// regression it's better to move that logic in another change.
- TimeTicks getLastShowPressTimestamp() const;
+ WTF::Optional<WTF::TimeTicks> getLastShowPressTimestamp() const;
private:
WebInputEventResult handleGestureShowPress();
@@ -80,7 +81,7 @@ class CORE_EXPORT GestureManager
const Member<SelectionController> m_selectionController;
- TimeTicks m_lastShowPressTimestamp;
+ WTF::Optional<WTF::TimeTicks> m_lastShowPressTimestamp;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698