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

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 70d3afe8ad0b87a9f3289a53cf44af8f9415aa32..6fbb12259b878057bdf21484dbf35001f0ff2188 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);
mustaq 2016/04/20 15:40:01 The name "pagePoint" seems logical to me, but plea
Navid Zolghadr 2016/04/25 15:48:32 It was the name of the variable we were passing. B
PointerEvent* createPointerCancelEvent(
const int pointerId, const WebPointerProperties::PointerType);
@@ -73,6 +73,10 @@ public:
// Returns whether a pointer id exists and has at least one pressed button
bool isActiveButtonsState(const int);
+ // Returns the id of the pointer event corresponding to the given pointer
+ // properties if exists otherwise s_invalidId
+ int getPointerEventId(const WebPointerProperties&);
+
private:
typedef WTF::UnsignedWithZeroKeyHashTraits<int> UnsignedHash;
typedef struct IncomingId : public std::pair<int, int> {

Powered by Google App Engine
This is Rietveld 408576698