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

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

Issue 2147263003: Send got/lostpointercapture immediately if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Apply comments Created 4 years, 5 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 b486c2d545027c1edcaa39dcbde807acebedb05d..d064d51b6d87905d2d61a632d7c1a03f7599f26c 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactory.h
+++ b/third_party/WebKit/Source/core/events/PointerEventFactory.h
@@ -45,7 +45,7 @@ public:
// For creating capture events (i.e got/lostpointercapture)
PointerEvent* createPointerCaptureEvent(
- PointerEvent*,
+ const int pointerId,
const AtomicString&);
// For creating boundary events (i.e pointerout/leave/over/enter)
@@ -82,8 +82,9 @@ private:
IncomingId(WebPointerProperties::PointerType pointerType,
int rawId)
: std::pair<int, int>(static_cast<int>(pointerType), rawId) {}
- int pointerType() const {return first;}
- int rawId() const {return second;}
+ WebPointerProperties::PointerType pointerType() const { return static_cast<WebPointerProperties::PointerType>(first); }
+ int pointerTypeInt() const { return first; }
+ int rawId() const { return second; }
} IncomingId;
typedef struct PointerAttributes {
IncomingId incomingId;

Powered by Google App Engine
This is Rietveld 408576698