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

Unified Diff: third_party/WebKit/Source/core/input/PointerEventManager.cpp

Issue 2426993002: 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/popup-allowed-from-pointerup-exactly-once.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5412a7958e67e1d03fd707b721ea9e5f6f155612..4ea4323eb94b90958605dd06b19ef04a2743f0d4 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -168,6 +168,13 @@ WebInputEventResult PointerEventManager::dispatchPointerEvent(
UseCounter::count(m_frame->document(),
UseCounter::PointerEventDispatchPointerDown);
+ std::unique_ptr<UserGestureIndicator> gestureIndicator;
+ if (eventType == EventTypeNames::pointerup &&
+ pointerEvent->pointerType() == "touch") {
+ gestureIndicator =
+ wrapUnique(new UserGestureIndicator(DefinitelyProcessingUserGesture));
+ }
+
DispatchEventResult dispatchResult = target->dispatchEvent(pointerEvent);
return EventHandlingUtil::toWebInputEventResult(dispatchResult);
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/popup-allowed-from-pointerup-exactly-once.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698