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

Unified Diff: third_party/WebKit/Source/platform/UserGestureIndicator.cpp

Issue 2408333004: Move persistent gesture state to Document, add DocumentUserGestureToken (Closed)
Patch Set: a Created 4 years, 2 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/platform/UserGestureIndicator.cpp
diff --git a/third_party/WebKit/Source/platform/UserGestureIndicator.cpp b/third_party/WebKit/Source/platform/UserGestureIndicator.cpp
index fccbf7970c44a1e13d313300c7f09a0fc732961d..8738badceb5ed1fa4b9c23b0e8d2030f4365e4ab 100644
--- a/third_party/WebKit/Source/platform/UserGestureIndicator.cpp
+++ b/third_party/WebKit/Source/platform/UserGestureIndicator.cpp
@@ -92,7 +92,6 @@ void UserGestureToken::userGestureUtilized() {
}
UserGestureToken* UserGestureIndicator::s_rootToken = nullptr;
-bool UserGestureIndicator::s_processedUserGestureSinceLoad = false;
UserGestureIndicator::UserGestureIndicator(PassRefPtr<UserGestureToken> token)
: m_token(token) {
@@ -104,7 +103,6 @@ UserGestureIndicator::UserGestureIndicator(PassRefPtr<UserGestureToken> token)
s_rootToken = m_token.get();
else
m_token->transferGestureTo(s_rootToken);
- s_processedUserGestureSinceLoad = true;
}
UserGestureIndicator::~UserGestureIndicator() {
@@ -151,17 +149,4 @@ UserGestureToken* UserGestureIndicator::currentToken() {
return s_rootToken;
}
-// static
-void UserGestureIndicator::clearProcessedUserGestureSinceLoad() {
- if (isMainThread())
- s_processedUserGestureSinceLoad = false;
-}
-
-// static
-bool UserGestureIndicator::processedUserGestureSinceLoad() {
- if (!isMainThread())
- return false;
- return s_processedUserGestureSinceLoad;
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698