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

Unified Diff: third_party/WebKit/Source/web/WebUserGestureToken.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/WebUserGestureToken.cpp
diff --git a/third_party/WebKit/Source/web/WebUserGestureToken.cpp b/third_party/WebKit/Source/web/WebUserGestureToken.cpp
index 2599ef41455cb2e5bce07ac710da2cfe45699e3d..6d8c2d7c13fb6b61259b277ab6f4e785f61b0b30 100644
--- a/third_party/WebKit/Source/web/WebUserGestureToken.cpp
+++ b/third_party/WebKit/Source/web/WebUserGestureToken.cpp
@@ -39,11 +39,11 @@ bool WebUserGestureToken::hasGestures() const {
}
void WebUserGestureToken::setOutOfProcess() {
- m_token->setOutOfProcess();
+ m_token->setTimeoutPolicy(UserGestureToken::OutOfProcess);
}
void WebUserGestureToken::setJavascriptPrompt() {
- m_token->setJavascriptPrompt();
+ m_token->setTimeoutPolicy(UserGestureToken::HasPaused);
}
WebUserGestureToken::WebUserGestureToken(PassRefPtr<UserGestureToken> token) {
« no previous file with comments | « third_party/WebKit/Source/web/WebScopedUserGesture.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698