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

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

Issue 1955643002: Add UMA metric to track the time saved on making events passive during fling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set dispatch type to forcepassive Created 4 years, 7 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/platform/PlatformTouchEvent.h
diff --git a/third_party/WebKit/Source/platform/PlatformTouchEvent.h b/third_party/WebKit/Source/platform/PlatformTouchEvent.h
index 88005d12de29deab0e78aeb6a3094b792bf429fd..9a0a310d3927c32a131023865d778a060c35670c 100644
--- a/third_party/WebKit/Source/platform/PlatformTouchEvent.h
+++ b/third_party/WebKit/Source/platform/PlatformTouchEvent.h
@@ -39,7 +39,7 @@ public:
const Vector<PlatformTouchPoint>& touchPoints() const { return m_touchPoints; }
DispatchType dispatchType() const { return m_dispatchType; }
- bool cancelable() const { return m_dispatchType == PlatformEvent::Blocking; }
dtapuska 2016/05/05 19:58:27 ok this seems wrong to me; if listeners are forced
+ bool cancelable() const { return m_dispatchType == PlatformEvent::Blocking || m_dispatchType == ListenersForcedNonBlockingPassive; }
bool causesScrollingIfUncanceled() const { return m_causesScrollingIfUncanceled; }
bool shouldForceBePassive() const { return m_shouldForceBePassive; }

Powered by Google App Engine
This is Rietveld 408576698