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

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

Issue 1892653003: Extract touch handling logic from EventHandler (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.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;

Powered by Google App Engine
This is Rietveld 408576698