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

Unified Diff: third_party/WebKit/Source/core/events/Event.h

Issue 2233543002: Make first TouchStart and first TouchMove events on a flinging layer non-blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fling intervetion Created 4 years, 4 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/core/events/Event.h
diff --git a/third_party/WebKit/Source/core/events/Event.h b/third_party/WebKit/Source/core/events/Event.h
index 7becfcd5374edd35a3eef066830037b2a10e79e7..686d0a94768d1c9bbaee3e62dc4ddb3a02783177 100644
--- a/third_party/WebKit/Source/core/events/Event.h
+++ b/third_party/WebKit/Source/core/events/Event.h
@@ -215,6 +215,8 @@ public:
bool preventDefaultCalledDuringPassive() const { return m_preventDefaultCalledDuringPassive; }
+ bool preventDefaultCalledOnUncancelableEvent() const { return m_preventDefaultCalledOnUncancelableEvent; }
+
DECLARE_VIRTUAL_TRACE();
protected:
@@ -255,6 +257,8 @@ private:
// Whether preventDefault was called when |m_handlingPassive| is
// true. This field is reset on each call to setHandlingPassive.
unsigned m_preventDefaultCalledDuringPassive : 1;
+ // Whether preventDefault was called on uncancelable event.
+ unsigned m_preventDefaultCalledOnUncancelableEvent : 1;
tdresser 2016/08/17 14:32:28 This is a bit confusing. Are these events passive,
dtapuska 2016/08/17 18:54:59 These events aren't really passive. They are force
lanwei 2016/08/18 12:31:47 Delete passive or use uncancellable, non-blocking.
unsigned short m_eventPhase;
Member<EventTarget> m_currentTarget;

Powered by Google App Engine
This is Rietveld 408576698