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 aa155ce53c2994b99ee36f3fb9dc444e0ea75ddf..352456fffae0932cf1a61005e61dcc2374b4966f 100644 |
| --- a/third_party/WebKit/Source/core/events/PointerEventFactory.h |
| +++ b/third_party/WebKit/Source/core/events/PointerEventFactory.h |
| @@ -36,8 +36,8 @@ public: |
| PointerEvent* create(const AtomicString& type, |
| const PlatformTouchPoint&, PlatformEvent::Modifiers, |
| - const double width, const double height, |
| - const double clientX, const double clientY); |
| + const FloatSize& pointRadius, |
| + const FloatPoint& pagePoint); |
| PointerEvent* createPointerCancelEvent( |
| const int pointerId, const WebPointerProperties::PointerType); |
| @@ -62,16 +62,20 @@ public: |
| bool remove(const int); |
| // Returns all ids of the given pointerType. |
| - Vector<int> getPointerIdsOfType(WebPointerProperties::PointerType); |
| + Vector<int> getPointerIdsOfType(WebPointerProperties::PointerType) const; |
| // Returns whether a pointer id exists and active |
| - bool isActive(const int); |
| + bool isActive(const int) const; |
| // Returns type of pointer id if exists, otherwise Unknown |
| - WebPointerProperties::PointerType getPointerType(const int); |
| + WebPointerProperties::PointerType getPointerType(const int) const; |
| // Returns whether a pointer id exists and has at least one pressed button |
| - bool isActiveButtonsState(const int); |
| + bool isActiveButtonsState(const int) const; |
| + |
| + // Returns the id of the pointer event corresponding to the given pointer |
| + // properties if exists otherwise s_invalidId |
|
dtapuska
2016/04/27 17:07:04
periods at the end of comments :-)
Navid Zolghadr
2016/04/28 15:13:11
Oh my god! This file has quite a few missing dots!
|
| + int getPointerEventId(const WebPointerProperties&) const; |
| private: |
| typedef WTF::UnsignedWithZeroKeyHashTraits<int> UnsignedHash; |