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

Unified Diff: third_party/WebKit/Source/web/WebUserGestureIndicator.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/web/WebUserGestureIndicator.cpp
diff --git a/third_party/WebKit/Source/web/WebUserGestureIndicator.cpp b/third_party/WebKit/Source/web/WebUserGestureIndicator.cpp
index de7ec821e38bec30936e22745e6a1561ecd40d88..e1eaf1b52459469ceb9fb1ce05652574b7455c7d 100644
--- a/third_party/WebKit/Source/web/WebUserGestureIndicator.cpp
+++ b/third_party/WebKit/Source/web/WebUserGestureIndicator.cpp
@@ -32,6 +32,7 @@
#include "platform/UserGestureIndicator.h"
#include "public/web/WebUserGestureToken.h"
+#include "web/WebLocalFrameImpl.h"
namespace blink {
@@ -43,8 +44,10 @@ bool WebUserGestureIndicator::consumeUserGesture() {
return UserGestureIndicator::consumeUserGesture();
}
-bool WebUserGestureIndicator::processedUserGestureSinceLoad() {
- return UserGestureIndicator::processedUserGestureSinceLoad();
+bool WebUserGestureIndicator::processedUserGestureSinceLoad(
+ WebLocalFrame* frame) {
+ Document* document = toWebLocalFrameImpl(frame)->frame()->document();
+ return document->hasReceivedUserGesture();
}
WebUserGestureToken WebUserGestureIndicator::currentUserGestureToken() {

Powered by Google App Engine
This is Rietveld 408576698