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

Unified Diff: third_party/WebKit/Source/web/WebInputEventConversion.cpp

Issue 2344693002: Support WebPointerProperties in MouseEvent (Closed)
Patch Set: fixed osx build Created 4 years, 3 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/web/WebInputEventConversion.cpp
diff --git a/third_party/WebKit/Source/web/WebInputEventConversion.cpp b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
index 061203937f6c048e42afd40f340fc9df69dac849..974b80fc9c7abfa1cb2fcd0567532abb0c6f08d5 100644
--- a/third_party/WebKit/Source/web/WebInputEventConversion.cpp
+++ b/third_party/WebKit/Source/web/WebInputEventConversion.cpp
@@ -509,6 +509,8 @@ WebMouseEventBuilder::WebMouseEventBuilder(const Widget* widget, const LayoutIte
clickCount = event.detail();
pointerType = WebPointerProperties::PointerType::Mouse;
+ if (event.mouseEvent())
+ pointerType = event.mouseEvent()->pointerProperties().pointerType;
}
// Generate a synthetic WebMouseEvent given a TouchEvent (eg. for emulating a mouse
« no previous file with comments | « third_party/WebKit/Source/platform/PlatformEvent.h ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698