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

Unified Diff: third_party/WebKit/public/platform/WebInputEvent.h

Issue 2849083002: Add pointer id to the WebMouseEvent's constructors (Closed)
Patch Set: webmouseidd Created 3 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/public/platform/WebInputEvent.h
diff --git a/third_party/WebKit/public/platform/WebInputEvent.h b/third_party/WebKit/public/platform/WebInputEvent.h
index ce3730058b06cdc18835cbe5368fbc4d26216ed8..f12868643639ea1a45ea32e31117c98a79ffc016 100644
--- a/third_party/WebKit/public/platform/WebInputEvent.h
+++ b/third_party/WebKit/public/platform/WebInputEvent.h
@@ -278,6 +278,8 @@ class WebInputEvent {
static constexpr double kTimeStampForTesting = 123.0;
+ static const int32_t kMousePointerId = std::numeric_limits<int32_t>::max();
dtapuska 2017/05/01 15:49:05 Use constexpr. Should this be in WebMouseEvent.h?
lanwei 2017/05/01 23:51:21 Done.
+
// Returns true if the WebInputEvent |type| is a mouse event.
static bool IsMouseEventType(int type) {
return kMouseTypeFirst <= type && type <= kMouseTypeLast;

Powered by Google App Engine
This is Rietveld 408576698