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

Unified Diff: Source/web/WebScopedUserGesture.cpp

Issue 239503008: Expose the timestamp associated with a user gesture, and make it possible to recreate a new user ge… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « Source/platform/UserGestureIndicator.cpp ('k') | Source/web/WebUserGestureToken.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebScopedUserGesture.cpp
diff --git a/Source/web/WebScopedUserGesture.cpp b/Source/web/WebScopedUserGesture.cpp
index 81eac8678738ce91b47ca65c205ff6b7c078a34b..f47dac871e08461bfe883623a89185d7885c7be6 100644
--- a/Source/web/WebScopedUserGesture.cpp
+++ b/Source/web/WebScopedUserGesture.cpp
@@ -47,6 +47,11 @@ void WebScopedUserGesture::initializeWithToken(const WebUserGestureToken& token)
m_indicator.reset(new WebCore::UserGestureIndicator(token));
}
+void WebScopedUserGesture::initializeWithTimestamp(double timestamp)
+{
+ m_indicator.reset(new WebCore::UserGestureIndicator(timestamp));
+}
+
void WebScopedUserGesture::reset()
{
m_indicator.reset(0);
« no previous file with comments | « Source/platform/UserGestureIndicator.cpp ('k') | Source/web/WebUserGestureToken.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698