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/core/input/PointerEventManager.cpp

Issue 2401643005: Create user gesture indicator for pointerup (Closed)
Patch Set: 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/core/input/PointerEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
index 21ce995d0f67a222d0160e4a6e62a6fa861c49a5..5142eceb2e4f30b65595de606e8f208e49115ce9 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -168,6 +168,12 @@ WebInputEventResult PointerEventManager::dispatchPointerEvent(
UseCounter::count(m_frame->document(),
UseCounter::PointerEventDispatchPointerDown);
+ std::unique_ptr<UserGestureIndicator> gestureIndicator;
+ if (eventType == EventTypeNames::pointerup) {
+ gestureIndicator =
+ wrapUnique(new UserGestureIndicator(DefinitelyProcessingUserGesture));
mustaq 2016/10/07 19:06:21 Can't we make this a one-liner like this? if(poi
Navid Zolghadr 2016/10/11 13:19:26 That wouldn't work. Because the variable will go o
Rick Byers 2016/10/11 15:11:52 Note that you can also avoid indirection via a uni
Navid Zolghadr 2016/10/12 15:18:01 Since the other change landed before this if I add
+ }
+
DispatchEventResult dispatchResult = target->dispatchEvent(pointerEvent);
return EventHandlingUtil::toWebInputEventResult(dispatchResult);
}

Powered by Google App Engine
This is Rietveld 408576698