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

Unified Diff: third_party/WebKit/Source/core/events/TouchEvent.cpp

Issue 2507503002: Use touch events to report stylus events (Closed)
Patch Set: I should pay attention... Created 4 years 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/TouchEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/TouchEvent.cpp b/third_party/WebKit/Source/core/events/TouchEvent.cpp
index cc0071857775722f6dd0adcd95ac5efecdcfca0a..2d0d9d0b99eace10170c9885ac58d3f960e5eb98 100644
--- a/third_party/WebKit/Source/core/events/TouchEvent.cpp
+++ b/third_party/WebKit/Source/core/events/TouchEvent.cpp
@@ -212,7 +212,8 @@ TouchEvent::TouchEvent(TouchList* touches,
bool causesScrollingIfUncanceled,
bool firstTouchMoveOrStart,
double platformTimeStamp,
- TouchAction currentTouchAction)
+ TouchAction currentTouchAction,
+ WebPointerProperties::PointerType pointerType)
// Pass a sourceCapabilities including the ability to fire touchevents when
// creating this touchevent, which is always created from input device
// capabilities from EventHandler.
@@ -231,7 +232,8 @@ TouchEvent::TouchEvent(TouchList* touches,
m_causesScrollingIfUncanceled(causesScrollingIfUncanceled),
m_firstTouchMoveOrStart(firstTouchMoveOrStart),
m_defaultPreventedBeforeCurrentTarget(false),
- m_currentTouchAction(currentTouchAction) {}
+ m_currentTouchAction(currentTouchAction),
+ m_pointerType(pointerType) {}
TouchEvent::TouchEvent(const AtomicString& type,
const TouchEventInit& initializer)
@@ -242,7 +244,8 @@ TouchEvent::TouchEvent(const AtomicString& type,
m_causesScrollingIfUncanceled(false),
m_firstTouchMoveOrStart(false),
m_defaultPreventedBeforeCurrentTarget(false),
- m_currentTouchAction(TouchActionAuto) {}
+ m_currentTouchAction(TouchActionAuto),
+ m_pointerType(WebPointerProperties::PointerType::Unknown) {}
TouchEvent::~TouchEvent() {}
« no previous file with comments | « third_party/WebKit/Source/core/events/TouchEvent.h ('k') | third_party/WebKit/Source/core/input/TouchEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698