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

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

Issue 2408333004: Move persistent gesture state to Document, add DocumentUserGestureToken (Closed)
Patch Set: Re-add dropped null check 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 7f9a9b9875bec402e0c131c313c40a0dd413cd1d..21675c4bea4b22be75a590d5c86ee570884805c8 100644
--- a/third_party/WebKit/Source/platform/UserGestureIndicator.cpp
+++ b/third_party/WebKit/Source/platform/UserGestureIndicator.cpp
@@ -114,7 +114,6 @@ static void RecordUserGestureMerge(const UserGestureToken& oldToken,
}
UserGestureToken* UserGestureIndicator::s_rootToken = nullptr;
-bool UserGestureIndicator::s_processedUserGestureSinceLoad = false;
UserGestureIndicator::UserGestureIndicator(PassRefPtr<UserGestureToken> token)
: m_token(token) {
@@ -128,7 +127,6 @@ UserGestureIndicator::UserGestureIndicator(PassRefPtr<UserGestureToken> token)
RecordUserGestureMerge(*s_rootToken, *m_token);
m_token->transferGestureTo(s_rootToken);
}
- s_processedUserGestureSinceLoad = true;
}
UserGestureIndicator::~UserGestureIndicator() {
@@ -175,17 +173,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