| 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);
|
|
|