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

Unified Diff: Source/platform/PlatformTouchEvent.h

Issue 247483002: Allow touch events to be uncancelable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix build on some platforms Created 6 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
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/web/WebInputEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/PlatformTouchEvent.h
diff --git a/Source/platform/PlatformTouchEvent.h b/Source/platform/PlatformTouchEvent.h
index e7c9e6130145475d3abdcbc46f533119b1eedb81..d0ec1a3326ba09ff05e27c5c9ffa13747b7eec42 100644
--- a/Source/platform/PlatformTouchEvent.h
+++ b/Source/platform/PlatformTouchEvent.h
@@ -30,13 +30,17 @@ class PlatformTouchEvent : public PlatformEvent {
public:
PlatformTouchEvent()
: PlatformEvent(PlatformEvent::TouchStart)
+ , m_cancelable(true)
{
}
const Vector<PlatformTouchPoint>& touchPoints() const { return m_touchPoints; }
+ bool cancelable() const { return m_cancelable; }
+
protected:
Vector<PlatformTouchPoint> m_touchPoints;
+ bool m_cancelable;
};
}
« no previous file with comments | « Source/core/page/EventHandler.cpp ('k') | Source/web/WebInputEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698