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

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

Issue 2408133007: Check the root frame pointer events as well for capture (Closed)
Patch Set: Created 4 years, 2 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 20ec49fe4388c9d98aa5a1b52a59a2cc41239da2..c914ca2444d891d5e05e1f8985b85e6fe0b97ba1 100644
--- a/third_party/WebKit/Source/core/events/PointerEventFactory.h
+++ b/third_party/WebKit/Source/core/events/PointerEventFactory.h
@@ -73,6 +73,11 @@ class CORE_EXPORT PointerEventFactory {
// properties if exists otherwise s_invalidId.
int getPointerEventId(const WebPointerProperties&) const;
+ // Returns the pointer type of the active pointer event corresponding to
+ // the give pointerId. If there is no matching active pointer it returns
+ // WebPointerProperties::PointerType::Unknown.
+ WebPointerProperties::PointerType getPointerType(int pointerId) const;
+
static const int s_mouseId;
private:
@@ -81,7 +86,10 @@ class CORE_EXPORT PointerEventFactory {
IncomingId() {}
IncomingId(WebPointerProperties::PointerType pointerType, int rawId)
: std::pair<int, int>(static_cast<int>(pointerType), rawId) {}
- int pointerType() const { return first; }
+ int pointerTypeInt() const { return first; }
+ WebPointerProperties::PointerType pointerType() const {
+ return static_cast<WebPointerProperties::PointerType>(first);
+ }
int rawId() const { return second; }
} IncomingId;
typedef struct PointerAttributes {

Powered by Google App Engine
This is Rietveld 408576698