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

Unified Diff: Source/web/WebUserGestureToken.cpp

Issue 258783004: Add a "forwarded" flag to usergesture tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix unittest 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/tests/WebUserGestureTokenTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebUserGestureToken.cpp
diff --git a/Source/web/WebUserGestureToken.cpp b/Source/web/WebUserGestureToken.cpp
index 3cb8b5ea52c66d047028b7980ca2aa21f8a07703..c666d961c3637ed34f381274369f205dd03b5265 100644
--- a/Source/web/WebUserGestureToken.cpp
+++ b/Source/web/WebUserGestureToken.cpp
@@ -50,6 +50,16 @@ void WebUserGestureToken::setJavascriptPrompt()
m_token->setJavascriptPrompt();
}
+bool WebUserGestureToken::wasForwarded() const
+{
+ return m_token->wasForwarded();
+}
+
+void WebUserGestureToken::setForwarded()
+{
+ m_token->setForwarded();
+}
+
WebUserGestureToken::WebUserGestureToken(PassRefPtr<WebCore::UserGestureToken> token)
{
m_token = token;
« no previous file with comments | « Source/platform/UserGestureIndicator.cpp ('k') | Source/web/tests/WebUserGestureTokenTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698