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

Unified Diff: third_party/WebKit/Source/core/events/PointerEventFactory.cpp

Issue 1838973003: Send lostpointercapture on touch capturing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/events/PointerEventFactory.cpp
diff --git a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
index 04490da249950fe039c2c8180037c7427548963f..c71c5d068212dca339463cac2d97003cfc0bf7d3 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
+++ b/third_party/WebKit/Source/core/events/PointerEventFactory.cpp
@@ -316,6 +316,16 @@ bool PointerEventFactory::isPrimary(int mappedId) const
return m_primaryId[p.pointerType()] == mappedId;
}
+WebPointerProperties::PointerType PointerEventFactory::getPointerType(
+ const int pointerId)
+{
+ if (m_pointerIdMapping.contains(pointerId)) {
+ return static_cast<WebPointerProperties::PointerType>(
+ m_pointerIdMapping.get(pointerId).incomingId.pointerType());
+ }
+ return WebPointerProperties::PointerType::Unknown;
+}
+
bool PointerEventFactory::isActive(const int pointerId)
{
return m_pointerIdMapping.contains(pointerId);
« no previous file with comments | « third_party/WebKit/Source/core/events/PointerEventFactory.h ('k') | third_party/WebKit/Source/core/input/EventHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698