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

Unified Diff: third_party/WebKit/Source/platform/PlatformTouchEvent.h

Issue 1888163003: Articulate the cancel behavior in the WebTouchEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and non-const ref passed back Created 4 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 | « third_party/WebKit/Source/platform/PlatformEvent.h ('k') | third_party/WebKit/Source/web/WebInputEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/PlatformTouchEvent.h
diff --git a/third_party/WebKit/Source/platform/PlatformTouchEvent.h b/third_party/WebKit/Source/platform/PlatformTouchEvent.h
index 952e886b32270a7971669e59c6610426df6e8e56..97afb62f8860ec3892588efb50d7c46644915a43 100644
--- a/third_party/WebKit/Source/platform/PlatformTouchEvent.h
+++ b/third_party/WebKit/Source/platform/PlatformTouchEvent.h
@@ -30,19 +30,20 @@ class PlatformTouchEvent : public PlatformEvent {
public:
PlatformTouchEvent()
: PlatformEvent(PlatformEvent::TouchStart)
- , m_cancelable(true)
+ , m_dispatchType(PlatformEvent::Blocking)
, m_causesScrollingIfUncanceled(false)
{
}
const Vector<PlatformTouchPoint>& touchPoints() const { return m_touchPoints; }
- bool cancelable() const { return m_cancelable; }
+ DispatchType dispatchType() const { return m_dispatchType; }
+ bool cancelable() const { return m_dispatchType == PlatformEvent::Blocking; }
bool causesScrollingIfUncanceled() const { return m_causesScrollingIfUncanceled; }
protected:
Vector<PlatformTouchPoint> m_touchPoints;
- bool m_cancelable;
+ DispatchType m_dispatchType;
bool m_causesScrollingIfUncanceled;
};
« no previous file with comments | « third_party/WebKit/Source/platform/PlatformEvent.h ('k') | third_party/WebKit/Source/web/WebInputEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698