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

Unified Diff: third_party/WebKit/Source/web/WebScopedUserGesture.cpp

Issue 2401123002: UserGestureIndicator is a mess. Clean it up. (Closed)
Patch Set: Callback cleanup, comments 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/WebScopedUserGesture.cpp
diff --git a/third_party/WebKit/Source/web/WebScopedUserGesture.cpp b/third_party/WebKit/Source/web/WebScopedUserGesture.cpp
index bf5bb57489aa4482718c7a4a34a2a17af0db941e..ea902b6c8ead0a5a98d96429b87ac19849c6f846 100644
--- a/third_party/WebKit/Source/web/WebScopedUserGesture.cpp
+++ b/third_party/WebKit/Source/web/WebScopedUserGesture.cpp
@@ -41,8 +41,8 @@ WebScopedUserGesture::WebScopedUserGesture(const WebUserGestureToken& token) {
}
WebScopedUserGesture::WebScopedUserGesture() {
- m_indicator.reset(
- new UserGestureIndicator(DefinitelyProcessingNewUserGesture));
+ m_indicator.reset(new UserGestureIndicator(
+ UserGestureToken::create(UserGestureToken::NewGesture)));
}
WebScopedUserGesture::~WebScopedUserGesture() {}
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginContainerImpl.cpp ('k') | third_party/WebKit/Source/web/WebUserGestureToken.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698