Chromium Code Reviews| Index: third_party/WebKit/Source/core/events/PointerEventFactory.h |
| diff --git a/third_party/WebKit/Source/core/events/PointerEventFactory.h b/third_party/WebKit/Source/core/events/PointerEventFactory.h |
| index 20ec49fe4388c9d98aa5a1b52a59a2cc41239da2..f0ff0dbfb570eacf84f6981f8a336e3f82d6923d 100644 |
| --- a/third_party/WebKit/Source/core/events/PointerEventFactory.h |
| +++ b/third_party/WebKit/Source/core/events/PointerEventFactory.h |
| @@ -73,6 +73,8 @@ class CORE_EXPORT PointerEventFactory { |
| // properties if exists otherwise s_invalidId. |
| int getPointerEventId(const WebPointerProperties&) const; |
| + WebPointerProperties::PointerType getPointerType(int pointerId) const; |
|
mustaq
2016/10/17 20:18:56
Document that it returns Unknown for an inactive i
Navid Zolghadr
2016/10/18 14:18:11
Done.
|
| + |
| static const int s_mouseId; |
| private: |
| @@ -81,7 +83,10 @@ class CORE_EXPORT PointerEventFactory { |
| IncomingId() {} |
| IncomingId(WebPointerProperties::PointerType pointerType, int rawId) |
| : std::pair<int, int>(static_cast<int>(pointerType), rawId) {} |
| - int pointerType() const { return first; } |
| + int pointerTypeInt() const { return first; } |
| + WebPointerProperties::PointerType pointerType() const { |
| + return static_cast<WebPointerProperties::PointerType>(first); |
| + } |
| int rawId() const { return second; } |
| } IncomingId; |
| typedef struct PointerAttributes { |