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

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

Issue 2137483003: Add UMA metrics for root scroller intervention to track forcing passive breakage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ability to test histograms from layout tests Created 4 years, 5 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 119b255c03dffa8aad48cc4d6fc21adbc388c25d..c53054f03309c3169a1e2250d9c06db946785a7c 100644
--- a/third_party/WebKit/Source/core/events/Event.h
+++ b/third_party/WebKit/Source/core/events/Event.h
@@ -214,7 +214,9 @@ public:
bool isTrusted() const { return m_isTrusted; }
void setTrusted(bool value) { m_isTrusted = value; }
- void setHandlingPassive(bool value) { m_handlingPassive = value; }
+ void setHandlingPassive(bool value);
+
+ bool preventDefaultCalledDuringPassive() const { return m_preventDefaultCalledDuringPassive; }
DECLARE_VIRTUAL_TRACE();
@@ -253,6 +255,10 @@ private:
unsigned m_isTrusted : 1;
unsigned m_handlingPassive : 1;
+ // Whether preventDefault was called when |m_handlingPassive| is
+ // true. This field is reset on each call to setHandlingPassive.
+ unsigned m_preventDefaultCalledDuringPassive : 1;
+
unsigned short m_eventPhase;
Member<EventTarget> m_currentTarget;
Member<EventTarget> m_target;

Powered by Google App Engine
This is Rietveld 408576698