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

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: Add TODO 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..7c96f41c3230e0393b1432663af23916254c6644 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);
+ // Returns whether a pointer id exists and active.
+ bool isActive(const int) const;
- // Returns type of pointer id if exists, otherwise Unknown
- WebPointerProperties::PointerType getPointerType(const int);
+ // Returns type of pointer id if exists, otherwise Unknown.
+ WebPointerProperties::PointerType getPointerType(const int) const;
- // Returns whether a pointer id exists and has at least one pressed button
- bool isActiveButtonsState(const int);
+ // Returns whether a pointer id exists and has at least one pressed button.
+ bool isActiveButtonsState(const int) const;
+
+ // Returns the id of the pointer event corresponding to the given pointer
+ // properties if exists otherwise s_invalidId.
+ int getPointerEventId(const WebPointerProperties&) const;
private:
typedef WTF::UnsignedWithZeroKeyHashTraits<int> UnsignedHash;
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/events/PointerEventFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698