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

Unified Diff: Source/platform/UserGestureIndicator.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.h ('k') | Source/web/WebUserGestureToken.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/UserGestureIndicator.cpp
diff --git a/Source/platform/UserGestureIndicator.cpp b/Source/platform/UserGestureIndicator.cpp
index b2d90814dc678a69bf2b1fc6453be130c9689e92..5f740a9a96d86a45dda3fd44bf3e6fa7c14cd117 100644
--- a/Source/platform/UserGestureIndicator.cpp
+++ b/Source/platform/UserGestureIndicator.cpp
@@ -88,12 +88,23 @@ public:
m_javascriptPrompt = true;
}
+ virtual bool wasForwarded() const OVERRIDE
+ {
+ return m_forwarded;
+ }
+
+ virtual void setForwarded() OVERRIDE
+ {
+ m_forwarded = true;
+ }
+
private:
GestureToken()
: m_consumableGestures(0),
m_timestamp(0),
m_outOfProcess(false),
- m_javascriptPrompt(false)
+ m_javascriptPrompt(false),
+ m_forwarded(false)
{
}
@@ -101,6 +112,7 @@ private:
double m_timestamp;
bool m_outOfProcess;
bool m_javascriptPrompt;
+ bool m_forwarded;
};
}
« no previous file with comments | « Source/platform/UserGestureIndicator.h ('k') | Source/web/WebUserGestureToken.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698